zjcnb commented on issue #13902:
URL: 
https://github.com/apache/shardingsphere/issues/13902#issuecomment-984480554


   `New discovery api:`
   
   ```
   schemaName: database_discovery_db
   
   dataSources:
     ds_0:
       url: 
jdbc:mysql://127.0.0.1:3306/demo_primary_ds?serverTimezone=UTC&useSSL=false
       username: root
       password:
       connectionTimeoutMilliseconds: 3000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
     ds_1:
       url: 
jdbc:mysql://127.0.0.1:3306/demo_replica_ds_0?serverTimezone=UTC&useSSL=false
       username: root
       password:
       connectionTimeoutMilliseconds: 3000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
     ds_2:
       url: 
jdbc:mysql://127.0.0.1:3306/demo_replica_ds_1?serverTimezone=UTC&useSSL=false
       username: root
       password:
       connectionTimeoutMilliseconds: 3000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
   
   rules:
   - !DB_DISCOVERY
    dataSources:
       primary_replica_ds:
         dataSourceNames:
           - ds_0
           - ds_1
           - ds_2
         discoveryTypeName: mgr
         discoveryHeartbeatName: mgr-heartbeat
   
    discoveryHeartbeats:
       mgr-heartbeat:
         props:
           keepAliveCron: '0/5 * * * * ?'
   
    discoveryTypes:
       mgr:
         type: MGR
         props:
           groupName: 92504d5b-6dec-11e8-91ea-246e9612aaf1
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to