You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Deis's scheduler abstraction, we run a "sidecar" systemd unit which
publishes the running host and port of the application to etcd for
service discovery.
The issues with this sidecar container are as follows:
- it must live on the same host as the container
- it must wait for the container to come up before publishing
- it relies on using the docker client directly
The last point is crucial. This means that we are effectively
monitoring the docker client for container uptime, which is not the
same as monitoring the container directly.
This has been refactored into a micro-service image called
deis/publisher. Publisher listens directly to a docker socket
bind-mounted into the container and listens to the docker events API
for running containers. Running containers that follow the same format
as our current naming scheme (e.g. hardy-woodsman_v2.web.1) are
published to etcd for service discovery. This allows us to remove the
hard dependency on running a sidecar container to publish the app
container to etcd. Instead, one container per host publishes all
apps running on that host.
MIGRATING: to migrate to this change from existing hosts, you can run
the following:
><> # rsync publisher/systemd/deis-publisher.service to every node
><> for i in deis-1.example.com deis-2.example.com; do ssh core@$i -c "sudo systemctl enable /home/core/deis-publisher.service && sudo systemctl start /home/core/deis-publisher"
Then, you'll want to remove each announce sidecar attached to the applications:
><> fleetctl destroy <appname>-_<version>.<proctype>.<conatiner ID>-announce
0 commit comments