CN110287004A - Basic environment mirror image pre-heating mean and device based on docker container technique - Google Patents
Basic environment mirror image pre-heating mean and device based on docker container technique Download PDFInfo
- Publication number
- CN110287004A CN110287004A CN201910602356.5A CN201910602356A CN110287004A CN 110287004 A CN110287004 A CN 110287004A CN 201910602356 A CN201910602356 A CN 201910602356A CN 110287004 A CN110287004 A CN 110287004A
- Authority
- CN
- China
- Prior art keywords
- inventory
- mirror image
- preheating
- mirror
- host
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/172—Caching, prefetching or hoarding of files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45575—Starting, stopping, suspending or resuming virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Facsimiles In General (AREA)
Abstract
The invention discloses a kind of basic environment mirror image pre-heating means and device based on docker container technique, this method comprises: determining corresponding host tag inventory and the corresponding basic environment mirror image inventory to be gone into operation of each host label according to the application foundation environment mirror inventory that summarizes to be gone into operation;Determine that each host label corresponds to local basis environment mirror inventory;The corresponding Increment Basis environment mirror inventory of each host label is determined according to the local basis environment mirror inventory and the basic environment mirror image inventory to be gone into operation;It is local to corresponding host that the Increment Basis environment mirror in the Increment Basis environment mirror inventory is pulled according to the preheating configuration parameter of the Increment Basis environment mirror inventory and user setting.The present invention solves the prior art during version alternates, and concurrently pulling mirror image overlong time causes container to start slow technical problem.
Description
Technical field
The present invention relates to cloud computing docker mirror image field, in particular to a kind of based on docker container technique
Basic environment mirror image pre-heating mean and device.
Background technique
Open source container engine docker allows developer to run multiple containers (container) in separate unit host,
An independent application runtime environment is provided separately in each container.And the publication of container depends on packed mirror image
(image), mirror image be often stored in a manner of bedding storage in file system with facilitate share some Image Planes reach section
The purpose about stored, developer mirror image can be pushed to mirror image warehouse (registry) carry out mirror image storage, then by from
Mirror image warehouse, which pulls, is mirrored to local host operation container.
In the container cloud cluster of large-scale data center, thousands of container node is deployed in large-scale host resource
In Chi Zhong, especially the container cloud across data center deployment, container node is even more increase at double.Simultaneously in the cloud epoch, greatly
Amount application can constantly generate the mirror image of iteration version, this to apply when version alternates, and have a large amount of container node concurrently to connect
The mirror image for being connected to mirror image warehouse progress new version pulls, this when of mirror image warehouse is in concurrent connection number, magnetic disc i/o, Netowrk tape
The aspect of performance such as width all suffer from great challenge, are easy to appear mirror image and pull that speed is excessively slow, and even resulting in application container can not
The problem of starting on time.
The mirror image warehouse open source solution of current main-stream has Docker hub and Harbor etc., but these solutions are only
Mirrored storage, distribution and the basic management function for providing only basis can not solve the large-scale container cluster across data center
To mirror image warehouse support high concurrent, high network bandwidth, it is high in terms of requirement.Existing performance boost scheme is past
It is past that load capacity is promoted in a manner of mirror image warehouse cluster lateral dilatation mirror image warehouse node, but due to mirror image warehouse section
Point need to provide the characteristic in terms of high storage capacity and high magnetic disc i/o, can not carry out lateral dilatation in such a way that cloud container is flexible,
Dilatation scheme is often to dispose the mirror image warehouse of more copies on virtual machine or physical machine simultaneously, and this method often will cause larger
The wasting of resources and maintenance cost.
At least one of in order to solve the above-mentioned technical problem, the invention proposes a kind of based on docker container technique
Basic environment mirror image pre-heating mean and device.
Summary of the invention
The main purpose of the present invention is to provide a kind of basic environment mirror image pre-heating mean based on docker container technique
And device, to solve the prior art during version alternates, concurrently pulling mirror image overlong time causes container starting slow
Technical problem.
To achieve the goals above, according to an aspect of the invention, there is provided it is a kind of based on docker container technique
Basic environment mirror image pre-heating mean, this method comprises:
Corresponding host tag inventory and each place are determined according to the application foundation environment mirror inventory that summarizes to be gone into operation
The corresponding basic environment mirror image inventory to be gone into operation of host label, wherein it is described summarize application foundation environment mirror inventory include to
The information and the corresponding host label of each basic environment mirror image for all basic environment mirror images gone into operation;
Determine that each host label corresponds to local basis environment mirror inventory;
It is determined according to the local basis environment mirror inventory and the basic environment mirror image inventory to be gone into operation described each
The corresponding Increment Basis environment mirror inventory of host label;
The increment base is pulled according to the preheating configuration parameter of the Increment Basis environment mirror inventory and user setting
Increment Basis environment mirror in plinth environment mirror inventory is local to corresponding host, wherein the preheating configuration parameter packet
It includes: network bandwidth, the storage read-write number per second in mirror image warehouse and preheating time.
Further, this method further includes:
Determine the corresponding host quantity of each host label.
Further, described to be drawn according to the preheating configuration parameter of the Increment Basis environment mirror inventory and user setting
Take the Increment Basis environment mirror in the Increment Basis environment mirror inventory local to corresponding host, comprising:
It is generated according to the Increment Basis environment mirror inventory, the preheating configuration parameter and the host quantity pre-
Heat mirror is as inventory;
Preheating mirror image, which is generated, according to the preheating mirror image inventory pulls queue;
Queue is pulled according to the preheating mirror image gradually pull the basic environment in queue be mirrored to corresponding host sheet
Ground.
Further, described to be drawn according to the preheating configuration parameter of the Increment Basis environment mirror inventory and user setting
Take the Increment Basis environment mirror in the Increment Basis environment mirror inventory local to corresponding host, further includes:
It is calculated according to the Increment Basis environment mirror inventory, the preheating configuration parameter and the host quantity pre-
Hot line journey number of concurrent;
It is described queue pulled according to the preheating mirror image gradually pull the basic environment in queue be mirrored to corresponding host
Machine is local, specifically includes:
Queue is pulled according to the preheating mirror image, and queue is gradually pulled using the background thread of the preheating thread number of concurrent
In basic environment to be mirrored to corresponding host local.
Further, described according to the Increment Basis environment mirror inventory, the preheating configuration parameter and the place
Host number generates preheating mirror image inventory, comprising:
Determine the size of each Increment Basis environment mirror in the Increment Basis environment mirror inventory;
The first iterative data total amount is determined according to the network bandwidth and the preheating time, according to the mirror image warehouse
It stores read-write number per second and the preheating time determines secondary iteration total amount of data;
According to the size of each Increment Basis environment mirror, the first iterative data total amount, the secondary iteration number
The preheating mirror image inventory is determined according to total amount and the host quantity.
Further, described according to the Increment Basis environment mirror inventory, the preheating configuration parameter and the place
Host number calculates preheating thread number of concurrent, comprising:
Determine the size of each Increment Basis environment mirror in the Increment Basis environment mirror inventory;
The first iterative data total amount is determined according to the network bandwidth and the preheating time, according to the mirror image warehouse
It stores read-write number per second and the preheating time determines secondary iteration total amount of data;
According to the size of each Increment Basis environment mirror, the first iterative data total amount, the secondary iteration number
The preheating thread number of concurrent is determined according to total amount and the host quantity.
To achieve the goals above, according to another aspect of the present invention, it provides a kind of based on docker container technique
Basic environment mirror image preheating device, the device include:
Subscriber policy configuration unit, for receiving the preheating configuration parameter of user setting, wherein the preheating configuration parameter
It include: network bandwidth, the storage read-write number per second in mirror image warehouse and preheating time;
Preheat mirror image inventory loading unit, for receive it is to be gone into operation summarize application foundation environment mirror inventory, and according to
It is described summarize application foundation environment mirror inventory determine corresponding host tag inventory and each host label it is corresponding to
Operation basic environment mirror image inventory, wherein the application foundation environment mirror inventory that summarizes includes all foundation rings to be gone into operation
The information of border mirror image and the corresponding host label of each basic environment mirror image;
Host Mirror Info acquiring unit, for determining that it is clear that each host label corresponds to local basis environment mirror
It is single;
Distinctness of image comparing unit, for according to the local basis environment mirror inventory and the foundation ring to be gone into operation
Border mirror image inventory determines the corresponding Increment Basis environment mirror inventory of each host label;
Mirror image Dispatching Unit, for being pulled according to the Increment Basis environment mirror inventory and the preheating configuration parameter
Increment Basis environment mirror in the Increment Basis environment mirror inventory is local to corresponding host.
Further, the host Mirror Info acquiring unit is also used to determine that each host label is corresponding
Host quantity.
Further, the mirror image Dispatching Unit, comprising:
Mirror image inventory generation module is preheated, for according to the Increment Basis environment mirror inventory, preheating configuration ginseng
The several and described host quantity generates preheating mirror image inventory;
Preheating mirror image pulls module, preheats mirror image for being generated according to the preheating mirror image inventory and pulls queue, and according to
The preheating mirror image pulls the basic environment that queue gradually pulls in queue and is mirrored to corresponding host local.
Further, the mirror image Dispatching Unit, further includes:
Thread number of concurrent determining module is preheated, for configuring according to the Increment Basis environment mirror inventory, the preheating
Parameter and the host quantity calculate preheating thread number of concurrent;
The preheating mirror image pulls module, is specifically used for:
Queue is pulled according to the preheating mirror image, and queue is gradually pulled using the background thread of the preheating thread number of concurrent
In basic environment to be mirrored to corresponding host local.
Further, the preheating mirror image inventory generation module, is specifically used for: determining that the Increment Basis environment mirror is clear
The size of each Increment Basis environment mirror in list;Determine that the first iterative data is total according to the network bandwidth and the preheating time
Amount, determines secondary iteration total amount of data according to the storage in mirror image warehouse read-write number per second and the preheating time;And
According to the size of each Increment Basis environment mirror, the first iterative data total amount, the secondary iteration total amount of data with
And the host quantity determines the preheating mirror image inventory.
Further, the preheating thread number of concurrent determining module, is specifically used for: determining the Increment Basis environment mirror
The size of each Increment Basis environment mirror in inventory;The first iterative data is determined according to the network bandwidth and the preheating time
Total amount determines secondary iteration total amount of data according to the storage in mirror image warehouse read-write number per second and the preheating time;With
And size, the first iterative data total amount, the secondary iteration total amount of data according to each Increment Basis environment mirror
And the host quantity determines the preheating thread number of concurrent.
To achieve the goals above, according to another aspect of the present invention, a kind of computer equipment, including storage are additionally provided
Device, processor and storage on a memory and the computer program that can run on a processor, the processor execution meter
The step in the above-mentioned basic environment mirror image pre-heating mean based on docker container technique is realized when calculation machine program.
To achieve the goals above, according to another aspect of the present invention, a kind of computer readable storage medium is additionally provided,
The computer-readable recording medium storage has computer program, real when the computer program executes in the computer processor
Step in the existing above-mentioned basic environment mirror image pre-heating mean based on docker container technique.
The invention has the benefit that the embodiment of the present invention passes through the corresponding basic environment of new version mirror image that will be to be gone into operation
Mirror image pulls host local in advance, and the pressure that mirror image warehouse pulls when reducing operation solves the prior art in version
During change, concurrently pulling mirror image overlong time causes container to start slow technical problem.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.In the accompanying drawings:
Fig. 1 is the process signal of basic environment mirror image pre-heating mean of the embodiment of the present invention based on docker container technique
Figure;
Fig. 2 is the first pass schematic diagram that basic environment mirror image of the embodiment of the present invention pulls method;
Fig. 3 is the second procedure schematic diagram that basic environment mirror image of the embodiment of the present invention pulls method;
Fig. 4 is the method flow diagram that the embodiment of the present invention determines preheating mirror image inventory;
Fig. 5 is the method flow diagram that the embodiment of the present invention determines preheating thread number of concurrent;
Fig. 6 is the structural block diagram of basic environment mirror image preheating device of the embodiment of the present invention based on docker container technique;
Fig. 7 is the composed structure schematic diagram of mirror image Dispatching Unit of the embodiment of the present invention;
Fig. 8 is the composed structure schematic diagram of subscriber policy configuration unit of the embodiment of the present invention;
Fig. 9 is the composed structure schematic diagram of preheating mirror image inventory loading unit of the embodiment of the present invention;
Figure 10 is the composed structure schematic diagram of host Mirror Info acquiring unit of the embodiment of the present invention;
Figure 11 is computer equipment schematic diagram of the embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
It should be noted that term " includes " and " tool in description and claims of this specification and above-mentioned attached drawing
Have " and their any deformation, it is intended that cover it is non-exclusive include, for example, containing a series of steps or units
Process, method, system, product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include without clear
Other step or units listing to Chu or intrinsic for these process, methods, product or equipment.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.The present invention will be described in detail below with reference to the accompanying drawings and embodiments.
Docker container technique in such a way that application program and its basic environment medium are packaged into docker mirror image come
Facilitate the publication of version, and the storage mode of docker mirror image uses the storage mode of increment, application version is in adhoc basis ring
Increment change version on the basis of border mirror image, often basic environment mirror image includes environment when application program is run, and is such as operated
System and JDK (Java Development Kit, the Software Development Kit of Java language), have also accounted for entire mirrored storage
The overwhelming majority, and apply and can preferentially determine corresponding basic environment mirror image before change program version, therefore basic environment
The acquisition time of mirror image inventory is also prior to the acquisition time of the complete mirror image of application, therefore the present invention provides one kind based on docker container
Correspondence basic environment mirror image comprising new version mirror image is pulled host by the basic environment mirror image pre-heating mean of technology in advance
Pressure local, that mirror image warehouse pulls when being gone into operation with reducing.
Fig. 1 is the process signal of basic environment mirror image pre-heating mean of the embodiment of the present invention based on docker container technique
Figure, as shown in Figure 1, the basic environment mirror image pre-heating mean based on docker container technique of the present embodiment include step S101 extremely
Step S104.
Step S101 determines corresponding host tag inventory according to the application foundation environment mirror inventory that summarizes to be gone into operation
And the corresponding basic environment mirror image inventory to be gone into operation of each host label, wherein described to summarize application foundation environment mirror clear
It singly include the information and the corresponding host label of each basic environment mirror image of all basic environment mirror images to be gone into operation.
In embodiments of the present invention, this step receive importing first this to be gone into operation summarize application foundation environment mirror
Inventory (is indicated with A) in this application.This, which summarizes application foundation environment mirror inventory A, may include Apply Names, operation institute
Need basic environment mirror image and its size and its correspondence host label.In alternative embodiment of the invention, summarize using base
The data structure of plinth environment mirror inventory A can be such as the following table 1:
Apply Names 1 | Basic environment mirror image 1 | Mirror image size | Host label U |
Basic environment mirror image 2 | Mirror image size | Host label U | |
Basic environment mirror image 3 | Mirror image size | Host label V | |
Apply Names 2 | Basic environment mirror image 3 | Mirror image size | Host label W |
Basic environment mirror image 4 | Mirror image size | Host label W | |
Apply Names 3 | Basic environment mirror image 5 | Mirror image size | Host label U |
Basic environment mirror image 6 | Mirror image size | Host label X |
Table 1
In embodiments of the present invention, this step is by parsing to summarizing application foundation environment mirror inventory A, with host
Machine label as main fields by duplicate checking and polymerize and generate after rejecting application message each host label wait basic mirror of going into operation
As inventory (being indicated in this application with B).In alternative embodiment of the invention, the json of foundation image inventory B to be gone into operation
Sample can be as shown in table 2 below:
Table 2
In alternative embodiment of the invention, the xml sample of foundation image inventory B to be gone into operation can be as follows:
In embodiments of the present invention, this step is screened also by parsing to summarizing application foundation environment mirror inventory A
Summarize the corresponding all host labels of application foundation environment mirror inventory A out, generates host tag inventory (in this application
It is indicated with C).Host tag inventory C only includes the host label that this waits going into operation all.
Step S102 determines that each host label corresponds to local basis environment mirror inventory.
In embodiments of the present invention, this step is for all host labels in host tag inventory C, by place
Docker on the corresponding host of host label calls Restful api interface to obtain the local basis of each host label
Environment mirror inventory (is indicated with D) in this application.In alternative embodiment of the invention, local basis environment mirror inventory
D is consistent with the data structure of foundation image inventory B to be gone into operation, compares convenient for subsequent.
In alternative embodiment of the invention, this step, can for all host labels in host tag inventory C
The host address of respective labels is obtained by host Cluster Database, such as (Google's calling Kubernetes increases income
A kind of container orchestration engine) Apiserver (component of calling interface is externally provided in Kubernetes) interface of cluster can be with
From the address of the full dose host obtained in database etcd under corresponding label.The host address url assembling that will acquire
At the address docker restful api, after obtaining the api, the api can be called to obtain the full dose for working as platform host local
Image listing, and be finally aggregated into the host local image listing of different labels and foundation image inventory B format to be gone into operation
Consistent total local basis environment mirror inventory.
Step S103, it is true according to the local basis environment mirror inventory and the basic environment mirror image inventory to be gone into operation
Determine the corresponding Increment Basis environment mirror inventory of each host label.
In embodiments of the present invention, this step is local basis environment mirror inventory D and foundation image inventory B to be gone into operation
Contrast difference determines the basic environment mirror image having more in foundation image inventory B to be gone into operation, and according to the basic environment mirror image having more
It generates Increment Basis environment mirror inventory (being indicated in this application with F).In embodiments of the present invention, Increment Basis environment mirror
As the data structure of inventory F is consistent with local basis environment mirror inventory D and foundation image inventory B to be gone into operation.
Step S104 pulls institute according to the preheating configuration parameter of the Increment Basis environment mirror inventory and user setting
The Increment Basis environment mirror stated in Increment Basis environment mirror inventory is local to corresponding host, wherein the preheating is matched
Setting parameter includes: network bandwidth, the storage read-write number per second in mirror image warehouse and preheating time.
In embodiments of the present invention, this step is by parsing the preheating configuration parameter of user setting, and compares Increment Basis
Environment mirror inventory F calls respective labels host according to Increment Basis environment mirror inventory F by background process
Docker Restful API (object interface) is mirrored to host local to pull corresponding basic environment.
The embodiment of the present invention passes through the corresponding basic environment of new version mirror image that will be to be gone into operation it can be seen from above description
Mirror image pulls host local in advance, and the pressure that mirror image warehouse pulls when reducing operation solves the prior art in version
During change, concurrently pulling mirror image overlong time causes container to start slow technical problem.
Fig. 2 is the first pass schematic diagram that basic environment mirror image of the embodiment of the present invention pulls method, as shown in Fig. 2, this hair
It includes step S201 to step S204 that the basic environment mirror image of a bright embodiment, which pulls method,.
Step S201 determines the corresponding host quantity of each host label.
In embodiments of the present invention, this step passes through host for all host labels in host tag inventory C
Machine Cluster Database obtains corresponding host quantity under different hosts machine label, and according to the host number of each host label
Amount generates host bill of quantities (being indicated in this application with E).In alternative embodiment of the invention, host quantity is clear
The data structure of single E can be as shown in table 3 below:
Host label U | Corresponding host quantity 1 |
Host label V | Corresponding host quantity 2 |
Host label W | Corresponding host quantity 3 |
Host label X | Corresponding host quantity 4 |
Table 3
In alternative embodiment of the invention, this step, can for all host labels in host tag inventory C
The host quantity of respective labels is obtained by host Cluster Database, such as (Google's calling Kubernetes increases income
A kind of container orchestration engine) Apiserver (component of calling interface is externally provided in Kubernetes) interface of cluster can be with
From the host quantity obtained in database etcd under corresponding label.The host quantity for being finally aggregated into different labels is clear
Single E, wherein label different in E corresponds to each label information in host tag inventory C.
Step S202, according to the Increment Basis environment mirror inventory, the preheating configuration parameter and the host
Quantity generates preheating mirror image inventory.
In embodiments of the present invention, this step according to Increment Basis environment mirror inventory F, host bill of quantities E and
The preheating configuration parameter (network bandwidth, the storage read-write number per second in mirror image warehouse and preheating time etc.) of user setting generates
Corresponding warm up strategy, the basic environment mirror image that guarantee basic environment mirror image is gone into operation during preheating and directly is in mirror
Corresponding performance indicator is within the scope of the performance capability in mirror image warehouse during going into operation in real time as warehouse, is ultimately generated
This preheating mirror image inventory (being indicated in this application with G).
In embodiments of the present invention, the quantity for preheating the basic environment mirror image in mirror image inventory G is less than or equal to increment base
Quantity in plinth environment mirror inventory F.Preheating mirror image inventory G include basic environment mirror image that this needs determined preheat and
Its corresponding host label.
Step S203 generates preheating mirror image according to the preheating mirror image inventory and pulls queue.
Step S204, according to the preheating mirror image pull the basic environment that queue gradually pulls in queue be mirrored to it is corresponding
Host is local.
In embodiments of the present invention, this step generates a preheating mirror image according to preheating mirror image inventory G and pulls queue, backstage
Thread and the host of respective labels establish connection, call docker restful api thereon to the basic environment in queue
Mirror image is gradually pulled, and the warm operation of basic environment mirror image is completed before operation.
In embodiments of the present invention, generate preheating mirror image pull queue can according to preheating mirror image inventory G in basic environment
Mirror image is sequentially generated queue, can also generate queue according to the sequence of host label in preheating mirror image inventory G.
Fig. 3 is the second procedure schematic diagram that basic environment mirror image of the embodiment of the present invention pulls method, as shown in figure 3, this hair
It includes step S301 and step S302 that the basic environment mirror image of bright another embodiment, which pulls method,.
Step S301, according to the Increment Basis environment mirror inventory, the preheating configuration parameter and the host
Quantity calculates preheating thread number of concurrent.
In embodiments of the present invention, the present invention can be same using multithreading in order to improve the pre- thermal efficiency of basic environment mirror image
When pull mirror image.The preheating thread number of concurrent of use is by Increment Basis environment mirror inventory F, host bill of quantities E and use
The preheating configuration parameter (network bandwidth, the storage read-write number per second in mirror image warehouse and preheating time etc.) of family setting is come true
It is fixed.
Step S302 pulls queue according to the preheating mirror image and uses the background thread of the preheating thread number of concurrent gradually
It pulls the basic environment in queue and is mirrored to corresponding host local.
In embodiments of the present invention, the present invention generates pre- after determining preheating thread number of concurrent according to preheating mirror image inventory G
Heat mirror picture pulls queue, pulls queue and corresponding mark according to preheating mirror image to the background thread of preheating thread number of concurrent corresponding number
The host of label establishes connection, and docker restful api thereon is called to carry out gradually the basic environment mirror image in queue
It pulls, the warm operation of basic environment mirror image is completed before operation.
Fig. 4 is the method flow diagram that the embodiment of the present invention determines preheating mirror image inventory, as shown in figure 4, the embodiment of the present invention
The method for determining preheating mirror image inventory includes step S401 to step S403.
Step S401 determines the size of each Increment Basis environment mirror in the Increment Basis environment mirror inventory.
Step S402 determines the first iterative data total amount according to the network bandwidth and the preheating time, according to described
The storage in mirror image warehouse read-write number per second and the preheating time determine secondary iteration total amount of data.
Step S403, according to the size of each Increment Basis environment mirror, the first iterative data total amount, described
Two iterative data total amounts and the host quantity determine the preheating mirror image inventory.
In an embodiment of the present invention, mirror image inventory G preheating configuration parameter (network bandwidth, mirror set by the user are preheated
As the storage in warehouse read-write number per second and preheating time), each Increment Basis environment mirror in Increment Basis environment mirror inventory F
The size of picture and the corresponding host quantity of each host label in host tag inventory C determine.
In embodiments of the present invention, preheating the network bandwidth in configuration parameter is the mirror image warehouse for storing basic environment mirror image
The bandwidth of network transmission between host.Preheating time is the new version production time of user setting, when also pulling for mirror image
Between.Since the change having time of application operation version limits, mirror image need to be completed before new version production time and pulled.
In embodiments of the present invention, above-mentioned first iterative data total amount is the product of network bandwidth and preheating time, above-mentioned
Secondary iteration total amount of data is the product of the storage in mirror image warehouse read-write number (IOPS) and preheating time per second.
In embodiments of the present invention, the quantity for preheating the basic environment mirror image in mirror image inventory G is less than or equal to increment base
Quantity in plinth environment mirror inventory F, the embodiment of the present invention can be by following rules from Increment Basis environment mirror inventory F
Confirmation preheating mirror image inventory G:
1, the host of the corresponding host label of the size of each basic environment mirror image in preheating mirror image inventory G
The summation of the product of quantity is less than above-mentioned first iterative data total amount;
2, the host of the corresponding host label of the size of each basic environment mirror image in preheating mirror image inventory G
The summation of the product of quantity is less than above-mentioned secondary iteration total amount of data;
3, the host quantity of each host label and the size of each basic environment mirror image in preheating mirror image inventory G
The summation of product should reach unanimity.
Fig. 5 is the method flow diagram that the embodiment of the present invention determines preheating thread number of concurrent, as shown in figure 5, the present invention is implemented
The method that example determines preheating thread number of concurrent includes step S501 to step S503.
Step S501 determines the size of each Increment Basis environment mirror in the Increment Basis environment mirror inventory.
Step S502 determines the first iterative data total amount according to the network bandwidth and the preheating time, according to described
The storage in mirror image warehouse read-write number per second and the preheating time determine secondary iteration total amount of data.
Step S503, according to the size of each Increment Basis environment mirror, the first iterative data total amount, described
Two iterative data total amounts and the host quantity determine the preheating thread number of concurrent.
In an embodiment of the present invention, thread number of concurrent preheating configuration parameter (network bandwidth, mirror set by the user are preheated
As the storage in warehouse read-write number per second and preheating time), each Increment Basis environment mirror in Increment Basis environment mirror inventory F
The size of picture and the corresponding host quantity of each host label in host tag inventory C determine.
The embodiment of the present invention can pass through following rule confirmation preheating thread number of concurrent:
1, preheating thread number of concurrent should be greater than preheating mirror image inventory G in each basic environment mirror image size it is corresponding
Host label host quantity product summation divided by the first iterative data total amount quotient;
2, preheating thread number of concurrent should be greater than preheating mirror image inventory G in each basic environment mirror image size it is corresponding
Host label host quantity product summation divided by secondary iteration total amount of data quotient.
The embodiment of the present invention is to solve extensive container cluster when application version alternates pair it can be seen from above description
The performance pressures in mirror image warehouse propose a kind of basic environment mirror image preheating device based on docker container technique.The present invention
Embodiment utilizes the characteristics of docker mirror image bedding storage, passes through the related preheating configuration information of parsing and preheating mirror image inventory, root
Carry out the function that mirror image is provided and is preheated corresponding to corresponding host according to the mirror image warehouse performance indicator and preheating time of user's input.
Help user reduce during operation the time required for edition upgrading, while reduce large-scale concurrent go into operation when host simultaneously
Hair mirror image pulls the performance pressures that request generates mirror image warehouse.It largely ensure that the stable operation of application container.This
The advantages of inventive embodiments, is as follows:
1. the mirror image preheating configuration of customizable and preheating time, improving the flexibility ratio of mirror image preheating.
It is preheated 2. going into operation to be spaced by application, is not had to dilatation mirror image warehouse cluster, reduce unnecessary storage resource
Consumption.
3. inventory is pulled by the quantization of mirror image warehouse performance indicator, so that the degree and mirror image warehouse performance phase of mirror image preheating
Matching.
It should be noted that step shown in the flowchart of the accompanying drawings can be in such as a group of computer-executable instructions
It is executed in computer system, although also, logical order is shown in flow charts, and it in some cases, can be with not
The sequence being same as herein executes shown or described step.
Based on the same inventive concept, the embodiment of the invention also provides a kind of basic environments based on docker container technique
It is pre- to can be used to implement the basic environment mirror image based on docker container technique described in above-described embodiment for mirror image preheating device
Hot method, as described in the following examples.Since the basic environment mirror image preheating device solution based on docker container technique is asked
The principle of topic is similar to the basic environment mirror image pre-heating mean based on docker container technique, therefore is based on docker container technique
The embodiment of basic environment mirror image preheating device may refer to the basic environment mirror image preheating side based on docker container technique
The embodiment of method, overlaps will not be repeated.Used below, predetermined function may be implemented in term " unit " or " module "
Software and/or hardware combination.Although device described in following embodiment is preferably realized with software, hardware,
Or the realization of the combination of software and hardware is also that may and be contemplated.
Fig. 6 is the structural block diagram of basic environment mirror image preheating device of the embodiment of the present invention based on docker container technique,
As shown in fig. 6, basic environment mirror image preheating device of the embodiment of the present invention based on docker container technique includes: that subscriber policy is matched
Set unit 1, preheating mirror image inventory loading unit 2, host Mirror Info acquiring unit 3, distinctness of image comparing unit 4, mirror image
Dispatching Unit 5.
Subscriber policy configuration unit 1, for receiving the preheating configuration parameter of user setting, wherein the preheating configuration ginseng
Number includes: network bandwidth, the storage read-write number per second in mirror image warehouse and preheating time.
Preheat mirror image inventory loading unit 2, for receive it is to be gone into operation summarize application foundation environment mirror inventory, and according to
It is described summarize application foundation environment mirror inventory determine corresponding host tag inventory and each host label it is corresponding to
Operation basic environment mirror image inventory, wherein the application foundation environment mirror inventory that summarizes includes all foundation rings to be gone into operation
The information of border mirror image and the corresponding host label of each basic environment mirror image.
Host Mirror Info acquiring unit 3, for determining that each host label corresponds to local basis environment mirror
Inventory.
Distinctness of image comparing unit 4, for according to the local basis environment mirror inventory and the basis to be gone into operation
Environment mirror inventory determines the corresponding Increment Basis environment mirror inventory of each host label.
Mirror image Dispatching Unit 5, for being drawn according to the Increment Basis environment mirror inventory and the preheating configuration parameter
Take the Increment Basis environment mirror in the Increment Basis environment mirror inventory local to corresponding host.
In one embodiment of this invention, the host Mirror Info acquiring unit 3 is also used to determine each host
The corresponding host quantity of machine label.
Fig. 7 is the composed structure schematic diagram of mirror image Dispatching Unit of the embodiment of the present invention, as shown in fig. 7, the embodiment of the present invention
Mirror image Dispatching Unit 5 include: preheating mirror image inventory generation module 501 and preheating mirror image pull module 503.
Mirror image inventory generation module 501 is preheated, for configuring according to the Increment Basis environment mirror inventory, the preheating
Parameter and the host quantity generate preheating mirror image inventory;
Preheating mirror image pulls module 503, pulls queue, and root for generating preheating mirror image according to the preheating mirror image inventory
Pulling the basic environment that queue gradually pulls in queue according to the preheating mirror image, to be mirrored to corresponding host local.
As shown in fig. 7, the mirror image Dispatching Unit 5 of the embodiment of the present invention further include: preheating thread number of concurrent determining module
502。
Thread number of concurrent determining module 502 is preheated, for matching according to the Increment Basis environment mirror inventory, the preheating
It sets parameter and the host quantity calculates preheating thread number of concurrent.
In one embodiment of this invention, preheating mirror image pulls module 503 and is also used to pull team according to the preheating mirror image
Column gradually pull the basic environment in queue using the background thread of the preheating thread number of concurrent and are mirrored to corresponding host
It is local.
In an embodiment of the present invention, mirror image inventory generation module 501 is preheated, is specifically used for: determining the Increment Basis
The size of each Increment Basis environment mirror in environment mirror inventory;First is determined according to the network bandwidth and the preheating time
Iterative data total amount determines secondary iteration data according to the storage in mirror image warehouse read-write number per second and the preheating time
Total amount;And size, the first iterative data total amount, the secondary iteration number according to each Increment Basis environment mirror
The preheating mirror image inventory is determined according to total amount and the host quantity.
In an embodiment of the present invention, thread number of concurrent determining module 502 is preheated, is specifically used for determining the Increment Basis
The size of each Increment Basis environment mirror in environment mirror inventory;First is determined according to the network bandwidth and the preheating time
Iterative data total amount determines secondary iteration data according to the storage in mirror image warehouse read-write number per second and the preheating time
Total amount;And size, the first iterative data total amount, the secondary iteration number according to each Increment Basis environment mirror
The preheating thread number of concurrent is determined according to total amount and the host quantity.
Fig. 8 is the composed structure schematic diagram of subscriber policy configuration unit of the embodiment of the present invention, as shown in figure 8, the present invention is real
The subscriber policy configuration unit 1 for applying example includes: mirror image warehouse threshold value configuration module 101, preheating time configuration module 102, preheating
Enable configuration module 103.
Mirror image warehouse threshold value configuration module 101, every threshold value in mirror image warehouse when going into operation for user configuration, wherein can
The important indicator of reference is network bandwidth threshold value, storage IOPS threshold value etc..
Preheating time configuration module 102, custom-configures the time restriction of preheating for user, user according to oneself this
The time restriction that preheating distance is gone into operation inputs corresponding preheating time.The configuration of preheating time ensure that pre- thermal energy is complete before operation
At.
Preheating enables configuration module 103, is used to determine whether to enable the pre- heat function of backstage mirror image, default enables pre- hot merit
Can, corresponding mirror image is preheated, if user worries preheating performance or other considerations, pre- heat function can be closed by modification configuration.
Fig. 9 is the composed structure schematic diagram of preheating mirror image inventory loading unit of the embodiment of the present invention, as shown in figure 9, this hair
Bright embodiment preheating mirror image inventory loading unit includes: to summarize application foundation mirror image inventory receiving module 201, summarize application foundation
Mirror image inventory parsing module 202, the foundation image inventory that can be compared generate single module 203.
Summarize application foundation mirror image inventory receiving module 201, for providing a foreground entrance for importing this operation
Summarize application foundation mirror image inventory A.
Summarize application foundation mirror image inventory parsing module 202: to be gone into operation summarizing application foundation mirror image for parsing this
Inventory A is obtained with the inventory of json xml format.
The foundation image inventory that can be compared generates single module 203, summarizes application foundation mirror image inventory parsing mould for basis
Operation mirror image inventory after the parsing that block 202 inputs, carries out the duplicate checking and polymerization of data, to generate the basic mirror of each host label
As inventory B and host tag inventory C.
Figure 10 is the composed structure schematic diagram of host Mirror Info acquiring unit of the embodiment of the present invention, as shown in Figure 10,
Host Mirror Info of embodiment of the present invention acquiring unit 3 includes: host address acquisition module 301 and host local mirror image
Data obtaining module 302.
Host address acquisition module 301, for obtain this wait going into operation in may relate to respective labels
Host address.By each host label information in host tag inventory C, host address acquisition unit 301 can lead to
The host address and the host quantity under the label that mainframe cluster database of passing the night obtains respective labels, such as call
The Apiserver of Kubernetes (a kind of container orchestration engine of Google open source) cluster (is externally provided in Kubernetes
The component of calling interface) interface can be obtained from database etcd the full dose host under corresponding label address and certain
Host quantity under label, and take a host address as the label from the corresponding host group of each label
Sample address, be finally aggregated into the host bill of quantities E of different labels, wherein label different in E correspond to host
Each label information in tag inventory C.
Host local Mirror Info obtains module 302, the host for will obtain in host address acquisition module 301
Machine address url is assembled into the address docker restful api, and after obtaining the api, host local Mirror Info obtains mould
Block 302 calls the api to obtain the full dose image listing for working as platform host local, and finally by the host local mirror of different labels
As list is aggregated into local mirror image inventory.
To achieve the goals above, according to the another aspect of the application, a kind of computer equipment is additionally provided.Such as Figure 11 institute
Show, which includes memory, processor, communication interface and communication bus, and being stored with can locate on a memory
The computer program run on reason device, the processor realize the step in above-described embodiment method when executing the computer program
Suddenly.
Processor can be central processing unit (Central Processing Unit, CPU).Processor can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), field programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
The combination of the chips such as discrete hardware components or above-mentioned all kinds of chips.
Memory as a kind of non-transient computer readable storage medium, can be used for storing non-transient software program, it is non-temporarily
State computer executable program and unit, such as corresponding program unit in above method embodiment of the present invention.Processor passes through
Non-transient software program, instruction and module stored in memory are run, thereby executing the various function application of processor
And work data processing, that is, realize the method in above method embodiment.
Memory may include storing program area and storage data area, wherein storing program area can storage program area, extremely
Application program required for a few function;It storage data area can the data etc. that are created of storage processor.In addition, memory can
It can also include non-transient memory, for example, at least disk memory, a flash memory to include high-speed random access memory
Device or other non-transient solid-state memories.In some embodiments, it includes remotely setting relative to processor that memory is optional
The memory set, these remote memories can pass through network connection to processor.The example of above-mentioned network includes but is not limited to
Internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more of unit storages in the memory, when being executed by the processor, execute above-mentioned
Method in embodiment.
Above-mentioned computer equipment detail can correspond to refering to associated description corresponding in above-described embodiment and effect into
Row understands that details are not described herein again.
To achieve the goals above, according to the another aspect of the application, a kind of computer readable storage medium is additionally provided,
The computer-readable recording medium storage has computer program, real when the computer program executes in the computer processor
Step in the existing above-mentioned basic environment mirror image pre-heating mean based on DOCKER container technique.Those skilled in the art can manage
Solution realizes all or part of the process in above-described embodiment method, is that can instruct relevant hardware by computer program
It completes, the program can be stored in a computer-readable storage medium, the program is when being executed, it may include as above-mentioned
The process of the embodiment of each method.Wherein, the storage medium can be magnetic disk, CD, read-only memory (Read-Only
Memory, ROM), random access memory (RandomAccessMemory, RAM), flash memory (Flash Memory),
Hard disk (Hard Disk Drive, abbreviation: HDD) or solid state hard disk (Solid-State Drive, SSD) etc.;The storage is situated between
Matter can also include the combination of the memory of mentioned kind.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
Be performed by computing device in the storage device, perhaps they are fabricated to each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific
Hardware and software combines.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (14)
1. a kind of basic environment mirror image pre-heating mean based on docker container technique characterized by comprising
Corresponding host tag inventory and each host are determined according to the application foundation environment mirror inventory that summarizes to be gone into operation
The corresponding basic environment mirror image inventory to be gone into operation of label, wherein the application foundation environment mirror inventory that summarizes includes wait go into operation
All basic environment mirror images information and the corresponding host label of each basic environment mirror image;
Determine that each host label corresponds to local basis environment mirror inventory;
Each host is determined according to the local basis environment mirror inventory and the basic environment mirror image inventory to be gone into operation
The corresponding Increment Basis environment mirror inventory of machine label;
The Increment Basis ring is pulled according to the preheating configuration parameter of the Increment Basis environment mirror inventory and user setting
Increment Basis environment mirror in the mirror image inventory of border is local to corresponding host, wherein the preheating configuration parameter includes: net
Network bandwidth, the storage read-write number per second in mirror image warehouse and preheating time.
2. the basic environment mirror image pre-heating mean according to claim 1 based on docker container technique, which is characterized in that
Further include:
Determine the corresponding host quantity of each host label.
3. the basic environment mirror image pre-heating mean according to claim 2 based on docker container technique, which is characterized in that
The preheating configuration parameter according to the Increment Basis environment mirror inventory and user setting pulls the Increment Basis ring
Increment Basis environment mirror in the mirror image inventory of border is local to corresponding host, comprising:
Pre- heat mirror is generated according to the Increment Basis environment mirror inventory, the preheating configuration parameter and the host quantity
As inventory;
Preheating mirror image, which is generated, according to the preheating mirror image inventory pulls queue;
Pulling the basic environment that queue gradually pulls in queue according to the preheating mirror image, to be mirrored to corresponding host local.
4. the basic environment mirror image pre-heating mean according to claim 3 based on docker container technique, which is characterized in that
The preheating configuration parameter according to the Increment Basis environment mirror inventory and user setting pulls the Increment Basis ring
Increment Basis environment mirror in the mirror image inventory of border is local to corresponding host, further includes:
Preheat line is calculated according to the Increment Basis environment mirror inventory, the preheating configuration parameter and the host quantity
Journey number of concurrent;
It is described queue pulled according to the preheating mirror image gradually pull the basic environment in queue be mirrored to corresponding host sheet
Ground specifically includes:
Queue is pulled according to the preheating mirror image gradually to pull in queue using the background thread of the preheating thread number of concurrent
It is local that basic environment is mirrored to corresponding host.
5. the basic environment mirror image pre-heating mean according to claim 3 based on docker container technique, which is characterized in that
It is described that pre- heat mirror is generated according to the Increment Basis environment mirror inventory, the preheating configuration parameter and the host quantity
As inventory, comprising:
Determine the size of each Increment Basis environment mirror in the Increment Basis environment mirror inventory;
The first iterative data total amount is determined according to the network bandwidth and the preheating time, according to the storage in the mirror image warehouse
Read-write number per second and the preheating time determine secondary iteration total amount of data;
It is total according to the size of each Increment Basis environment mirror, the first iterative data total amount, the secondary iteration data
Amount and the host quantity determine the preheating mirror image inventory.
6. the basic environment mirror image pre-heating mean according to claim 4 based on docker container technique, which is characterized in that
It is described that preheat line is calculated according to the Increment Basis environment mirror inventory, the preheating configuration parameter and the host quantity
Journey number of concurrent, comprising:
Determine the size of each Increment Basis environment mirror in the Increment Basis environment mirror inventory;
The first iterative data total amount is determined according to the network bandwidth and the preheating time, according to the storage in the mirror image warehouse
Read-write number per second and the preheating time determine secondary iteration total amount of data;
It is total according to the size of each Increment Basis environment mirror, the first iterative data total amount, the secondary iteration data
Amount and the host quantity determine the preheating thread number of concurrent.
7. a kind of basic environment mirror image preheating device based on docker container technique characterized by comprising
Subscriber policy configuration unit, for receiving the preheating configuration parameter of user setting, wherein the preheating configuration parameter packet
It includes: network bandwidth, the storage read-write number per second in mirror image warehouse and preheating time;
Preheat mirror image inventory loading unit, for receive it is to be gone into operation summarize application foundation environment mirror inventory, and according to described
Summarize application foundation environment mirror inventory and determines that corresponding host tag inventory and each host label are corresponding wait go into operation
Basic environment mirror image inventory, wherein the application foundation environment mirror inventory that summarizes includes all basic environment mirrors to be gone into operation
The information of picture and the corresponding host label of each basic environment mirror image;
Host Mirror Info acquiring unit, for determining that each host label corresponds to local basis environment mirror inventory;
Distinctness of image comparing unit, for according to the local basis environment mirror inventory and the basic environment mirror to be gone into operation
As inventory determines the corresponding Increment Basis environment mirror inventory of each host label;
Mirror image Dispatching Unit, it is described for being pulled according to the Increment Basis environment mirror inventory and the preheating configuration parameter
Increment Basis environment mirror in Increment Basis environment mirror inventory is local to corresponding host.
8. the basic environment mirror image preheating device according to claim 7 based on docker container technique, which is characterized in that
The host Mirror Info acquiring unit is also used to determine the corresponding host quantity of each host label.
9. the basic environment mirror image preheating device according to claim 8 based on docker container technique, which is characterized in that
The mirror image Dispatching Unit, comprising:
Preheat mirror image inventory generation module, for according to the Increment Basis environment mirror inventory, the preheating configuration parameter with
And the host quantity generates preheating mirror image inventory;
Preheating mirror image pulls module, pulls queue for generating preheating mirror image according to the preheating mirror image inventory, and according to described
Preheating mirror image pulls the basic environment that queue gradually pulls in queue and is mirrored to corresponding host local.
10. the basic environment mirror image preheating device according to claim 9 based on docker container technique, feature exist
In the mirror image Dispatching Unit, further includes:
Thread number of concurrent determining module is preheated, for according to the Increment Basis environment mirror inventory, the preheating configuration parameter
And the host quantity calculates preheating thread number of concurrent;
The preheating mirror image pulls module, is specifically used for:
Queue is pulled according to the preheating mirror image gradually to pull in queue using the background thread of the preheating thread number of concurrent
It is local that basic environment is mirrored to corresponding host.
11. the basic environment mirror image preheating device according to claim 9 based on docker container technique, feature exist
In the preheating mirror image inventory generation module is specifically used for: determining each Increment Basis in the Increment Basis environment mirror inventory
The size of environment mirror;The first iterative data total amount is determined according to the network bandwidth and the preheating time, according to the mirror
As the storage in warehouse read-write number per second and the preheating time determine secondary iteration total amount of data;And according to each increment
The size of basic environment mirror image, the first iterative data total amount, the secondary iteration total amount of data and the host number
Amount determines the preheating mirror image inventory.
12. the basic environment mirror image preheating device according to claim 10 based on docker container technique, feature exist
In the preheating thread number of concurrent determining module is specifically used for: determining each increment base in the Increment Basis environment mirror inventory
The size of plinth environment mirror;The first iterative data total amount is determined according to the network bandwidth and the preheating time, according to described
The storage in mirror image warehouse read-write number per second and the preheating time determine secondary iteration total amount of data;And according to each increasing
Measure size, the first iterative data total amount, the secondary iteration total amount of data and the host of basic environment mirror image
Quantity determines the preheating thread number of concurrent.
13. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor
Calculation machine program, which is characterized in that the processor realizes any one of claim 1 to 6 method when executing the computer program
In step.
14. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In realization such as the step in claim 1 to 6 any one method when the computer program executes in the computer processor
Suddenly.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910602356.5A CN110287004B (en) | 2019-07-05 | 2019-07-05 | Basic environment mirror image preheating method and device based on docker container technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910602356.5A CN110287004B (en) | 2019-07-05 | 2019-07-05 | Basic environment mirror image preheating method and device based on docker container technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110287004A true CN110287004A (en) | 2019-09-27 |
CN110287004B CN110287004B (en) | 2021-07-30 |
Family
ID=68020688
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910602356.5A Active CN110287004B (en) | 2019-07-05 | 2019-07-05 | Basic environment mirror image preheating method and device based on docker container technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110287004B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114153565A (en) * | 2021-12-08 | 2022-03-08 | 兴业银行股份有限公司 | Method and system for realizing image acceleration and preheating based on p2p technology |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050114870A1 (en) * | 2003-11-21 | 2005-05-26 | Song Dong H. | System and method for executing an application on a secured run-time environment |
CN101159596A (en) * | 2006-10-02 | 2008-04-09 | 国际商业机器公司 | Method and apparatus for deploying servers |
CN101594387A (en) * | 2009-06-29 | 2009-12-02 | 北京航空航天大学 | The virtual cluster deployment method and system |
US20120192184A1 (en) * | 2009-12-18 | 2012-07-26 | International Business Machines Corporation | Virtual image deployment with a warm cache |
CN105260229A (en) * | 2015-10-28 | 2016-01-20 | 北京百度网讯科技有限公司 | Method and device for pulling mirror image files of virtual machines |
CN106060122A (en) * | 2016-05-20 | 2016-10-26 | 北京奇虎科技有限公司 | Docker container uploading/downloading feature control method and device |
CN106131113A (en) * | 2016-06-14 | 2016-11-16 | 武汉深之度科技有限公司 | A kind of resource downloading method, device, system and Resource Server |
US9537745B1 (en) * | 2014-03-07 | 2017-01-03 | Google Inc. | Distributed virtual machine disk image deployment |
CN106293512A (en) * | 2016-07-27 | 2017-01-04 | 福建升腾资讯有限公司 | The transregional storage of foundation image based on Xen virtual platform and the implementation method of distribution |
CN106302632A (en) * | 2016-07-21 | 2017-01-04 | 华为技术有限公司 | The method for down loading of a kind of foundation image and management node |
CN106339254A (en) * | 2015-07-15 | 2017-01-18 | 中兴通讯股份有限公司 | Quick starting method and device, and management node for virtual machine |
CN106528224A (en) * | 2016-11-03 | 2017-03-22 | 腾讯科技(深圳)有限公司 | Content updating method and system for Docker container, and server |
CN107220100A (en) * | 2016-03-22 | 2017-09-29 | 中国移动(深圳)有限公司 | One kind exploitation O&M method, device and cloud computing PaaS platform |
CN109756533A (en) * | 2017-11-02 | 2019-05-14 | 阿里巴巴集团控股有限公司 | A kind of mirror image accelerated method, device and server |
-
2019
- 2019-07-05 CN CN201910602356.5A patent/CN110287004B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050114870A1 (en) * | 2003-11-21 | 2005-05-26 | Song Dong H. | System and method for executing an application on a secured run-time environment |
CN101159596A (en) * | 2006-10-02 | 2008-04-09 | 国际商业机器公司 | Method and apparatus for deploying servers |
CN101594387A (en) * | 2009-06-29 | 2009-12-02 | 北京航空航天大学 | The virtual cluster deployment method and system |
US20120192184A1 (en) * | 2009-12-18 | 2012-07-26 | International Business Machines Corporation | Virtual image deployment with a warm cache |
US9537745B1 (en) * | 2014-03-07 | 2017-01-03 | Google Inc. | Distributed virtual machine disk image deployment |
CN106339254A (en) * | 2015-07-15 | 2017-01-18 | 中兴通讯股份有限公司 | Quick starting method and device, and management node for virtual machine |
CN105260229A (en) * | 2015-10-28 | 2016-01-20 | 北京百度网讯科技有限公司 | Method and device for pulling mirror image files of virtual machines |
CN107220100A (en) * | 2016-03-22 | 2017-09-29 | 中国移动(深圳)有限公司 | One kind exploitation O&M method, device and cloud computing PaaS platform |
CN106060122A (en) * | 2016-05-20 | 2016-10-26 | 北京奇虎科技有限公司 | Docker container uploading/downloading feature control method and device |
CN106131113A (en) * | 2016-06-14 | 2016-11-16 | 武汉深之度科技有限公司 | A kind of resource downloading method, device, system and Resource Server |
CN106302632A (en) * | 2016-07-21 | 2017-01-04 | 华为技术有限公司 | The method for down loading of a kind of foundation image and management node |
CN106293512A (en) * | 2016-07-27 | 2017-01-04 | 福建升腾资讯有限公司 | The transregional storage of foundation image based on Xen virtual platform and the implementation method of distribution |
CN106528224A (en) * | 2016-11-03 | 2017-03-22 | 腾讯科技(深圳)有限公司 | Content updating method and system for Docker container, and server |
CN109756533A (en) * | 2017-11-02 | 2019-05-14 | 阿里巴巴集团控股有限公司 | A kind of mirror image accelerated method, device and server |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114153565A (en) * | 2021-12-08 | 2022-03-08 | 兴业银行股份有限公司 | Method and system for realizing image acceleration and preheating based on p2p technology |
Also Published As
Publication number | Publication date |
---|---|
CN110287004B (en) | 2021-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111213340B (en) | Selecting attestation delegation for cryptographic functions and making it secure | |
CN104737133B (en) | Optimized using the Distributed Application of service group | |
CN104937584B (en) | Based on the quality of shared resource to the service quality of virtual machine and application program offer optimization through priority ranking | |
US10348582B1 (en) | Providing an instance availability estimate | |
US10826993B2 (en) | Cloud resource provisioning using blueprint chaining | |
US20150006608A1 (en) | Networked solutions integration using a cloud business object broker | |
US10481929B1 (en) | Providing field-programmable devices in a distributed execution environment | |
CN109117169A (en) | Method and apparatus for repairing kernel loophole | |
GB2582223A (en) | Determining an optimal computing environment for running an image | |
CN106201566A (en) | The rich big special hot upgrade method of software of profit and equipment | |
WO2016118429A1 (en) | System for efficient processing of transaction requests related to an account in a database | |
US20170060878A1 (en) | Field Extension in Database System | |
US9053134B2 (en) | View variants in database schema mapping | |
JP6975153B2 (en) | Data storage service processing method and equipment | |
US20240061712A1 (en) | Method, apparatus, and system for creating training task on ai training platform, and medium | |
CN110149360A (en) | Dispatching method, scheduling system, storage medium and computer equipment | |
US20230305884A1 (en) | Methods and systems for decentralized blockchain-scheduled container orchestration, repository and code deployment with tokenized tracking | |
US10379973B2 (en) | Allocating storage in a distributed storage system | |
US7991962B2 (en) | System and method of using threads and thread-local storage | |
CN110287004A (en) | Basic environment mirror image pre-heating mean and device based on docker container technique | |
CN110008431A (en) | Page assembly construction method, device, page generating device and readable storage medium storing program for executing | |
CN109327555A (en) | Distributed hair system, method and device | |
CN107463638A (en) | File sharing method and equipment between offline virtual machine | |
US10911371B1 (en) | Policy-based allocation of provider network resources | |
CN110188140A (en) | Data pulling method and device, storage medium and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |