Application deployment method, device and computer readable storage medium

By deploying the notebook server and Kernel of Jupyter notebook separately, and dynamically adjusting their number through configuration information, the problem of resource waste and low utilization is solved, and efficient use of resources is achieved.

CN114281475BActive Publication Date: 2024-10-29CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111541566.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-16
Publication Date
2024-10-29
Estimated Expiration
2041-12-16

AI Technical Summary

Technical Problem

During the deployment process of Jupyter notebook, the notebook server and Kernel are deployed as a whole, resulting in a fixed allocation of computing resources that cannot be dynamically adjusted according to the workload, resulting in resource waste and low utilization.

Method used

Deploy notebook server and Kernel separately, and dynamically adjust their number by obtaining and sending configuration information to match the workload and ensure effective utilization of computing resources.

Benefits of technology

It improves the utilization of computing resources, avoids resource waste, and flexibly adjusts the number of notebook servers and kernels according to the workload.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114281475B_ABST
    Figure CN114281475B_ABST
Patent Text Reader

Abstract

The present application provides an application deployment method, device and computer-readable storage medium, which relates to the field of computer technology and can deploy a notebook server and a kernel separately, thereby avoiding waste of computing resources and improving resource utilization of computing resources. The method includes: the notebook server obtains configuration information of at least one kernel; the notebook server determines the first data to be processed and determines the kernel corresponding to the first data to be processed; the notebook server sends the first data to be processed to the kernel corresponding to the first data to be processed according to the configuration information of the kernel corresponding to the first data to be processed. The embodiment of the present application is used in a Jupyter notebook where the notebook server and the kernel are deployed separately.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to an application deployment method, device, and computer-readable storage medium. Background Art

[0002] Jupyter notebook is an application that can write or run code. Jupyter notebook can include: notebook server and kernel. The operation of notebook server requires the use of central processing unit (CPU) resources. The operation of kernel requires the use of CPU resources or graphics processing unit (GPU) resources. Developers will allocate computing resources to Jupyter notebook according to the number of notebook servers and kernels.

[0003] Currently, when deploying Jupyter notebook, the notebook server and Kernel in Jupyter notebook need to be deployed as a whole in the same container. After deployment, the corresponding computing resources are allocated to the notebook server and Kernel respectively. In this unified deployment method, the number of computing resources allocated to the notebook server and Kernel is relatively fixed, but in some scenarios, the computing tasks of the two are different and the required computing resources are different. This will result in the computing resources allocated to the notebook server and Kernel being wasted and the utilization rate of computing resources is low. Summary of the invention

[0004] The present application provides an application deployment method, device, and computer-readable storage medium, which can separately deploy the notebook server and Kernel in Jupyter notebook, thereby avoiding the waste of computing resources and improving the resource utilization of computing resources.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides an application deployment method, the method comprising: a notebook server obtains configuration information of at least one Kernel; the configuration information of any one of the at least one Kernel includes: an internet protocol (IP) address and a port identifier of any one of the Kernel; wherein the notebook server is deployed in a first container, and at least one Kernel is respectively deployed in at least one second container; the notebook server determines first data to be processed, and determines a Kernel corresponding to the first data to be processed; the Kernel corresponding to the first data to be processed is one or more Kersets in at least one Kernel; the notebook server sends the first data to be processed to the Kernel corresponding to the first data to be processed according to the configuration information of the Kernel corresponding to the first data to be processed.

[0007] The above technical solution brings at least the following beneficial effects: In the application deployment method provided by the present application, after the Kernel determines the configuration information of the Kernel, each Kernel in at least one Kernel will send the configuration information of the Kernel to the notebook server, so that the notebook server can obtain the configuration information of at least one Kernel. Then, the notebook server determines the first data to be processed and the Kernel corresponding to the first data to be processed, and then sends the first data to be processed to the Kernel corresponding to the first data to be processed according to the configuration information of the Kernel corresponding to the first data to be processed. After the Kernel receives the first data to be processed, the Kernel processes the first data to be processed and generates a processing result corresponding to the first data to be processed. As can be seen from the above, the notebook server can send the first data to be processed to one or more Kernels corresponding to the first data to be processed, so that the operation and development personnel can respectively deploy the number of notebook servers and Kernels according to the processing task volume of the notebook server and the Kernel. For example, when the notebook server has a large number of tasks and the kernel has a small number of tasks, more notebook servers and fewer kernels can be set up. This will minimize the waste of notebook server and kernel computing resources and increase the resource utilization of computing resources.

[0008] In a possible implementation, the first data to be processed includes: first data and second data; the first data corresponds to a first Kernel, and the second data corresponds to a second Kernel; the first Kernel and the second Kernel are both Kernel in at least one Kernel; the notebook server sends the first data to be processed to the Kernel corresponding to the first data to be processed according to the configuration information of the Kernel corresponding to the first data to be processed, including: the notebook server determines the configuration information of the first Kernel and the configuration information of the second Kernel according to the configuration information of at least one Kernel; the notebook server sends the first data to the first Kernel according to the configuration information of the first Kernel; the notebook server sends the second data to the second Kernel according to the configuration information of the second Kernel.

[0009] In a possible implementation, the computing resources corresponding to the first container include central processing unit (CPU) resources; and the computing resources corresponding to the second container include at least one of CPU resources and graphics processing unit (GPU) resources.

[0010] In a second aspect, the present application provides an application deployment method, the method comprising: a Kernel determines Kernel configuration information; the Kernel configuration information includes the Kernel's IP address and port identifier; the Kernel sends the Kernel configuration information to at least one notebook server; at least one notebook server is deployed in at least one first container, and the Kernel is deployed in a second container; the Kernel obtains second data to be processed; the second data to be processed is data sent to the Kernel by one or more notebook servers in at least one notebook server according to the Kernel configuration information; the Kernel processes the second data to be processed, and generates a processing result corresponding to the second data to be processed.

[0011] The above technical solution brings at least the following beneficial effects: after the Kernel determines the configuration information of the Kernel, the Kernel sends the configuration information of the Kernel to each notebook server in at least one notebook server, so that at least one notebook server can obtain the configuration information of the Kernel. Then, each notebook server in at least one notebook server determines the second data to be processed and the Kernel corresponding to the second data to be processed, and then sends the second data to be processed to the Kernel corresponding to the second data to be processed according to the configuration information of the Kernel corresponding to the second data to be processed. After the Kernel receives the second data to be processed, the Kernel processes the second data to be processed and generates a processing result corresponding to the second data to be processed. It can be seen from the above that the notebook server can send the second data to be processed to one or more Kernels corresponding to the second data to be processed, so that the operation and development personnel can respectively deploy the number of notebook servers and Kernels according to the processing task volume of the notebook server and the Kernel. For example, when the notebook server has fewer tasks and the kernel has more tasks, fewer notebook servers and more kernels are set up. This will minimize the waste of notebook server and kernel computing resources and increase the resource utilization of computing resources.

