File tree Expand file tree Collapse file tree
kubernetes/linera-validator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7676 - name : linera-proxy-initializer
7777 image : {{ .Values.lineraImage }}
7878 imagePullPolicy : {{ .Values.lineraImagePullPolicy }}
79+ {{- with .Values.proxyResources }}
80+ resources :
81+ {{- toYaml . | nindent 12 }}
82+ {{- end }}
7983 command :
8084 - sh
8185 - -c
@@ -108,6 +112,10 @@ spec:
108112 - name : linera-proxy
109113 imagePullPolicy : {{ .Values.lineraImagePullPolicy }}
110114 image : {{ .Values.lineraImage }}
115+ {{- with .Values.proxyResources }}
116+ resources :
117+ {{- toYaml . | nindent 12 }}
118+ {{- end }}
111119 ports :
112120 - containerPort : {{ .Values.proxyPort }}
113121 name : linera-port
Original file line number Diff line number Diff line change 5656 - name : linera-server-initializer
5757 image : {{ .Values.lineraImage }}
5858 imagePullPolicy : {{ .Values.lineraImagePullPolicy }}
59+ {{- with .Values.shardResources }}
60+ resources :
61+ {{- toYaml . | nindent 12 }}
62+ {{- end }}
5963 command :
6064 - sh
6165 - -c
@@ -104,6 +108,10 @@ spec:
104108 - name : linera-server
105109 image : {{ .Values.lineraImage }}
106110 imagePullPolicy : {{ .Values.lineraImagePullPolicy }}
111+ {{- with .Values.shardResources }}
112+ resources :
113+ {{- toYaml . | nindent 12 }}
114+ {{- end }}
107115 command :
108116 - sh
109117 - -c
Original file line number Diff line number Diff line change @@ -27,6 +27,28 @@ metricsPort: 21100
2727numShards : 4
2828numProxies : 1
2929
30+ # Shard container resource limits
31+ # These should be calculated based on node size and shard count
32+ # to ensure cgroup-aware memory/CPU detection works correctly in RocksDB
33+ shardResources : {}
34+ # Example:
35+ # requests:
36+ # cpu: "2"
37+ # memory: "8Gi"
38+ # limits:
39+ # cpu: "4"
40+ # memory: "16Gi"
41+
42+ # Proxy container resource limits
43+ proxyResources : {}
44+ # Example:
45+ # requests:
46+ # cpu: "1"
47+ # memory: "4Gi"
48+ # limits:
49+ # cpu: "2"
50+ # memory: "8Gi"
51+
3052# Performance tuning
3153# Set to empty string to use default Tokio thread count
3254serverTokioThreads : " "
You can’t perform that action at this time.
0 commit comments