Container resource processing method, apparatus and device
A processing method and container technology, which are applied in the directions of resource allocation, multi-programming device, electronic digital data processing, etc., can solve the problems such as the inability of container resources to run user code, waste of container resources, etc., so as to reduce the delivery time and improve the utilization. rate, the effect of reducing latency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] In the embodiment of the present invention, the container service platform may include a central server and multiple host machines. At least one container is pre-created on each host, and a lightweight basic image is running in the container. All containers on each host constitute a reserved container resource pool. Information about all containers in the container resource pool can be stored on the central server. The central server deploys an agent (agent) service on each host, and the agent service is used to configure and process all the containers on the host. The central server can complete the configuration processing of any container on the host machine where the proxy service is located by calling the proxy service.
[0035] figure 1 It is a flowchart of a container resource processing method provided by Embodiment 1 of the present invention. The embodiments of the present invention aim at reserving container resources. When a user submits a user code, the ...
Embodiment 2
[0048] figure 2 It is a flowchart of a method for processing container resources provided by Embodiment 2 of the present invention. On the basis of the first embodiment above, in this embodiment, before receiving the operation instruction for the user code, it also includes: receiving the container resource application information submitted by the user terminal, the container resource application information includes at least the user code and the code corresponding to the user code Language type: store the user code, and record the code identification, code language type and file directory of the user code. Such as figure 2 As shown, the specific steps of the method are as follows:
[0049] Step S201: Receive container resource application information submitted by a user terminal, where the container resource application information includes at least a user code and a code language type corresponding to the user code.
[0050] The user submits container resource applicat...
Embodiment 3
[0080] image 3 It is a schematic structural diagram of an apparatus for processing container resources provided by Embodiment 3 of the present invention. The apparatus for processing container resources provided in the embodiments of the present invention can execute the processing flow provided in the embodiments of the method for processing container resources. Such as image 3 As shown, the device 30 includes: a receiving module 301 , an allocating module 302 , a configuring module 303 and a starting module 304 .
[0081] Specifically, the receiving module 301 is configured to receive an execution instruction for the user code, where the execution instruction includes at least a code identification of the user code.
[0082] The allocating module 302 is used for allocating a target container for the user code according to the running instruction, and the target container is an idle container resource in the pre-created container resource pool.
[0083] The configuration...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