[0012] In a possible implementation, the second data to be processed includes third data and fourth data; the third data corresponds to the first notebook server, and the fourth data corresponds to the second notebook server; the first notebook server and the second notebook server are both notebook servers in the at least one notebook server; the kernel obtains the second data to be processed, including: the kernel receives the third data from the first notebook server; the kernel receives the fourth data from the second notebook server; the kernel determines the second data to be processed according to the third data and the fourth data; the kernel processes the second data to be processed and generates a processing result corresponding to the second data to be processed, including: the kernel processes the third data and determines the result to be processed corresponding to the third data; the kernel processes the fourth data and determines the result to be processed corresponding to the fourth data; the kernel determines that the processing result corresponding to the second data to be processed includes the result to be processed corresponding to the third data and the result to be processed corresponding to the fourth data.

[0013] In a possible implementation, after the Kernel processes the third data and determines the result to be processed corresponding to the third data, the method further includes: the Kernel sends the processing result corresponding to the third data to the first notebook server; after the Kernel processes the fourth data and determines the result to be processed corresponding to the fourth data, the method further includes: the Kernel sends the processing result corresponding to the fourth data to the second notebook server.

[0014] In a possible implementation, the computing resources corresponding to the first container include central processing unit (CPU) resources; and the computing resources corresponding to the second container include at least one of CPU resources and graphics processing unit (GPU) resources.

[0015] In a third aspect, the present application provides an application deployment device, which includes: a communication unit and a processing unit; the communication unit is used to obtain configuration information of at least one Kernel; the configuration information of any one of the at least one Kernel includes the IP address and port identifier of any one of the Kernel; wherein the notebook server is deployed in a first container, and at least one Kernel is deployed in at least one second container respectively; the processing unit is used to determine first data to be processed, and determine the Kernel corresponding to the first data to be processed; the Kernel corresponding to the first data to be processed is one or more Kers in at least one Kernel; the processing unit is also used to send the first data to be processed to the Kernel corresponding to the first data to be processed according to the configuration information of the Kernel corresponding to the first data to be processed.

[0016] In a possible implementation, the first data to be processed includes first data and second data; the first data corresponds to the first Kernel, and the second data corresponds to the second Kernel; the first Kernel and the second Kernel are both Kernel in at least one Kernel; the processing unit is specifically used to: the notebook server determines the configuration information of the first Kernel and the configuration information of the second Kernel according to the configuration information of at least one Kernel; the notebook server sends the first data to the first Kernel according to the configuration information of the first Kernel; the notebook server sends the second data to the second Kernel according to the configuration information of the second Kernel.

[0017] In a possible implementation, the computing resources corresponding to the first container include central processing unit (CPU) resources; and the computing resources corresponding to the second container include at least one of CPU resources and graphics processing unit (GPU) resources.

[0018] In a fourth aspect, the present application provides an application deployment device, which includes: a communication unit and a processing unit; the processing unit is used to determine the configuration information of the Kernel; the configuration information of the Kernel includes the IP address and port identifier of the Kernel; the communication unit is used to send the configuration information of the Kernel to at least one notebook server; at least one notebook server is deployed in at least one first container, and the Kernel is deployed in a second container; the communication unit is also used to obtain second data to be processed; the second data to be processed is data sent to the Kernel by one or more notebook servers in at least one notebook server according to the configuration information of the Kernel; the processing unit is also used to process the second data to be processed and generate a processing result corresponding to the second data to be processed.

[0019] In a possible implementation, the second data to be processed includes third data and fourth data; the third data corresponds to the first notebook server, and the fourth data corresponds to the second notebook server; the first notebook server and the second notebook server are both notebook servers in the at least one notebook server; the communication unit is specifically used for: the kernel receives the third data from the first notebook server; the kernel receives the fourth data from the second notebook server; the kernel determines the second data to be processed according to the third data and the fourth data; the processing unit is specifically used for: the kernel processes the third data and determines the result to be processed corresponding to the third data; the kernel processes the fourth data and determines the result to be processed corresponding to the fourth data; the kernel determines that the processing result corresponding to the second data to be processed includes the result to be processed corresponding to the third data and the result to be processed corresponding to the fourth data.

[0020] In a possible implementation, after the Kernel processes the third data and determines the result to be processed corresponding to the third data, the processing unit is further used to: send the processing result corresponding to the third data to the first notebook server; after the Kernel processes the fourth data and determines the result to be processed corresponding to the fourth data, the processing unit is further used to: send the processing result corresponding to the fourth data to the second notebook server.

[0021] In a possible implementation, the computing resources corresponding to the first container include central processing unit (CPU) resources; and the computing resources corresponding to the second container include at least one of CPU resources and graphics processing unit (GPU) resources.

[0022] In a fifth aspect, the present application provides an application deployment device, comprising: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the application deployment method described in the first aspect, any possible implementation of the first aspect, the second aspect, and any possible implementation of the second aspect.

[0023] In a sixth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a terminal, the terminal executes the application deployment method described in the first aspect, any possible implementation of the first aspect, the second aspect, and any possible implementation of the second aspect.

[0024] In the seventh aspect, the present application provides a computer program product comprising instructions, which, when the computer program product is run on an application deployment device, enables the application deployment device to perform the application deployment method described in the first aspect, any possible implementation of the first aspect, the second aspect, and any possible implementation of the second aspect.

[0025] In an eighth aspect, the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement an application deployment method as described in the first aspect, any possible implementation of the first aspect, the second aspect, and any possible implementation of the second aspect.

[0026] Specifically, the chip provided in the present application also includes a memory for storing computer programs or instructions. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A structural diagram of a Jupyter notebook system provided in an embodiment of the present application;

[0028] Figure 2 A Jupyter notebook deployment architecture diagram provided for an embodiment of the present application;

[0029] Figure 3 A flowchart of an application deployment method provided in an embodiment of the present application;

[0030] Figure 4 An example deployment architecture diagram of a Jupyter notebook provided in an embodiment of the present application;

[0031] Figure 5 A flowchart of another application deployment method provided in an embodiment of the present application;

[0032] Figure 6 A flowchart of another application deployment method provided in an embodiment of the present application;

[0033] Figure 7 Another example deployment architecture diagram of Jupyter notebook provided in an embodiment of the present application;

[0034] Figure 8 A flowchart of another application deployment method provided in an embodiment of the present application;

[0035] Fig. 9 A flowchart of another application deployment method provided in an embodiment of the present application;

[0036] Fig.10 A schematic diagram of the structure of an application deployment device provided in an embodiment of the present application;

[0037] Fig.11 A schematic diagram of the structure of another application deployment device provided in an embodiment of the present application;

