-
Notifications
You must be signed in to change notification settings - Fork 5
add kms performance parameters #18
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
Conversation
kmsauth/__init__.py
Outdated
| endpoint_url=None, | ||
| token_cache_size=4096, | ||
| stats=None, | ||
| max_pool_connections=100, |
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.
we should make these defaults to match the boto defaults. Then override as needed.
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.
https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html
defaults
max_pool_connections = 10
connect_timeout = 60 (seconds)
read_timeout = 60 (seconds)
(whoops just saw you already had this in the description, mb)
| read_timeout=1, | ||
| ): | ||
| """Create a KMSTokenValidator object. | ||
|
|
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.
we should probably also document these new parameters
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.
added
Followup to lyft/python-kmsauth#18 Start using the new performance parameters in kmsauth
Editing the
KMSTokenValidatorto allow the botoConfigobject to customizable.For a web server use case, such as within lyft/confidant, some good values are
The boto defaults are 10, 60, 60 respectively.