Cassandra example, use nodetool drain in preStop

pull/6/head
Pavol Loffay 2017-07-26 12:53:27 +02:00
parent 744455c69d
commit 82241e4c0d
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ spec:
lifecycle:
preStop:
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:
- name: MAX_HEAP_SIZE
value: 512M