4 ms·
I'm interested to understand whether it's thread, process or singlethread event loop based. And maybe other architectural nuance that set relayd apart for examp
by wejick 3y ago
I'm interested to understand whether it's thread, process or singlethread event loop based. And maybe other architectural nuance that set relayd apart for example with nginx.
- mbivert 3y agoIn case no one familiar with the internals shows up, here are some pointers if you want to dig: the configuration man page[0] has a prefork option, and nothing thread-related: prefork number When using relays, run the specified number of processes to handle relayed connections. This increases the performance and prevents delays when connecting to a relay. relayd(8) runs 3 relay processes by default and every process will handle all configured relays. The source[1] seems to be quite clear; relayd(8)[2] describes the main notions ("entities": relay, protocol, etc.) involved in the configuration/source. [0]: https://man.openbsd.org/relayd.conf.5 https://man.openbsd.org/relayd.conf.5 [1]: http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/relayd/ http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/relayd... [2]: https://man.openbsd.org/relayd.8 https://man.openbsd.org/relayd.8