storj/cmd/storagenode
Clement Sam 87ea2a4794 cmd/storagenode: make supervisor HTTP Server configurable
The current supervisord condifguration sets up the HTTP server
to listen on a tcp socket which is private i.e. available only
on localhost. This poses a regression where multiple containers
cannot be run if the host network interface is used when docker
container is run with `--network host` option.

This change adds a new env variable `SUPERVISOR_SERVER`, with
potential values `unix | private_port | public_port`, where
`unix` is set as the default value.

By default, the HTTP server is now set to listen on a UNIX
domain socket.
The file path is set to `/etc/supervisor/supervisor.sock`
instead of the /tmp directory since some systems
periodically delete older files in /tmp. If the socket file is
deleted, supervisorctl will be unable to connect to supervisord.

When SUPERVISOR_SERVER is set to `public_port` or `private_port`,
the HTTP server is set to listen on a TCP socket.

Resolves https://github.com/storj/storj/issues/4661

Change-Id: I224836dcae0293bcfe49874f2748be7723944687
2022-05-16 20:06:24 +00:00
..
docker cmd/storagenode: make supervisor HTTP Server configurable 2022-05-16 20:06:24 +00:00
docker-base cmd/storagenode: make supervisor HTTP Server configurable 2022-05-16 20:06:24 +00:00
dashboard.go storagenode/internalpb: move inspector.proto 2020-10-30 14:51:26 +02:00
deprecated.go storagenode/{monitor,pieces}, storage/filestore: add loop to check storage directory writability 2020-08-31 21:20:49 +00:00
Dockerfile cmd/storagenode: make supervisor HTTP Server configurable 2022-05-16 20:06:24 +00:00
Dockerfile.base cmd/storagenode: use Debian as base image instead of alpine 2022-03-25 08:19:20 +00:00
gracefulexit_test.go cmd/storagenode: add check if satellites available to gracefulexit 2020-06-10 13:38:36 +00:00
gracefulexit.go storagenode/internalpb: move gracefulexit.proto 2020-10-30 15:24:56 +02:00
main_test.go cmd/storagenode: enable migration of configs of different types (#3189) 2019-10-08 14:26:53 -04:00
main.go cmd/{storagenode,storagenode-updater}: add Process name to logs 2022-04-12 16:49:56 +00:00
service_nonwindows.go ci: Golangci lint v1.43.0 changes (#4307) 2021-12-09 20:49:48 +01:00
service_windows.go all: fix linting issues 2022-03-21 15:26:42 +00:00
storagenode.yaml all: fix comments about grpc 2020-05-11 13:05:34 +03:00