Add instructions on how to reset master/slave.

This commit is contained in:
FiveMovesAhead 2024-12-08 05:06:41 +00:00
parent 4e3a5557b5
commit f7558ff6b8

View File

@ -15,7 +15,7 @@ export UI_PORT=80
export DB_PORT=5432
export MASTER_PORT=5115
docker-compose up
docker-compose up --build
```
See last section on how to find your player_id & api_key.
@ -31,6 +31,12 @@ See last section on how to find your player_id & api_key.
* There are 4 services: `db`, `master`, `ui`, `nginx`
* To query the database, recommend to use [pgAdmin](https://www.pgadmin.org/)
## Hard Resetting Your Master
1. Kill the services: `docker-compose down`
2. Delete the database: `rm -rf db_data`
3. Start your master
# Connecting Slaves
1. Compile `tig-worker`:
@ -49,6 +55,12 @@ See last section on how to find your player_id & api_key.
* To use a different port, use the option `--port <MASTER_PORT>`
* To see all options, use `--help`
## Hard Resetting Your Slave
1. Stop your slave
2. Remove the output folder (defaults to results): `rm -rf results`
3. Start your slave
# Optimising your Config
1. `difficulty_sampler_config` allows you to configure the difficulty your benchmarker selects for each challenge: