Upgrade CPU capacity of bridge
The snowflake bridge is currently using most of its 4 CPUs. Most of the use is by snowflake-server. This was noticed by @meskio at #40060 (comment 2767868).
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1822 debian-+ 20 0 4020400 2.0g 8192 R 250.7 26.4 156:08.20 snowflake-server
1821 debian-+ 20 0 831256 521804 106116 R 82.7 6.4 53:23.49 tor
1779 snowfla+ 20 0 1305556 47036 9068 S 16.0 0.6 6:27.23 proxy-go
1788 snowfla+ 20 0 1231824 43688 8988 S 10.7 0.5 3:18.65 proxy-go
We should probably profile snowflake-server to find the hotspots to reduce its CPU usage (#40086 (closed)), but for now we can redeploy on hardware with more CPUs. We're still doing okay with memory.
We are currently using
- 8 GiB / 4 CPU cores (40.75 credits)
And our options for upgrading are
- 12 GiB / 6 CPU cores (60.75 credits)
- 16 GiB / 8 CPU cores (80.75 credits)
I would tend to push it to the max, seeing how user growth is going.
A previous bridge upgrade issue was #40051 (closed).
Edited by David Fifield