Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

locksmithctl: add LOCKSMITHD_REBOOT_DELAY environment variable #104

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

iderdik
Copy link

@iderdik iderdik commented May 3, 2016

Enables applications to perform actions during the delay between the MachineID appearing in the semaphore holders field and the actual reboot. Use-cases include: updating of proxy servers, external notifications.

@iderdik iderdik changed the title daemon: add LOCKSMITHD_REBOOT_DELAY environment variable locksmithctl: add LOCKSMITHD_REBOOT_DELAY environment variable May 3, 2016
@@ -138,6 +138,18 @@ function.

[time.ParseDuration]: http://godoc.org/time#ParseDuration


## Reboot delay
Some systems might want to perform actinos before a reboot occurs. These systems can watch the [semaphore](#semaphore) in `etcd` for changes to the `holders` and then do any tasks (e.g. pulling machines out of worker pools, load-balancers) necessary. Using `LOCKSMITHD_REBOOT_DELAY` environment variable grants the system time to perform these actions before the machine reboots.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo: actinos -> actions

@polvi
Copy link

polvi commented May 18, 2016

@iderdik we put up some draft docs on an alternative way to do this. Would love your help testing it.

coreos/docs#825

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants