Crates.io | sozu |
lib.rs | sozu |
version | 1.0.5 |
source | src |
created_at | 2017-04-04 16:22:27.608713 |
updated_at | 2024-10-14 08:32:31.896806 |
description | sozu, a fast, reliable, hot reconfigurable HTTP reverse proxy |
homepage | https://sozu.io |
repository | https://github.com/sozu-proxy/sozu |
max_upload_size | |
id | 9599 |
size | 237,061 |
This project wraps the sozu_lib
library to make it scalable and dynamically
configured. Each single threaded event loop is started in a worker process that
receives configuration commands through anonymous unix sockets.
This executable requires a configuration file in the TOML format, that describes the worker types and numbers, along with global information. This file can describe clusters handled by the proxy, but it is more recommended to use the command unix socket, through which the proxy listens for orders or configuration changes. The path of that unix socket is set in the configuration file.
The proxy receives orders through a unix socket. The path to this unix socket can
be defined by the command_socket
option in the TOML configuration file.
The messages are sent as binary, using protobuf, separated by the 0 byte.
Their format is defined in ../command/command.proto
. Additionally, the
provides the necessary channels to communicate with
the command socket.