Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,34 @@
3. Execute the smoke tests:

```console
cargo run --bin udp_tracker_client announce 144.126.245.19:6969 9c38422213e30bff212b30c360d26f9a02136422
# Clone Torrust Tracker
[email protected]:torrust/torrust-tracker.git
cd torrust-tracker
```

Execute the following commands to run the tracker client and checker.

Simulate a torrent announce to the tracker using UDP:

```console
cargo run -p torrust-tracker-client --bin udp_tracker_client announce udp://tracker.torrust-demo.com:6969/announce 9c38422213e30bff212b30c360d26f9a02136422 | jq
```

cargo run --bin http_tracker_client announce 144.126.245.19:6969 9c38422213e30bff212b30c360d26f9a02136422
Simulate a torrent scrape to the tracker using HTTP:

```console
cargo run -p torrust-tracker-client --bin http_tracker_client announce https://tracker.torrust-demo.com 9c38422213e30bff212b30c360d26f9a02136422 | jq
```

Make a request to the health check endpoint:

```console
TORRUST_CHECKER_CONFIG='{
"udp_trackers": ["144.126.245.19:6969"],
"udp_trackers": ["udp://tracker.torrust-demo.com:6969/announce"],
"http_trackers": ["https://tracker.torrust-demo.com"],
"health_checks": ["https://tracker.torrust-demo.com/api/health_check"]
}' cargo run --bin tracker_checker
}' cargo run -p torrust-tracker-client --bin tracker_checker

```

4. Check the logs of the tracker container to see if everything is working:
Expand Down