-
Notifications
You must be signed in to change notification settings - Fork 26
[FSSDK-8838] feat(odp-cache): Adds support for odp cache. #365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
575e74c
388bff7
b6c07a1
2417c14
3913111
4186605
a285088
bf7259a
4565d21
24ff939
7041091
0f0e681
4e7ede9
ad2c25f
5b53595
fa4185c
093261c
44ab65c
1fc7b05
bffb21a
8abfda3
344c849
3cc8c71
ff00d6f
7cb5133
9a49dc1
8a2cce0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -157,6 +157,28 @@ client: | |
| # headers: | ||
| # Content-Type: "application/json" | ||
| # Auth-Token: "12345" | ||
| odp: | ||
| ## Disable odp | ||
| disable: false | ||
| ## Timeout in seconds after which event requests will timeout. | ||
| eventsRequestTimeout: 10s | ||
| ## Flush interval in seconds for odp events | ||
| eventsFlushInterval: 1s | ||
| ## Timeout in seconds after which segment requests will timeout. | ||
| segmentsRequestTimeout: 10s | ||
| ## If no segmentsCache is defined (or no default is defined), we will use the default in-memory with default size and timeout | ||
| segmentsCache: | ||
| default: "in-memory" | ||
| services: | ||
| in-memory: | ||
| size: 10000 | ||
| timeout: 600s | ||
| # redis: | ||
| # host: "localhost:6379" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't we need to control redis timeout as well? We can reuse
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added timeout to redis aswell. |
||
| # password: "" | ||
| # database: 0 | ||
| # timeout: 0s | ||
|
|
||
|
|
||
| ## | ||
| ## optimizely runtime configuration can be used for debugging and profiling the go runtime. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering why we need this support for odpCache only? What about other odp config like "client.odp"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No specific reason, its just something that we did for
upsaswell.