For self-hosted phoenix instance. How do i scale it? How can add more workers and web_concurrency?
π‘Β Hint: Mention RunLLM in the thread for followups.
Hi Darshan, In line with what the bot here is saying, i think there are a couple ways to scale a self-hosted Phoenix instance.
Run multiple instances (containers/VMs) behind a load-balancer
Use a production database like PostgreSQL (not SQLite) and enable batch processing of data to improve throughput
In regards to web_concurrency, there isn't a direct setting in phoenix. but you can try and achieve it with the running more instances + giving each the sufficient capacity. π[private user] might be able able to give you more info
When PostgreSQL database is used, the phoenix instance itself can serve a large number of concurrent requests asynchronously because the requests are generally I/O bound. (Python doesnβt have workers or web_concurrency configuration.)
the railway deployment option works great
