| type | String | The type of center instance(zookeeper/etcd/apollo/nacos) |
| instanceType | String | The type of center instance(zookeeper/etcd/apollo/nacos) |
| properties | String | Properties for center instance config, such as options of zookeeper |
| orchestrationType | String | The type of orchestration center: config-center or registry-center, if both, use "setOrchestrationType("registry_center,config_center");" |
| orchestrationType | String | The type of orchestration center: config_center or registry_center or metadata_center, if both, use "setOrchestrationType("registry_center,config_center,metadata_center");" |
| serverLists | String | Connect to server lists in center, including IP address and port number; addresses are separated by commas, such as `host1:2181,host2:2181` |
| namespace (?) | String | Namespace of center instance |
...
...
@@ -454,9 +454,9 @@ Common configuration in properties as follow:
| overwrite | boolean | Local configurations overwrite center configurations or not; if they overwrite, each start takes reference of local configurations |
| overwrite | boolean | Local configurations overwrite config center configurations or not; if they overwrite, each start takes reference of local configurations |
If type of center is `zookeeper` with config-center®istry-center, properties could be set with the follow options:
If type of center is `zookeeper` with config-center®istry-center&metadata-center, properties could be set with the follow options:
#Omit data source, data sharding, read-write split and data masking configurations
spring.shardingsphere.orchestration.name=#Orchestration instance name
spring.shardingsphere.orchestration.overwrite= #Whether to overwrite local configurations with registry center configurations; if it can, each initialization should refer to local configurations
spring.shardingsphere.orchestration.registry.type=#Registry center type. Example:zookeeper
spring.shardingsphere.orchestration.registry.server-lists= #The list of servers that connect to registry center, including IP and port number; use commas to separate
spring.shardingsphere.orchestration.registry.namespace=#Registry center namespace
spring.shardingsphere.orchestration.registry.digest= #The token that connects to the registry center; default means there is no need for authentication
spring.shardingsphere.orchestration.registry.operation-timeout-milliseconds=#The millisecond number for operation timeout; default value: 500 milliseconds
spring.shardingsphere.orchestration.registry.max-retries= #Maximum retry time after failing; default value: 3 times
spring.shardingsphere.orchestration.registry.retry-interval-milliseconds=#Interval time to retry; default value: 500 milliseconds
spring.shardingsphere.orchestration.registry.time-to-live-seconds= #Living time of temporary nodes; default value: 60 seconds
spring.shardingsphere.orchestration.registry.props=#Customize registry center props.
spring.shardingsphere.orchestration.spring_boot_ds_sharding.orchestration-type=The type of orchestration center: config_center or registry_center or metadata_center
spring.shardingsphere.orchestration.spring_boot_ds_sharding.instance-type=#Center instance type. Example:zookeeper#Registry center type. Example:zookeeper
spring.shardingsphere.orchestration.spring_boot_ds_sharding.server-lists= #The list of servers that connect to registry center, including IP and port number; use commas to separate
spring.shardingsphere.orchestration.spring_boot_ds_sharding.props.overwrite= #Whether to overwrite local configurations with config center configurations; if it can, each initialization should refer to local configurations
spring.shardingsphere.orchestration.spring_boot_ds_sharding.props.digest=#The token that connects to the center; default means there is no need for authentication
spring.shardingsphere.orchestration.spring_boot_ds_sharding.props.operation-timeout-milliseconds= #The millisecond number for operation timeout; default value: 500 milliseconds
spring.shardingsphere.orchestration.spring_boot_ds_sharding.props.max-retries=#Maximum retry time after failing; default value: 3 times
spring.shardingsphere.orchestration.spring_boot_ds_sharding.props.retry-interval-milliseconds= #Interval time to retry; default value: 500 milliseconds
spring.shardingsphere.orchestration.spring_boot_ds_sharding.props.time-to-live-seconds=#Living time of temporary nodes; default value: 60 seconds
| data-source-ref (?) | Attribute | Orchestrated database id |
| registry-center-ref | Attribute | Registry center id |
| overwrite | Attribute | Whether to overwrite local configurations with registry center configurations; if it can, each initialization should refer to local configurations; default means not to overwrite |
| instance-ref | Attribute | The id of orchestration instance |
| overwrite | Attribute | Whether to overwrite local configurations with config center configurations; if it can, each initialization should refer to local configurations; default means not to overwrite |
overwrite:#Whether to overwrite local configurations with registry center configurations; if it can, each initialization should refer to local configurations
registry:#Registry center configuration
type:#Registry center type. Example:zookeeper
orchestration_ds:#Orchestration instance name
orchestrationType:#The type of orchestration center: config_center or registry_center or metadata_center
serverLists:#The list of servers that connect to registry center, including IP and port number; use commas to seperate addresses, such as: host1:2181,host2:2181
namespace:#Registry center namespace
digest:#The token that connects to the registry center; default means there is no need for authentication
maxRetries:#Maximum retry time after failing; default value: 3 times
retryIntervalMilliseconds:#Interval time to retry; default value: 500 milliseconds
timeToLiveSeconds:#Living time of temporary nodes; default value: 60 seconds
namespace:#Center namespace
props:#Other properties
overwrite:#Whether to overwrite local configurations with config center configurations; if it can, each initialization should refer to local configurations
digest:#The token that connects to the center; default means there is no need for authentication