Master-slave architecture server, service processing method thereof and service processing system thereof

A server, master-slave technology, applied in the computer field, can solve the problems of inability to fine-tune, reduce server performance, load unbalanced inter-process communication, etc., to avoid the phenomenon of shocking groups and improve business processing efficiency.
CN105337755AActive Publication Date: 2016-02-17TAOBAO CHINA SOFTWARE

Patent Information

Authority / Receiving Office
CN Β· China
Current Assignee / Owner
TAOBAO CHINA SOFTWARE
Publication Date
2016-02-17

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses a master-slave architecture server, a service processing method thereof and a service processing system thereof. The service processing method of the master-slave architecture server comprises the steps of analyzing and uploading a configuration file by a parent process of the master-slave architecture server, wherein the configuration file includes multiple ports and a process serial number which is in one-to-one correspondence with each port; distributing different process serial numbers for established sub-processes by the parent process; inheriting corresponding resources from the parent process based on the process serial number by each sub-process, wherein the resources include ports; and, by the sub-processes, monitoring corresponding ports to receive a service request from a client, processing the service request and then returning a service response to the client. According to the embodiment of the invention, as different sub-processes respectively monitor reading-writing events of different ports, the service request of one port can be completely processed by one sub-process, the sub-processes are completely independent and no longer compete with each other for the service request, and a thundering-herd phenomenon is accordingly avoided.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The present application relates to the field of computer technology, and in particular to a master-slave architecture server, a method for processing business, and a system for processing business. Background technique

[0002] Currently, many servers have a multi-core central processing unit (CPU) and support a Symmetric Multi-Processing (Symmetric Multi-Processing, SMP) architecture. In order to make full use of CPU resources, many high-performance servers adopt a master-slave architecture. The schematic diagram of the master-slave architecture is shown in figure 1 As shown, the parent process first parses and loads the configuration file, creates a socket and binds the listening port, and then creates multiple child processes, each of which inherits the resources of the parent process. The number of sub-processes is the same as the number of cores of the CPU. In order to prevent sub-processes from migrating between CPUs, sub-processes can also be b...

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