> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

# stopTransitionToDedicatedConfigServer (database command)

## Definition

Stops the in-progress transition from an embedded config server to a dedicated config server.

The shard resumes its role in the sharded cluster and is included in rebalancing operations.

When the command runs, the in-progress transition from an embedded config server to a dedicated config server stops by terminating the draining of chunks from the config shard. The config shard then resumes its normal role in balancing.

The command returns `ok: 1` on success, otherwise it returns `ok: 0` with a related error message.

To start transitioning to a dedicated config server, see the [`startTransitionToDedicatedConfigServer`](https://www.mongodb.com/docs/manual/reference/command/starttransitiontodedicatedconfigserver.md#mongodb-dbcommand-dbcmd.startTransitionToDedicatedConfigServer) command.

To show the status of the transition from an embedded config server to a dedicated config server, see the [`getTransitionToDedicatedConfigServerStatus`](https://www.mongodb.com/docs/manual/reference/command/gettransitiontodedicatedconfigserverstatus.md#mongodb-dbcommand-dbcmd.getTransitionToDedicatedConfigServerStatus) command.

To commit the transition from an embedded config server to a dedicated config server, see the [`commitTransitionToDedicatedConfigServer`](https://www.mongodb.com/docs/manual/reference/command/committransitiontodedicatedconfigserver.md#mongodb-dbcommand-dbcmd.commitTransitionToDedicatedConfigServer) command.

**New in version 8.3**

## Compatibility

This command is available in deployments hosted in the following environments:

- [MongoDB Enterprise](https://www.mongodb.com/docs/manual/administration/install-enterprise.md#std-label-install-mdb-enterprise): The subscription-based, self-managed version of MongoDB

- [MongoDB Community](https://www.mongodb.com/docs/manual/administration/install-community.md#std-label-install-mdb-community-edition): The source-available, free-to-use, and self-managed version of MongoDB

**Note:**

This command is not supported in [MongoDB Atlas](https://www.mongodb.com/docs/atlas). Contact MongoDB support to stop the transition from an embedded to dedicated config server.

## Syntax

The command has the following syntax:

```javascript
db.adminCommand( {
     stopTransitionToDedicatedConfigServer: 1
} )
```

## Behavior

### Access Requirements

If you have [`authorization`](https://www.mongodb.com/docs/manual/reference/configuration-options.md#mongodb-setting-security.authorization) enabled, you must have the [`clusterManager`](https://www.mongodb.com/docs/manual/reference/built-in-roles.md#mongodb-authrole-clusterManager) role or any role that includes the [`removeShard`](https://www.mongodb.com/docs/manual/reference/privilege-actions.md#mongodb-authaction-removeShard) action.

## Examples

To start transitioning from an embedded to a dedicated config server, use the [`db.adminCommand()`](https://www.mongodb.com/docs/manual/reference/method/db.admincommand.md#mongodb-method-db.adminCommand) method to run the [`startTransitionToDedicatedConfigServer`](https://www.mongodb.com/docs/manual/reference/command/starttransitiontodedicatedconfigserver.md#mongodb-dbcommand-dbcmd.startTransitionToDedicatedConfigServer) command:

```javascript
db.adminCommand( { startTransitionToDedicatedConfigServer: 1 } )
```

To stop transitioning from an embedded to a dedicated config server, use the [`db.adminCommand()`](https://www.mongodb.com/docs/manual/reference/method/db.admincommand.md#mongodb-method-db.adminCommand) method to run the [`stopTransitionToDedicatedConfigServer`](https://www.mongodb.com/docs/manual/reference/command/stoptransitiontodedicatedconfigserver.md#mongodb-dbcommand-dbcmd.stopTransitionToDedicatedConfigServer) command:

```javascript
db.adminCommand( { stopTransitionToDedicatedConfigServer: 1 } )
```

## Learn More

- [`startTransitionToDedicatedConfigServer`](https://www.mongodb.com/docs/manual/reference/command/starttransitiontodedicatedconfigserver.md#mongodb-dbcommand-dbcmd.startTransitionToDedicatedConfigServer)

- [`getTransitionToDedicatedConfigServerStatus`](https://www.mongodb.com/docs/manual/reference/command/gettransitiontodedicatedconfigserverstatus.md#mongodb-dbcommand-dbcmd.getTransitionToDedicatedConfigServerStatus)
