-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with Syncing Data from MongoDB Replica Set to Two Different Elasticsearch Clusters #738
Comments
The Elasticsearch URLs in the configuration are meant to be endpoints in the same cluster. I think you would need to run 2 different monstache processes to sync to 2 clusters. |
Dear rwynn, Thank you very much for your prompt response to my issue. I appreciate your assistance. I have a few more questions regarding the synchronization process. In my MongoDB, I have three databases, each containing several collections divided by month, such as a.2024-11 and b.2024-12. I would like to know how to synchronize all this data to a new Elasticsearch cluster. Currently, my MongoDB is set up as a replica set. I’ve tested the synchronization, and I can confirm that new data modifications in MongoDB are successfully synced to the new Elasticsearch cluster. However, I am facing challenges with syncing historical data. Could you please advise on how to approach this issue? Any guidance you could provide would be greatly appreciated.
This Best regards. |
My start log:
|
Hello,
I am currently working on synchronizing data from a MongoDB replica set to two different Elasticsearch clusters using Monstache. I have successfully synced the data to elasticsearchA, but I'm facing issues when trying to connect to a second Elasticsearch cluster.
In my configuration, I have set up the elasticsearch-urls as follows:
toml
elasticsearch-urls = [
"http://localhost:9200", # First Elasticsearch server
"http://other-elasticsearch:9200" # Second Elasticsearch server
]
However, I am unable to establish a connection to the second Elasticsearch address.
Could you please provide guidance on how to properly configure Monstache to sync data to both Elasticsearch clusters? Are there any specific settings or troubleshooting steps I should consider?
Thank you for your assistance!
The text was updated successfully, but these errors were encountered: