-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into coordinator
- Loading branch information
Showing
17 changed files
with
427 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM spqr-base-image | ||
|
||
ENTRYPOINT /spqr/spqr-coordinator -c ${SPQR_CONFIG=/spqr/docker/coordinator/cfg.yaml} | ||
ENTRYPOINT /spqr/spqr-coordinator -c ${COORDINATOR_CONFIG=/spqr/docker/coordinator/cfg.yaml} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
FROM spqr-base-image | ||
|
||
ENTRYPOINT CONFIG_PATH=${SPQR_CONFIG=/spqr/docker/router/cfg.yaml} && CUR_HOST=$(cat ${CONFIG_PATH} | grep "host:") && sed -i "s/${CUR_HOST}/${ROUTER_HOST=${CUR_HOST}}/g" ${CONFIG_PATH} && /spqr/spqr-router run -c ${CONFIG_PATH} --proto-debug | ||
ENTRYPOINT CONFIG_PATH=${ROUTER_CONFIG=/spqr/docker/router/cfg.yaml} && CUR_HOST=$(cat ${CONFIG_PATH} | grep "host:") && sed -i "s/${CUR_HOST}/${ROUTER_HOST=${CUR_HOST}}/g" ${CONFIG_PATH} && /spqr/spqr-router run -c ${CONFIG_PATH} --proto-debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ADD SHARDING RULE rule1 COLUMNS id; | ||
ADD SHARDING RULE rule2 TABLE test COLUMNS idx; | ||
ADD SHARDING RULE rule3 COLUMNS idy; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
host: 'regress_router' | ||
router_port: '6432' | ||
admin_console_port: '7432' | ||
grpc_api_port: '7000' | ||
router_mode: PROXY | ||
log_level: fatal | ||
memqdb_backup_path: memqdb.backup | ||
log_filename: router.log | ||
time_quantiles: | ||
- 0.75 | ||
world_shard_fallback: true | ||
show_notice_messages: true | ||
frontend_rules: | ||
- db: regress | ||
usr: regress | ||
pool_default: true | ||
pool_mode: TRANSACTION | ||
auth_rule: | ||
auth_method: ok | ||
shards: | ||
sh1: | ||
db: regress | ||
usr: regress | ||
pwd: 12345678 | ||
type: DATA | ||
hosts: | ||
- 'spqr_shard_1:6432' | ||
sh2: | ||
db: regress | ||
usr: regress | ||
pwd: 12345678 | ||
type: DATA | ||
hosts: | ||
- 'spqr_shard_2:6432' | ||
|
||
backend_rules: | ||
- db: regress | ||
usr: regress | ||
pool_discard: true | ||
pool_rollback: true | ||
auth_rules: | ||
sh1: | ||
auth_method: md5 | ||
password: 12345678 | ||
sh2: | ||
auth_method: md5 | ||
password: 12345678 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
host: 'regress_router' | ||
router_port: '6432' | ||
admin_console_port: '7432' | ||
grpc_api_port: '7000' | ||
router_mode: PROXY | ||
log_level: fatal | ||
memqdb_backup_path: memqdb.backup | ||
init_sql: /spqr/test/feature/conf/init.sql | ||
log_filename: router.log | ||
time_quantiles: | ||
- 0.75 | ||
world_shard_fallback: true | ||
show_notice_messages: true | ||
frontend_rules: | ||
- db: regress | ||
usr: regress | ||
pool_default: true | ||
pool_mode: TRANSACTION | ||
auth_rule: | ||
auth_method: ok | ||
shards: | ||
sh1: | ||
db: regress | ||
usr: regress | ||
pwd: 12345678 | ||
type: DATA | ||
hosts: | ||
- 'spqr_shard_1:6432' | ||
sh2: | ||
db: regress | ||
usr: regress | ||
pwd: 12345678 | ||
type: DATA | ||
hosts: | ||
- 'spqr_shard_2:6432' | ||
|
||
backend_rules: | ||
- db: regress | ||
usr: regress | ||
pool_discard: true | ||
pool_rollback: true | ||
auth_rules: | ||
sh1: | ||
auth_method: md5 | ||
password: 12345678 | ||
sh2: | ||
auth_method: md5 | ||
password: 12345678 |
48 changes: 48 additions & 0 deletions
48
test/feature/conf/router_with_fake_initsql_and_backup.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
host: 'regress_router' | ||
router_port: '6432' | ||
admin_console_port: '7432' | ||
grpc_api_port: '7000' | ||
router_mode: PROXY | ||
log_level: fatal | ||
memqdb_backup_path: memqdb.backup | ||
init_sql: /spqr/test/feature/conf/fake_init.sql | ||
log_filename: router.log | ||
time_quantiles: | ||
- 0.75 | ||
world_shard_fallback: true | ||
show_notice_messages: true | ||
frontend_rules: | ||
- db: regress | ||
usr: regress | ||
pool_default: true | ||
pool_mode: TRANSACTION | ||
auth_rule: | ||
auth_method: ok | ||
shards: | ||
sh1: | ||
db: regress | ||
usr: regress | ||
pwd: 12345678 | ||
type: DATA | ||
hosts: | ||
- 'spqr_shard_1:6432' | ||
sh2: | ||
db: regress | ||
usr: regress | ||
pwd: 12345678 | ||
type: DATA | ||
hosts: | ||
- 'spqr_shard_2:6432' | ||
|
||
backend_rules: | ||
- db: regress | ||
usr: regress | ||
pool_discard: true | ||
pool_rollback: true | ||
auth_rules: | ||
sh1: | ||
auth_method: md5 | ||
password: 12345678 | ||
sh2: | ||
auth_method: md5 | ||
password: 12345678 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
host: 'regress_router' | ||
router_port: '6432' | ||
admin_console_port: '7432' | ||
grpc_api_port: '7000' | ||
router_mode: PROXY | ||
log_level: fatal | ||
init_sql: /spqr/test/feature/conf/init.sql | ||
log_filename: router.log | ||
time_quantiles: | ||
- 0.75 | ||
world_shard_fallback: true | ||
show_notice_messages: true | ||
frontend_rules: | ||
- db: regress | ||
usr: regress | ||
pool_default: true | ||
pool_mode: TRANSACTION | ||
auth_rule: | ||
auth_method: ok | ||
shards: | ||
sh1: | ||
db: regress | ||
usr: regress | ||
pwd: 12345678 | ||
type: DATA | ||
hosts: | ||
- 'spqr_shard_1:6432' | ||
sh2: | ||
db: regress | ||
usr: regress | ||
pwd: 12345678 | ||
type: DATA | ||
hosts: | ||
- 'spqr_shard_2:6432' | ||
|
||
backend_rules: | ||
- db: regress | ||
usr: regress | ||
pool_discard: true | ||
pool_rollback: true | ||
auth_rules: | ||
sh1: | ||
auth_method: md5 | ||
password: 12345678 | ||
sh2: | ||
auth_method: md5 | ||
password: 12345678 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.