You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Oct 15 00:07:44] INFO Recreating session for key: ****8e86 api_id=60c036eea7a842b3728ca493a228b83f api_name=httpbin mw=AuthKey org_id=5bffbf8ef461e30001136627 origin=172.18.0.1 path=/httpbin/get
[Oct 15 00:07:44] INFO Recreating session for key: ****8e86 api_id=60c036eea7a842b3728ca493a228b83f api_name=httpbin mw=AuthKey org_id=5bffbf8ef461e30001136627 origin=172.18.0.1 path=/httpbin/get
[Oct 15 00:07:44] INFO Recreating session for key: ****8e86 api_id=60c036eea7a842b3728ca493a228b83f api_name=httpbin mw=AuthKey org_id=5bffbf8ef461e30001136627 origin=172.18.0.1 path=/httpbin/get
[Oct 15 00:07:44] INFO Recreating session for key: ****8e86 api_id=60c036eea7a842b3728ca493a228b83f api_name=httpbin mw=AuthKey org_id=5bffbf8ef461e30001136627 origin=172.18.0.1 path=/httpbin/get
[Oct 15 00:07:44] INFO Recreating session for key: ****8e86 api_id=60c036eea7a842b3728ca493a228b83f api_name=httpbin mw=AuthKey org_id=5bffbf8ef461e30001136627 origin=172.18.0.1 path=/httpbin/get
[Oct 15 00:07:44] INFO Recreating session for key: ****8e86 api_id=60c036eea7a842b3728ca493a228b83f api_name=httpbin mw=AuthKey org_id=5bffbf8ef461e30001136627 origin=172.18.0.1 path=/httpbin/get
...
...
What happens:
API key does not exist in hybrid cluster of gateways. Hybrid Gateway calls MDCB to obtain the API key. Under high RPS, multiple calls to MDCB occur for the same information in parallel. This is particularly problematic when client is using incorrect credentials.
What should happen:
A single call in-flight to the hybrid layer at a given point in time for given api key would be a more efficient solution. especially in the case of the key not being found or if the api key is being used at a high RPS.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, please add comments to this ticket if you would like it to stay open. Thank you for your contributions.
vverbani
changed the title
(hybrid) use singleflight when Recreating session for key
[TT-2380] - (hybrid) use singleflight when Recreating session for key
Apr 28, 2021
Branch/Environment/Version
all
Describe the bug
What happens:
API key does not exist in hybrid cluster of gateways. Hybrid Gateway calls MDCB to obtain the API key. Under high RPS, multiple calls to MDCB occur for the same information in parallel. This is particularly problematic when client is using incorrect credentials.
What should happen:
A single call in-flight to the hybrid layer at a given point in time for given api key would be a more efficient solution. especially in the case of the key not being found or if the api key is being used at a high RPS.
https://godoc.org/golang.org/x/sync/singleflight
The text was updated successfully, but these errors were encountered: