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

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


Reply via email to