Configures the resources desired for our consul deployments
- This sets resources to assist in guaranteeing that our consul pods will run
- Uses the 'high' priority class that we manage
- Sets the memory requests to a value that matches our average memory usage over the course of 1 week rounded up
- Sets the memory limit to a value that matches our maximum memory usage over 1 week, rounded up
- Sets the CPU limits and requests to 200m
- Both our maximum and average CPU usage appear to be very low, our maximum hovers between 20m and 40m with spikes to 100m
- I decided to double this to help ensure some guarantee that we'll get the desired CPU time to these workloads
- For exploring our metrics I utilized: https://thanos.gitlab.net/graph?g0.range_input=2d&g0.step_input=30&g0.max_source_resolution=0s&g0.expr=max%20by%20(container)%20(rate(container_cpu_user_seconds_total%7Benv%3D%22gprd%22%2C%20container%3D%22consul%22%7D%5B1m%5D))&g0.tab=0&g1.range_input=1d&g1.max_source_resolution=0s&g1.expr=avg%20by%20(container)%20(container_memory_usage_bytes%7Benv%3D%22gprd%22%2C%20container%3D%22consul%22%7D)&g1.tab=0
Addresses: gitlab-org/gitlab#271575 (closed)