mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-07 04:50:38 +00:00
update sharding-proxy 5.3.2 => 5.4.0 配置文件写法升级
This commit is contained in:
@@ -16,13 +16,13 @@
|
||||
#
|
||||
|
||||
######################################################################################################
|
||||
#
|
||||
#
|
||||
# Here you can configure the rules for the proxy.
|
||||
# This example is configuration of replica-query rule.
|
||||
#
|
||||
# This example is configuration of readwrite-splitting rule.
|
||||
#
|
||||
######################################################################################################
|
||||
#
|
||||
#schemaName: readwrite_splitting_db
|
||||
#databaseName: readwrite_splitting_db
|
||||
#
|
||||
#dataSources:
|
||||
# primary_ds:
|
||||
@@ -56,11 +56,15 @@
|
||||
#rules:
|
||||
#- !READWRITE_SPLITTING
|
||||
# dataSources:
|
||||
# pr_ds:
|
||||
# readwrite_ds:
|
||||
# writeDataSourceName: primary_ds
|
||||
# readDataSourceNames:
|
||||
# - replica_ds_0
|
||||
# - replica_ds_1
|
||||
# loadBalancerName: random
|
||||
# loadBalancers:
|
||||
# random:
|
||||
# type: RANDOM
|
||||
|
||||
######################################################################################################
|
||||
#
|
||||
@@ -68,7 +72,7 @@
|
||||
#
|
||||
######################################################################################################
|
||||
|
||||
#schemaName: readwrite_splitting_db
|
||||
#databaseName: readwrite_splitting_db
|
||||
#
|
||||
#dataSources:
|
||||
# write_ds:
|
||||
@@ -102,8 +106,12 @@
|
||||
#rules:
|
||||
#- !READWRITE_SPLITTING
|
||||
# dataSources:
|
||||
# pr_ds:
|
||||
# readwrite_ds:
|
||||
# writeDataSourceName: write_ds
|
||||
# readDataSourceNames:
|
||||
# - read_ds_0
|
||||
# - read_ds_1
|
||||
# loadBalancerName: random
|
||||
# loadBalancers:
|
||||
# random:
|
||||
# type: RANDOM
|
||||
|
Reference in New Issue
Block a user