forked from TykTechnologies/tyk
-
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 a mutex to org-channel map in off-thread org monitor
A concurrent read and write (or just concurrent writes) panic with the map between org IDs and channels for monitoring quota for the org can happen when several requests to APIs belonging to the same organisation occur at the same time and there's no mapping yet. This is pretty easy to reproduce by launching a lot of simultaneus requests right before the gateway starts (e.g. with ab tool). In addition to this, tyk.with_dash.conf template now ships with off-thread org processing disabled as there's no org session by default in on-prem installations.
- Loading branch information
Showing
2 changed files
with
11 additions
and
6 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