forked from cadence-workflow/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add List*Execution (ElasticSearch) API ratelimiters (cadence-workflow…
…#4925) This is a re-implementation of cadence-workflow#4916 that's compatible with the new dynamic config refactor, as there are enough changes that it wasn't worth trying to merge or cherry-pick. I've also made some minor improvements, e.g. added some more descriptions and used private types, but there is no behavior change from that PR. --- ES (and in general any kind of "bulk query" API) is a different resource and has quite different ratelimiting needs than other kinds of requests, so this separates the APIs and adds a new ratelimiter dynamic config. Since it kinda looked like we had something for this before, but it wasn't working, I dug around in the code and discovered that the existing limits are pretty wildly incorrectly used, or were actually completely unused. Those variables are now marked as deprecated for visibility, future changes should probably just remove them entirely (and/or correct them).
- Loading branch information
Showing
4 changed files
with
132 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.