Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCS-13871 Add REPL output to serverStatus command #5874

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions source/reference/command/serverStatus.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2391,6 +2391,12 @@ repl
"primary" : <hostname>,
"me" : <hostname>,
"electionId" : ObjectId(""),
"primaryOnlyServices": {
"ReshardingRecipientService": { "state": <string>, "numInstances": <num> },
"RenameCollectionParticipantService": { "state": <string>, "numInstances": <num> },
"ShardingDDLCoordinator": { "state": <string>, "numInstances": <num> },
"ReshardingDonorService": { "state": <string>, "numInstances": <num> }
},
"rbid" : <num>,
"replicationProgress" : [
{
Expand Down Expand Up @@ -2441,6 +2447,76 @@ repl
The hostname and port information (``"host:port"``) for the current
member of the replica set.

.. serverstatus:: repl.primaryOnlyServices

Document that contains the number and status of
instances of each primary service active on the server. Primary
services can only start when a server is primary but can continue running to
completion after the server changes state.

.. versionadded:: 5.0

.. serverstatus:: repl.primaryOnlyServices.ReshardingRecipientService

Document that contains the state and number of instances of the
``ReshardingRecipientService``.

Recipients are the shards,that would own the chunks after as a
result of the resharding operation, according to the new
:manual:`shard key</core/sharding-shard-key/>` and
:manual:`zones</core/zone-sharding/>`.

The resharding coordinator instructs each donor and recipient shard
primary, to rename the temporary sharded collection.
The temporary collection becomes the new resharded collection.

.. versionadded:: 5.0

.. serverstatus:: repl.primaryOnlyServices.RenameCollectionParticipantService

Document that contains the state and number of instances of the
``RenameCollectionParticipantService``.

The ``RenameCollectionParticipantService`` ensures that, after a shard
receives a
:manual:`renameCollection</reference/method/db.collection.renameCollection/>`
request, the shard is able to resume the local rename in case of
system failure.

.. versionadded:: 5.0

.. serverstatus:: repl.primaryOnlyServices.ShardingDDLCoordinator

Document that contains the state and number of instances of the
``ShardingDDLCoordinator``.

The ``ShardingDDLCoordinator`` service manages DDL operations for
:manual:`primary</core/replica-set-members/#std-label-replica-set-primary-member>`
databases such as:
:manual:`create database</core/databases-and-collections/#create-a-database>`,
:manual:`drop database</reference/method/db.dropDatabase/>`,
:manual:`renameCollection</reference/method/db.collection.renameCollection>`.

The ``ShardingDDLCoordinator`` ensures that one DDL operation for
each database can happen at any one specific point in time within a
sharded cluster.

.. versionadded:: 5.0

.. serverstatus:: repl.primaryOnlyServices.ReshardingDonorService

Document that contains the state and number of instances of the
``ReshardingDonorService``.

Donors are the shards that own chunks of the sharded collection
before the rename operation completes.

The resharding coordinator instructs each donor and recipient shard
primary, to rename the temporary sharded collection.
The temporary collection becomes the new resharded collection.

.. versionadded:: 5.0

.. serverstatus:: repl.rbid

:term:`Rollback <rollback>` identifier. Used to determine if a rollback has
Expand Down
7 changes: 7 additions & 0 deletions source/release-notes/5.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,13 @@ Security Counter
which reports the number of times a :dbcommand:`hello` request
includes a valid :data:`hello.saslSupportedMechs` field.

Repl
- :serverstatus:`repl` now includes a
:serverstatus:`~repl.primaryOnlyServices` document that
contains additional information about services that only run on
replica set primaries.


Plan Cache Debug Info Size Limit
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down