[0038] Fig.12 A schematic diagram of the structure of another application deployment device provided in an embodiment of the present application;

[0039] Fig.13 A schematic diagram of the structure of another application deployment device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0040] The application deployment method and device provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0041] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0042] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0043] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0044] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0045] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0046] The following explains the terms involved in the embodiments of the present application to facilitate the reader's understanding.

[0047] 1. Jupyter notebook

[0048] Jupyter notebook is a web-based application based on interactive computing, which can be used for data cleaning and transformation, numerical simulation, statistical modeling, machine learning, etc.

[0049] It should be noted that Jupyter notebook can be opened as a web page, so that users can directly enter data (for example, real-time code, mathematical equation code, visualized Markdown code, etc.) in the web page of the Jupyter notebook. After the data is processed by Jupyter notebook, the processing results of the data will also be displayed in the web page (for example, displayed under the code block of the web page).

[0050] It should be noted that if Jupyter notebook is deployed in a local server system, users can directly access Jupyter notebook through the local server; if Jupyter notebook is deployed in a container, users can remotely access Jupyter notebook through a wireless connection.

[0051] It should be noted that the user can interact with the user through the browser. In the above interaction process, the user can perform operations such as creating, modifying, and saving training files.

[0052] Jupyter notebook includes notebook server and Kernel. The following describes notebook server and Kernel respectively.

[0053] 2. notebook server

[0054] A notebook server is an application that can be accessed through the network and can be used to receive data entered by users through a browser and can also be used to forward data entered by users through a browser.

[0055] It should be noted that the notebook server can occupy CPU resources during operation.

[0056] It should be noted that the notebook server and the browser can communicate through the hypertext transfer protocol (http) and the websocket protocol.

[0057] 3. Kernel

[0058] Kernel is the core processing module in the notebook server system. It can be used to process the data input by the user and generate the corresponding processing results.

[0059] It should be noted that Kernel can occupy both CPU resources and GPU resources during its operation. For example, when Kernel is used for model training, Kernel needs to occupy CPU resources. When Kernel is used for model training, Kernel needs to occupy GPU resources.

[0060] The above is a brief introduction to some concepts involved in the embodiments of this application.

[0061] like Figure 1 As shown, Figure 1 The structure diagram of a Jupyter notebook system provided in an embodiment of the present application is shown. The Jupyter notebook system 10 includes: a browser 11 and a Jupyter notebook 12. The Jupyter notebook 12 may include at least one notebook server 1201 and at least one Kernel 1202. Figure 1 The following is an example in which Jupyter notebook 12 includes a notebook server 1201 and a Kernel 1202.

[0062] The browser 11 is used to provide an environment for the user to input data to be processed, and send the data to be processed input by the user to the notebook server 1201 in the Jupyter notebook 12.

[0063] Notebook server 1201 is used to determine the data to be processed and determine the Kernel 1202 corresponding to the processed data; it is also used to determine the configuration information of Kernel 1202 corresponding to the processed data based on the configuration information of at least one Kernel; it is also used to send the data to be processed to Kernel 1202 corresponding to the data to be processed based on the configuration information of Kernel 1202 corresponding to the data to be processed.

[0064] Kernel 1202 is also used to obtain and process the data to be processed. In addition, Kernel 1202 is also used to determine configuration information of Kernel 1202 and send the configuration information of Kernel 1202 to at least one notebook server 1201.

[0065] It should be noted that if Figure 1 As shown, the interaction process between the browser 11, notebook server 1201, and Kernel 1202 is as follows: the user needs to input the data to be processed through the browser 11, and the browser 11 sends the data to be processed to the notebook server 1201 in the Jupyter notebook 12. After the notebook server 1201 receives the data to be processed from the Jupyter notebook 12, the notebook server 1201 sends the data to be processed to the Kernel 1202. After the Kernel 1202 receives the data to be processed from the notebook server 1201, the Kernel 1202 processes the data to be processed to generate a processing result, and sends the processing result to the notebook server 1201. After the notebook server 1201 receives the processing result from the Kernel 1202, the notebook server 1201 sends the data to be processed to the browser 11. After the browser 11 receives the processing result from the notebook server 1201, the browser 11 displays the processing result.

[0066] In addition, the Jupyter notebook system described in the embodiment of the present application is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the technical solution provided in the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new Jupyter notebook systems, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.

[0067] Currently, when deploying Jupyter notebook, you need to deploy the notebook server and Kernel in Jupyter notebook as a whole, that is, the notebook server and Kernel are deployed in the same container. For example, Figure 2 As shown in the figure, if two notebook servers need to be deployed, two kernels need to be deployed accordingly (that is, two Jupyter notebooks need to be deployed, and one Jupyter notebook includes a notebook server and a kernel in the same container). This will result in that when more notebook servers need to be deployed for task processing, a larger number of kernels will be deployed accordingly. If in the above case, there are not many processing tasks for the kernel, the kernel will not be able to fully utilize the computing resources allocated to it, and then some of the computing resources allocated to the kernel will be wasted, and the utilization rate of computing resources is low. For another example, if two kernels need to be deployed, two Jupyter notebooks need to be deployed accordingly. This will result in that when more kernels need to be deployed for task processing, a larger number of notebook servers will be deployed accordingly. If in the above case, there are not many processing tasks for the notebook server, the notebook server will not be able to fully utilize the computing resources allocated to it, and then some of the computing resources allocated to the notebook server will be wasted, and the utilization rate of computing resources is low.

[0068] In order to solve the problems existing in the above-mentioned prior art, an embodiment of the present application proposes an application deployment method, which avoids the waste of computing resources and improves the resource utilization of computing resources by separately deploying the notebook server and Kernel in the Jupyter notebook.

[0069] It should be noted that the embodiments of the present application can be applied to scenarios 1 and 2. Scenario 1: deploy a notebook server (i.e., deploy a first container) and multiple notebook servers (i.e., deploy multiple second containers) in Jupyter notebook. Scenario 2: deploy multiple notebook servers (i.e., deploy multiple first containers) and one notebook server (i.e., deploy a second container) in Jupyter notebook.

[0070] The following is a detailed description of the application deployment method applied to scenario 1. Figure 3 As shown, the method includes:

[0071] S301. Kernel determines Kernel configuration information.

[0072] The configuration information of the kernel includes the IP address and port identifier of the kernel.

[0073] It should be noted that the specific implementation process of the above S501 is: the Kernel generates the Kernel configuration information, and stores the Kernel configuration information in the Kernel storage module.

[0074] S302: Each kernel in at least one kernel sends the configuration information of the kernel to the notebook server. Correspondingly, the notebook server obtains the configuration information of at least one kernel.

[0075] The configuration information of any one of the at least one Kernel includes the IP address and port identifier of the at least one Kernel. The notebook server is deployed in the first container, and the at least one Kernel is respectively deployed in at least one second container.

