# # 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. # rules: - !!org.apache.shardingsphere.sharding.core.yaml.config.YamlShardingRuleConfiguration tables: config: actualDataNodes: db_ms_${0..1}.t_config t_order: actualDataNodes: db_ms_${0..1}.t_order_${0..1} databaseStrategy: standard: shardingColumn: user_id shardingAlgorithm: type: STANDARD_TEST tableStrategy: standard: shardingColumn: order_id shardingAlgorithm: type: INLINE props: algorithm.expression: t_order_${order_id % 2} keyGenerator: type: INCREMENT column: order_id t_order_item: actualDataNodes: db_ms_${0..1}.t_order_item_${0..1} databaseStrategy: standard: shardingColumn: user_id shardingAlgorithm: type: STANDARD_TEST tableStrategy: standard: shardingColumn: order_id shardingAlgorithm: type: INLINE props: algorithm.expression: t_order_item_${order_id % 2} bindingTables: - t_order,t_order_item defaultDatabaseStrategy: none: defaultTableStrategy: complex: shardingColumns: id, order_id shardingAlgorithm: type: COMPLEX_TEST - !!org.apache.shardingsphere.masterslave.core.yaml.config.YamlMasterSlaveRuleConfiguration dataSources: db_ms_0: masterDataSourceName: db0_master slaveDataSourceNames: - db0_slave db_ms_1: masterDataSourceName: db1_master slaveDataSourceNames: - db1_slave orchestration: test_sharding_ms_registry_name: orchestrationType: registry_center instanceType: FirstTestRegistryCenter serverLists: localhost:3181 namespace: test_sharding_ms_registry props: overwrite: true retryIntervalMilliseconds: 10 timeToLiveSeconds: 10 maxRetries: 10 operationTimeoutMilliseconds: 10 test_sharding_ms_config_name: orchestrationType: config_center instanceType: FirstTestConfigCenter serverLists: localhost:3181 namespace: test_sharding_ms_config props: overwrite: true retryIntervalMilliseconds: 10 timeToLiveSeconds: 10 maxRetries: 10 operationTimeoutMilliseconds: 10 test_sharding_ms_metadata_name: orchestrationType: metadata_center instanceType: FirstTestMetaDataCenter serverLists: localhost:3181 namespace: test_sharding_ms_metadata props: overwrite: true retryIntervalMilliseconds: 10 timeToLiveSeconds: 10 maxRetries: 10 operationTimeoutMilliseconds: 10