public class ModifyDBInstanceHAConfigRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
ModifyDBInstanceHAConfigRequest() |
ModifyDBInstanceHAConfigRequest(ModifyDBInstanceHAConfigRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getDBInstanceId()
Get Instance ID
|
Long |
getMaxStandbyLag()
Get The maximum delay for high-availability standby server The standby node can be promoted to the primary node when its data lag and the delay time are both less or equals to the value of `MaxStandbyLatency` and `MaxStandbyLag` respectively.
|
Long |
getMaxStandbyLatency()
Get u200cMaximum data lag for high-availability standby server.
|
Long |
getMaxSyncStandbyLag()
Get Maximum delay for u200dsync u200dstandby server.
|
Long |
getMaxSyncStandbyLatency()
Get Maximum data sync lag for u200dstandby server.
|
String |
getSyncMode()
Get Primary-standby sync mode.
|
void |
setDBInstanceId(String DBInstanceId)
Set Instance ID
|
void |
setMaxStandbyLag(Long MaxStandbyLag)
Set The maximum delay for high-availability standby server The standby node can be promoted to the primary node when its data lag and the delay time are both less or equals to the value of `MaxStandbyLatency` and `MaxStandbyLag` respectively.
|
void |
setMaxStandbyLatency(Long MaxStandbyLatency)
Set u200cMaximum data lag for high-availability standby server.
|
void |
setMaxSyncStandbyLag(Long MaxSyncStandbyLag)
Set Maximum delay for u200dsync u200dstandby server.
|
void |
setMaxSyncStandbyLatency(Long MaxSyncStandbyLatency)
Set Maximum data sync lag for u200dstandby server.
|
void |
setSyncMode(String SyncMode)
Set Primary-standby sync mode.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ModifyDBInstanceHAConfigRequest()
public ModifyDBInstanceHAConfigRequest(ModifyDBInstanceHAConfigRequest source)
public String getDBInstanceId()
public void setDBInstanceId(String DBInstanceId)
DBInstanceId
- Instance IDpublic String getSyncMode()
public void setSyncMode(String SyncMode)
SyncMode
- Primary-standby sync mode. Valid values:
public Long getMaxStandbyLatency()
public void setMaxStandbyLatency(Long MaxStandbyLatency)
MaxStandbyLatency
- u200cMaximum data lag for high-availability standby server. The standby node can be promoted to the primary node when its data lag and the delay time are both less than the value of `MaxStandbyLatency` and `MaxStandbyLag` respectively.
public Long getMaxStandbyLag()
public void setMaxStandbyLag(Long MaxStandbyLag)
MaxStandbyLag
- The maximum delay for high-availability standby server The standby node can be promoted to the primary node when its data lag and the delay time are both less or equals to the value of `MaxStandbyLatency` and `MaxStandbyLag` respectively.
public Long getMaxSyncStandbyLatency()
public void setMaxSyncStandbyLatency(Long MaxSyncStandbyLatency)
MaxSyncStandbyLatency
- Maximum data sync lag for u200dstandby server. If data lag of the standby node and the delay ime are both less than or equals to the values of `MaxSyncStandbyLatency` and `MaxSyncStandbyLag`, the standby server adopts semi-sync replication; if not, it adopts async replication.
This value is only valid for the instance with `SyncMode` set to `Semi-sync`.
When the semi-sync replication mode of the instance is not allowed to downgrade to async replication, `MaxSyncStandbyLatency` and `MaxSyncStandbyLag` are not required.
When the semi-sync instance is allowed to downgrade to async replication, `MaxSyncStandbyLatency` is required and `MaxSyncStandbyLag` must be left empty for PostgreSQL 9; `MaxSyncStandbyLatency` and MaxSyncStandbyLag` are required for PostgreSQL 10 and later.public Long getMaxSyncStandbyLag()
public void setMaxSyncStandbyLag(Long MaxSyncStandbyLag)
MaxSyncStandbyLag
- Maximum delay for u200dsync u200dstandby server. If the delay time for u200dstandby server and the data lag are both less than or equals to the value of `MaxSyncStandbyLag` and `MaxSyncStandbyLatency` respectively, the standby server adopts sync replication mode; if not, it adopts async replication.
This value is only valid for the instance with `SyncMode` set to `Semi-sync`.
When the semi-sync replication mode of the instance is not allowed to downgrade to async replication, `MaxSyncStandbyLatency` and `MaxSyncStandbyLag` are not required.
When the semi-sync instance is allowed to downgrade to async replication, `MaxSyncStandbyLatency` is required and `MaxSyncStandbyLag` must be left empty for PostgreSQL 9; `MaxSyncStandbyLatency` and MaxSyncStandbyLag` are required for PostgreSQL 10 and later.Copyright © 2024. All rights reserved.