Concurrent code application in a stateful computing environment
AssigneeInternational Business Machines Corporation
InventorsSudhir Alluri, Abhishek Chakraborty, Venkateshwarlu Kachem, Suhas D. Mane, Sumesh K. Naduvalath, Nishant Ranjan, Stephen R. Valley
Life of this patent
Estimating the term…
Abstract
Embodiments herein relate to a master process being executed by a processor to control an upgrade to an application process. For instance, the master process initializes an environment for operating an application process and starting an execution of the application process within the environment. Further, the master process upgrades a code of the application process while the master process maintains the environment and the execution of the application process.
Claims10
A computer program product, the computer program product comprising a computer readable storage medium having program instructions for executing a master process embodied therewith, the program instructions executable by a processor to cause the master process to:
- initializing an environment for operating an application process;
- starting an execution of the application process within the environment;
- upgrading a code of the application process while the master process maintains network connectivity between the environment and the execution of the application process, wherein the network connectivity exists in a socket domain, wherein the master process opens one or more network sockets and keeps socket file descriptors on behalf of the application process, wherein the application process does not open the one or more network sockets, wherein the one or more network sockets comprises a control socket for exchanging control messages with the application process and a data socket for transmitting data;
- detecting, by the master process, a catastrophic error with the application process, wherein the detection is performed by polling variables to determine the catastrophic error;
- and
- restarting, by the master process, the application process in response to the detection of the catastrophic error while maintaining socket connection to the application process.
A system comprising:
- a memory having computer readable instructions for executing a master process;
- and
- a processor for executing the computer readable instructions, the computer readable instructions including:
- initializing, by the master process, an environment for operating an application process;
- starting, by the master process, an execution of the application process within the environment;
- and
- upgrading, by the master process, a code of the application process while the master process maintains network connectivity between the environment and the execution of the application process, wherein the network connectivity exists in a socket domain, wherein the master process opens one or more network sockets and keeps socket file descriptors on behalf of the application process, wherein the application process does not open the one or more network sockets, wherein the one or more network sockets comprises a control socket for exchanging control messages with the application process and a data socket for transmitting data;
- detecting, by the master process, a catastrophic error with the application process, wherein the detection is performed by polling variables to determine the catastrophic error;
- and
- restarting, by the master process, the application process in response to the detection of the catastrophic error while maintaining socket connection to the application process.
Dependencies are inferred from the claim text.