Skip to content

A program that remove 'gone' nodes from Solr's clusterstate.json written in Java.

Notifications You must be signed in to change notification settings

wongnai/solr-clusterstate-cleaner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solr's clusterstate.json cleaner

If solrcloud is running with autoscale cluster enabled, there may be lots of "gone" nodes in clusterstate.json.

This program cleans those 'gone' nodes out of the clusterstate.json.

Build and dockerize

mvn clean package
docker build . -t solr-clusterstate-cleaner:0.1.0

Running with docker

The program requires only one argument which is solr path in zookeeper. You may need to change zookeeper host using the "wongnai.solr.zk.host" property.

docker run --rm solr-clusterstate-cleaner:0.1.0 --wongnai.solr.zk.host=172.17.0.1:2181 /wongnai/solr

Image on dockerhub

The released image is uploaded to dockerhub at https://hub.docker.com/r/wongnai/solr-clusterstate-cleaner .

docker run --rm wongnai/solr-clusterstate-cleaner:0.1.0 --wongnai.solr.zk.host=172.17.0.1:2181 /wongnai/solr

Environment variable

Name Description
wongnai.solr.zk.host Zookeeper host with port. Default value is zookeeper:2181

About

A program that remove 'gone' nodes from Solr's clusterstate.json written in Java.

Resources

Stars

Watchers

Forks

Packages

No packages published