[0076] In a possible implementation, the computing resources corresponding to the first container include CPU resources, and the computing resources corresponding to the second container include at least one of CPU resources and GPU resources.

[0077] It should be noted that the specific implementation process of the above S301 is: each Kernel in the at least one Kernel sends the Kernel configuration information to the notebook server. Correspondingly, the notebook server can receive the Kernel configuration information from each Kernel in the at least one Kernel.

[0078] For example, Figure 4As shown in the figure, when the number of notebook servers (i.e., notebook server#1) is 1 and the number of kernels is 2 (i.e., Kernel#1 and Kernel#2), Kernel#1 sends the configuration information of Kernel#1 to notebook server#1. Kernel#2 sends the configuration information of Kernel#2 to notebook server#1. Correspondingly, notebook server#1 receives the configuration information of Kernel#1 from Kernel#1 and the configuration information of Kernel#2 from Kernel#2.

[0079] S303: The notebook server determines first data to be processed, and determines a Kernel corresponding to the first data to be processed.

[0080] The Kernel corresponding to the first data to be processed is one or more Kernel in the at least one Kernel.

[0081] It should be noted that the specific implementation process of the above S303 is: after the browser receives the user's page request information, the browser sends the page request information to the notebook server. The page request information may include: the first data to be processed, and the identifier of the Kernel. Correspondingly, the notebook server receives the page request information from the browser. The notebook server can determine the first data to be processed from the page request information, and determine the Kernel corresponding to the first data to be processed according to the identifier of the Kernel.

[0082] S304, the notebook server sends the first data to be processed to the Kernel corresponding to the first data to be processed according to the configuration information of the Kernel corresponding to the first data to be processed. Correspondingly, the Kernel corresponding to the first data to be processed receives the first data to be processed from the notebook server.

[0083] It should be noted that the specific implementation process of the above S304 is: the notebook server can send the first data to be processed to the Kernel corresponding to the first data to be processed according to the configuration information of the Kernel corresponding to the first data to be processed. Correspondingly, the Kernel corresponding to the first data to be processed receives the first data to be processed from the notebook server. The first data to be processed can be code.

[0084] S305: Kernel processes the first data to be processed and generates a processing result corresponding to the first data to be processed.

[0085] It should be noted that the specific implementation process of the above S305 is: Kernel processes the data included in the second data to be processed in sequence, and generates processing results corresponding to the data included in the above second data to be processed.

[0086] The above technical solution brings at least the following beneficial effects: The present application provides an application deployment method, after the Kernel determines the configuration information of the Kernel, each Kernel in at least one Kernel will send the configuration information of the Kernel to the notebook server, so that the notebook server can obtain the configuration information of at least one Kernel. Then, the notebook server determines the first data to be processed and the Kernel corresponding to the first data to be processed, and then sends the first data to be processed to the Kernel corresponding to the first data to be processed according to the configuration information of the Kernel corresponding to the first data to be processed. After the Kernel receives the first data to be processed, the Kernel processes the first data to be processed and generates a processing result corresponding to the first data to be processed. It can be seen from the above that the notebook server can send the first data to be processed to one or more Kernels corresponding to the first data to be processed, so that the operation and development personnel can respectively deploy the number of notebook servers and Kernels according to the processing task volume of the notebook server and the Kernel. For example, when the notebook server has a large number of tasks and the kernel has a small number of tasks, more notebook servers and fewer kernels can be set up. This will minimize the waste of notebook server and kernel computing resources and increase the resource utilization of computing resources.

[0087] For example, when 4 notebook servers and 2 kernels are needed, the present application can set up 4 first containers and 2 second containers in the Jupyter notebook. However, according to the prior art, 4 Jupyter notebooks need to be set up, that is, 4 notebook servers and 4 kernels need to be set up. This results in that the 2 kernels cannot fully utilize the computing resources allocated to them, which in turn causes the computing resources allocated to the 2 kernels to be wasted, and the utilization rate of computing resources is low. The present application deploys the notebook server and the kernel separately to avoid the occurrence of the above problems (that is, to avoid the waste of computing resources and improve the resource utilization rate of computing resources).

[0088] In addition, the interaction between the notebook server and the Kernel mentioned above can enable the notebook server and the Kernel to be deployed separately (that is, the notebook server and the Kernel cannot share information and data) in the scenario where the notebook server can send the first data to be processed to the Kernel corresponding to the first data to be processed according to the configuration information of the Kernel corresponding to the first data to be processed, thereby completing the data transmission between the notebook server and the Kernel, and thereby enabling the Jupyter notebook to normally process the data entered by the user through the browser.

[0089] It should be noted that the first data to be processed may include one data (that is, the first data to be processed as a whole). In this case, the specific implementation process of the above S304 may be: after the notebook server determines the first data to be processed and the configuration information of the Kernel corresponding to the first data to be processed, the notebook server sends the first data to be processed to the Kernel corresponding to the first data to be processed. Correspondingly, the Kernel corresponding to the first data to be processed receives the first data to be processed from the notebook server.

[0090] The first data to be processed may also include multiple data. The following takes the case where the first data to be processed includes two data (for example, the first data and the second data) as an example to illustrate the application deployment method of the present application. The first data corresponds to the first Kernel, and the second data corresponds to the second Kernel. The first Kernel and the second Kernel are both Kernel in at least one Kernel. In this case, combined with Figure 3 ,like Figure 5As shown, the specific implementation process of the above S303 can be implemented through the following S501-S503.

[0091] S501. The notebook server determines configuration information of a first Kernel and configuration information of a second Kernel according to configuration information of at least one Kernel.

[0092] It should be noted that the specific implementation process of the above S501 is: the notebook server can determine the configuration information of the first Kernel from the configuration information of at least one Kernel according to the identifier of the first Kernel; and can also determine the configuration information of the second Kernel from the configuration information of at least one Kernel according to the identifier of the second Kernel.

[0093] S502: The notebook server sends first data to the first Kernel according to the configuration information of the first Kernel. Correspondingly, the first Kernel receives the first data from the notebook server.

[0094] It should be noted that the specific implementation process of the above S502 is: the notebook server can connect to the first Kernel according to the IP address and port identifier of the first Kernel, and send the first data to the first Kernel.

[0095] S503: The notebook server sends the second data to the second Kernel according to the configuration information of the second Kernel. Correspondingly, the second Kernel receives the second data from the notebook server.

[0096] It should be noted that S503 can be understood by referring to the above S502, which will not be described in detail here.

[0097] In this case, the specific implementation process of the above S305 can be implemented through the following S504-S506.

[0098] S504: Kernel processes the first data and determines a result to be processed corresponding to the first data.

[0099] It should be noted that, in the case where the first data includes code, the specific implementation process of the above S504 is: Kernel runs the code in the first data, and determines that the running result of the code in the first data is the to-be-processed result corresponding to the first data.

[0100] S505: Kernel processes the second data and determines a result to be processed corresponding to the second data.

[0101] It should be noted that S505 can be understood by referring to the above S504, which will not be described in detail here.

[0102] S506. Kernel determines that the processing result corresponding to the first data to be processed includes the result to be processed corresponding to the first data and the result to be processed corresponding to the second data.

[0103] The above technical solution brings at least the following beneficial effects: The present application provides an application deployment method, wherein the notebook server first determines the configuration information of the first kernel and the configuration information of the second kernel according to the configuration information of at least one kernel, and then sends the first data to the first kernel according to the configuration information of the first kernel; and sends the second data to the second kernel according to the configuration information of the second kernel. After the first kernel receives the first data, the first kernel processes the first data and determines the pending result corresponding to the first data. After the second kernel receives the second data, the second kernel processes the second data and determines the pending result corresponding to the second data. In this way, in a scenario where the notebook server has a large amount of tasks and the kernel has a small amount of tasks, more notebook servers and fewer kernels can be set up, so that the computing resources of the notebook server and the kernel are not wasted as much as possible, thereby increasing the resource utilization of the computing resources.

[0104] It should be pointed out that the above description only takes the example that the first data to be processed includes two data. In the specific implementation process, the first data to be processed may include any number of data to be processed. The specific implementation process is similar to the process recorded above, and this application will not repeat it.

[0105] In a possible implementation, if the Jupyter notebook includes a notebook server (i.e., notebook server #2) and two kernels with different functions (i.e., Kernel #3 for model training and Kernel #4 for model prediction), then since Kernel #3 and Kernel #4 are located in different second containers, Kernel #3 and Kernel #4 can be processed in parallel, thereby improving the efficiency of data processing.

[0106] The following is a detailed description of the application deployment method for scenario 2. Figure 6 As shown, the method includes:

[0107] S601. Kernel determines Kernel configuration information.

[0108] The configuration information of the kernel includes the IP address and port identifier of the kernel.

[0109] It should be noted that S601 can be understood by referring to the above S301, which will not be described in detail here.

[0110] S602: The Kernel sends the configuration information of the Kernel to at least one notebook server. Accordingly, each of the at least one notebook server receives the configuration information of the Kernel from the Kernel.

[0111] At least one notebook server is deployed in at least one first container, and the kernel is deployed in a second container.

[0112] In a possible implementation, the computing resources corresponding to the first container include CPU resources; and the computing resources corresponding to the second container include at least one of CPU resources and GPU resources.

[0113] It should be noted that the specific implementation process of the above S602 is: the Kernel sends the configuration information of the Kernel to at least one notebook server. Correspondingly, each notebook server in the at least one notebook server receives the configuration information from the Kernel.

[0114] For example, Figure 7 As shown in the figure, when the number of notebook servers (i.e., notebook server#3, notebook server#4, and notebook server#5) is 3 and the number of kernels is 1 (i.e., Kernel#5), Kernel#5 sends the configuration information of Kernel#5 to notebook server#3, sends the configuration information of Kernel#5 to notebook server#4, and sends the configuration information of Kernel#5 to notebook server#5. Correspondingly, notebook server#3, notebook server#4, and notebook server#5 receive the configuration information of Kernel#5 from Kernel#5.

[0115] S603: The notebook server determines the second data to be processed, and determines the Kernel corresponding to the second data to be processed.

[0116] The Kernel corresponding to the second data to be processed is one or more Kernel in the at least one Kernel.

[0117] S604: The notebook server sends the second data to be processed to the Kernel corresponding to the second data to be processed according to the configuration information of the Kernel corresponding to the second data to be processed. Correspondingly, the Kernel obtains the second data to be processed.

[0118] The second data to be processed is data sent to the Kernel by one or more notebook servers in the at least one notebook server according to the configuration information.

[0119] It should be noted that the specific implementation process of the above S604 is: after the browser receives the page request information of at least one user, the browser sends the page request information to at least one notebook server respectively. Among them, the page request information includes the data corresponding to the user and the identifier of the Kernel respectively. Correspondingly, at least one notebook server receives the page request information from the browser respectively. Each of the at least one notebook server sends the second data to be processed to the Kernel according to the configuration information. Correspondingly, the Kernel receives the data from the at least one notebook server, and determines that the data sent to the Kernel by one or more of the at least one notebook server according to the configuration information is the second data to be processed.

[0120] S605: Kernel processes the second data to be processed and generates a processing result corresponding to the second data to be processed.

[0121] It should be noted that the specific implementation process of the above S605 is: Kernel processes the data included in the second data to be processed in sequence, and generates processing results corresponding to the data included in the above second data to be processed.

[0122] The above technical solution brings at least the following beneficial effects: The present application provides an application deployment method, after the Kernel determines the configuration information of the Kernel, the Kernel sends the configuration information of the Kernel to each notebook server in at least one notebook server, so that at least one notebook server can obtain the configuration information of the Kernel. Then, each notebook server in at least one notebook server determines the second data to be processed and the Kernel corresponding to the second data to be processed, and then sends the second data to be processed to the Kernel corresponding to the second data to be processed according to the configuration information of the Kernel corresponding to the second data to be processed. After the Kernel receives the second data to be processed, the Kernel processes the second data to be processed and generates a processing result corresponding to the second data to be processed. As can be seen from the above, the notebook server can send the second data to be processed to one or more Kernels corresponding to the second data to be processed, so that the operation and development personnel can respectively deploy the number of notebook servers and Kernels according to the processing task volume of the notebook servers and Kernels. For example, when the notebook server has fewer tasks and the kernel has more tasks, fewer notebook servers and more kernels can be set up. This will minimize the waste of notebook server and kernel computing resources and increase the resource utilization of computing resources.

[0123] For example, when two notebook servers and four kernels are needed, the present application can set two first containers and four second containers in the Jupyter notebook. However, according to the prior art, four Jupyter notebooks need to be set up, that is, four notebook servers and four kernels. This causes two notebook servers to not work, which in turn causes the computing resources allocated to the two notebook servers to be wasted, and the utilization rate of computing resources is low. The present application deploys the notebook server and the kernel separately to avoid the above problems (that is, to avoid the waste of computing resources and improve the utilization rate of computing resources).

[0124] In addition, when notebook servers and kernels are deployed separately, the number of notebook servers and kernels can be set by operation and development personnel according to actual conditions. For example, when the notebook server has fewer tasks and the kernel has more tasks, fewer notebook servers and more kernels can be set, so that the computing resources of notebook servers and kernels are not wasted as much as possible, thereby increasing the resource utilization of computing resources.

[0125] In a possible implementation, the specific execution code of S601 may be:

[0126]

[0127] It should be noted that the second data to be processed may include one data (that is, the second data to be processed as a whole). In this case, the specific implementation process of the above S604 may be: after the browser receives a user's page request information, the browser sends the page request information to the notebook server corresponding to the user. Among them, the page request information includes the data corresponding to the user and the identifier of the Kernel respectively. Correspondingly, the notebook server corresponding to the user receives the page request information from the browser. The notebook server corresponding to the user may send the second data to be processed to the Kernel according to the configuration information. Correspondingly, the Kernel receives the data from the notebook server corresponding to the user, and determines that the data sent by the notebook server corresponding to the user to the Kernel according to the configuration information is the second data to be processed.

[0128] The second data to be processed may also include multiple data. The following takes the second data to be processed including two data (for example, the third data and the fourth data) as an example to illustrate the application deployment method of the present application. The third data corresponds to the first notebook server, and the fourth data corresponds to the second notebook server. The first notebook server and the second notebook server are both notebook servers in at least one notebook server. In this case, combined with Figure 6 ,like Figure 8 As shown, the specific implementation process of the above S604 may include the following S801-S805.

[0129] S801: The first notebook server sends third data to the kernel according to configuration information. Correspondingly, the kernel receives the third data from the first notebook server.

[0130] It should be noted that S801 can be understood by referring to the above S502, which will not be described in detail here.

[0131] S802: The second notebook server sends fourth data to the Kernel according to the configuration information. Correspondingly, the Kernel receives the fourth data from the second notebook server.

[0132] It should be noted that S802 can be understood by referring to the above S502, which will not be described in detail here.

[0133] The above technical solution brings at least the following beneficial effects: The present application provides an application deployment method, wherein the kernel receives the third data from the first notebook server and the fourth data from the second notebook server. In this way, in a scenario where the notebook server has fewer tasks and the kernel has more tasks, fewer notebook servers and more kernels can be set, so that the computing resources of the notebook server and the kernel are not wasted as much as possible, thereby increasing the resource utilization of the computing resources.

[0134] In this case, the specific implementation process of the above S605 may include the following S803-S805.

[0135] S803: Kernel processes the third data and determines a result to be processed corresponding to the third data.

[0136] It should be noted that S803 can be understood by referring to the above S504, which will not be described in detail here.

[0137] S804. Kernel processes the fourth data and determines a result to be processed corresponding to the fourth data.

[0138] It should be noted that S804 can be understood by referring to the above S504, which will not be described in detail here.

[0139] S805. Kernel determines that the processing result corresponding to the second data to be processed includes the processing result corresponding to the third data to be processed and the processing result corresponding to the fourth data to be processed.

[0140] It should be noted that after the Kernel determines the sorting result corresponding to the second data to be processed according to the second data to be processed, it is also necessary to send the processing result corresponding to the second data to be processed to the notebook server. Figure 8 ,like Fig. 9 As shown, after S803, the method may further include the following S901; after S804, the method may further include the following S902.

[0141] S901, Kernel sends a processing result corresponding to the third data to the first notebook server. Correspondingly, the first notebook server receives the processing result corresponding to the third data from Kernel.

[0142] It should be noted that after the first notebook server receives the processing result corresponding to the third data from the Kernel, the first notebook server sends the processing result corresponding to the third data to the browser, so that the browser can display the processing result corresponding to the third data to the user.

[0143] S902: Kernel sends the processing result corresponding to the fourth data to the second notebook server. Correspondingly, the second notebook server receives the processing result corresponding to the fourth data from Kernel.

[0144] It should be noted that S902 can be understood by referring to the above S901 and will not be described in detail here.

[0145] The above technical solution brings at least the following beneficial effects: the present application provides an application deployment method, after the first notebook server receives the processing result corresponding to the third data from the Kernel, the first notebook server sends the processing result corresponding to the third data to the browser; and after the second notebook server receives the processing result corresponding to the fourth data from the Kernel, the second notebook server sends the processing result corresponding to the fourth data to the browser, so that the browser can display the processing result corresponding to the third data and the processing result corresponding to the fourth data to the user.

[0146] It should be pointed out that the above description only takes the example that the second data to be processed includes two data. In the specific implementation process, the second data to be processed may include any number of data to be processed. The specific implementation process is similar to the process recorded above, and this application will not repeat it.

[0147] It should be noted that the application deployment method provided in the embodiment of the present application can also be applied to other scenarios (for example, deploying multiple notebook servers (i.e., deploying multiple first containers) and multiple notebook servers (i.e., deploying multiple second containers) in Jupyter notebook.) The application deployment method in other scenarios can refer to the above Figure 3-Figure 9 The above can be understood in the manner shown and will not be described in detail here.

[0148] It should be noted that this application does not limit the notebook server included in the Jupyter notebook or the number of notebook servers.

[0149] It is understandable that the above-mentioned application deployment method can be implemented by an application deployment device. In order to realize the above-mentioned functions, the application deployment device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the modules and algorithm steps of each example described in the embodiments disclosed herein, the embodiments disclosed in this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the embodiments disclosed in this application.

[0150] The embodiments disclosed in the present application can divide the functional modules according to the application deployment device generated by the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiments disclosed in the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation.

[0151] Fig.10 A schematic diagram of the structure of an application deployment device provided by an embodiment of the present invention. Fig.10 As shown, the application deployment apparatus 100 can be used to execute Figure 3-Figure 9 The application deployment method shown. The application deployment device 100 includes a communication unit 1001 and a processing unit 1002;

[0152] The communication unit 1001 is used to obtain configuration information of at least one Kernel.

[0153] The configuration information of any one of the at least one Kernel includes the IP address and port identifier of any one of the Kernel. The notebook server is deployed in the first container, and the at least one Kernel is respectively deployed in at least one second container.

[0154] The processing unit 1002 is used to determine first data to be processed and determine a Kernel corresponding to the first data to be processed.

[0155] The Kernel corresponding to the first data to be processed is one or more Kernel in the at least one Kernel.

[0156] The processing unit 1002 is further used to send the first data to be processed to the Kernel corresponding to the first data to be processed according to the configuration information of the Kernel corresponding to the first data to be processed. In a possible implementation, the first data to be processed includes the first data and the second data; the first data corresponds to the first Kernel, and the second data corresponds to the second Kernel; the first Kernel and the second Kernel are both Kernel in at least one Kernel; the processing unit 1002 is specifically used to: the notebook server determines the configuration information of the first Kernel and the configuration information of the second Kernel according to the configuration information of at least one Kernel; the notebook server sends the first data to the first Kernel according to the configuration information of the first Kernel; the notebook server sends the second data to the second Kernel according to the configuration information of the second Kernel.

[0157] In a possible implementation, the computing resources corresponding to the first container include central processing unit (CPU) resources; and the computing resources corresponding to the second container include at least one of CPU resources and graphics processing unit (GPU) resources.

[0158] Fig.11 A schematic diagram of the structure of another application deployment device provided by an embodiment of the present invention. Fig.11 As shown, the application deployment device 110 can be used to execute Figure 3-Figure 9 The application deployment method shown. The application deployment device 110 includes a communication unit 1101 and a processing unit 1102;

[0159] The processing unit 1102 is used to determine the configuration information of the Kernel; the configuration information of the Kernel includes the IP address and port identifier of the Kernel.

[0160] The communication unit 1101 is used to send the configuration information of the Kernel to at least one notebook server; the at least one notebook server is deployed in at least one first container, and the Kernel is deployed in a second container.

[0161] The communication unit 1101 is further used to obtain second data to be processed; the second data to be processed is data sent to the Kernel by one or more notebook servers in the at least one notebook server according to the configuration information of the Kernel.

[0162] The processing unit 1102 is further configured to process second data to be processed and generate a processing result corresponding to the second data to be processed.

[0163] In a possible implementation, the second data to be processed includes third data and fourth data; the third data corresponds to the first notebook server, and the fourth data corresponds to the second notebook server; the first notebook server and the second notebook server are both notebook servers in the at least one notebook server; the communication unit 1101 is specifically used for: the Kernel receives the third data from the first notebook server; the Kernel receives the fourth data from the second notebook server; the Kernel determines the second data to be processed according to the third data and the fourth data.

[0164] The processing unit 1102 is specifically used for: the kernel processes the third data to determine the result to be processed corresponding to the third data; the kernel processes the fourth data to determine the result to be processed corresponding to the fourth data; the kernel determines that the processing result corresponding to the second data to be processed includes the result to be processed corresponding to the third data and the result to be processed corresponding to the fourth data.

[0165] In a possible implementation, after the Kernel processes the third data and determines the result to be processed corresponding to the third data, the processing unit 1102 is further used to: send the processing result corresponding to the third data to the first notebook server; after the Kernel processes the fourth data and determines the result to be processed corresponding to the fourth data, the processing unit 1102 is further used to: send the processing result corresponding to the fourth data to the second notebook server.

[0166] In a possible implementation, the computing resources corresponding to the first container include central processing unit (CPU) resources; and the computing resources corresponding to the second container include at least one of CPU resources and graphics processing unit (GPU) resources.

[0167] In the case of implementing the functions of the above-mentioned integrated modules in the form of hardware, the embodiment of the present invention provides another possible structural diagram of the application deployment device involved in the above-mentioned embodiment. Fig.12 As shown, an application deployment 120, for example, for executing Figure 3-Figure 9 The application deployment method shown in the figure. The application deployment 120 includes a processor 1201, a memory 1202 and a bus 1203. The processor 1201 and the memory 1202 may be connected via the bus 1203.

[0168] The processor 1201 is the control center of the communication device, which can be a processor or a general term for multiple processing elements. For example, the processor 1201 can be a general-purpose central processing unit (CPU) or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor.

[0169] As an embodiment, the processor 1201 may include one or more CPUs, such as Fig.12 CPU 0 and CPU 1 are shown in .

[0170] The memory 1202 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or other type of dynamic storage device that can store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0171] As a possible implementation, the memory 1202 may exist independently of the processor 1201, and the memory 1202 may be connected to the processor 1201 via the bus 1203, and is used to store instructions or program codes. When the processor 1201 calls and executes the instructions or program codes stored in the memory 1202, the method for determining rich media provided in the embodiment of the present invention can be implemented.

[0172] In another possible implementation, the memory 1202 may also be integrated with the processor 1201 .

[0173] The bus 1203 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.12 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0174] It should be pointed out that Fig.12 The illustrated structure does not constitute a limitation on the application deployment 120. Fig.12 In addition to the components shown, the application deployment 120 may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0175] Optional, such as Fig.12 As shown, the application deployment 120 provided in the embodiment of the present invention may also include a communication interface 1204 .

