Autonomous self-healing stateless microservice nodes
AssigneeInternational Business Machines Corporation
InventorMichael Treadway
Life of this patent
Estimating the term…
Abstract
A computer-implemented method includes: randomly generating, by a process running on a computer device, a reset time for the process; broadcasting a message to other processes in a cluster, the message including the reset time; entering a running state; receiving another message from one of the processes, the other message including another reset time; comparing the other reset time to the reset time; and in response to the comparing, the process performs one of: continuing in the running state based on the other reset time being different than the reset time; and randomly generating a new reset time for the process based on the other reset time coinciding with the reset time.
Claims20
A method, comprising:
- randomly generating, by a process running on a computer device, a first reset time for the process;
- broadcasting, by the process, a first message to other processes in a cluster, the first message including the first reset time;
- entering, by the process, a running state;
- receiving, by the process, a second message from one of the other processes, the second message including a second reset time;
- comparing, by the process, the second reset time to the first reset time;
- and
- in response to the comparing, the process performs one of:
- continuing in the running state based on the second reset time being different than the first reset time;
- and
- randomly generating a new reset time for the process based on the second reset time coinciding with the first reset time.
A computer program product, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computer device to cause a process running on the computer device to:
- randomly generate a first reset time for the process;
- broadcast a first message to other processes in a cluster, the first message including the first reset time;
- enter a running state;
- receive a second message from one of the other processes, the second message including a second reset time;
- compare the second reset time to the first reset time;
- and
- in response to the comparing, causing the computer device to one of:
- continue in the running state based on the second reset time being different than the first reset time;
- and
- randomly generate a new reset time for the process based on the second reset time coinciding with the first reset time.
A system comprising:
- a processor, a computer readable memory, and a computer readable storage medium;
- program instructions to randomly generate a first reset time for a process;
- program instructions to broadcast a first message to other processes in a cluster, the first message including the first reset time;
- program instructions to enter a running state;
- program instructions to receive a second message from one of the other processes, the second message including a second reset time;
- program instructions to compare the second reset time to the first reset time;
- and
- program instructions to, in response to the comparing, cause the process to one of:
- continue in the running state based on the second reset time being different than the first reset time;
- randomly generate a new reset time for the process based on the second reset time coinciding with the first reset time;
- wherein the program instructions are stored on the computer readable storage medium for execution by the processor via the computer readable memory.
Dependencies are inferred from the claim text.