sozu-proxy / sozu

Sōzu HTTP reverse proxy, configurable at runtime, fast and safe, built in Rust. It is awesome!
https://www.sozu.io/
GNU Affero General Public License v3.0
3.01k stars 187 forks source link

Fork of the main process take too much time #1038

Closed FlorentinDUBOIS closed 8 months ago

FlorentinDUBOIS commented 10 months ago

Hello,

In production, we saw that the main process use serde_json::to_writer to send its configuration to the new worker which internally use a write syscall which use as delimiter the comma character. This too slow as it perform mostly syscall of 64B to transfer in our use case a state of more than 200MB.

Keksoj commented 8 months ago

this will be greatly improved by #1000 , which itself needs #1060 to be completed first.

Keksoj commented 8 months ago

Since #1039 greatly improved performance on forking the main process (by reducing syscalls), and since further gain in performance are inevitable due to merging the aforementionned #1000 and #1060, we can safely close this issue.