Description

This API checks the read weight distributed to each instance when weights are distributed by the system.

This API can only be performed on unlocked instances. Otherwise, the operation fails.

Request parameters

Name Type Required Description
Action String Yes Name of the API. Set this parameter to CalculateDBInstanceWeight.
DBInstanceId String Yes Name of the master instance.

Return parameters

Name Type Description
<Public response parameters> - For more information, see Public parameters.
DBInstanceWeights List Instance weight that is calculated by the system in real time.

DBInstanceWeight

Name Type Description
DBInstanceId String Instance ID.
DBInstanceType String Instance type. Optional values:
  • Master: Refers to a master instance.
  • Readonly: Refers to a read-only instance.
Weight String The weight that should be distributed to the instance.