@@ -552,6 +552,62 @@ opcounters
552
552
of commands issued to the database since the :program:`mongod`
553
553
instance last started.
554
554
555
+ opcountersRepl
556
+ -----------
557
+
558
+ .. status:: opcountersRepl
559
+
560
+ The :status:`opcountersRepl` data structure, similar to the
561
+ :status:`opcounters` data structure, provides an overview of
562
+ database replication operations by type and makes it possible to
563
+ analyze the load on the replica in more granular manner. These
564
+ values only appear when the current host has replication enabled.
565
+
566
+ These values will differ from the primary :status:`opcounters` because
567
+ of how operations are serialized during replication. See
568
+ :doc:`/core/replication` for more information on replication.
569
+
570
+ These numbers will grow over time and in response to database
571
+ use. Analyze these values over time to track database utilization.
572
+
573
+ .. status:: opcountersRepl.insert
574
+
575
+ :status:`opcountersRepl.insert` provides a counter of the total number
576
+ of replicated insert operations since the :program:`mongod` instance
577
+ last started.
578
+
579
+ .. status:: opcountersRepl.query
580
+
581
+ :status:`opcountersRepl.query` provides a counter of the total number
582
+ of replicated queries since the :program:`mongod` instance last
583
+ started.
584
+
585
+ .. status:: opcountersRepl.update
586
+
587
+ :status:`opcountersRepl.update` provides a counter of the total number
588
+ of replicated update operations since the :program:`mongod` instance
589
+ last started.
590
+
591
+ .. status:: opcountersRepl.delete
592
+
593
+ :status:`opcountersRepl.delete` provides a counter of the total number
594
+ of replicated delete operations since the :program:`mongod` instance
595
+ last started.
596
+
597
+ .. status:: opcountersRepl.getmore
598
+
599
+ :status:`opcountersRepl.getmore` provides a counter of the total number
600
+ of "getmore" operations since the :program:`mongod` instance last
601
+ started. This counter can be high even if the query count is low.
602
+ Secondary nodes send ``getMore`` operations as part of the replication
603
+ process.
604
+
605
+ .. status:: opcountersRepl.command
606
+
607
+ :status:`opcountersRepl.command` provides a counter of the total number
608
+ of replicated commands issued to the database since the
609
+ :program:`mongod` instance last started.
610
+
555
611
asserts
556
612
-------
557
613
0 commit comments