Cluster-based Node.js multi-process management method and system
The invention discloses a cluster-based Node.js multi-process management method and system. The system comprises: a process starting module, wherein the process starting module is used for starting, initializing, data loading and application service starting of a master host process and each worker...
Saved in:
Main Authors | , , , |
---|---|
Format | Patent |
Language | Chinese English |
Published |
28.01.2022
|
Subjects | |
Online Access | Get full text |
Cover
Loading…
Summary: | The invention discloses a cluster-based Node.js multi-process management method and system. The system comprises: a process starting module, wherein the process starting module is used for starting, initializing, data loading and application service starting of a master host process and each worker sub-process; a heartbeat detection module, which is used for starting a timed task by the master host process after starting is completed, periodically sending heartbeat detection to each worker sub-process according to a configured time interval, closing a dead worker sub-process and restarting a new worker sub-process; a state query interface, which is used for externally providing a process state query interface; and a message interface function, wherein the message interface function is used for externally providing a message publishing interface function so as to send messages to all the worker sub-processes, and meanwhile, the worker sub-processes externally provide a message subscription function so as to re |
---|---|
Bibliography: | Application Number: CN202111233313 |