document resource consumption of the operator
This commit is contained in:
		
							parent
							
								
									1a761fd7c9
								
							
						
					
					
						commit
						eae676aef4
					
				|  | @ -229,7 +229,7 @@ CRD-based configuration. | |||
|   settings. The default is `1Gi`. | ||||
| 
 | ||||
| * **set_memory_request_to_limit** | ||||
|   Set `memory_request` to `memory_limit` for all Postgres clusters (the default value is also increased). This prevents certain cases of memory overcommitment at the cost of overprovisioning memory and potential scheduling problems for containers with high memory limits due to the lack of memory on Kubernetes cluster nodes. This affects all containers (Postgres, Scalyr sidecar, and other sidecars). The default is `false`. | ||||
|   Set `memory_request` to `memory_limit` for all Postgres clusters (the default value is also increased). This prevents certain cases of memory overcommitment at the cost of overprovisioning memory and potential scheduling problems for containers with high memory limits due to the lack of memory on Kubernetes cluster nodes. This affects all containers created by the operator (Postgres, Scalyr sidecar, and other sidecars); to set resources for the operator's own container, change the [operator deployment manually](https://github.com/zalando-incubator/postgres-operator/blob/master/manifests/postgres-operator.yaml#L13). The default is `false`. | ||||
| 
 | ||||
| ## Operator timeouts | ||||
| 
 | ||||
|  |  | |||
|  | @ -14,6 +14,13 @@ spec: | |||
|       - name: postgres-operator | ||||
|         image: registry.opensource.zalan.do/acid/smoke-tested-postgres-operator:v1.0.0-21-ge39915c | ||||
|         imagePullPolicy: IfNotPresent | ||||
|         resources: | ||||
|           requests: | ||||
|             cpu: 100m | ||||
|             memory: 100Mi | ||||
|           limits: | ||||
|             cpu: 200m | ||||
|             memory: 200Mi | ||||
|         env: | ||||
|         # provided additional ENV vars can overwrite individual config map entries   | ||||
|         - name: CONFIG_MAP_NAME | ||||
|  |  | |||
|  | @ -645,6 +645,7 @@ func (c *Cluster) generateStatefulSet(spec *acidv1.PostgresSpec) (*v1beta1.State | |||
| 		volumeClaimTemplate *v1.PersistentVolumeClaim | ||||
| 	) | ||||
| 
 | ||||
| 	// Improve me. Please.
 | ||||
| 	if c.OpConfig.SetMemoryRequestToLimit { | ||||
| 
 | ||||
| 		// controller adjusts the default memory request at operator startup
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue