Container non-perception starting method and system

A non-aware, container technology, applied in the field of cloud computing, can solve the problems of resource waste, difficult to meet fast response functions, reduce cold start delay, etc., to improve performance, reduce cold start time and resource waste, and improve resource utilization. Effect

Pending Publication Date: 2022-05-20
NARI TECH CO LTD +1
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, serverless adopts an on-demand structure, and idle function instances will be deleted during runtime. Therefore, when the function is called again, the platform will restart a new instance and redeploy the operating environment and software code, resulting in a large number of service calls. The delay of the function startup seriously affects the responsiveness of the serverless
[0003] Therefore, many researchers have proposed optimizations for the cold start problem of no service. For example, Oakes et al. tried to reduce the startup time of cloud functions by caching the packages required by the function in the working nodes, and proposed a shared package cache. When a cloud function is When assigned to a worker node, the cache checks whether the required package is cached. The disadvantage is that a large number of cached packages occupy service resources
Mohan et al. adopted a container pool strategy to reduce cold start delays. They pre-run empty containers so that new containers can be obtained directly from the container pool when the function is triggered without restarting the new container. However, this method uses a static container pool capacity , which will lead to waste of resources when there are few function user requests
Harter et al. studied the software packages installed when starting a function instance, so as to prioritize the necessary software packages to achieve rapid software deployment, and delay loading of non-essential software packages. Although this method can effectively reduce the instance startup delay, it still cannot avoid cold The emergence of startup, it is difficult to meet the requirements of fast response functions

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 non-perception starting method and system
  • Container non-perception starting method and system
  • Container non-perception starting method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0059] An embodiment of the present invention provides a method for starting a container without perception, which is implemented based on a serverless platform, and specifically includes the following steps:

[0060] Step 1: The service access gateway receives the user request, and the user request includes function dependencies and function source codes to obtain the software packages that the user requests depend on; the software packages refer to the software packages installed when starting the function instance;

[0061] Step 2: Match the container information with the local database using the software package name as the keyword, and put the user request into the cold standby queue or hot standby queue according to the matching result;

[0062] The embodiment of the present invention uses a tree structure to store container information and dependent software packages. After analyzing the dependent software packages required by the user's request, the name of the software...

Embodiment 2

[0120] Such as figure 1 As shown, the embodiment of the present invention provides a serverless platform-based container non-aware startup system, which can be used to implement the container non-aware startup method described in Embodiment 1, including an interpreter, a processor, and a container manager;

[0121] Interpreter: used to receive and parse user requests to obtain the software packages that the user requests depend on; use the name of the software package as a keyword to match the container information with the local database, and put the user request into the cold standby queue or hot standby queue;

[0122] Processor: used to perform security authentication on user requests of cold standby queues and hot standby queues, perform cluster analysis on user requests that pass security authentication, and obtain instruction categories of user requests;

[0123] Container manager: used to select a running container with the highest similarity in the hot standby pool a...

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 container non-perception starting method and system based on a serverless platform, and the method comprises the following steps: analyzing a user request through an interpreter, and transmitting the user request to a cold standby queue or a hot standby queue; the processor performs security authentication on the user request instructions of the cold standby queue and the hot standby queue, performs clustering analysis on the user requests passing the security authentication, and forwards the user request instructions subjected to the clustering analysis to the container manager; the container manager is responsible for creating a container, calling a trigger function and scheduling the container; and the resource monitor is responsible for creating, updating and closing containers in the hot standby pool, and comprises a combined container, a decomposed memory or a container of which the CPU exceeds a threshold value, and a periodically started and stopped container. Compared with the prior art, the method has the advantages that container initialization and dependent program package loading are accelerated, and resources are effectively saved.

Description

technical field [0001] The invention relates to a method and system for starting a container without perception, and belongs to the technical field of cloud computing. Background technique [0002] With the continuous development of cloud computing technology, serverless technology (serverless) has become an inevitable trend in the development of cloud computing. Enterprises only need to provide cloud providers with the cost of renting resources, and they can use resources to call services when user requests come. When there is no user request, it does not occupy any resources, and billing is based on the number of calls and the duration. Compared with the traditional online service model, serverless computing greatly reduces the user's cost of use, so that users do not need to pay attention to server configuration issues to simplify It simplifies development and provides better scalability than traditional online services. However, serverless adopts an on-demand structure,...

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/455G06F9/50G06K9/62
CPCG06F9/45558G06F9/5027G06F9/5072G06F18/23
Inventor 陈兴亮高原顾文杰丁雨恒马德超顾雯轩董子奇陈泊宇符鹏陈旻昱汤雨豪刘威郑磊
Owner NARI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products