cloud-gov / cg-atlas

Repository hosting issues and artifacts related to operations of the cloud.gov platform
Creative Commons Zero v1.0 Universal
3 stars 1 forks source link

Configure appropriate resource limits for k8s-brokered service plans #155

Open jmcarp opened 7 years ago

jmcarp commented 7 years ago

In order to ensure k8s-brokered services don't cost us ridiculous amounts to run, we want to specify reasonable limits and document them for customers.

Acceptance Criteria:

Implementation sketch:

Do research

Configure disk, memory, and cpu limits per service, possibly with multiple plans per service

datn commented 7 years ago

Re: ES resource allocation, we definitely want the ES_HEAP to be no more than half the allocated memory, even in a container, because Lucene uses the rest of the memory (for eminently cacheable objects) that vastly improves performance (in semi-extreme cases, from unusable to barely usable):

https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html

https://www.elastic.co/blog/how-to-make-a-dockerfile-for-elasticsearch