[0176] The communication interface 1204 is used to connect with other devices through a communication network. The communication network may be Ethernet, wireless access network, wireless local area network (WLAN), etc. The communication interface 1204 may include a receiving unit for receiving data and a sending unit for sending data.

[0177] In one design, in the application deployment provided by an embodiment of the present invention, the communication interface may also be integrated into the processor.

[0178] Fig.13 FIG. 2 shows another hardware structure for deploying application programs in an embodiment of the present invention. Fig.13 As shown, the application deployment 130 may include a processor 1301 and a communication interface 1302. The processor 1301 is coupled to the communication interface 1302.

[0179] The functions of the processor 1301 may refer to the description of the processor 1301. In addition, the processor 1301 also has a storage function, which may refer to the function of the memory 1302.

[0180] The communication interface 1302 is used to provide data to the processor 1301. The communication interface 1302 may be an internal interface of the communication device or an external interface of the communication device.

[0181] It should be pointed out that Fig.13 The structure shown in the figure does not constitute a limitation on the application deployment 130, except Fig.13 In addition to the components shown, the application deployment 130 may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0182] Through the description of the above implementation methods, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units is used as an example. In practical applications, the above functions can be assigned to different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0183] An embodiment of the present invention further provides a computer-readable storage medium, in which instructions are stored. When a computer executes the instructions, the computer executes each step in the method flow shown in the above method embodiment.

