Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ref(tokio): Limit blocking tokio pool to 150 threads (#3840)
We only have a single usage of `spawn_blocking` left in Relay, it's the fetching of project configs from Redis, these are limited by the amount of connections in the Redis pool anyways (much lower than 150). We've also seen the pool explode at runtime up to the maximum and never shrink again which causes a huge amount of wasted RAM (and CPU?). This PR limits the pool to 150 threads (which should be still wayyyy to much) and at the same time lowers the keep alive to encourge the runtime to give up threads more easily again.
- Loading branch information