-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refact config to support deploy as gateway (#231)
- Loading branch information
1 parent
146f75d
commit f5f49bd
Showing
58 changed files
with
756 additions
and
604 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
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,67 +1,68 @@ | ||
listeners: | ||
- protocol_type: mysql | ||
socket_address: | ||
address: 0.0.0.0 | ||
port: 13306 | ||
config: | ||
users: | ||
dksl: "123456" | ||
server_version: "8.0.27" | ||
executor: redirect | ||
probe_port: 9999 | ||
termination_drain_duration: 3s | ||
app_config: | ||
svc: | ||
distributed_transaction: | ||
retry_dead_threshold: 130000 | ||
rollback_retry_timeout_unlock_enable: true | ||
etcd_config: | ||
endpoints: | ||
- etcd:2379 | ||
|
||
executors: | ||
- name: redirect | ||
mode: rws | ||
config: | ||
load_balance_algorithm: RandomWeight | ||
data_sources: | ||
- name: employees-master | ||
weight: r0w10 | ||
- name: employees-slave | ||
weight: r10w0 | ||
filters: | ||
- cryptoFilter | ||
|
||
data_source_cluster: | ||
- name: employees-master | ||
capacity: 10 | ||
max_capacity: 20 | ||
idle_timeout: 60s | ||
dsn: root:123456@tcp(dbpack-mysql1:3306)/employees?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8mb4,utf8 | ||
ping_interval: 20s | ||
ping_times_for_change_status: 3 | ||
filters: | ||
- mysqlDTFilter | ||
listeners: | ||
- protocol_type: mysql | ||
socket_address: | ||
address: 0.0.0.0 | ||
port: 13306 | ||
config: | ||
users: | ||
dksl: "123456" | ||
server_version: "8.0.27" | ||
executor: redirect | ||
|
||
- name: employees-slave | ||
capacity: 10 | ||
max_capacity: 20 | ||
idle_timeout: 60s | ||
dsn: root:123456@tcp(dbpack-mysql2:3306)/employees?timeout=60s&readTimeout=60s&writeTimeout=60s&parseTime=true&loc=Local&charset=utf8mb4,utf8 | ||
ping_interval: 20s | ||
ping_times_for_change_status: 3 | ||
executors: | ||
- name: redirect | ||
mode: rws | ||
config: | ||
load_balance_algorithm: RandomWeight | ||
data_sources: | ||
- name: employees-master | ||
weight: r0w10 | ||
- name: employees-slave | ||
weight: r10w0 | ||
filters: | ||
- cryptoFilter | ||
|
||
filters: | ||
- name: mysqlDTFilter | ||
kind: MysqlDistributedTransaction | ||
conf: | ||
appid: svc | ||
lock_retry_interval: 50ms | ||
lock_retry_times: 30 | ||
- name: cryptoFilter | ||
kind: CryptoFilter | ||
conf: | ||
column_crypto_list: | ||
- table: departments | ||
columns: ["dept_name"] | ||
aeskey: 123456789abcdefg | ||
data_source_cluster: | ||
- name: employees-master | ||
capacity: 10 | ||
max_capacity: 20 | ||
idle_timeout: 60s | ||
dsn: root:123456@tcp(dbpack-mysql1:3306)/employees?timeout=1s&readTimeout=1s&writeTimeout=1s&parseTime=true&loc=Local&charset=utf8mb4,utf8 | ||
ping_interval: 20s | ||
ping_times_for_change_status: 3 | ||
filters: | ||
- mysqlDTFilter | ||
|
||
distributed_transaction: | ||
appid: svc | ||
retry_dead_threshold: 130000 | ||
rollback_retry_timeout_unlock_enable: true | ||
etcd_config: | ||
endpoints: | ||
- etcd:2379 | ||
- name: employees-slave | ||
capacity: 10 | ||
max_capacity: 20 | ||
idle_timeout: 60s | ||
dsn: root:123456@tcp(dbpack-mysql2:3306)/employees?timeout=60s&readTimeout=60s&writeTimeout=60s&parseTime=true&loc=Local&charset=utf8mb4,utf8 | ||
ping_interval: 20s | ||
ping_times_for_change_status: 3 | ||
|
||
http_listen_port: 9999 | ||
filters: | ||
- name: mysqlDTFilter | ||
kind: MysqlDistributedTransaction | ||
conf: | ||
appid: svc | ||
lock_retry_interval: 50ms | ||
lock_retry_times: 30 | ||
- name: cryptoFilter | ||
kind: CryptoFilter | ||
conf: | ||
column_crypto_list: | ||
- table: departments | ||
columns: [ "dept_name" ] | ||
aeskey: 123456789abcdefg |
Oops, something went wrong.