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.
stop circuit breaker Go routine before reloading api spec (TykTechnol…
…ogies#2256) added changes for: ``` File: tyk Type: goroutine Time: May 1, 2019 at 4:32pm (EDT) Entering interactive mode (type "help" for commands, "o" for options) (pprof) top10 Showing nodes accounting for 10488, 100% of 10490 total Dropped 74 nodes (cum <= 52) Showing top 10 nodes out of 22 flat flat% sum% cum cum% 10488 100% 100% 10488 100% runtime.gopark 0 0% 100% 96 0.92% bufio.(*Reader).Peek 0 0% 100% 141 1.34% bufio.(*Reader).fill 0 0% 100% 999 9.52% github.com/TykTechnologies/tyk/vendor/github.com/TykTechnologies/leakybucket/memorycache.(*Cache).startCleanupTimer.func1 0 0% 100% 4557 43.44% github.com/TykTechnologies/tyk/vendor/github.com/rubyist/circuitbreaker.(*Breaker).Subscribe.func1 0 0% 100% 145 1.38% internal/poll.(*FD).Read 0 0% 100% 147 1.40% internal/poll.(*pollDesc).wait 0 0% 100% 147 1.40% internal/poll.(*pollDesc).waitRead 0 0% 100% 147 1.40% internal/poll.runtime_pollWait 0 0% 100% 4557 43.44% main.APIDefinitionLoader.compileCircuitBreakerPathSpec.func1 (pprof) ``` this change addresses `4557 43.44% main.APIDefinitionLoader.compileCircuitBreakerPathSpec.func1` to fix it completely we need to fix `github.com/rubyist/circuitbreaker.(*Breaker).Subscribe`
- Loading branch information
Showing
4 changed files
with
84 additions
and
5 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
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