core icon indicating copy to clipboard operation
core copied to clipboard

ES re-inits on CMS cluster topology change when AUTOWIRE_CLUSTER_ES=false

Open chrismccracken opened this issue 9 years ago • 2 comments

When we have configured for autowire to NOT manage ES cluster membership (for external ES), it seems that when a CMS server joins/leaves the cluster we are still re-init'ing ES, which we should not need to do and could cause or contribute to an outage or degraded cluster performance.

https://gist.github.com/chrismccracken/7ff20120365298eb5019a1b9a7fb5843

chrismccracken avatar Aug 16 '17 20:08 chrismccracken

PR core (master): https://github.com/dotCMS/core/pull/12348 PR core (p8): https://github.com/dotCMS/core/pull/12351

dsilvam avatar Aug 17 '17 15:08 dsilvam

Passed QA. Error reported is not showing anymore. Tested using following steps:

  • Configured 3 nodes in a cluster environment using manual cluster configuration + hazelcast embedded for cluster and cache.
  • Set up heartbeat on each node = 3mins
  • Started up all 3 nodes
  • Confirmed that information was being replicated
  • Shut down 2 nodes
  • Checked logs but no relevant errors
  • Started up those 2 nodes again and verified that information was being replicated among the 3 nodes.

All 3 nodes were using an upgrade dotcms instance from 3.6 to master and P8 Mac 10.10 / Win7 / Ubuntu 14.04.1 / Postgres 9.3.7 / Chrome v54.0.2840.98 / Tomcat 8 / Java 8

shaydotcms avatar Aug 23 '17 23:08 shaydotcms