You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have observed a problem when our Monstache instance uses MongoDB read preference "secondary". When we try to insert a large number of documents into MongoDB in a short time, such as 5,000 documents, not all of them are replicated to Elasticsearch. Approximately 4,950 to 4,970 are replicated. However, when we switch Monstache back to read preference "primary", everything is replicated correctly.
All documents are also correctly replicated if we use the connection string to MongoDB with only the secondary MongoDB node name and the parameter directConnection=true. However, in this case, Monstache cannot insert metadata to the MongoDB database.
Monstache uses a MongoDB view as the replication source in MongoDB. Here is our configuration:
Could the problem be that Monstache sees the document ID in the oplog, takes that document ID, and sends a query to one of the secondaries, e.g., db.contact-view.find({"id":"xyz"}). However, the document is not yet replicated despite being in the oplog, so it gets zero documents as a result of the query ?
We have observed a problem when our Monstache instance uses MongoDB read preference "
secondary
". When we try to insert a large number of documents into MongoDB in a short time, such as 5,000 documents, not all of them are replicated to Elasticsearch. Approximately 4,950 to 4,970 are replicated. However, when we switch Monstache back to read preference "primary
", everything is replicated correctly.All documents are also correctly replicated if we use the connection string to MongoDB with only the secondary MongoDB node name and the parameter
directConnection=true
. However, in this case, Monstache cannot insert metadata to the MongoDB database.Monstache uses a MongoDB view as the replication source in MongoDB. Here is our configuration:
Could the problem be that Monstache sees the document ID in the oplog, takes that document ID, and sends a query to one of the secondaries, e.g.,
db.contact-view.find({"id":"xyz"})
. However, the document is not yet replicated despite being in the oplog, so it gets zero documents as a result of the query ?we use MongoDB
v6.0
, Monstachev6.7.10
The text was updated successfully, but these errors were encountered: