File tree Expand file tree Collapse file tree
chart/redis-cluster/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,41 +11,6 @@ metadata:
1111 annotations : {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
1212 {{- end }}
1313data :
14- {{- if .Values.proxy.enabled }}
15- redis-proxy-default.toml : |-
16- [log]
17- level = "libproxy=error" # "trace" "info" "debug" "warn" "error"
18- ansi = true # support ANSI colors
19- stdout = true # print logs to stdout
20- directory = "/tmp" # log file directory
21- file_name = "redis-cluster-proxy.log" # log file name
22-
23- [metrics]
24- port = 2110
25-
26- [[clusters]]
27- name = "redis-cluster-proxy"
28- listen_addr = "0.0.0.0:{{ .Values.proxy.containerPorts.proxy }}"
29- hash_tag = "{}"
30- thread = 2
31- cache_type = "redis_cluster"
32- servers = ["127.0.0.1:{{ .Values.redis.containerPorts.redis }}"]
33-
34- fetch_interval = 300000
35- fetch_since_latest_cmd = 300
36- read_from_slave = false
37-
38- ping_fail_limit = 10
39- ping_interval = 300
40-
41- read_timeout = 1000
42- write_timeout = 1000
43- dial_timeout = 500
44- listen_proto = "tcp"
45- node_connections = 1
46-
47- auth = {REDIS_PASSWORD}
48- {{- end }}
4914 redis-default.conf : |-
5015 # Redis configuration file example.
5116 #
Original file line number Diff line number Diff line change @@ -322,8 +322,10 @@ spec:
322322 {{- if .Values.usePasswordFile }}
323323 export REDIS_PASSWORD="$(< "${REDIS_PASSWORD_FILE}")"
324324 {{- end }}
325- sed s/{REDIS_PASSWORD}/\"${REDIS_PASSWORD}\"/g /opt/drycc/redis/etc/redis-proxy-default.toml > /opt/drycc/redis/etc/redis-proxy.toml
326- redis-cluster-proxy /opt/drycc/redis/etc/redis-proxy.toml
325+ redis-cluster-proxy \
326+ -startup-nodes=127.0.0.1:{{ .Values.redis.containerPorts.redis }} \
327+ -addr=0.0.0.0:{{ .Values.proxy.containerPorts.proxy }} \
328+ -password=$(REDIS_PASSWORD)
327329 {{- end }}
328330 env :
329331 {{- if and .Values.usePassword (not .Values.usePasswordFile) }}
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ redis:
2626 # #
2727 resources :
2828 limits :
29- cpu : 200m
29+ cpu : 300m
3030 memory : 1024Mi
3131 requests :
32- cpu : 20m
32+ cpu : 150m
3333 memory : 512Mi
3434
3535# # @section Proxy® statefulset parameters
4242 # #
4343 resources :
4444 limits :
45- cpu : 100m
45+ cpu : 200m
4646 memory : 256Mi
4747 requests :
48- cpu : 10m
49- memory : 64Mi
48+ cpu : 100m
49+ memory : 128Mi
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ redis:
2626 # #
2727 resources :
2828 limits :
29- cpu : 100m
29+ cpu : 200m
3030 memory : 128Mi
3131 requests :
32- cpu : 10m
32+ cpu : 100m
3333 memory : 64Mi
3434
3535# # @section Proxy® statefulset parameters
4242 # #
4343 resources :
4444 limits :
45- cpu : 100m
46- memory : 128Mi
45+ cpu : 200m
46+ memory : 256Mi
4747 requests :
48- cpu : 10m
49- memory : 64Mi
48+ cpu : 100m
49+ memory : 128Mi
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ redis:
2626 # #
2727 resources :
2828 limits :
29- cpu : 1000m
29+ cpu : 2000m
3030 memory : 16Gi
3131 requests :
32- cpu : 100m
32+ cpu : 1000m
3333 memory : 8Gi
3434
3535# # @section Proxy® statefulset parameters
4242 # #
4343 resources :
4444 limits :
45- cpu : 100m
46- memory : 256Mi
45+ cpu : 1000m
46+ memory : 1024Mi
4747 requests :
48- cpu : 10m
49- memory : 64Mi
48+ cpu : 500m
49+ memory : 512Mi
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ redis:
2626 # #
2727 resources :
2828 limits :
29- cpu : 300m
29+ cpu : 500m
3030 memory : 2Gi
3131 requests :
32- cpu : 30m
32+ cpu : 250m
3333 memory : 1Gi
3434
3535# # @section Proxy® statefulset parameters
4242 # #
4343 resources :
4444 limits :
45- cpu : 100m
46- memory : 256Mi
45+ cpu : 300m
46+ memory : 512Mi
4747 requests :
48- cpu : 10m
49- memory : 64Mi
48+ cpu : 150m
49+ memory : 256Mi
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ redis:
2626 # #
2727 resources :
2828 limits :
29- cpu : 100m
29+ cpu : 200m
3030 memory : 256Mi
3131 requests :
32- cpu : 10m
32+ cpu : 100m
3333 memory : 128Mi
3434
3535# # @section Proxy® statefulset parameters
4242 # #
4343 resources :
4444 limits :
45- cpu : 100m
45+ cpu : 200m
4646 memory : 256Mi
4747 requests :
48- cpu : 10m
49- memory : 64Mi
48+ cpu : 100m
49+ memory : 128Mi
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ redis:
2626 # #
2727 resources :
2828 limits :
29- cpu : 1000m
29+ cpu : 4000m
3030 memory : 32Gi
3131 requests :
32- cpu : 100m
32+ cpu : 2000m
3333 memory : 16Gi
3434
3535# # @section Proxy® statefulset parameters
4242 # #
4343 resources :
4444 limits :
45- cpu : 100m
46- memory : 256Mi
45+ cpu : 1000m
46+ memory : 1024Mi
4747 requests :
48- cpu : 10m
49- memory : 64Mi
48+ cpu : 500m
49+ memory : 512Mi
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ redis:
2626 # #
2727 resources :
2828 limits :
29- cpu : 500m
29+ cpu : 1000m
3030 memory : 4Gi
3131 requests :
32- cpu : 50m
32+ cpu : 500m
3333 memory : 2Gi
3434
3535# # @section Proxy® statefulset parameters
4242 # #
4343 resources :
4444 limits :
45- cpu : 100m
46- memory : 256Mi
45+ cpu : 500m
46+ memory : 512Mi
4747 requests :
48- cpu : 10m
49- memory : 64Mi
48+ cpu : 250m
49+ memory : 256Mi
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ redis:
2626 # #
2727 resources :
2828 limits :
29- cpu : 100m
29+ cpu : 200m
3030 memory : 512Mi
3131 requests :
32- cpu : 10m
32+ cpu : 100m
3333 memory : 256Mi
3434
3535# # @section Proxy® statefulset parameters
4242 # #
4343 resources :
4444 limits :
45- cpu : 100m
45+ cpu : 200m
4646 memory : 256Mi
4747 requests :
48- cpu : 10m
49- memory : 64Mi
48+ cpu : 100m
49+ memory : 128Mi
You can’t perform that action at this time.
0 commit comments