CN112860432A - Process management method, device and server - Google Patents

Process management method, device and server Download PDF

Info

Publication number
CN112860432A
CN112860432A CN202110095647.7A CN202110095647A CN112860432A CN 112860432 A CN112860432 A CN 112860432A CN 202110095647 A CN202110095647 A CN 202110095647A CN 112860432 A CN112860432 A CN 112860432A
Authority
CN
China
Prior art keywords
multimedia data
data stream
request
processes
groups
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110095647.7A
Other languages
Chinese (zh)
Inventor
李尾冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202110095647.7A priority Critical patent/CN112860432A/en
Publication of CN112860432A publication Critical patent/CN112860432A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention provides a process management method, a process management device and a server. Wherein the method comprises the following steps: dividing the plurality of processes into a plurality of process groups, wherein each process group corresponds to at least one client, and different process groups correspond to different clients; and each time a multimedia data stream request sent by a client is received, distributing the multimedia data request to a process in a process group corresponding to the client sending the multimedia data stream request for processing. The processes can be grouped, and the clients can be allocated to different process groups, so that multimedia data stream requests sent by a plurality of clients for the same multimedia data stream can be allocated to different processes for processing. The method makes full use of each process in the server to process the multimedia data stream requests, and can effectively improve the number of the multimedia data stream requests which can be processed by the server in parallel.

Description

