rwynn / monstache

a go daemon that syncs MongoDB to Elasticsearch in realtime. you know, for search.
https://rwynn.github.io/monstache-site/
MIT License
1.28k stars 180 forks source link

How to stop a particular instance of Monstache if multiple instances are running? #370

Open jpgklassen opened 4 years ago

jpgklassen commented 4 years ago

Let's say I have two MongoDB databases, two Elasticsearch instances, and two Monstache instances running at the same time. So Monstache instance A is keeping Elasticsearch index A synced with MongoDB database A, while Monstache instance B is keeping Elasticsearch index B synced with MondoDB database B. All of these were started by a cron job.

How do I shut down Monstache instance B without shutting down Monstache instance A?

rwynn commented 4 years ago

The monstache processes in this case shouldn't be linked together in any way. What happens when you shut down monstache instance B? I would expect A to continue syncing.