CPC H04L 67/1095 (2013.01) [G06F 9/44 (2013.01); G06F 9/44505 (2013.01); G06F 9/465 (2013.01); G06F 9/48 (2013.01); G06F 9/4806 (2013.01); G06F 9/4843 (2013.01); G06F 9/50 (2013.01); G06F 9/5005 (2013.01); G06F 11/07 (2013.01); G06F 11/0709 (2013.01); G06F 11/14 (2013.01); G06F 8/71 (2013.01); H04L 41/5054 (2013.01)] | 18 Claims |
1. A method for service lifecycle management, the method comprising:
obtaining, at a first host of one or more hosts in a distributed computing environment, service-host binding information from a replica of a distributed configuration store, wherein the replica of the distributed configuration store represents a local copy of the service-host binding information;
determining, at the first host, one or more services to watch based on the service-host binding information, a service of the one or more services being a single instance of a software product or software application installed on at least the first host or one of the one or more hosts in a distributed computing environment;
setting a watch on the one or more services to watch;
based on the watch, receiving a notification that a target state of a particular service of the one or more services to watch is modified, comprising updating target state information in the replica of the distributed configuration store using a consensus protocol that allows hosts to agree on an ordering for changes in the distributed configuration store;
wherein the updated target state of the particular service represents a desired operational state for the particular service;
determining, at the first host, a current state of the particular service of the one or more services to watch, wherein the current state represents an operational state for the particular service, and wherein the particular service is hosted at the first host;
determining whether the current state of the particular service is inconsistent with the updated target state of the particular service of the one or more services to watch;
in response to determining that the current state of the particular service is inconsistent with the updated target state of the particular service, the first host taking a corrective action to modify the particular service, which causes the current state of the particular service to be consistent with the updated target state of the particular service.
|