ReadwriteSplittingRule

Read-write splitting configuration

DatabaseDistributed SQLRead-Write SplittingShardingSQLApacheOpen Source

Properties

Name Type Description
name string Rule name
writeDataSourceName string Primary/write data source
readDataSourceNames array Replica/read data sources
loadBalancerName string Load balancer algorithm name
View JSON Schema on GitHub

JSON Schema

apache-shardingsphere-readwrite-splitting-rule-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-shardingsphere/refs/heads/main/json-schema/apache-shardingsphere-readwrite-splitting-rule-schema.json",
  "title": "ReadwriteSplittingRule",
  "description": "Read-write splitting configuration",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Rule name"
    },
    "writeDataSourceName": {
      "type": "string",
      "description": "Primary/write data source"
    },
    "readDataSourceNames": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Replica/read data sources"
    },
    "loadBalancerName": {
      "type": "string",
      "description": "Load balancer algorithm name"
    }
  }
}