Oplog tailing on MongoDB atlas sharded cluster

In a sharded setup on MongoDB Atlas, We do not have network access to shard replicaset. This blocks the oplog tailing feature of MongoDB.

Is there a way to bypass this limitation

For most use case this has been replaced by Change Streams


Hi Chris,
Thanks for your response.

However, in a big cluster with 100s of shards. Processing all the changes from a single stream will not be performant for us. Also, our application is based on an Oplog tailing-based Kafka connector. Converting to changestream is not a trivial change for us.

Hi @Manish_Rawat1

Note that you can open a changestream for a collection, a database, or the whole deployment so you can fine-tune your needs. Additionally, the official Kafka connector can be configured to use changestream.

Having said that, it sounds like you have a very large deployment in Atlas. In this case, you might want to contact Atlas support for suggestions, since they will have better visibility and insight into your exact situation.

Best regards


This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.