diff options
author | Clay Gerrard <clay.gerrard@gmail.com> | 2022-05-03 14:59:17 -0500 |
---|---|---|
committer | Clay Gerrard <clay.gerrard@gmail.com> | 2022-06-02 16:31:29 -0500 |
commit | 12bc79bf01e7619e4dc6ad549566702a289af62b (patch) | |
tree | 26a641cfb0968d25afa39e74df61a03afedfc0e8 /etc | |
parent | 0b1cc8b0c4c7480549770596aacb439158ba8060 (diff) | |
download | swift-12bc79bf01e7619e4dc6ad549566702a289af62b.tar.gz |
Add ring_ip option to object services
This will be used when finding their own devices in rings, defaulting to
the bind_ip.
Notably, this allows services to be containerized while servers_per_port
is enabled:
* For the object-server, the ring_ip should be set to the host ip and
will be used to discover which ports need binding. Sockets will still
be bound to the bind_ip (likely 0.0.0.0), with the assumption that the
host will publish ports 1:1.
* For the replicator and reconstructor, the ring_ip will be used to
discover which devices should be replicated. While bind_ip could
previously be used for this, it would have required a separate config
from the object-server.
Also rename object deamon's bind_ip attribute to ring_ip so that it's
more obvious wherever we're using the IP for ring lookups instead of
socket binding.
Co-Authored-By: Tim Burke <tim.burke@gmail.com>
Change-Id: I1c9bb8086994f7930acd8cda8f56e766938c2218
Diffstat (limited to 'etc')
-rw-r--r-- | etc/object-server.conf-sample | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/etc/object-server.conf-sample b/etc/object-server.conf-sample index e7466bba8..2c93e23fd 100644 --- a/etc/object-server.conf-sample +++ b/etc/object-server.conf-sample @@ -22,6 +22,12 @@ bind_port = 6200 # feature. # servers_per_port = 0 # +# If running in a container, servers_per_port may not be able to use the +# bind_ip to lookup the ports in the ring. You may instead override the port +# lookup in the ring using the ring_ip. Any devices/ports associted with the +# ring_ip will be used when listening on the configured bind_ip address. +# ring_ip = <bind_ip> +# # Maximum concurrent requests per worker # max_clients = 1024 # |