-
Notifications
You must be signed in to change notification settings - Fork 37
[FSSDK-11991] update: expose CMAB cache configuration options #463
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
[FSSDK-11991] update: expose CMAB cache configuration options #463
Conversation
… updating type hints
…ze and TTL configuration
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.
default cmab cache size to be 10000
optimizely/cmab/cmab_service.py
Outdated
|
|
||
| NUM_LOCK_STRIPES = 1000 | ||
| DEFAULT_CMAB_CACHE_TIMEOUT = 30 * 60 # 30 minutes | ||
| DEFAULT_CMAB_CACHE_SIZE = 1000 |
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.
I think this needs to be 10000.
Just like in 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.
IN odp we have 10000 here:
python-sdk/optimizely/helpers/enums.py
Line 233 in 116d23a
| DEFAULT_CAPACITY: Final = 10_000 |
optimizely/cmab/cmab_service.py
Outdated
|
|
||
| NUM_LOCK_STRIPES = 1000 | ||
| DEFAULT_CMAB_CACHE_TIMEOUT = 30 * 60 # 30 minutes | ||
| DEFAULT_CMAB_CACHE_SIZE = 1000 |
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.
IN odp we have 10000 here:
python-sdk/optimizely/helpers/enums.py
Line 233 in 116d23a
| DEFAULT_CAPACITY: Final = 10_000 |
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.
LGTM
Summary
Also includes CMAB bugbash fixes
Test plan
All existing unit test and FSC should pass
Issues
FSSDK-11991