okami-chen opened a new issue, #20142: URL: https://github.com/apache/shardingsphere/issues/20142
## Question `server.yaml` ``` # # 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: # type: Cluster # repository: # type: ZooKeeper # props: # namespace: governance_ds # server-lists: localhost:2181 # retryIntervalMilliseconds: 500 # 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 #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: false # 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: false # 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 ``` `config-ds.yaml` ``` databaseName: sharding_db # dataSources: ds_0: url: jdbc:mysql://127.0.0.1:3306/_ds_0?serverTimezone=UTC&useSSL=false username: root password: 123456 connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 maxPoolSize: 50 minPoolSize: 1 ds_1: url: jdbc:mysql://127.0.0.1:3306/ds_1?serverTimezone=UTC&useSSL=false username: root password: 123456 connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 maxPoolSize: 50 minPoolSize: 1 rules: - !SHARDING tables: t_order: actualDataNodes: ds_${0..1}.t_order_${0..63} tableStrategy: standard: shardingColumn: order_id shardingAlgorithmName: t_order_inline keyGenerateStrategy: column: order_id keyGeneratorName: snowflake auditStrategy: auditorNames: - sharding_key_required_auditor allowHintDisable: true t_order_item: actualDataNodes: ds_${0..1}.t_order_item_${0..63} tableStrategy: standard: shardingColumn: order_id shardingAlgorithmName: t_order_item_inline keyGenerateStrategy: column: order_item_id keyGeneratorName: snowflake bindingTables: - t_order,t_order_item defaultDatabaseStrategy: standard: shardingColumn: user_id shardingAlgorithmName: database_inline defaultTableStrategy: none: # defaultAuditStrategy: # auditorNames: # - sharding_key_required_auditor # allowHintDisable: true shardingAlgorithms: database_inline: type: INLINE props: algorithm-expression: ds_${user_id % 2} t_order_inline: type: INLINE props: algorithm-expression: t_order_${order_id % 64} t_order_item_inline: type: INLINE props: algorithm-expression: t_order_item_${order_id % 64} keyGenerators: snowflake: type: SNOWFLAKE # # auditors: # sharding_key_required_auditor: # type: DML_SHARDING_CONDITIONS # # scalingName: default_scaling # scaling: # default_scaling: # input: # workerThread: 40 # batchSize: 1000 # output: # workerThread: 40 # batchSize: 1000 # streamChannel: # type: MEMORY # props: # block-queue-size: 10000 # completionDetector: # type: IDLE # props: # incremental-task-idle-seconds-threshold: 1800 # dataConsistencyChecker: # type: DATA_MATCH # props: # chunk-size: 1000 ``` -- 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]
