Skip to content

Commit

Permalink
Cassandra example, use nodetool drain in preStop
Browse files Browse the repository at this point in the history
  • Loading branch information
pavolloffay committed Jul 26, 2017
1 parent 744455c commit 82241e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/storage/cassandra/cassandra-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 82241e4

Please sign in to comment.