[0184] An embodiment of the present invention provides a computer program product including instructions. When the instructions are executed on a computer, the computer is enabled to execute the method for determining rich media in the above method embodiment.

[0185] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, and a hard disk. Random Access Memory (RAM), Read-Only Memory (ROM), Erasable Programmable Read Only Memory (EPROM), registers, hard disks, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any other form of computer-readable storage medium in a suitable combination of the above, or numerical values ​​in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an Application Specific Integrated Circuit (ASIC). In embodiments of the present invention, computer-readable storage media may be any tangible media that contains or stores a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0186] Since the apparatus, device, computer-readable storage medium, and computer program product in the embodiments of the present invention can be applied to the above-mentioned method, the technical effects that can be obtained can also refer to the above-mentioned method embodiments, and the embodiments of the present invention will not be described in detail here.

[0187] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions within the technical scope disclosed by the present invention should be included in the protection scope of the present invention.

Claims

1. A method for deploying an application program, It is characterized in that include: The notebook server obtains configuration information of at least one kernel; The configuration information of any one of the at least one Kernel includes: a networking protocol IP address and a port identifier of the any one Kernel; wherein the notebook server is deployed in a first container, and the at least one Kernel is respectively deployed in at least one second container; The notebook server determines first data to be processed, and determines a Kernel corresponding to the first data to be processed; the Kernel corresponding to the first data to be processed is one or more Kernel in the at least one Kernel; The notebook server sends the first data to be processed to the Kernel corresponding to the first data to be processed according to the configuration information of the Kernel corresponding to the first data to be processed.

