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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com