在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):coreos/locksmith开源软件地址(OpenSource Url):https://github.com/coreos/locksmith开源编程语言(OpenSource Language):Go 97.9%开源软件介绍(OpenSource Introduction):locksmithlocksmith is a reboot manager for the CoreOS update engine which is able to use
etcd to ensure that only a subset of a cluster of machines are rebooting
at any given time. ConfigurationThere are three different strategies that
These strategies will either be followed immediately after an update, or during the next available reboot window if one has been configured. These strategies can be configured via
The reboot strategy can also be configured through a Container Linux Config. The default strategy is to follow the Usage
Run All command-line options can also be specified using environment variables with
a Connecting to multiple endpointsMultiple endpoints can be specified by passing the
Specifying multiple endpoints using an environment variable is supported by passing a comma-delimited list, e.g.:
Listing the Holders
Unlock HoldersIn some cases a machine may go away permanently or semi-permanently while holding a reboot lock. A system administrator can clear the lock of a specific machine using the unlock command:
Maximum SemaphoreBy default the reboot lock only allows a single holder. However, a user may want more than a single machine to be upgrading at a time. This can be done by increasing the semaphore count.
Groups
The purpose of groups is to allow faster updating of certain sets of machines
while maintaining availability of certain services. For example, in a cluster
of 5 CoreOS machines with all machines in the default group, if you have 2 load
balancers and run Configuring groupsTo place machines in a group other than the default, To control the semaphore of a group other than the default, you must invoke
Reboot windows
The reboot window is configured through two environment variables,
This would configure
This would configure Currently, the only supported values for the day of week are short day names,
e.g. Implementation detailsThe following section describes how locksmith works under the hood. Semaphorelocksmith uses a semaphore in etcd, located at the key
The semaphore is a JSON document, describing a simple semaphore, that clients swap to take the lock. When it is first created it will be initialized like so: {
"semaphore": 1,
"max": 1,
"holders": []
} For a client to take the lock, the document is swapped with this: {
"semaphore": 0,
"max": 1,
"holders": [
"69d27b356a94476da859461d3a3bc6fd"
]
} BugsPlease use the CoreOS issue tracker to report all bugs, issues, and feature requests. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论