2. The method according to claim 1, It is characterized in that The first data to be processed includes: first data and second data; the first data corresponds to a first Kernel, and the second data corresponds to a second Kernel; the first Kernel and the second Kernel are both Kernel in the at least one Kernel; The notebook server sends the first data to be processed to the Kernel corresponding to the first data to be processed according to the configuration information of the Kernel corresponding to the first data to be processed, including: The notebook server determines the configuration information of the first Kernel and the configuration information of the second Kernel according to the configuration information of the at least one Kernel; The notebook server sends the first data to the first Kernel according to the configuration information of the first Kernel; The notebook server sends the second data to the second Kernel according to the configuration information of the second Kernel.

3. The method according to claim 1 or 2, It is characterized in that The computing resources corresponding to the first container include central processing unit (CPU) resources; the computing resources corresponding to the second container include at least one of the CPU resources and graphics processing unit (GPU) resources.

4. A method for deploying an application program, It is characterized in that include: The kernel determines the configuration information of the kernel; The configuration information of the Kernel includes the networking protocol IP address and port identifier of the Kernel; The Kernel sends configuration information of the Kernel to at least one notebook server; the at least one notebook server is respectively deployed in at least one first container, and the Kernel is deployed in a second container; The Kernel acquires second data to be processed; the second data to be processed is data sent to the Kernel by one or more notebook servers among the at least one notebook server according to configuration information of the Kernel; The Kernel processes the second data to be processed and generates a processing result corresponding to the second data to be processed.

