mirror of https://github.com/dtm-labs/dtm.git
15 changed files with 35 additions and 38 deletions
@ -1,5 +1,5 @@ |
|||||
*/**/*.yml |
*/**/*.yml |
||||
*.yml |
conf.yml* |
||||
*.out |
*.out |
||||
*/**/main |
*/**/main |
||||
main |
main |
||||
@ -0,0 +1,8 @@ |
|||||
|
version: '3.3' |
||||
|
services: |
||||
|
mysql: |
||||
|
image: 'mysql:5.7' |
||||
|
environment: |
||||
|
MYSQL_ROOT_PASSWORD: my-secret-pw |
||||
|
ports: |
||||
|
- '3306:3306' |
||||
@ -1,8 +1,7 @@ |
|||||
Mysql: |
Mysql: |
||||
host: 'mysql' |
host: 'localhost' |
||||
user: 'root' |
user: 'root' |
||||
password: 'my-secret-pw' |
password: 'my-secret-pw' |
||||
database: 'dtm' |
|
||||
port: '3306' |
port: '3306' |
||||
|
|
||||
PreparedExpire: 90 # 单位秒,处于prepared中的任务,过了这个时间,查询结果还是PENDING的话,则会被cancel |
PreparedExpire: 90 # 单位秒,处于prepared中的任务,过了这个时间,查询结果还是PENDING的话,则会被cancel |
||||
@ -1,15 +0,0 @@ |
|||||
version: '3.3' |
|
||||
services: |
|
||||
api: |
|
||||
build: . |
|
||||
ports: |
|
||||
- '80:4005' |
|
||||
volumes: |
|
||||
- .:/app/dtm |
|
||||
# command: ['sh', '-c', 'go build app/main.go && go test -v ./dtmsvr'] |
|
||||
mysql: |
|
||||
image: 'mysql:5.7' |
|
||||
environment: |
|
||||
MYSQL_ROOT_PASSWORD: my-secret-pw |
|
||||
ports: |
|
||||
- '3306:3306' |
|
||||
@ -1,8 +0,0 @@ |
|||||
Mysql: |
|
||||
host: 'mysql' |
|
||||
user: 'root' |
|
||||
password: 'my-secret-pw' |
|
||||
database: 'dtm' |
|
||||
port: '3306' |
|
||||
PreparedExpire: 90 # 单位秒,处于prepared中的任务,过了这个时间,查询结果还是PENDING的话,则会被cancel |
|
||||
TransCronInterval: 20 # 单位秒 当事务等待这个时间之后,还没有变化,则进行一轮处理,包括prepared中的任务和commited的任务 |
|
||||
Loading…
Reference in new issue