Process management method, device and server
Technical Field
The invention relates to the technical field of cloud services, in particular to a process management method, a process management device and a server.
Background
The cloud server stores multimedia data streams, if a user wants to acquire the multimedia data streams through the client, the client can be controlled to send a multimedia data stream request to the server according to the desired multimedia data stream, the server acquires the multimedia data streams according to the multimedia data stream request after receiving the multimedia data stream request, and the acquired multimedia data streams are sent to the client.
The number of multimedia data stream requests that can be processed concurrently by the server is limited by physical resources, and when there are too many multimedia data stream requests received by the server, a new server needs to be erected to process the multimedia data stream requests together, and the erection of the new server will generate additional hardware cost and operation and maintenance cost.
Therefore, how to effectively increase the number of multimedia data stream requests that can be processed by the server in parallel becomes a technical problem to be solved urgently.
Disclosure of Invention
Embodiments of the present invention provide a process management method, an apparatus, and a server, so as to increase the number of multimedia data stream requests that can be processed by the server in parallel. The specific technical scheme is as follows:
in a first aspect of the embodiments of the present invention, there is provided a process management method, applied to a server, where the server runs a plurality of processes, the method including:
dividing the plurality of processes into a plurality of process groups, wherein each process group corresponds to at least one client, and different process groups correspond to different clients;
and each time a multimedia data stream request sent by a client is received, distributing the multimedia data request to a process in a process group corresponding to the client sending the multimedia data stream request for processing.
In a possible embodiment, before the allocating the multimedia data request to a process in a process group corresponding to a client sending the multimedia data stream request for processing, the method further includes:
judging whether the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream or not;
the allocating the multimedia data request to a process in a process group corresponding to a client sending the multimedia data stream request for processing includes:
and if the multimedia data stream requested by the multimedia data stream request is the hot multimedia data stream, distributing the multimedia data request to a process in a process group corresponding to the client sending the multimedia data stream request for processing.
In one possible embodiment, after the determining whether the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream, the method further comprises:
and if the multimedia data stream requested by the multimedia data stream request is not the hot multimedia data stream, distributing the multimedia data request to a process corresponding to the multimedia data stream requested by the multimedia data stream request according to a preset corresponding relation between the multimedia data stream and the process for processing.
In one possible embodiment, before dividing the plurality of processes into a plurality of process groups, the method further comprises:
acquiring the number of process groups;
the dividing the plurality of processes into a plurality of process groups comprises:
dividing the plurality of processes into the number of process groups.
In a possible embodiment, the obtaining the number of process groups includes:
determining the number of process groups according to the heat degree of the hot multimedia data stream, wherein the number of the process groups is positively correlated with the heat degree.
In a second aspect of the embodiments of the present invention, there is provided a process management apparatus applied to a server, where the server runs a plurality of processes, the apparatus including:
the system comprises a process grouping module, a process grouping module and a process grouping module, wherein the process grouping module is used for dividing a plurality of processes into a plurality of process groups, each process group corresponds to at least one client, and different process groups correspond to different clients;
and the request distribution module is used for distributing the multimedia data request to the processes in the process group corresponding to the client sending the multimedia data stream request for processing each time the multimedia data stream request sent by the client is received.
In a possible embodiment, the request allocating module is further configured to determine whether the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream;
the request allocation module is specifically configured to allocate, if the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream, the multimedia data request to a process in a process group corresponding to a client that sends the multimedia data stream request for processing.
In a possible embodiment, the request allocating module is further configured to, if the multimedia data stream requested by the multimedia data stream request is not a hot multimedia data stream, allocate the multimedia data request to a process corresponding to the multimedia data stream requested by the multimedia data stream request according to a preset correspondence between the multimedia data stream and the process, and process the multimedia data request.
In a possible embodiment, the apparatus further includes a grouping configuration module, configured to obtain a number of process groups;
the process grouping module is specifically configured to divide the plurality of processes into the process groups of the number of process groups.
In a possible embodiment, the grouping configuration module is specifically configured to determine the number of process groups according to a heat degree of a hot multimedia data stream, where the number of process groups is positively correlated with the heat degree.
In a third aspect of embodiments of the present invention, there is provided a server, including:
a computer-readable storage medium for storing a computer program;
a processor for implementing the method steps of any of the above first aspects when executing the program stored on the computer readable storage medium.
In a fourth aspect of embodiments of the present invention, there is provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, performs the method steps of any one of the first aspects.
The embodiment of the invention has the following beneficial effects:
the process management method, the device and the server provided by the embodiment of the invention can distribute the client to different process groups by grouping the processes, so that the multimedia data stream requests sent by a plurality of clients for the same multimedia data stream can be distributed to different processes for processing. The method makes full use of each process in the server to process the multimedia data stream requests, and can effectively improve the number of the multimedia data stream requests which can be processed by the server in parallel.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a process management method according to an embodiment of the present invention;
fig. 2 is another schematic flow chart of a process management method according to an embodiment of the present invention;
fig. 3 is another schematic flow chart of a process management method according to an embodiment of the present invention;
FIG. 4a is a schematic structural diagram of a process management device according to an embodiment of the present invention;
fig. 4b is a schematic structural diagram of a process management apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to more clearly describe the process management method provided by the embodiment of the present invention, an exemplary application scenario of the process management method provided by the embodiment of the present invention will be described below. It should be understood that the following example is only one possible application scenario of the process management method provided in the embodiment of the present invention, and in other possible embodiments, the process management method provided in the embodiment of the present invention may also be applied in other possible application scenarios, and the following example does not limit this.
When a user needs to watch the live broadcast on the client, the client can be controlled to send a multimedia data stream request to the server, wherein the multimedia data stream request is used for requesting a multimedia data stream corresponding to the live broadcast which the user needs to watch. The multimedia data stream request may carry an identifier of the requested multimedia data stream, which is hereinafter referred to as a multimedia data stream identifier.
After receiving the multimedia data stream request, the server may perform hash operation on the multimedia data stream identifier carried by the multimedia data stream to obtain a hash value. And according to the corresponding relation between the preset hash value and the process, returning the multimedia data stream request to the source through the process corresponding to the hash value.
When there are multiple clients sending multimedia data stream requests for the same multimedia data stream, the multiple multimedia data stream requests will be handed back to the source by the same process because the multimedia data streams requested by the multiple multimedia data stream requests are the same. And limited by physical resources such as CPU, memory, etc., the maximum number of requests for a multimedia data stream that a process can load is limited.
However, for some reasons, there may be a large number of clients requesting the same multimedia data stream in the same time period, for example, a hit event may attract a large number of users to watch in the same time period, and then there are a large number of clients requesting the live multimedia data stream corresponding to the hit event in the same time period. If the number of clients requesting the same multimedia data stream in the same time period exceeds the maximum number of multimedia data stream requests that can be loaded by one process, a provider of the live broadcast service needs to establish a new server to return to the source together, so as to meet the requirement of a user for watching live broadcast. And the erection of a new server will result in the increase of hardware cost and operation and maintenance cost of the provider of the live broadcast service.
Based on this, an embodiment of the present invention provides a process management method, which is applied to a server in which a plurality of processes are run, and the method may be as shown in fig. 1, and includes:
s101, dividing a plurality of processes into a plurality of process groups.
S102, when receiving a multimedia data stream request sent by a client, distributing the multimedia data request to a process in a process group corresponding to the client sending the multimedia data stream request for processing.
With the adoption of the embodiment, the processes can be grouped, and the clients can be allocated to different process groups, so that the multimedia data stream requests sent by a plurality of clients for the same multimedia data stream can be allocated to different processes for processing. The method makes full use of each process in the server to process the multimedia data stream requests, and can effectively improve the number of the multimedia data stream requests which can be processed by the server in parallel.
Exemplarily, the maximum number of requests for a multimedia data stream that can be loaded per process is 100, and if the back source is performed in the manner in the foregoing example, a maximum of 100 clients are theoretically allowed to request the same multimedia data stream at the same time without installing a new server, and the same multimedia data stream is referred to as a target multimedia data stream for convenience of description hereinafter.
The process management method provided by the embodiment of the present invention manages the processes in the server, assuming that the processes of the server are divided into 10 process groups, and assuming that the multimedia data stream requests sent by different clients for the target multimedia data stream are uniformly distributed (actually, they may not be uniformly distributed) to the 10 process groups, because each process group has a process for processing the multimedia data stream requests sent for the target multimedia data stream, each process group can load 100 multimedia data stream requests sent for the target multimedia data stream, that is, theoretically, 1000 clients are allowed to request the target multimedia data stream at most in the same time period. Therefore, the number of multimedia data stream requests which can be processed by the server in parallel is obviously increased.
Wherein, in S101, each process group corresponds to at least one client, and different process groups correspond to different clients. The representation form of the correspondence between the process group and the client may be different according to different application scenarios, for example, the representation form may be represented in a function form, may also be represented in a relationship table form, and may also be represented in other forms, which is not limited in this embodiment.
For convenience of description, it is assumed that the correspondence is expressed in the form of a function, and it may be expressed as a function y ═ f (x), where x is a client and y is a process group. The representation form of the client and the process group can also be different according to different application scenarios, for example, in one possible embodiment, the client can be represented by the IP address of the client, and in another possible embodiment, the client can also be represented by the product serial number of the client. In one possible embodiment, the process group may be represented by a sequence number of the process group, and in another possible embodiment, the process group may also be represented by a name of the process group.
F (-) represents a function for mapping x into y, the value range of the function is all process groups, and the specific form of the function can be a hash function in different forms according to different application scenes. For example, assuming that the number of process groups is 10, in one possible embodiment, y ═ f (x) can be as follows:
y=xmod5
where xmod5 represents the remainder of x divided by 5.
In S102, the multimedia data stream in this document may refer to different multimedia data streams according to different application scenes, for example, the multimedia data stream in an application scene of live video may refer to a live video stream, the multimedia data stream in an application scene of video on demand may also refer to a video data stream of a video on demand requested by a user, and the multimedia data stream in an application scene of online music playing may also refer to an audio data stream, which is not limited in this embodiment.
Hereinafter, for convenience of description, a process group corresponding to a client that sends a multimedia data request is referred to as a target process group. In one possible embodiment, the multimedia data stream request may be preferentially assigned to a process in the target process group that is not in an idle state for processing, in consideration of reducing processes for processing the multimedia data stream request. And can preferentially distribute multimedia data stream requests requesting the same multimedia data stream to the same process.
For example, assuming that the target process group includes 3 processes, which are respectively denoted as process 1, process 2, and process 3, and the target process group corresponds to the client 1 and the client 2, and assuming that the process 1 is already used to source back a multimedia data stream request sent by the client 1 for a target multimedia data stream before executing S102, when a multimedia data stream request sent by the client 2 for the target multimedia data stream is received, the multimedia data stream request sent by the client 2 for the target multimedia data stream is also sourced back by the process 1.
The processing manner of the process for the multimedia data stream request may be different according to different application scenarios, for example, the process may determine whether the server locally stores the target data stream, if the server locally stores the target data stream, the process may end the processing of the multimedia data stream request because the server has already acquired the target data stream, and if the server locally does not store the target multimedia data stream, the process may return to the source to acquire the target multimedia data stream.
In another possible embodiment, for load balancing, the multimedia data stream request may be preferentially allocated to the lowest-load process in the target process group for processing, where the lowest-load process may refer to the process with the least number of multimedia data stream requests currently being processed.
Referring to fig. 2, fig. 2 is another schematic flow chart of a process management method according to an embodiment of the present invention, where the method may include:
s201, dividing a plurality of processes into a plurality of process groups.
The step is the same as the foregoing step S101, and reference may be made to the foregoing description related to S101, which is not described herein again.
S202, each time a multimedia data stream request sent by a client is received, determining whether the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream.
The criteria of the hot multimedia data stream may be set by the user according to actual conditions, for example, in a possible embodiment, the hot multimedia data stream may refer to a multimedia data stream with a heat degree greater than a preset heat degree threshold.
The heat of a multimedia data stream may be used to indicate the number of clients expected to request the multimedia data stream in the current time period, the heat of the multimedia data stream is theoretically higher when the number of clients expected to request the multimedia data stream in the current time period is larger, and the heat of the multimedia data stream is theoretically lower when the number of clients expected to request the multimedia data stream in the current time period is smaller.
S203, if the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream, distributing the multimedia data request to the process in the process group corresponding to the client sending the multimedia data stream request for processing.
If the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream, it can be considered that the number of clients requesting the multimedia data stream requested by the multimedia data stream is large, and at this time, the number of multimedia data stream requests that can be issued and processed by the server can be increased as much as possible to cope with the situation that many clients request the same multimedia data stream.
In a possible embodiment, if the multimedia data stream requested by the multimedia data stream request is not a hot multimedia data stream, the process corresponding to the target multimedia data stream requested by the multimedia data stream request may be determined according to a preset correspondence relationship between the multimedia data stream and the process, and the target process is used to return the multimedia data stream request to the source.
It can be understood that, if the multimedia data stream requested by the multimedia data stream request is not a hot multimedia data stream, the number of clients expected to request the multimedia data stream requested by the multimedia data stream request in the current time period may be considered to be small, that is, even if different multimedia data stream requests sent by different clients for the multimedia data stream requested by the multimedia data stream request are sourced back through the same process, the number of the multimedia data stream requests is considered to be within the maximum number of the multimedia data stream requests that can be loaded by the process. Therefore, at this time, it is not necessary to increase the number of multimedia data stream requests that the server can issue and process, but the multimedia data streams transmitted for the same multimedia data stream are returned to the source through the same process as much as possible, so as to reduce the number of processes run by the server.
As analyzed above, the larger the number of process groups divided theoretically, the more the number of multimedia data stream requests that the server can and issue processes increases. And the smaller the number of divided process groups, the smaller the number of processes that the server needs to run.
Different practical requirements may exist in different application scenarios, for example in some application scenarios the service provider may wish to increase as much as possible the number of multimedia data stream requests that the server is able to process in parallel, in other application scenarios the service provider may wish to reduce as much as possible the number of processes that the server needs to run. Therefore, if the number of divided process groups is a fixed value, it may not be applicable to different application scenarios.
Based on this, in a possible embodiment, as shown in fig. 3, fig. 3 shows another possible embodiment of the process management method provided by the embodiment of the present invention, which includes:
s301, acquiring the number of process groups.
The server may be obtained by calculation according to a preset rule, or may be sent to the server after being obtained by calculation according to a preset rule by other electronic devices except the server, or may be determined by relevant personnel according to actual experience or requirements and input to the server.
For example, in one possible embodiment, the number of process groups may be determined according to the popularity of the popular multimedia data stream, wherein the number of process groups is positively correlated with the popularity. It can be understood that if the popularity of a multimedia data stream is higher, it can be considered that the number of clients expected to request the same multimedia data stream in the current time period is larger, and at this time, the number of multimedia data stream requests that can be processed by the server should be increased more to meet the requirement of the user for acquiring the multimedia data stream. If the popularity of a hot multimedia data stream is lower, it can be considered that the number of clients expecting to request the same multimedia data stream in the current time period is smaller, and at this time, the number of multimedia data stream requests that the server can process in parallel should be increased less, so as to reduce the number of processes that the server needs to run as much as possible.
S302, dividing a plurality of processes into a plurality of process groups with the number of process groups.
The dividing mode may be to divide the process into the process groups with the number of process groups uniformly, or to divide the process into the process groups with the number of process groups non-uniformly. And all processes may be divided into process groups of the number of process groups, or some processes may be divided into process groups of the number of process groups, and the rest of the processes are not divided into any process group.
And S303, each time a multimedia data stream request sent by a client is received, distributing the multimedia data request to a process in a process group corresponding to the client sending the multimedia data stream request for processing.
This step is the same as S102, and reference may be made to the related description about S102, which is not repeated herein.
By selecting the embodiment, the number of the process groups can be flexibly changed according to requirements, so that the process management method provided by the embodiment of the invention can be suitable for different application scenes.
Referring to fig. 4a, fig. 4a is a schematic structural diagram of a process management apparatus according to an embodiment of the present invention, where the process management module is applied to a server, the server runs a plurality of processes, and the process management apparatus may include:
a process grouping module 401, configured to divide the plurality of processes into a plurality of process groups, where each process group corresponds to at least one client, and different process groups correspond to different clients;
a request allocating module 402, configured to, each time a multimedia data stream request sent by a client is received, allocate the multimedia data request to a process in a process group corresponding to the client sending the multimedia data stream request for processing.
In a possible embodiment, the request allocating module 402 is further configured to determine whether the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream;
the request allocating module 402 is specifically configured to allocate, if the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream, the multimedia data request to a process in a process group corresponding to a client that sends the multimedia data stream request for processing.
In a possible embodiment, the request allocating module 402 is further configured to, if the multimedia data stream requested by the multimedia data stream request is not a hot multimedia data stream, allocate the multimedia data request to a process corresponding to the multimedia data stream requested by sending the multimedia data stream request according to a preset correspondence between multimedia data streams and processes, and process the multimedia data request.
In a possible embodiment, as shown in fig. 4b, the apparatus further includes a grouping configuration module 403, configured to obtain the number of process groups;
the process grouping module 401 is specifically configured to divide the multiple processes into the process groups of the number of process groups.
In a possible embodiment, the grouping configuration module 403 is specifically configured to determine a number of process groups according to a heat degree of a hot multimedia data stream, where the number of process groups is positively correlated with the heat degree.
An embodiment of the present invention further provides a server, as shown in fig. 5, including:
a computer-readable storage medium 501 for storing a computer program;
the processor 502, when executing the program stored on the computer-readable storage medium 501, implements the following steps:
dividing the plurality of processes into a plurality of process groups, wherein each process group corresponds to at least one client, and different process groups correspond to different clients;
and each time a multimedia data stream request sent by a client is received, distributing the multimedia data request to a process in a process group corresponding to the client sending the multimedia data stream request for processing.
In a possible embodiment, before the allocating the multimedia data request to a process in a process group corresponding to the client sending the multimedia data stream request for processing, the processor 502 may be further configured to perform the following steps:
judging whether the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream or not;
the allocating the multimedia data request to a process in a process group corresponding to a client sending the multimedia data stream request for processing includes:
and if the multimedia data stream requested by the multimedia data stream request is the hot multimedia data stream, distributing the multimedia data request to a process in a process group corresponding to the client sending the multimedia data stream request for processing.
In one possible embodiment, after said determining whether the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream, the processor 502 may be further configured to perform the following steps:
and if the multimedia data stream requested by the multimedia data stream request is not the hot multimedia data stream, distributing the multimedia data request to a process corresponding to the multimedia data stream requested by the multimedia data stream request according to a preset corresponding relation between the multimedia data stream and the process for processing.
In a possible embodiment, before dividing the plurality of processes into a plurality of process groups, the processor 502 may be further configured to perform the following steps:
acquiring the number of process groups;
the dividing the plurality of processes into a plurality of process groups comprises:
dividing the plurality of processes into the number of process groups.
In a possible embodiment, the obtaining the number of process groups includes:
determining the number of process groups according to the heat degree of the hot multimedia data stream, wherein the number of the process groups is positively correlated with the heat degree.
The server provided by the embodiment of the invention can also comprise a communication bus, a communication interface and the like. The communication bus mentioned in the above server may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the server and other devices.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the process management methods described above.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the process management methods of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the server, the computer-readable storage medium, and the computer program product, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. A process management method applied to a server, the server running a plurality of processes, the method comprising:
dividing the plurality of processes into a plurality of process groups, wherein each process group corresponds to at least one client, and different process groups correspond to different clients;
and each time a multimedia data stream request sent by a client is received, distributing the multimedia data request to a process in a process group corresponding to the client sending the multimedia data stream request for processing.
2. The method of claim 1, wherein before the allocating the multimedia data request to a process in a process group corresponding to a client sending the multimedia data stream request, the method further comprises:
judging whether the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream or not;
the allocating the multimedia data request to a process in a process group corresponding to a client sending the multimedia data stream request for processing includes:
and if the multimedia data stream requested by the multimedia data stream request is the hot multimedia data stream, distributing the multimedia data request to a process in a process group corresponding to the client sending the multimedia data stream request for processing.
3. The method of claim 2, wherein after said determining whether the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream, the method further comprises:
and if the multimedia data stream requested by the multimedia data stream request is not the hot multimedia data stream, distributing the multimedia data request to a process corresponding to the multimedia data stream requested by the multimedia data stream request according to a preset corresponding relation between the multimedia data stream and the process for processing.
4. The method of claim 1, wherein prior to dividing the plurality of processes into a plurality of process groups, the method further comprises:
acquiring the number of process groups;
the dividing the plurality of processes into a plurality of process groups comprises:
dividing the plurality of processes into the number of process groups.
5. The method of claim 4, wherein obtaining the number of process groups comprises:
determining the number of process groups according to the heat degree of the hot multimedia data stream, wherein the number of the process groups is positively correlated with the heat degree.
6. A process management apparatus applied to a server running a plurality of processes, the apparatus comprising:
the system comprises a process grouping module, a process grouping module and a process grouping module, wherein the process grouping module is used for dividing a plurality of processes into a plurality of process groups, each process group corresponds to at least one client, and different process groups correspond to different clients;
and the request distribution module is used for distributing the multimedia data request to the processes in the process group corresponding to the client sending the multimedia data stream request for processing each time the multimedia data stream request sent by the client is received.
7. The apparatus of claim 6, wherein the request distribution module is further configured to determine whether the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream;
the request allocation module is specifically configured to allocate, if the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream, the multimedia data request to a process in a process group corresponding to a client that sends the multimedia data stream request for processing.
8. The apparatus of claim 7, wherein the request allocating module is further configured to allocate the multimedia data request to a process corresponding to the multimedia data stream requested by the multimedia data stream request according to a preset correspondence between the multimedia data stream and the process for processing if the multimedia data stream requested by the multimedia data stream request is not a hot multimedia data stream.
9. The apparatus of claim 6, further comprising a grouping configuration module configured to obtain a number of process groups;
the process grouping module is specifically configured to divide the plurality of processes into the process groups of the number of process groups.
10. The apparatus according to claim 9, wherein the grouping configuration module is specifically configured to determine a number of process groups according to a heat degree of a hot multimedia data stream, wherein the number of process groups is positively correlated to the heat degree.
11. A server, comprising:
a computer-readable storage medium for storing a computer program;
a processor for implementing the method steps of any of claims 1-5 when executing a program stored on the computer readable storage medium.
12. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
CN202110095647.7A 2021-01-25 2021-01-25 Process management method, device and server Pending CN112860432A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110095647.7A CN112860432A (en) 2021-01-25 2021-01-25 Process management method, device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110095647.7A CN112860432A (en) 2021-01-25 2021-01-25 Process management method, device and server

