Server process scheduling method, system and device based on node.js

A technology of server process and scheduling method, which is applied in the field of node.js-based server process scheduling method and system, can solve problems such as deficiencies, unstable software performance, etc., achieve low cost, strengthen network data processing capabilities, improve flexibility and The effect of usability

Active Publication Date: 2020-08-14
明度智云(浙江)科技有限公司
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, the current electronic batch recording software has a background processing module to process each workflow instance generated in the software business. The background module needs to accept business instructions from the front desk, and generate, manage, operate, or close a process according to business requirements. However, when the demand for front-end business is large, the computing performance of the single-instance back-end module will not meet the requirements, resulting in software instability and insufficient performance.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Server process scheduling method, system and device based on node.js
  • Server process scheduling method, system and device based on node.js
  • Server process scheduling method, system and device based on node.js

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] attached figure 1 It is a schematic diagram of the steps of the node.js-based server process scheduling method disclosed in this embodiment. This method can be used to solve software instability and performance problems caused by single-instance background processing modules in software projects. By providing a general and A less costly solution, allowing the backend module to expand freely according to needs. This method can be widely used in various software, such as electronic batch recording software. The electronic batch software is used to solve the management and control specifications and records of various processes in the pharmaceutical production environment, manage the pharmaceutical production with electronic computers, and reduce errors caused by human factors, and accidents caused by mistakes in the production process. The software has a background processing module, which is used to process each workflow instance generated in the software business. The ...

Embodiment 2

[0049] attached figure 2 It is a schematic flowchart of a node.js-based server process scheduling method disclosed in another embodiment, in which the scheduling process is developed and implemented by node.js, and the business process is developed and implemented by C++. Utilize the cross-platform characteristics of node's native module, and combine it with C++ module to achieve the purpose of improving performance and fast scheduling. Specifically, the logic of the business process can be implemented with C++ code first, and then compiled into a dynamic link library file with a compiler. When the node scheduling process is running, it first calls the uv_dlopen() method to open the dynamic link library, and then calls the uv_dlsym() method to find The method address defined by the NODE_MODULE macro in the dynamic link library is mapped to the node_module_struct structure, and then the imported exports object is run as an actual parameter, and the method defined in C++ is mou...

Embodiment 3

[0069] attached image 3 Another node.js-based server process scheduling method disclosed in the embodiment may specifically include the following steps:

[0070] Step S301, the scheduling process obtains the front-end business request, and selects and allocates the business request to the mounted first logical process according to the preset allocation strategy for the mounted multiple logical processes, wherein the scheduling process is Node .js process. Wherein the service request is allocated to the mounted first logic process according to a preset random allocation policy or a minimum allocation policy. Specifically, the scheduling process is developed and implemented by node.js, and the business process is developed and implemented by C++. Utilize the cross-platform characteristics of node's native module, and combine it with C++ module to achieve the purpose of improving performance and fast scheduling. Specifically, the logic of the business process can be implement...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a server process scheduling method based on node.js. The method comprises the steps that a scheduling process obtains a front-end service request and selectively allocates theservice request to a mounted first logic process according to a preset allocation strategy for a plurality of mounted logic processes, and the scheduling process is a Node.js process; the first logicprocess creates a service instance according to the received service request, and inputs the service instance into a plurality of threads created for the service instance for execution; and when the scheduling process monitors that abnormal offline occurs in execution of the first logic process, the second logic process is restarted to load unfinished information of the first logic process. Each service is reasonably distributed to a plurality of mounted logic processes, so that the load balance of the logic processes for processing the services is achieved, the network data processing capability is effectively enhanced, and the flexibility and the availability of the network are improved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a node.js-based server process scheduling method and system. Background technique [0002] Node.js is a JavaScript operating environment based on the Chrome V8 engine. It does not support multi-threading itself, but in order to make full use of the Multi-core of the server, it must use multi-processes. Then how to balance the load between processes will be A key point. For example, the current electronic batch recording software has a background processing module to process each workflow instance generated in the software business. The background module needs to accept business instructions from the front desk, and generate, manage, operate, or close a process according to business requirements. However, when the demand for front-end business is large, the computing performance of the single-instance back-end module will not meet the requirements, resulting in software...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/50
CPCG06F9/5038G06F9/505
Inventor 方禺王兴华薛立俊陈达健
Owner 明度智云(浙江)科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products