Readwrite-splitting

Configuration Item Explanation

rules:
- !READWRITE_SPLITTING
  dataSources:
    <data-source-name> (+): # Logic data source name of readwrite-splitting
      type: # Readwrite-splitting type, such as: Static, Dynamic
      props:
        auto-aware-data-source-name: # Auto aware data source name(Use with database discovery)
        write-data-source-name: # Write data source name
        read-data-source-names: # Read data source names, multiple data source names separated with comma
      loadBalancerName: # Load balance algorithm name
  
  # Load balance algorithm configuration
  loadBalancers:
    <load-balancer-name> (+): # Load balance algorithm name
      type: # Load balance algorithm type
      props: # Load balance algorithm properties
        # ...

Please refer to Built-in Load Balance Algorithm List for more details about type of algorithm. Please refer to Use Norms for more details about query consistent routing.