Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Pending Publication Date: 2018-12-07
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF6 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a method, device and equipment for processing container resources, which are used to solve the problem of reserving container resources. When a user submits user code, the container resource is reserved for the user to run the user code, and the container resource cannot be used. Used to run other user codes, causing waste of container resources

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Container resource processing method, apparatus and device
  • Container resource processing method, apparatus and device
  • Container resource processing method, apparatus and device

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a container resource processing method, apparatus and device. The method includes the steps of by pre-establishing a container resource pool, Upon receipt of an instruction to run user code, assigning a target container to the user code from the container resource pool, mounting the corresponding user code and runtime file identified by the code in the running instruction into the target container, completing the configuration processing of the target container, starting the target container to run the user code, without temporarily creating the container resource whenthe user code is run, thereby reducing the delay in creating the container, reducing the delivery time of the container resource, and realizing the delivery and use of the millisecond-level containerresource. Moreover, the idle container in the container resource pool is allocated to the user code only when the user code is running, and the idle container is in an idle state before being allocated to the user code and can be allocated to any user code for use, thereby improving the utilization rate of the container resource.

Description

technical field [0001] The present invention relates to the technical field of computer software, in particular to a container resource processing method, device and equipment. Background technique [0002] Docker is an open source application container engine, which has the advantage of being lightweight and easy to deploy. At present, cloud platforms generally use Docker technology to provide cloud services to users. Cloud platforms are container service platforms that can provide container resources to users. [0003] Since it takes a long time to create container resources, if the container service platform temporarily creates a container for the user code and completes the container configuration when the user code is called, it will cause delays in the running of the user code. At present, when container service platforms provide container resources to users, they mostly use the method of reserving container resources: users send container resource usage applications ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/50
CPCG06F9/5005
Inventor 何方石孟圣智
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD