Files
scroll/coordinator
maskpp defe1f42a9 random container port (#47)
Co-authored-by: colinlyguo <colinlyguo@gmail.com>
Co-authored-by: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
2022-11-03 15:11:40 +08:00
..
2022-11-03 15:11:40 +08:00
2022-11-03 15:11:40 +08:00
2022-10-19 21:01:35 +08:00
2022-10-19 21:01:35 +08:00
2022-10-19 21:01:35 +08:00
2022-10-19 21:01:35 +08:00
2022-11-03 15:11:40 +08:00
2022-10-19 21:01:35 +08:00
2022-11-03 15:11:40 +08:00
2022-11-03 15:11:40 +08:00
2022-10-19 21:01:35 +08:00

Coordinator

Actions Status codecov

This repo contains the Scroll coordinator.

Build

make clean
make coordinator

db operation

  • init, show version, rollback, check status db
# DB_DSN: db data source name
export DB_DSN="postgres://admin:123456@localhost/test_db?sslmode=disable"
# DB_DRIVER: db driver name
export DB_DRIVER="postgres"

# TEST_DB_DRIVER, TEST_DB_DSN: It is required when executing db test cases
export TEST_DB_DRIVER="postgres"
export TEST_DB_DSN="postgres://admin:123456@localhost/test_db?sslmode=disable" 

Start

  • use default ports and config.json
./build/bin/coordinator --http
  • use specified ports and config.json
./build/bin/coordinator --config ./config.json --http --http.addr localhost --http.port 8390