Process management method, device and server
By dividing the server process into multiple process groups and allocating requests according to the popularity of the multimedia data stream, the problem of insufficient parallel processing capabilities of the cloud server when processing multimedia data stream requests is solved, improving processing capabilities and reducing costs.
Patent Information
- Application Number
- CN202110095647.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-25
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2041-01-25
AI Technical Summary
When cloud servers process multimedia data flow requests, due to physical resource limitations, the number of requests that cannot be processed in parallel is limited, resulting in the need to increase the server to improve processing capacity when there are too many requests, but this increases hardware and operation and maintenance costs.
By dividing the processes in the server into multiple process groups, each process group corresponds to at least one client, and assigning requests to the corresponding process group for processing according to the heat of the multimedia data stream and the preset relationship, the server's parallel processing capability is improved.
It effectively increases the number of multimedia data flow requests that the server can process in parallel, reduces the need to increase servers under high load conditions, and reduces hardware and operation and maintenance costs.
Smart Images

Figure CN112860432B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud service technology, and in particular to a process management method, device and server. Background Art
[0002] Multimedia data streams are stored in the cloud server. If the user wants to obtain these multimedia data streams through the client, the client can be controlled to send a multimedia data stream request to the server for the multimedia data stream that the user wants to watch. After receiving the multimedia data stream request, the server obtains the multimedia data stream according to the multimedia data stream request and sends the obtained multimedia data stream to the client.
[0003] Due to the limitation of physical resources, the number of multimedia data stream requests that a server can process concurrently is limited. When the server receives too many multimedia data stream requests, a new server needs to be set up to jointly process these multimedia data stream requests. Setting up a new server will incur additional hardware costs and operation and maintenance costs.
[0004] Therefore, how to effectively increase the number of multimedia data stream requests that a server can process in parallel has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a process management method, device and server to increase the number of multimedia data stream requests that can be processed in parallel by the server. The specific technical solution is as follows:
[0006] In a first aspect of an embodiment of the present invention, a process management method is provided, which is applied to a server, where the server runs multiple processes, and the method includes:
[0007] Dividing the multiple processes into multiple process groups, wherein each process group corresponds to at least one client, and different process groups correspond to different clients;
[0008] Whenever a multimedia data stream request is received from a client, the multimedia data request is assigned to a process in a process group corresponding to the client that sends the multimedia data stream request for processing.
[0009] In a possible embodiment, before 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 method further includes:
[0010] Determining whether the multimedia data stream requested by the multimedia data stream request is a popular multimedia data stream;
[0011] 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:
[0012] If the multimedia data stream requested by the multimedia data stream request is a popular multimedia data stream, the multimedia data request is assigned to a process in a process group corresponding to the client sending the multimedia data stream request for processing.
[0013] In a possible embodiment, after determining whether the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream, the method further includes:
[0014] If the multimedia data stream requested by the multimedia data stream request is not a popular multimedia data stream, according to the preset correspondence between multimedia data streams and processes, the multimedia data request is assigned to the process corresponding to the multimedia data stream requested by sending the multimedia data stream request for processing.
[0015] In a possible embodiment, before dividing the multiple processes into multiple process groups, the method further includes:
[0016] Get the number of process groups;
[0017] The dividing the multiple processes into multiple process groups includes:
[0018] The plurality of processes are divided into the number of process groups.
[0019] In a possible embodiment, obtaining the number of process groups includes:
[0020] The number of process groups is determined according to the heat of the popular multimedia data stream, wherein the number of process groups is positively correlated with the heat.
[0021] In a second aspect of an embodiment of the present invention, a process management device is provided, which is applied to a server, and the server runs multiple processes. The device includes:
[0022] A process grouping module, used to divide the multiple processes into multiple process groups, wherein each process group corresponds to at least one client, and different process groups correspond to different clients;
[0023] The request allocation module is used to allocate the multimedia data stream request to a process in a process group corresponding to the client sending the multimedia data stream request for processing whenever a multimedia data stream request sent by the client is received.
[0024] In a possible embodiment, the request allocation module is further used to determine whether the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream;
[0025] The request allocation module is specifically used to allocate the multimedia data request to a process in a process group corresponding to a client sending the multimedia data stream request for processing if the multimedia data stream requested by the multimedia data stream request is a popular multimedia data stream.
[0026] In a possible embodiment, the request allocation module is also used to allocate the multimedia data request to the process corresponding to the multimedia data stream requested by sending the multimedia data stream request for processing according to a preset correspondence between the multimedia data stream and the process if the multimedia data stream requested by the multimedia data stream request is not a popular multimedia data stream.
[0027] In a possible embodiment, the device further includes a group configuration module, which is used to obtain the number of process groups;
[0028] The process grouping module is specifically used to divide the multiple processes into process groups of the number of process groups.
[0029] In a possible embodiment, the grouping configuration module is specifically used to determine the number of process groups according to the heat of the popular multimedia data stream, wherein the number of process groups is positively correlated with the heat.
[0030] In a third aspect of an embodiment of the present invention, a server is provided, including:
[0031] A computer-readable storage medium for storing a computer program;
[0032] The processor is used to implement any method step described in the first aspect when executing the program stored on the computer-readable storage medium.
[0033] In a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.
[0034] Beneficial effects of the embodiments of the present invention:
[0035] The process management method, device and server provided by the embodiment of the present invention can group processes and assign clients to different process groups, so that multimedia data stream requests sent by multiple clients for the same multimedia data stream can be assigned to different processes for processing. Each process in the server is fully utilized to process the multimedia data stream request, which can effectively increase the number of multimedia data stream requests that the server can process in parallel.
[0036] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A schematic diagram of a process flow of a process management method provided by an embodiment of the present invention;
[0039] Figure 2 Another schematic diagram of a process management method provided by an embodiment of the present invention;
[0040] Figure 3 Another schematic diagram of a process management method provided by an embodiment of the present invention;
[0041] Figure 4a A schematic diagram of the structure of a process management device provided by an embodiment of the present invention;
[0042] Figure 4b Another structural diagram of a process management device provided by an embodiment of the present invention;
[0043] Figure 5 A schematic diagram of the structure of a server provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] In order to more clearly explain the process management method provided by the embodiment of the present invention, a possible application scenario of the process management method provided by the embodiment of the present invention is exemplified below. It can be understood that the following example is only a possible application scenario of the process management method provided by the embodiment of the present invention. In other possible embodiments, the process management method provided by the embodiment of the present invention can also be applied to other possible application scenarios, and the following example does not impose any limitation on this.
[0046] When a user needs to watch a live broadcast on a client, the client can be controlled to send a multimedia data stream request to the server, and the multimedia data stream request is used to request the multimedia data stream corresponding to the live broadcast that the user needs to watch. And the multimedia data stream request can carry an identifier of the requested multimedia data stream, hereinafter referred to as a multimedia data stream identifier.
[0047] After receiving the multimedia data stream request, the server can perform a hash operation on the multimedia data stream identifier carried by the multimedia data stream to obtain a hash value, and return the multimedia data stream request to the source through the process corresponding to the hash value according to the preset correspondence between the hash value and the process.
[0048] When multiple clients send multimedia data stream requests for the same multimedia data stream, since the multimedia data streams requested by these multiple multimedia data stream requests are the same, these multiple multimedia data stream requests will be handed over to the same process for back-to-source. However, due to the limitations of physical resources such as CPU and memory, the maximum number of multimedia data stream requests that a process can load is limited.
[0049] However, for some reasons, a large number of clients may request the same multimedia data stream in the same time period. For example, a popular event may attract a large number of users to watch in the same time period. In this case, a large number of clients may request the multimedia data stream corresponding to the live broadcast of the popular 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 a process can load, the provider of the live broadcast service needs to set up a new server to jointly return to the source to meet the needs of users watching the live broadcast. Setting up a new server will increase the hardware cost and operation and maintenance cost of the provider of the live broadcast service.
[0050] Based on this, an embodiment of the present invention provides a process management method, which is applied to a server, and a plurality of processes are running in the server. The method can be as follows: Figure 1 As shown, including:
[0051] S101, dividing a plurality of processes into a plurality of process groups.
[0052] S102: Whenever a multimedia data stream request is received from a client, the multimedia data request is assigned to a process in a process group corresponding to the client that sends the multimedia data stream request for processing.
[0053] By selecting this embodiment, the processes can be grouped and the clients can be assigned to different process groups, so that the multimedia data stream requests sent by multiple clients for the same multimedia data stream can be assigned to different processes for processing. Each process in the server is fully utilized to process the multimedia data stream request, which can effectively increase the number of multimedia data stream requests that the server can process in parallel.
[0054] Exemplarily, the maximum number of multimedia data stream requests that each process can load is 100. If the return to the source is performed in the manner in the above example, then without setting up a new server, theoretically up to 100 clients are allowed to request the same multimedia data stream at the same time. For the convenience of description below, the same multimedia data stream is referred to as the target multimedia data stream.
[0055] According to the process management method provided in the embodiment of the present invention, the processes in the server are managed. Assuming that the processes of the server are divided into 10 process groups in total, and assuming that the multimedia data stream requests sent by different clients for the target multimedia data stream are evenly distributed (actually, they may not be evenly distributed) to these 10 process groups, since 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, a maximum of 1,000 clients are allowed to request the target multimedia data stream in the same time period. It can be seen that the number of multimedia data stream requests that the server can process in parallel is significantly increased.
[0056] 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 depending on the application scenario, for example, it may be represented in the form of a function, in the form of a relationship table, or in other forms, and this embodiment does not impose any limitation on this.
[0057] For the convenience of description, it is assumed that the corresponding relationship is expressed in the form of a function, and it is assumed that the corresponding relationship can be expressed as a function y=F(x), where x is the client and y is the process group. The representation of the client and the process group may also be different depending on the application scenario. For example, in one possible embodiment, the client may be represented by the IP address of the client, and in another possible embodiment, the client may also be represented by the product serial number of the client. In one possible embodiment, the process group may be represented by the sequence number of the process group, and in another possible embodiment, the process group may also be represented by the name of the process group.
[0058] F(·) represents a function that maps x to y. The range of the function is all process groups. The specific form of the function can be a hash function in different forms depending on the application scenario. For example, assuming that the number of process groups is 10, in a possible embodiment, y=F(x) can be as follows:
[0059] y=xmod5
[0060] Here, xmod5 represents the remainder when x is divided by 5.
[0061] In S102, the multimedia data stream in this article may refer to different multimedia data streams according to different application scenarios. For example, in the application scenario of live video, the multimedia data stream may refer to a live video stream; in the application scenario of video on demand, the multimedia data stream may also refer to the video data stream of the video requested by the user; in the application scenario of online music playback, the multimedia data stream may also refer to an audio data stream. This embodiment does not impose any restrictions on this.
[0062] For the convenience of description, the process group corresponding to the client sending the multimedia data request is referred to as the target process group. In a possible embodiment, in order to reduce the number of processes for processing multimedia data stream requests, the multimedia data stream requests can be preferentially assigned to non-idle processes in the target process group for processing. And multimedia data stream requests requesting the same multimedia data stream can be preferentially assigned to the same process for processing.
[0063] Exemplarily, assuming that the target process group contains three processes, respectively recorded as process 1, process 2 and process 3, and the target process group corresponds to client 1 and client 2, and assuming that before executing S102, process 1 has been used to return the multimedia data stream request sent by client 1 for the target multimedia data stream, then when the multimedia data stream request sent by client 2 for the target multimedia data stream is received, the multimedia data stream request sent by client 2 for the target multimedia data stream is also returned to the source through process 1.
[0064] The way a process handles multimedia data stream requests may vary depending on the application scenario. For example, the process may determine whether the server stores the target data stream locally. If the server stores the target data stream locally, the process may end processing the multimedia data stream request because the server has already obtained the target data stream. If the server does not store the target multimedia data stream locally, the process may go back to the source to obtain the target multimedia data stream.
[0065] In another possible embodiment, for load balancing considerations, multimedia data stream requests may be preferentially assigned to the process with the lowest load in the target process group for processing, wherein the process with the lowest load may refer to the process that is currently processing the least number of multimedia data stream requests.
[0066] See also Figure 2 , Figure 2 Another flow chart of a process management method provided by an embodiment of the present invention is shown, which may include:
[0067] S201, divide multiple processes into multiple process groups.
[0068] This step is the same as the aforementioned S101. Please refer to the aforementioned description of S101 and will not be repeated here.
[0069] S202: Whenever a multimedia data stream request sent by a client is received, determine whether the multimedia data stream requested by the multimedia data stream request is a popular multimedia data stream.
[0070] The standard 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 whose heat is greater than a preset heat threshold.
[0071] The heat of a multimedia data stream can be used to indicate the number of clients expected to request the multimedia data stream in the current time period. The more clients expected to request the multimedia data stream in the current time period, the higher the heat of the multimedia data stream in theory. The fewer clients expected to request the multimedia data stream in the current time period, the lower the heat of the multimedia data stream in theory.
[0072] S203: If the multimedia data stream requested by the multimedia data stream request is a popular multimedia data stream, the multimedia data request is assigned to a process in a process group corresponding to the client sending the multimedia data stream request for processing.
[0073] If the multimedia data stream requested by the multimedia data stream request is a popular 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. At this time, the number of multimedia data stream requests that the server can issue and process concurrently can be increased as much as possible to cope with the scenario where more clients request the same multimedia data stream.
[0074] In a possible embodiment, if the multimedia data stream requested by the multimedia data stream request is not a popular multimedia data stream, the process corresponding to the target multimedia data stream requested by the multimedia data stream request can be determined as the target process according to the preset correspondence between the multimedia data stream and the process, and the multimedia data stream request can be returned to the source through the target process.
[0075] It is understandable that if the multimedia data stream requested by the multimedia data stream request is not a popular multimedia data stream, it can be considered that the number of clients expected to request the multimedia data stream requested by the multimedia data stream request in the current time period is small, that is, it can be considered that at this time, even if different multimedia data stream requests sent by different clients for the multimedia data stream requested by the multimedia data stream request are returned to the source through the same process, they are within the maximum number of multimedia data stream requests that the process can load. Therefore, at this time, there is no need to increase the number of multimedia data stream requests that the server can issue and process concurrently, but the multimedia data streams sent for the same multimedia data stream are returned to the source through the same process as much as possible to reduce the number of processes running on the server.
[0076] As analyzed above, theoretically, the more process groups are divided, the more multimedia data stream requests that the server can concurrently process. The fewer process groups are divided, the fewer processes the server needs to run.
[0077] Different application scenarios may have different actual requirements. For example, in some application scenarios, the service provider may want to increase the number of multimedia data stream requests that the server can process in parallel as much as possible, while in other application scenarios, the service provider may want to reduce the number of processes that the server needs to run as much as possible. Therefore, if the number of divided process groups is a fixed value, it may not be applicable to different application scenarios.
[0078] Based on this, in a possible embodiment, it can be as follows Figure 3 As stated, Figure 3 Another possible embodiment of the process management method provided by the embodiment of the present invention is shown, including:
[0079] S301, obtaining the number of process groups.
[0080] It can be calculated by the server according to preset rules, or calculated by other electronic devices other than the server according to preset rules and then sent to the server, or determined by relevant personnel based on actual experience or needs and input into the server.
[0081] Exemplarily, in a possible embodiment, the number of process groups may be determined according to the heat of the popular multimedia data stream, wherein the number of process groups is positively correlated with the heat. It is understandable that if the heat of the popular 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 greater, and at this time the number of multimedia data stream requests that the server can process in parallel should be increased more to meet the needs of users to obtain multimedia data streams. If the heat of the popular multimedia data stream is lower, it can be considered that the number of clients expected 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 to minimize the number of processes that the server needs to run.
[0082] S302, dividing the multiple processes into process groups having the number of process groups.
[0083] The division method can be to divide the processes into the number of process groups evenly or unevenly. In addition, all processes can be divided into the number of process groups, or some processes can be divided into the number of process groups, while the remaining processes are not divided into any process group.
[0084] S303: Whenever a multimedia data stream request is received from a client, the multimedia data request is assigned to a process in a process group corresponding to the client that sends the multimedia data stream request for processing.
[0085] This step is the same as the aforementioned S102. Please refer to the aforementioned description of S102 and will not be repeated here.
[0086] By selecting this embodiment, the number of process groups can be flexibly changed according to needs, so that the process management method provided by the embodiment of the present invention can be applicable to different application scenarios.
[0087] See also Figure 4a , Figure 4a The figure is a schematic diagram of a structure of a process management device provided by an embodiment of the present invention. The process management module is applied to a server. The server runs multiple processes. The process management device may include:
[0088] A process grouping module 401 is used to divide the multiple processes into multiple process groups, wherein each process group corresponds to at least one client, and different process groups correspond to different clients;
[0089] The request allocation module 402 is used to allocate the multimedia data stream request to a process in a process group corresponding to the client sending the multimedia data stream request for processing whenever receiving the multimedia data stream request sent by the client.
[0090] In a possible embodiment, the request allocation module 402 is further used to determine whether the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream;
[0091] The request allocation module 402 is specifically configured to allocate the multimedia data request to a process in a process group corresponding to a client sending the multimedia data stream request for processing if the multimedia data stream requested by the multimedia data stream request is a popular multimedia data stream.
[0092] In a possible embodiment, the request allocation module 402 is also used to allocate the multimedia data request to the process corresponding to the multimedia data stream requested by sending the multimedia data stream request for processing according to a preset correspondence between the multimedia data stream and the process if the multimedia data stream requested by the multimedia data stream request is not a popular multimedia data stream.
[0093] In a possible embodiment, Figure 4b As shown, the device further includes a group configuration module 403, which is used to obtain the number of process groups;
[0094] The process grouping module 401 is specifically used to divide the multiple processes into process groups of the number of process groups.
[0095] In a possible embodiment, the grouping configuration module 403 is specifically configured to determine the number of process groups according to the heat of the popular multimedia data stream, wherein the number of process groups is positively correlated with the heat.
[0096] The embodiment of the present invention also provides a server, such as Figure 5 As shown, including:
[0097] Computer readable storage medium 501, used for storing computer programs;
[0098] The processor 502 is used to implement the following steps when executing the program stored on the computer-readable storage medium 501:
[0099] Dividing the multiple processes into multiple process groups, wherein each process group corresponds to at least one client, and different process groups correspond to different clients;
[0100] Whenever a multimedia data stream request is received from a client, the multimedia data request is assigned to a process in a process group corresponding to the client that sends the multimedia data stream request for processing.
[0101] In a possible embodiment, before 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 also be configured to perform the following steps:
[0102] Determining whether the multimedia data stream requested by the multimedia data stream request is a popular multimedia data stream;
[0103] 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:
[0104] If the multimedia data stream requested by the multimedia data stream request is a popular multimedia data stream, the multimedia data request is assigned to a process in a process group corresponding to the client sending the multimedia data stream request for processing.
[0105] In a possible embodiment, after determining whether the multimedia data stream requested by the multimedia data stream request is a hot multimedia data stream, the processor 502 may also be configured to perform the following steps:
[0106] If the multimedia data stream requested by the multimedia data stream request is not a popular multimedia data stream, according to the preset correspondence between multimedia data streams and processes, the multimedia data request is assigned to the process corresponding to the multimedia data stream requested by sending the multimedia data stream request for processing.
[0107] In a possible embodiment, before dividing the multiple processes into multiple process groups, the processor 502 may also be configured to perform the following steps:
[0108] Get the number of process groups;
[0109] The dividing the multiple processes into multiple process groups includes:
[0110] The plurality of processes are divided into the number of process groups.
[0111] In a possible embodiment, obtaining the number of process groups includes:
[0112] The number of process groups is determined according to the heat of the popular multimedia data stream, wherein the number of process groups is positively correlated with the heat.
[0113] The server provided in the embodiment of the present invention may further include a communication bus, a communication interface, etc. The communication bus mentioned in the above server may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0114] The communication interface is used for communication between the above server and other devices.
[0115] 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 storage device located away from the aforementioned processor.
[0116] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0117] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned process management methods are implemented.
[0118] In another embodiment of the present invention, a computer program product including instructions is provided, which, when executed on a computer, enables the computer to execute any one of the process management methods in the above embodiments.
[0119] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can 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 the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0120] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0121] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the device, server, computer-readable storage medium, and computer program product, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0122] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A process management method, characterized in that: Applied to a server, the server running multiple processes, the method comprising: Determine the number of process groups according to the heat of the popular multimedia data stream, wherein the number of process groups is positively correlated with the heat; Dividing the multiple processes into process groups equal to the number of process groups, wherein each process group corresponds to at least one client, and different process groups correspond to different clients; Whenever 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 popular multimedia data stream; If the multimedia data stream requested by the multimedia data stream request is a popular multimedia data stream, assigning the multimedia data request to a process in a 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 not a popular multimedia data stream, according to the preset correspondence between multimedia data streams and processes, the multimedia data request is assigned to the process corresponding to the multimedia data stream requested by sending the multimedia data stream request for processing.
2. A process management device, characterized in that: The device is applied to a server, the server runs multiple processes, and the device includes: A grouping configuration module, used to determine the number of process groups according to the heat of the popular multimedia data stream, wherein the number of process groups is positively correlated with the heat; A process grouping module, used for dividing the plurality of processes into the number of process groups, wherein each process group corresponds to at least one client, and different process groups correspond to different clients; A request allocation module is used to determine whether the multimedia data stream requested by the multimedia data stream request is a popular multimedia data stream whenever a multimedia data stream request is received from a client; if the multimedia data stream requested by the multimedia data stream request is a popular multimedia data stream, allocate the multimedia data request to a process in a process group corresponding to the client that sends the multimedia data stream request for processing; if the multimedia data stream requested by the multimedia data stream request is not a popular multimedia data stream, allocate the multimedia data request to a process corresponding to the multimedia data stream requested by the client that sends the multimedia data stream request for processing according to a preset correspondence between multimedia data streams and processes.
3. A server, characterized in that: include: A computer-readable storage medium for storing a computer program; A processor, configured to implement the method of claim 1 when executing the program stored on the computer-readable storage medium.
4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to claim 1 is implemented.
