Uploaded image for project: 'Percona Backup for MongoDB'
  1. Percona Backup for MongoDB
  2. PBM-642

Display priority=0 members on agent list in PBM Status output

Details

    • Bug
    • Status: Done
    • Medium
    • Resolution: Fixed
    • 1.4.1
    • 1.5.0
    • None
    • None

    Description

      a) Setting a member with priority=0

       
       

                   epl1:PRIMARY> var cfg = rs.conf()
      repl1:PRIMARY> cfg.members[3].priority=0;
      0
      repl1:PRIMARY> rs.reconfig(cfg);
      {
       "ok" : 1,
       "$clusterTime" : {
       "clusterTime" : Timestamp(1613583361, 1),
       "signature" : {
       "hash" : BinData(0,"m6aGLEXeMQA8z9fQU0hAuDZsLXM="),
       "keyId" : NumberLong("6930282954501390339")
       }
       },
       "operationTime" : Timestamp(1613583361, 1)
      }
      repl1:PRIMARY> rs.conf()
      {
       "_id" : "repl1",
       "version" : 2,
       "protocolVersion" : NumberLong(1),
       "writeConcernMajorityJournalDefault" : true,
       "members" : [
       {
       "_id" : 0,
       "host" : "127.0.0.1:40001",
       "arbiterOnly" : false,
       "buildIndexes" : true,
       "hidden" : false,
       "priority" : 1,
       "tags" : { },
       "slaveDelay" : NumberLong(0),
       "votes" : 1
       },
       {
       "_id" : 1,
       "host" : "127.0.0.1:40002",
       "arbiterOnly" : false,
       "buildIndexes" : true,
       "hidden" : false,
       "priority" : 1,
       "tags" : { },
       "slaveDelay" : NumberLong(0),
       "votes" : 1
       },
       {
       "_id" : 2,
       "host" : "127.0.0.1:40003",
       "arbiterOnly" : false,
       "buildIndexes" : true,
       "hidden" : false,
       "priority" : 1,
       "tags" : { },
       "slaveDelay" : NumberLong(0),
       "votes" : 1
       },
       {
       "_id" : 3,
       "host" : "127.0.0.1:40004",
       "arbiterOnly" : false,
       "buildIndexes" : true,
       "hidden" : false, "priority" : 0,
       "tags" : { },
       "slaveDelay" : NumberLong(0), "votes" : 1
       }               

       
      b) Taking the PBM status
       

        Cluster:
      ========
      repl1:
       - repl1/127.0.0.1:40001: pbm-agent v1.4.1 OK
       - repl1/127.0.0.1:40002: pbm-agent v1.4.1 OK
       - repl1/127.0.0.1:40003: pbm-agent v1.4.1 OK
       
      

       

      c) setting the priority 1 to the member

       

      repl1:PRIMARY> var cfg = rs.conf()
      repl1:PRIMARY> cfg.members[3].priority=1;
      1
      repl1:PRIMARY> rs.reconfig(cfg);
      {
       "ok" : 1,
       "$clusterTime" : {
       "clusterTime" : Timestamp(1613583775, 1),
       "signature" : {
       "hash" : BinData(0,"LM7rjKiKLd6V1WR6rcNF5i27o48="),
       "keyId" : NumberLong("6930282954501390339")
       }
       },
       "operationTime" : Timestamp(1613583775, 1)
      }
       "members" : [
       {
       "_id" : 0,
       "host" : "127.0.0.1:40001",
       "arbiterOnly" : false,
       "buildIndexes" : true,
       "hidden" : false,
       "priority" : 1,
       "tags" : { },
       "slaveDelay" : NumberLong(0),
       "votes" : 1
       },
       {
       "_id" : 1,
       "host" : "127.0.0.1:40002",
       "arbiterOnly" : false,
       "buildIndexes" : true,
       "hidden" : false,
       "priority" : 1,
       "tags" : { },
       "slaveDelay" : NumberLong(0),
       "votes" : 1
       },
       {
       "_id" : 2,
       "host" : "127.0.0.1:40003",
       "arbiterOnly" : false,
       "buildIndexes" : true,
       "hidden" : false,
       "priority" : 1,
       "tags" : { },
       "slaveDelay" : NumberLong(0),
       "votes" : 1
       },
       {
       "_id" : 3,
       "host" : "127.0.0.1:40004",
       "arbiterOnly" : false,
       "buildIndexes" : true,
       "hidden" : false,
      "priority" : 1,
      
       "tags" : { },
       "slaveDelay" : NumberLong(0),
       "votes" : 1
       }
       ],
       
      

       

      d) re-checking the PBM status

      Cluster:
      ========
      repl1:
       - repl1/127.0.0.1:40001: pbm-agent v1.4.1 OK
       - repl1/127.0.0.1:40002: pbm-agent v1.4.1 OK
       - repl1/127.0.0.1:40003: pbm-agent v1.4.1 OK
       - repl1/127.0.0.1:40004: pbm-agent v1.4.1 OK

       

      At this point I couldn't see problems with the backup and I suppose it is an informational intent only. However, I am not sure if a 0 priority member should be considered a "hidden" one by the pbm status.

      Attachments

        Activity

          People

            andrew.pogrebnoi Andrew Pogrebnoi
            rafael.galinari Rafael Galinari (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 3 hours, 10 minutes
                3h 10m

                Smart Checklist