Skip to content

Commit 0f50807

Browse files
docs
1 parent 1a6e174 commit 0f50807

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,18 @@ validator.decrypt_token(username, token)
104104
Note: 'to', 'from', and 'user_type' keys are not allowed to be set in
105105
extra_context.
106106

107+
## Performance Tuning
108+
109+
With the [boto defaults](https://botocore.amazonaws.com/v1/documentation/api/latest/reference/config.html), the AWS KMS client used in `KMSTokenValidator` may not be performant under higher loads, due to latency when communicating with AWS KMS. Try tuning these parameters below with the given starting points.
110+
111+
```python
112+
...
113+
max_pool_connections=100,
114+
connect_timeout=1,
115+
read_timeout=1,
116+
...
117+
```
118+
107119
## Reporting security vulnerabilities
108120

109121
If you've found a vulnerability or a potential vulnerability in kmsauth

0 commit comments

Comments
 (0)