mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-04-23 10:58:34 +08:00
update sharding-proxy 5.3.2 => 5.4.0 配置文件写法升级
This commit is contained in:
@@ -1,20 +1,27 @@
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
# contributor license agreements. See the NOTICE file distributed with
|
||||
# this work for additional information regarding copyright ownership.
|
||||
# The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
# (the "License"); you may not use this file except in compliance with
|
||||
# the License. You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
######################################################################################################
|
||||
#
|
||||
# 用于配置:数据接入迁移&弹性伸缩、分布式治理模式、权限、代理属性.
|
||||
# If you want to configure governance, authorization and proxy properties, please refer to this file.
|
||||
#
|
||||
######################################################################################################
|
||||
|
||||
#scaling:
|
||||
# blockQueueSize: 10000 # 数据传输通道队列大小
|
||||
# workerThread: 40 # 工作线程池大小,允许同时运行的迁移任务线程数
|
||||
# clusterAutoSwitchAlgorithm:
|
||||
# type: IDLE
|
||||
# props:
|
||||
# incremental-task-idle-minute-threshold: 30
|
||||
# dataConsistencyCheckAlgorithm:
|
||||
# type: DEFAULT
|
||||
#
|
||||
#mode:
|
||||
# mode:
|
||||
# type: Cluster
|
||||
# repository:
|
||||
# type: ZooKeeper
|
||||
@@ -25,37 +32,61 @@
|
||||
# timeToLiveSeconds: 60
|
||||
# maxRetries: 3
|
||||
# operationTimeoutMilliseconds: 500
|
||||
# overwrite: false
|
||||
#
|
||||
rules:
|
||||
- !AUTHORITY
|
||||
users:
|
||||
- root@%:root
|
||||
- sharding@:sharding
|
||||
provider:
|
||||
type: ALL_PRIVILEGES_PERMITTED
|
||||
- !TRANSACTION
|
||||
defaultType: XA
|
||||
providerType: Atomikos
|
||||
|
||||
authority:
|
||||
users:
|
||||
- user: root@%
|
||||
password: root
|
||||
- user: sharding
|
||||
password: sharding
|
||||
privilege:
|
||||
type: ALL_PERMITTED
|
||||
|
||||
transaction:
|
||||
defaultType: XA
|
||||
providerType: Atomikos
|
||||
|
||||
sqlParser:
|
||||
sqlCommentParseEnabled: false
|
||||
sqlStatementCache:
|
||||
initialCapacity: 2000
|
||||
maximumSize: 65535
|
||||
parseTreeCache:
|
||||
initialCapacity: 128
|
||||
maximumSize: 1024
|
||||
|
||||
logging:
|
||||
loggers:
|
||||
- loggerName: ShardingSphere-SQL
|
||||
additivity: true
|
||||
level: INFO
|
||||
props:
|
||||
enable: false
|
||||
|
||||
sqlFederation:
|
||||
sqlFederationEnabled: false
|
||||
executionPlanCache:
|
||||
initialCapacity: 2000
|
||||
maximumSize: 65535
|
||||
|
||||
props:
|
||||
max-connections-size-per-query: 1
|
||||
kernel-executor-size: 16 # Infinite by default.
|
||||
proxy-frontend-flush-threshold: 128 # The default value is 128.
|
||||
# proxy-opentracing-enabled: false
|
||||
# proxy-hint-enabled: false
|
||||
sql-show: true
|
||||
# check-table-metadata-enabled: false
|
||||
# show-process-list-enabled: false
|
||||
# # Proxy backend query fetch size. A larger value may increase the memory usage of ShardingSphere Proxy.
|
||||
# # The default value is -1, which means set the minimum value for different JDBC drivers.
|
||||
# proxy-backend-query-fetch-size: -1
|
||||
check-duplicate-table-enabled: true
|
||||
# sql-comment-parse-enabled: false
|
||||
# proxy-frontend-executor-size: 0 # Proxy frontend executor size. The default value is 0, which means let Netty decide.
|
||||
# # Available options of proxy backend executor suitable: OLAP(default), OLTP. The OLTP option may reduce time cost of writing packets to client, but it may increase the latency of SQL execution
|
||||
# # if client connections are more than proxy-frontend-netty-executor-size, especially executing slow SQL.
|
||||
# proxy-backend-executor-suitable: OLAP
|
||||
# proxy-frontend-max-connections: 0 # Less than or equal to 0 means no limitation.
|
||||
# sql-federation-enabled: false
|
||||
system-log-level: INFO
|
||||
max-connections-size-per-query: 1
|
||||
kernel-executor-size: 16 # Infinite by default.
|
||||
proxy-frontend-flush-threshold: 128 # The default value is 128.
|
||||
# sql-show is the same as props in logger ShardingSphere-SQL, and its priority is lower than logging rule
|
||||
sql-show: false
|
||||
check-table-metadata-enabled: false
|
||||
# Proxy backend query fetch size. A larger value may increase the memory usage of ShardingSphere Proxy.
|
||||
# The default value is -1, which means set the minimum value for different JDBC drivers.
|
||||
proxy-backend-query-fetch-size: -1
|
||||
proxy-frontend-executor-size: 0 # Proxy frontend executor size. The default value is 0, which means let Netty decide.
|
||||
proxy-frontend-max-connections: 0 # Less than or equal to 0 means no limitation.
|
||||
proxy-default-port: 3307 # Proxy default port.
|
||||
proxy-netty-backlog: 1024 # Proxy netty backlog.
|
||||
cdc-server-port: 33071 # CDC server port
|
||||
proxy-frontend-ssl-enabled: false
|
||||
proxy-frontend-ssl-cipher: ''
|
||||
proxy-frontend-ssl-version: TLSv1.2,TLSv1.3
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user