Skip to content

Commit 444e29e

Browse files
committed
fixed for standalone again
1 parent 5935f5c commit 444e29e

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

charts/memgraph-high-availability/templates/_helpers.tpl

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,6 @@ Expects dict with: ctx (root context), role ("data" or "coordinator").
190190
command: ["/bin/sh", "-ec"]
191191
args:
192192
- |
193-
# Wait for Memgraph to open the log websocket so Vector does not exit with "Connection refused"
194-
echo "Waiting for Memgraph monitoring port {{ $v.websocketPort }}..."
195-
sleep 25
196193
cat > /tmp/vector.yaml << VECEOF
197194
data_dir: /tmp/vector-data
198195

charts/memgraph/templates/_helpers.tpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ startupProbe:
118118
{{- end }}
119119

120120
{{- define "memgraph.vector.script" -}}
121+
# Give Memgraph time to open the log websocket (avoids "Connection refused" on startup)
122+
sleep 15
121123
cat > /tmp/vector.yaml << VECEOF
122124
data_dir: /tmp/vector-data
123125

charts/memgraph/templates/statefulset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,10 @@ spec:
9494
{{- if not .Values.persistentVolumeClaim.createLogStorage }}
9595
- "--log-file="
9696
{{- end }}
97+
{{- if or .Values.vectorRemote.enabled .Values.service.enableWebsocketMonitoring }}
98+
- "--monitoring-port={{ .Values.service.websocketPortMonitoring }}"
99+
- "--monitoring-address=0.0.0.0"
100+
{{- end }}
97101
imagePullPolicy: {{ .Values.image.pullPolicy }}
98102
ports:
99103
- name: bolt

0 commit comments

Comments
 (0)