Commit 82241e4c authored by Pavol Loffay's avatar Pavol Loffay

Cassandra example, use nodetool drain in preStop

parent 744455c6
...@@ -37,7 +37,7 @@ spec: ...@@ -37,7 +37,7 @@ spec:
lifecycle: lifecycle:
preStop: preStop:
exec: exec:
command: ["/bin/sh", "-c", "PID=$(pidof java) && kill $PID && while ps -p $PID > /dev/null; do sleep 1; done"] command: ["/bin/sh", "-c", "nodetool drain"]
env: env:
- name: MAX_HEAP_SIZE - name: MAX_HEAP_SIZE
value: 512M value: 512M
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment