This repository has been archived by the owner on Aug 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This enables our chart to be deployed into clusters that require resources to be set for each container. This also prevents our pods from being evicted first when Kubernetes runs out of resources because Kubernetes will prefer to evict pods that have no resource settings. To that end we have set defaults for clients and servers because even in first-run tests we observed those pods being evicted, causing confusing issues. We are setting our requests and limits to the same value so we are considered to have a 'Guaranteed' quality of service class. These default settings were chosen based on observation in a running cluster using `kubectl top` and also looking at GKE metrics. We ran a Consul connect workload at 1 req/s. For the helper components, the load we saw is representative of a production cluster because the workload of these components doesn't change, e.g. the lifecycle sidecar. For the core components like clients, servers and mesh gateways, their resource requirements will increase depending on the workload. We have set their resources to more than double what was observed in a base-case installation so that first-run doesn't require an unnecessary amount of resources but also won't run up against any limits. It's expected that for production, users will tune their settings based on their specific use-case and observed load. In our observations, most of the "helper" containers used a maximum of 10 millicores and 12 Mi of memory. We have set these smaller containers and init containers to 50 millicores and 25 Mi of memory to be safe. For the lifecycle sidecar we observed 2m/12Mi. We set this to 10m/25Mi to keep this footprint small. This setting will also be used for connect-injected apps so we can't increase it too much or it will cause apps to have large resource footprints unnecessarily. For components like sync catalog, connect inject and snapshot agent we saw max usage of 44m/14Mi. Since these are long-running components, we set their resources to 50m/50Mi. For Consul clients we saw maximum usage of 10m/15Mi, we have set these to 100m/100Mi. For Consul servers we same maximum usage of 40m/13Mi. We have set these to 100m/100Mi. For mesh gateways with multi-dc federation we observed maximum usage of 15m/13Mi. We have set these to 100m/100Mi.
- Loading branch information
Showing
16 changed files
with
169 additions
and
34 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
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
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
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.