Jesvin Jose
Jesvin Jose

Reputation: 23078

Does solr have post-commit hooks (or something else) to notify slaves?

I want the Solr master server to call the slaves' replication handler when it commits. I want to pass a commitWithin and a URL to call when the commit actually happens.

I want it (post-commit hook URLs) to notify the slaves as soon as master commits so that slaves can start pulling.

Currently we commit on master, then call solr/CORE/replication/?... for each slave. Now I want to change to commitWithin.

Upvotes: 1

Views: 827

Answers (1)

Alexandre Rafalovitch
Alexandre Rafalovitch

Reputation: 9789

Yes, Solr (at least the latest one) has a flexible post-commit hook. And it is triggered by Solr itself, so will know when the commit actually happened (to answer the comment about commitWithin).

Upvotes: 1

Related Questions