skip to Main Content

I want to check my replicasets are working properly or not while oplog size is over(minimum 990 mb).

  1. How can I convert a standalone remote server to replica set.
  2. How can I fixed the oplogsize of replica set.
  3. How can I check my replicasets are working while oplog size is over.

Need a large collection of mongodb which is larger than 1GB.

I am facing problem to convert remotely hosted mongo standalone server to replica set. Can’t set the size of oplog.

2

Answers


    1. How can I convert a standalone remote server to replica set.

      See Convert a Standalone to a Replica Set

    2. How can I fixed the oplogsize of replica set.

      What do you mean by "fixed the oplogsize"?

      From Replica Set Oplog:

      The oplog (operations log) is a special capped collection that keeps a rolling record of all operations that modify the data stored in your databases.

      Unlike other capped collections, the oplog can grow past its configured size limit to avoid deleting the majority commit point.

      The oplog maxsize is used to trigger truncate of oplog rather than a hard limitation of disk size.

    3. How can I check my replicasets are working while oplog size is over.

      Not relevant due to answer (2.)

    Login or Signup to reply.
  1. I am facing problem to convert remotely hosted mongo standalone server to replica set. Can’t set the size of oplog.

    Prior to initializing replication, set replication.oplogSizeMB in the configuration file, and restart mongod.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search