Registry Operations¶
Scripts¶
In src/support/registries/deploy/scripts:
| Script | Purpose |
|---|---|
build.sh |
Build relay-go and registries |
up.sh |
Build and start |
ctl.sh |
Run registryctl on the registry network |
bridge.sh |
Start the distribution bridge |
logs.sh |
Follow logs |
down.sh |
Stop. Keeps data |
purge.sh --yes |
Delete all keys and logs |
Compose settings¶
RELAY0_PORT to RELAY2_PORT, INDEXER0_PORT to INDEXER2_PORT and WATCHDOG_PORT change local ports. RELAYS, EPOCH_SECONDS (300), COMMITTEE_ALLOW, GRACE_SECONDS, AUDIT_SECONDS and ALLOW_PRIVATE (true) are passed to the services.
What to back up¶
| Data | Why |
|---|---|
| Author key and state file | Identity of the registry |
| Indexer key | Readers and scores refer to it |
| Watchdog key | Readers pin it |
Databases of relays, indexers and watchdogs can be rebuilt from other relays. An indexer database also holds its answer counter and the roots it signed. Restoring an old copy could make the indexer repeat a sequence number, which looks like equivocation. If the database is lost, start the indexer with a new key.
Exposing services¶
Publish relays and indexers behind TLS, and set RELAY_URL and PUBLIC_URL to their public addresses. Set ALLOW_PRIVATE=false for services that contact addresses announced by others.
Troubleshooting¶
| Symptom | Cause |
|---|---|
a newer manifest was published elsewhere |
The state file is outdated. Check that the newer version is yours, then remove the file and use recover |
this registry already exists; restore its state file |
Publishing without a state file. Use recover |
the state file already exists |
recover does not overwrite |
no relay answered |
Relay addresses are wrong or unreachable |
Every read has "fallback": true |
Fewer indexers than -quorum answer, or they are not trusted |
| No checkpoints | EPOCH_SECONDS is 0, or the committee does not reach a quorum |