Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Function cold start method and device, electronic equipment and readable storage medium

A cold start and function technology, applied in the direction of program control device, program loading/starting, climate sustainability, etc., can solve the problem of time-consuming loading of middleware and achieve the effect of reducing time-consuming

Pending Publication Date: 2022-05-31
BEIJING SANKUAI ONLINE TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] Embodiments of the present invention provide a function cold start method and device, electronic equipment, and a readable storage medium to at least solve the technical problem of time-consuming function cold start due to middleware loading when rich middleware functions are instantiated in the related art

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
  • Function cold start method and device, electronic equipment and readable storage medium
  • Function cold start method and device, electronic equipment and readable storage medium
  • Function cold start method and device, electronic equipment and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] In the prior art, cold start is the main problem faced by FaaS (Functions as a Service, function as a service)). In the case that there is no function instance, a request to the function will trigger a cold start. Due to the rich middleware in related technologies When the function is instantiated, the cold start of the function is time-consuming due to the technical problem of middleware loading.

[0033] In order to solve the above problems, according to an embodiment of the present invention, a function cold start method is provided, such as figure 1 As shown, the method includes:

[0034] S102. Download the target function to the target container according to the scheduling command corresponding to the target function, wherein the target container is pre-deployed with a container image, and the target container is pre-loaded with middleware;

[0035] S104. Run the target function in the target container.

[0036] In this embodiment, the target container includes b...

Embodiment 2

[0075] According to an embodiment of the present invention, there is also provided a functional cold start device for implementing the above function cold start method, such as Figure 4 As shown, the device includes:

[0076] 1) The download module 40 is used to download the target function to the target container according to the scheduling command corresponding to the target function, wherein the target container is pre-deployed with a container image, and the target container is pre-loaded with middleware;

[0077] 2) An execution module 42, configured to run the target function in the target container.

[0078] Optionally, in this embodiment, it also includes:

[0079] 1) a processing module, configured to construct the container image before the target function is downloaded to the target container according to the scheduling command corresponding to the target function;

[0080] 2) a deployment processing module, configured to deploy the target container according to ...

Embodiment 3

[0096] According to an embodiment of the present invention, an electronic device is also provided, including a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is executed by the processor The steps to implement the function cold start method described above when executed.

[0097] Optionally, in this embodiment, the memory is configured to store program codes for performing the following steps:

[0098] S1. Download the target function to the target container according to the scheduling command corresponding to the target function, wherein the target container is pre-deployed with a container image, and the target container is pre-loaded with middleware;

[0099] S2. Run the target function through the target container.

[0100] Optionally, for a specific example in this embodiment, reference may be made to the example described in Embodiment 1 above, and details will not be repeated here in ...

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 discloses a function cold start method and device, electronic equipment and a readable storage medium. The method comprises the steps that a target function is downloaded to a target container according to a scheduling command corresponding to the target function, a container mirror image is deployed in the target container in advance, and middleware is loaded in the target container in advance; and running the target function in the target container. According to the method and the device, the technical problem of time consumption of function cold start due to middleware loading during instantiation of a rich middleware function in related technologies is solved.

Description

technical field [0001] The invention relates to the technical field of software development, in particular to a function cold start method and device, electronic equipment and a readable storage medium. Background technique [0002] Cold start is the main problem faced by FaaS (Functions as a Service, function as a service)). When no function instance exists, a request for the function will trigger a cold start, and a cold start is usually time-consuming. The process of FaaS cold start includes: [0003] 1) Machine resource scheduling; [0004] 2) Download and decompress the function code; [0005] 3) Start Runtime; [0006] 4) Load function. [0007] When the cold start is complete, the function instance is ready and the function can process the request. Each process has different degrees of overhead, among which steps 1)-3) are the cold start overhead at the system level, and step 4) is the cold start overhead at the application level, such as remote procedure call RP...

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/445G06F9/455
CPCG06F9/44505G06F9/44521G06F9/45558G06F2009/45575G06F2009/45562Y02D10/00
Inventor 陈康强张隐松
Owner BEIJING SANKUAI ONLINE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products