menghaoranss commented on issue #11747: URL: https://github.com/apache/shardingsphere/issues/11747#issuecomment-896573863
> > > Another question is, how do you use 'xx/states/primarynodes' and 'xx/states/datanodes' ? I want to use it when adding failover. > > > Because I only searched here in all the codes, and the settings are empty, https://github.com/apache/shardingsphere/blob/5.0.0-beta/shardingsphere-governance/shardingsphere-governance-core/src/main/java/org/apache/shardingsphere/governance/core/registry/RegistryCenter.java#L111 > > > > > > If data nodes changed, `db_discovery` will post event to `governance`, you can search the following code in `MGRDatabaseDiscoveryType.java` > > ``` > > ShardingSphereEventBus.getInstance().post(new DataSourceDisabledEvent(schemaName, entry.getKey(), true)); > > ``` > > Thank you very much for your reminder. I almost made wheels again. How to configure this Mgr discovery? Are there any examples? refter to: https://github.com/apache/shardingsphere/blob/master/shardingsphere-proxy/shardingsphere-proxy-bootstrap/src/main/resources/conf/config-database-discovery.yaml -- 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-unsubscr...@shardingsphere.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org