menghaoranss commented on issue #13800:
URL: 
https://github.com/apache/shardingsphere/issues/13800#issuecomment-983248514


   > ```
   > rules:
   > - !DB_DISCOVERY
   >  dataSources:
   >     primary_replica_ds:
   >       dataSourceNames:
   >         - ds_0
   >         - ds_1
   >         - ds_2
   >       discoveryTypeName: mgr
   >       discoveryHeartBeatName: mgr-heartbeat
   > 
   >  discoveryHeartBeat:
   >     mgr-heartbeat:
   >       props:
   >         keepAliveCron: '0/5 * * * * ?'
   > 
   >  discoveryTypes:
   >     mgr:
   >       type: MGR
   >       props:
   >         groupName: 92504d5b-6dec-11e8-91ea-246e9612aaf1
   > ```
   > 
   > 
   >     
   >   
   > 
   > @terrymanu @menghaoranss  Hi, according to your suggestion, I adjusted the 
api. We can confirm it.
   
   I suggest  `discoveryHeartbeatName` and `discoveryHeartbeats ` is better.
   
   ```
   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