thibaultcha / lua-cassandra

Pure Lua driver for Apache Cassandra
https://thibaultcha.github.io/lua-cassandra
Other
98 stars 35 forks source link

[POC] allow set node in maintenance mode #144

Closed bfdy18 closed 3 years ago

bfdy18 commented 3 years ago

This change is made atop v1.4.0 (currently used in our lua driver) adding set_peer_maintenance to mark a node in/out of maintenance mode. can_try_peer function ignores node in maintenance mode, which prevents traffic to it during maintenance period

Other changes, will moved to different PR: the patch file from https://github.com/lotusflare/cm/blob/master/docker/openresty/files-libs-thirdparty/cluster.lua.patch and https://github.com/lotusflare/cm/blob/master/docker/openresty/f