5. The method according to claim 4, It is characterized in that The second data to be processed includes: third data and fourth data; the third data corresponds to the first notebook server, and the fourth data corresponds to the second notebook server; the first notebook server and the second notebook server are both notebook servers in the at least one notebook server; The Kernel obtains the second data to be processed, including: The Kernel receives the third data from the first notebook server; The Kernel receives the fourth data from the second notebook server; The Kernel determines the second data to be processed according to the third data and the fourth data; The Kernel processes the second data to be processed and generates a processing result corresponding to the second data to be processed, including: The Kernel processes the third data and determines a result to be processed corresponding to the third data; The Kernel processes the fourth data and determines a result to be processed corresponding to the fourth data; The Kernel determines that the processing result corresponding to the second data to be processed includes the result to be processed corresponding to the third data and the result to be processed corresponding to the fourth data.

6. The method according to claim 5, It is characterized in that After the Kernel processes the third data and determines the to-be-processed result corresponding to the third data, the method further includes: The Kernel sends a processing result corresponding to the third data to the first notebook server; After the Kernel processes the fourth data and determines the to-be-processed result corresponding to the fourth data, the method further includes: The Kernel sends a processing result corresponding to the fourth data to the second notebook server.

7. The method according to any one of claims 4 to 6, It is characterized in that The computing resources corresponding to the first container include central processing unit (CPU) resources; the computing resources corresponding to the second container include at least one of the CPU resources and graphics processing unit (GPU) resources.

8. An application deployment device, It is characterized in that include: a communication unit and a processing unit; The communication unit is used to obtain configuration information of at least one kernel; The configuration information of any one of the at least one Kernel includes: a networking protocol IP address and a port identifier of the any one Kernel; wherein the notebook server is deployed in a first container, and the at least one Kernel is respectively deployed in at least one second container; The processing unit is used to determine first data to be processed, and determine a Kernel corresponding to the first data to be processed; the Kernel corresponding to the first data to be processed is one or more Kernel in the at least one Kernel; The processing unit is further configured to send the first data to be processed to the Kernel corresponding to the first data to be processed according to the configuration information of the Kernel corresponding to the first data to be processed.

9. The device according to claim 8, It is characterized in that The first data to be processed includes: first data and second data; the first data corresponds to a first Kernel, and the second data corresponds to a second Kernel; the first Kernel and the second Kernel are both Kernel in the at least one Kernel; The processing unit is specifically used for: The notebook server determines the configuration information of the first Kernel and the configuration information of the second Kernel according to the configuration information of the at least one Kernel; The notebook server sends the first data to the first Kernel according to the configuration information of the first Kernel; The notebook server sends the second data to the second Kernel according to the configuration information of the second Kernel.

10. The device according to claim 8 or 9, It is characterized in that The computing resources corresponding to the first container include central processing unit (CPU) resources; the computing resources corresponding to the second container include at least one of the CPU resources and graphics processing unit (GPU) resources.

11. An application deployment device, It is characterized in that include: a communication unit and a processing unit; The processing unit is used to determine the configuration information of the kernel; The configuration information of the Kernel includes the networking protocol IP address and port identifier of the Kernel; The communication unit is used to send configuration information of the Kernel to at least one notebook server; the at least one notebook server is respectively deployed in at least one first container, and the Kernel is deployed in a second container; The communication unit is further used to obtain second data to be processed; the second data to be processed is data sent to the Kernel by one or more notebook servers of the at least one notebook server according to the configuration information of the Kernel; The processing unit is further used to process the second data to be processed and generate a processing result corresponding to the second data to be processed.

12. The device according to claim 11, It is characterized in that The second data to be processed includes: third data and fourth data; the third data corresponds to the first notebook server, and the fourth data corresponds to the second notebook server; the first notebook server and the second notebook server are both notebook servers in the at least one notebook server; The communication unit is specifically used for: The Kernel receives the third data from the first notebook server; The Kernel receives the fourth data from the second notebook server; The Kernel determines the second data to be processed according to the third data and the fourth data; The processing unit is specifically used for: The Kernel processes the third data and determines a result to be processed corresponding to the third data; The Kernel processes the fourth data and determines a result to be processed corresponding to the fourth data; The Kernel determines that the processing result corresponding to the second data to be processed includes the result to be processed corresponding to the third data and the result to be processed corresponding to the fourth data.

13. The device according to claim 12, It is characterized in that After the Kernel processes the third data and determines a result to be processed corresponding to the third data, the processing unit is further configured to: Sending a processing result corresponding to the third data to the first notebook server; After the Kernel processes the fourth data and determines a result to be processed corresponding to the fourth data, the processing unit is further configured to: Sending a processing result corresponding to the fourth data to the second notebook server.

14. The device according to any one of claims 11 to 13, It is characterized in that The computing resources corresponding to the first container include central processing unit (CPU) resources; the computing resources corresponding to the second container include at least one of the CPU resources and graphics processing unit (GPU) resources.

15. An application deployment device, It is characterized in that include: A processor and a communication interface; the communication interface is coupled to the processor, and the processor is used to run a computer program or instruction to implement the application deployment method as described in any one of claims 1-7.

16. A computer-readable storage medium having stored therein instructions, It is characterized in that When a computer executes the instruction, the computer executes the application deployment method described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Machine learning task processing method and device based on distributed cluster and equipment

    CN112286682A

  • Container service resource dynamic capacity expansion method, system and device and storage medium

    CN113032153A