Skip to content

Commit 86ad291

Browse files
committed
chore(redis-cluster): update proxy config
1 parent 3a3ae95 commit 86ad291

12 files changed

Lines changed: 90 additions & 33 deletions

File tree

addons/redis-cluster/7.0/chart/redis-cluster/templates/redis-statefulset.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ spec:
326326
-startup-nodes=127.0.0.1:{{ .Values.redis.containerPorts.redis }} \
327327
-addr=0.0.0.0:{{ .Values.proxy.containerPorts.proxy }} \
328328
-password=$(REDIS_PASSWORD) \
329-
-max-procs={{ .Values.proxy.maxProcs }}
329+
-max-procs={{ .Values.proxy.maxProcs }} \
330+
-backend-init-connections={{ .Values.proxy.backendInitConnections }} \
331+
-backend-idle-connections={{ .Values.proxy.backendIdleConnections }}
330332
{{- end }}
331333
env:
332334
{{- if and .Values.usePassword (not .Values.usePasswordFile) }}

addons/redis-cluster/7.0/chart/redis-cluster/values.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -783,8 +783,13 @@ proxy:
783783
## memory: 256Mi
784784
##
785785
requests: {}
786-
# max-procs
787-
maxProcs: 1
786+
## max-procs
787+
maxProcs: 4
788+
## backend-init-connections
789+
backendInitConnections: 10
790+
## backend-idle-connections
791+
backendIdleConnections: 500
792+
##
788793
## Configure extra options for Redis® liveness probes
789794
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes)
790795
## @param redis.livenessProbe.enabled Enable livenessProbe

addons/redis-cluster/7.0/plans/standard-1024/values.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,21 @@ redis:
3535
## @section Proxy® statefulset parameters
3636
##
3737
proxy:
38-
maxProcs: 1
38+
## max-procs
39+
maxProcs: 4
40+
## backend-init-connections
41+
backendInitConnections: 10
42+
## backend-idle-connections
43+
backendIdleConnections: 500
3944
## Proxy® resource requests and limits
4045
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
4146
## @param proxy.resources.limits The resources limits for the container
4247
## @param proxy.resources.requests The requested resources for the container
4348
##
4449
resources:
4550
limits:
46-
cpu: 1
47-
memory: 1Gi
51+
cpu: 4
52+
memory: 8Gi
4853
requests:
4954
cpu: 500m
5055
memory: 512Mi

addons/redis-cluster/7.0/plans/standard-128/values.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,21 @@ redis:
3535
## @section Proxy® statefulset parameters
3636
##
3737
proxy:
38-
maxProcs: 1
38+
## max-procs
39+
maxProcs: 4
40+
## backend-init-connections
41+
backendInitConnections: 10
42+
## backend-idle-connections
43+
backendIdleConnections: 500
3944
## Proxy® resource requests and limits
4045
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
4146
## @param proxy.resources.limits The resources limits for the container
4247
## @param proxy.resources.requests The requested resources for the container
4348
##
4449
resources:
4550
limits:
46-
cpu: 1
47-
memory: 1Gi
51+
cpu: 4
52+
memory: 8Gi
4853
requests:
4954
cpu: 500m
5055
memory: 512Mi

addons/redis-cluster/7.0/plans/standard-16384/values.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,21 @@ redis:
3535
## @section Proxy® statefulset parameters
3636
##
3737
proxy:
38-
maxProcs: 2
38+
## max-procs
39+
maxProcs: 8
40+
## backend-init-connections
41+
backendInitConnections: 10
42+
## backend-idle-connections
43+
backendIdleConnections: 1000
3944
## Proxy® resource requests and limits
4045
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
4146
## @param proxy.resources.limits The resources limits for the container
4247
## @param proxy.resources.requests The requested resources for the container
4348
##
4449
resources:
4550
limits:
46-
cpu: 2
47-
memory: 4Gi
51+
cpu: 8
52+
memory: 16Gi
4853
requests:
4954
cpu: 1
5055
memory: 2Gi

