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 2021/08/09 02:16:53 UTC
[GitHub] [shardingsphere] terrymanu commented on issue #11709: Consider about redesign DistMetaDataPersistRule and governance module
terrymanu commented on issue #11709:
URL: https://github.com/apache/shardingsphere/issues/11709#issuecomment-894911938
Another solution is use running mode to instead of unified rule (PreConditionRule).
There are 3 mode `Memory`, `Standalone` and `Cluster` to map original `None`, `stand-alone` and `cluster` types.
The YAML config is like:
```yaml
mode:
type: Memory
```
or
```yaml
mode:
type: Standalone
storage-strategy:
type: LocalFile
props:
xxx: xxx
overwrite: false
```
or
```yaml
mode:
type: Cluster
storage-strategy:
type: ZooKeeper
namespace: governance_ds
serverLists: localhost:2181
props:
retryIntervalMilliseconds: 500
timeToLiveSeconds: 60
maxRetries: 3
operationTimeoutMilliseconds: 500
overwrite: false
```
Which one is your favorite?
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org