You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Description
`tokio-console` can be nice to see what's going on in the tokio runtime.
This PR makes it so that all services pods will be spawned with tokio
console enabled.
It also fixes a few other playground issues
# Changes
For Tokio Console
- adjusts `Dockerfile` to add `--cfg tokio_unstable` to
`.cargo/config.toml` which builds the services with `tokio-console`
support
- adds necessary tokio console env variables to docker compose files
- `TOKIO_CONSOLE=true` to activate the feature in our processes
- `TOKIO_CONSOLE_RETENTION=600s` to limit the memory used for all the
metrics
- `TOKIO_CONSOLE_BIND=0.0.0.0:6669` to open port listening on all
devices (the default of `127.0.0.1` can not be reached from outside
docker)
- adds the necessary port forwards (while avoiding conflicts)
- moved the log about the tokio configuration message until after the
subscriber gets initialized - otherwise it doesn't actually get logged 😅
- added `tokio-console` instructions in the readme
Other stuff
- convert `as` to `AS` to avoid docker complaining about inconsistent
capitalization
- removed caching from `yarn` build step of frontend and explorer
because having multiple builds use the same yarn cache regularly caused
errors in my builds. Since we usually don't rebuild the frontends not
having the cache here doesn't slow anything down AFAICS
## How to test
1. Install [tokio-console](https://github.com/tokio-rs/console)
2. start playground
3. run `tokio-console` (this connects to the default port which I
assigned to the orderbook).
Other pods can be accessed with `tokio-console http://localhost:<PORT>`
The port mappings are as follows:
orderbook: 6669
autopilot: 6670
driver: 6671
baseline: 6672
<img width="962" height="498" alt="Screenshot 2025-10-10 at 10 06 11"
src="https://github.com/user-attachments/assets/31e93560-004b-42d4-88b7-3639a068ce5b"
/>
**NOTE**: Currently only **FORK** mode is supported.
120
120
121
+
Some services support to be inspected with [tokio-console](https://github.com/tokio-rs/console). For that simply install `tokio-console` and run `tokio-console http://localhost:<PORT>`. The relevant port numbers can be found in the table above.
0 commit comments