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/21 02:19:01 UTC
[GitHub] [shardingsphere] menghaoranss commented on a change in pull request #14181: Update ha document about YAML
menghaoranss commented on a change in pull request #14181:
URL: https://github.com/apache/shardingsphere/pull/14181#discussion_r772783157
##########
File path: docs/document/content/user-manual/shardingsphere-jdbc/yaml-config/rules/ha.en.md
##########
@@ -3,4 +3,27 @@ title = "HA"
weight = 3
+++
-TODO
+```yaml
+rules:
+- !DB_DISCOVERY
+ dataSources:
+ <data-source-name> (+): # Logic data source name
+ dataSourceNames: # Data source names
+ - <data-source>
+ - <data-source>
+ discoveryHeartbeatName: # Detect heartbeat name
+ discoveryTypeName: # Highly available type name
+
+ # Heartbeat Configuration
+ discoveryHeartbeats:
+ <discovery-heartbeat-name> (+): # heartbeat name
+ props:
+ keep-alive-cron: # This is cron expression, such as:'0/5 * * * * ?'
+
+ # Highly available Configuration
+ discoveryTypes:
+ <discovery-type-name> (+): # Highly available type name
+ type: # Highly available type, such as: MGR、openGauss
+ props:
Review comment:
props is not required item.
--
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