-
Notifications
You must be signed in to change notification settings - Fork 690
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add annotations to configure retries, max connections to a service
These are needed in order to scale a service up as well as help cope with when a pod for a kubernetes service disappears unexpectedly. By default Envoy has a limit of 1024 simultaneous connections to a cluster and doesn't do any retries. A single http server backend of a service can handle tens of thousands of requests per second however, and in environments where that happens the low limit of envoy causes envoy to circuit break those services rather than "flood" an unsuspecting backend with requests. By default, envoy doesn't retry requests, which means if a request gets made to a pod which is the process of exiting / just stopped responding to connections (Say it segfaulted) the request gets dropped and the client sees an error rather than a retry. The retry annotations allow changing this policy as appropriate in the environment Signed-off-by: Cody Maloney <cody@emeraldcloudlab.com>
- Loading branch information
Cody Maloney
committed
Feb 20, 2018
1 parent
69dbe02
commit c1d1f3f
Showing
4 changed files
with
124 additions
and
19 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