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/12/01 03:20:21 UTC

[GitHub] [shardingsphere] menghaoranss commented on issue #13800: Plan to adjust shardingsphere-db-discovery-provider and change db-discover api.

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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org