You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2019/10/30 09:31:29 UTC
[GitHub] [incubator-shardingsphere] wgy8283335 edited a comment on issue
#3185: The configuration of RegistryCenter, ConfigCenter,
LeafCenter should be split apart or not?
wgy8283335 edited a comment on issue #3185: The configuration of RegistryCenter, ConfigCenter,LeafCenter should be split apart or not?
URL: https://github.com/apache/incubator-shardingsphere/issues/3185#issuecomment-545445192
Below is the current configuration
```
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.
```
Below is the modified. `registry` is removed. `spring.shardingsphere.orchestration.type` could be mix-zookeeper,reg-zookeeper,conf-zookeeper,leaf-zookeeper,reg-nacos and so on. `mix-zookeeper` means zookeeper is used as config center, registry center and leaf cneter.
```
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.type= # Example:mix-zookeeper,reg-zookeeper,conf-zookeeper,leaf-zookeeper
spring.shardingsphere.orchestration.server-lists= #The list of servers that connect to registry center, including IP and port number; use commas to separate
spring.shardingsphere.orchestration.namespace= #Registry center namespace
spring.shardingsphere.orchestration.digest= #The token that connects to the registry center; default means there is no need for authentication
spring.shardingsphere.orchestration.operation-timeout-milliseconds= #The millisecond number for operation timeout; default value: 500 milliseconds
spring.shardingsphere.orchestration.max-retries= #Maximum retry time after failing; default value: 3 times
spring.shardingsphere.orchestration.retry-interval-milliseconds= #Interval time to retry; default value: 500 milliseconds
spring.shardingsphere.orchestration.time-to-live-seconds= #Living time of temporary nodes; default value: 60 seconds
spring.shardingsphere.orchestration.props= #Customize registry center props.
```
But , these will make a lot of changes in codes.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services