File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -164,16 +164,14 @@ Usage:
164
164
Raft cluster configuration settings
165
165
*/} }
166
166
{ {- define " raft_configuration" -} }
167
- { {- $replicas := .Values.replicas | int -} }
167
+ { {- $voters := .Values.env.RAFT_BOOTSTRAP_EXPECT | int -} }
168
168
{ {- $nodes := list -} }
169
- { {- range $i := until $replicas -} }
169
+ { {- range $i := until $voters -} }
170
170
{ {- $node_name := list -} }
171
171
{ {- $node_name = append $node_name " weaviate" -} }
172
172
{ {- $node_name = append $node_name $i -} }
173
173
{ {- $nodes = append $nodes (join " -" $node_name ) -} }
174
174
{ {- end } }
175
175
- name: RAFT_JOIN
176
176
value: "{ { join " ," $nodes } }"
177
- - name: RAFT_BOOTSTRAP_EXPECT
178
- value: { { $replicas | quote } }
179
177
{ {- end -} }
Original file line number Diff line number Diff line change 7
7
# of weaviate. In accordance with Infra-as-code, you should pin this value
8
8
# down and only change it if you explicitly want to upgrade the Weaviate
9
9
# version.
10
- tag : 1.22.5
11
- repo : semitechnologies/weaviate
10
+ tag : latest
11
+ repo : library/module_test_image_raft
12
12
# Image pull policy: https://kubernetes.io/docs/concepts/containers/images/#image-pull-policy
13
13
pullPolicy : IfNotPresent
14
14
pullSecrets : []
@@ -62,6 +62,7 @@ initContainers:
62
62
# to cases where no data is imported yet. Scaling down after importing data may
63
63
# break usability. Full dynamic scalability will be added in a future release.
64
64
replicas : 1
65
+
65
66
# Define how pods will be created. Possible values: OrderedReady | Parallel
66
67
# OrderedReady - pods will be created one after another
67
68
# Parallel - all pods will be created at once
229
230
230
231
# Raft settings are generated automatically by "raft_configuration" template
231
232
# Set Raft cluster bootstrap timeout (in seconds), default is 10 (seconds)
232
- # RAFT_BOOTSTRAP_TIMEOUT: 30
233
+ RAFT_BOOTSTRAP_TIMEOUT : 30
234
+ RAFT_BOOTSTRAP_EXPECT : 1
235
+
233
236
234
237
# Set a MEM limit for the Weaviate Pod so it can help you both increase GC-related
235
238
# performance as well as avoid GC-related out-of-memory (“OOM”) situations
You can’t perform that action at this time.
0 commit comments