You can apply for a read/write splitting address in the high security mode for a master instance that has read-only instances. The read/write splitting address does not affect the addresses of the master instance and its read-only instances, nor does it affect the application for intranet and Internet addresses.
The following conditions must be met, or the operation fails:
- The database proxy function is enabled for the instance.
The master instance is running.
No migration tasks is ongoing.
The master instance has read-only instances.
The instance link is in the high security mode.
|Action||String||Yes||Required parameter. Set this parameter to AllocateReadWriteSplittingConnection.|
|DBInstanceId||String||Yes||Name of a master instance.|
|Port||Int||No||Port number, ranging from 3001 to 3999. The default value is 3306.|
|NetType||String||No||Network type of the read/write splitting connection string. Values are as follows:
|DistributionType||String||Yes||Read weight distribution mode. Values are as follows:
|<Common response parameters>||-||For more information, see Public parameters.|