see on GitHub

Operations: Server: Toggle Dynamic Database Distribution


  • In dynamic database distribution mode, if a database node is down, another cluster node is added to the database group to compensate.

  • Use this operation to toggle dynamic distribution for a particular database group.

  • This can also be done in the studio under database group settings.


Syntax

public SetDatabaseDynamicDistributionOperation(string databaseName, bool allowDynamicDistribution)
Parameters Type Description
databaseName string Name of database group
allowDynamicDistribution bool Set to true to activate dynamic distribution mode.

Example

SetDatabaseDynamicDistributionOperation operation =
    new SetDatabaseDynamicDistributionOperation("NorthWind", true);
documentStore.Maintenance.Server.Send(operation);