I am facing an issue of data replication. Means, We are using replica set (1 Primary, 1 Secondary and 1 Arbiter) and through Java Application we are inserting documents (100 documents in a minute). For 1 day I can see those documents in data base after 1 day there was delay to insert the document. At java application says inserted the documents but we can’t see those documents in database when we make a query. It display after 30 minute. So it is a 30 minute delay.
But, If I use standalone mongo db Node (means without replication) then it works fine without any delay.
Primary and secondary servers are different and this is the configuration of secondary.
Kindly suggestion what I can do.