And recently, the backend zookeeper kept changing leader every 10 milliseconds(which is flapping, we will fix this issue on the backend for sure). however, in the meantime, our Web app is crashing due to page fault because the event change watcher continually process leadership change event on node.js.
i did not see any stack trace on node.js server log. just saw flooded
NODE_DATA_CHANGED[3] in the node js server log, after that the web url is unaccessible.
we are using "node-zookeeper-client" in our node.js server to watch backend zookeeper event change. we are using getData like here https://github.com/alexguan/node-zookeeper-client/blob/master/examples/get.js
And recently, the backend zookeeper kept changing leader every 10 milliseconds(which is flapping, we will fix this issue on the backend for sure). however, in the meantime, our Web app is crashing due to page fault because the event change watcher continually process leadership change event on node.js.
is there a way to fix this?