addons/redis-cluster/7.0/plans/standard-2048/values.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,21 @@ redis:
3535
## @section Proxy® statefulset parameters
3636
##
3737
proxy:
38-
maxProcs: 1
38+
## max-procs
39+
maxProcs: 4
40+
## backend-init-connections
41+
backendInitConnections: 10
42+
## backend-idle-connections
43+
backendIdleConnections: 500
3944
## Proxy® resource requests and limits
4045
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
4146
## @param proxy.resources.limits The resources limits for the container
4247
## @param proxy.resources.requests The requested resources for the container
4348
##
4449
resources:
4550
limits:
46-
cpu: 2
47-
memory: 2Gi
51+
cpu: 4
52+
memory: 8Gi
4853
requests:
4954
cpu: 1
5055
memory: 1Gi

addons/redis-cluster/7.0/plans/standard-256/values.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,21 @@ redis:
3535
## @section Proxy® statefulset parameters
3636
##
3737
proxy:
38-
maxProcs: 1
38+
## max-procs
39+
maxProcs: 4
40+
## backend-init-connections
41+
backendInitConnections: 10
42+
## backend-idle-connections
43+
backendIdleConnections: 500
3944
## Proxy® resource requests and limits
4045
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
4146
## @param proxy.resources.limits The resources limits for the container
4247
## @param proxy.resources.requests The requested resources for the container
4348
##
4449
resources:
4550
limits:
46-
cpu: 1
47-
memory: 1Gi
51+
cpu: 4
52+
memory: 8Gi
4853
requests:
4954
cpu: 500m
5055
memory: 512Mi

addons/redis-cluster/7.0/plans/standard-32768/values.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,21 @@ redis:
3535
## @section Proxy® statefulset parameters
3636
##
3737
proxy:
38-
maxProcs: 2
38+
## max-procs
39+
maxProcs: 8
40+
## backend-init-connections
41+
backendInitConnections: 10
42+
## backend-idle-connections
43+
backendIdleConnections: 1000
3944
## Proxy® resource requests and limits
4045
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
4146
## @param proxy.resources.limits The resources limits for the container
4247
## @param proxy.resources.requests The requested resources for the container
4348
##
4449
resources:
4550
limits:
46-
cpu: 2
47-
memory: 4Gi
51+
cpu: 8
52+
memory: 16Gi
4853
requests:
4954
cpu: 1
5055
memory: 2Gi

addons/redis-cluster/7.0/plans/standard-4096/values.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,21 @@ redis:
3535
## @section Proxy® statefulset parameters
3636
##
3737
proxy:
38-
maxProcs: 1
38+
## max-procs
39+
maxProcs: 4
40+
## backend-init-connections
41+
backendInitConnections: 10
42+
## backend-idle-connections
43+
backendIdleConnections: 500
3944
## Proxy® resource requests and limits
4045
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
4146
## @param proxy.resources.limits The resources limits for the container
4247
## @param proxy.resources.requests The requested resources for the container
4348
##
4449
resources:
4550
limits:
46-
cpu: 2
47-
memory: 2Gi
51+
cpu: 4
52+
memory: 8Gi
4853
requests:
4954
cpu: 1
5055
memory: 1Gi

addons/redis-cluster/7.0/plans/standard-512/values.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,21 @@ redis:
3535
## @section Proxy® statefulset parameters
3636
##
3737
proxy:
38-
maxProcs: 1
38+
## max-procs
39+
maxProcs: 4
40+
## backend-init-connections
41+
backendInitConnections: 10
42+
## backend-idle-connections
43+
backendIdleConnections: 500
3944
## Proxy® resource requests and limits
4045
## ref: https://kubernetes.io/docs/user-guide/compute-resources/
4146
## @param proxy.resources.limits The resources limits for the container
4247
## @param proxy.resources.requests The requested resources for the container
4348
##
4449
resources:
4550
limits:
46-
cpu: 1
47-
memory: 1Gi
51+
cpu: 4
52+
memory: 8Gi
4853
requests:
4954
cpu: 500m
5055
memory: 512Mi

0 commit comments

Comments
 (0)