Publications (1)

Publication Number Publication Date
CN112860432A true CN112860432A (en) 2021-05-28

Family

ID=76008413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110095647.7A Pending CN112860432A (en) 2021-01-25 2021-01-25 Process management method, device and server

Country Status (1)

Country Link
CN (1) CN112860432A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114039881A (en) * 2021-10-19 2022-02-11 创盛视联数码科技(北京)有限公司 Communication connection monitoring method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114039881A (en) * 2021-10-19 2022-02-11 创盛视联数码科技(北京)有限公司 Communication connection monitoring method
CN114039881B (en) * 2021-10-19 2023-08-08 创盛视联数码科技(北京)有限公司 Communication connection monitoring method

Similar Documents

Publication Publication Date Title
US10783267B2 (en) Centralized throttling service
CN110032447B (en) Method and apparatus for allocating resources
US20170126583A1 (en) Method and electronic device for bandwidth allocation based on online media services
CN110519183B (en) Node speed limiting method and device, electronic equipment and storage medium
CN108566370B (en) Method and device for returning data to source
CN111355971B (en) Live streaming transmission method and device, CDN server and computer readable medium
CN110830565B (en) Resource downloading method, device, system, electronic equipment and storage medium
CN110620828A (en) File pushing method, system, device, electronic equipment and medium
CN111478781B (en) Message broadcasting method and device
CN110460879B (en) Video request scheduling method, device, server and storage medium
CN105610869B (en) Method and device for scheduling streaming media
CN109428926B (en) Method and device for scheduling task nodes
CN110401731B (en) Method and apparatus for distributing content distribution nodes
CN110099292B (en) Data center node determination method and device and electronic equipment
AU2021343451B2 (en) Configurable access-based cache policy control
CN112860432A (en) Process management method, device and server
CN113676514A (en) File source returning method and device
CN114077483A (en) Data resource scheduling method, server, system and storage medium
CN110213621B (en) Bandwidth allocation method and device
US20140215075A1 (en) Load balancing apparatus and method based on estimation of resource usage
CN112491066B (en) Load balancing method, device, system, target load balancing equipment and medium
CN110691143B (en) File pushing method and device, electronic equipment and medium
CN110708374B (en) Distribution method and distribution device of edge nodes and readable storage medium
CN110417902B (en) Streaming network service load method, related device and readable storage medium
CN109672900B (en) Method and device for generating hot content list

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination