michaelklishin / cassandra-chef-cookbook

Chef cookbook for Apache Cassandra, DataStax Enterprise (DSE) and DataStax agent
Apache License 2.0
163 stars 228 forks source link

Add a restart on-failure condition in systemd service unit #342

Closed vdemonchy closed 7 years ago

michaelklishin commented 7 years ago

I guess this is a good default but there are cases where Cassandra intentionally shuts down (e.g. when it detects disk operation failures and assumes the disk is dysfunctional). So I expect this to become configurable one day.

vdemonchy commented 7 years ago

Hello and thanks for the quick merge! You make a point indeed, I guess intentional shutdown for failure cases should result in a unclean exit code and but a clean signal, so on-abnormal would probably be a good fit if so.

michaelklishin commented 7 years ago

@vdemonchy agreed. Ideally we should configure the value via a node attribute.

vdemonchy commented 7 years ago

Ok, so I'll test that and come back with another PR

michaelklishin commented 7 years ago

@vdemonchy thank you!