CN110442480A - A kind of mirror image data method for cleaning, apparatus and system - Google Patents

A kind of mirror image data method for cleaning, apparatus and system Download PDF

Info

Publication number
CN110442480A
CN110442480A CN201910699440.3A CN201910699440A CN110442480A CN 110442480 A CN110442480 A CN 110442480A CN 201910699440 A CN201910699440 A CN 201910699440A CN 110442480 A CN110442480 A CN 110442480A
Authority
CN
China
Prior art keywords
mirror image
data
application
version
cleaning
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
Application number
CN201910699440.3A
Other languages
Chinese (zh)
Other versions
CN110442480B (en
Inventor
王佳君
沈震宇
任政
沈一帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN201910699440.3A priority Critical patent/CN110442480B/en
Publication of CN110442480A publication Critical patent/CN110442480A/en
Application granted granted Critical
Publication of CN110442480B publication Critical patent/CN110442480B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1453Management of the data involved in backup or backup restore using de-duplication of the data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process
    • G06F11/1461Backup scheduling policy

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Image Processing (AREA)

Abstract

This specification embodiment discloses a kind of mirror image data method for cleaning, apparatus and system, and the method includes obtaining mirror image name data from mirror image warehouse, the mirror image name data includes Apply Names and label, and the label includes application version information;The mirror image name data is ranked up according to the Apply Names and application version information;The mirror image title of mirror image for clearance is filtered out from the mirror image name data after sequence according to mirror image cleaning rule;The mirror image title of the mirror image for clearance is sent to mirror image warehouse, so that mirror image warehouse carries out mirror image cleaning according to the mirror image title of the mirror image for clearance.Using each embodiment of this specification, unwanted image release data can be more targetedly cleared up, it is accurate to retain the image release data needed.

Description

A kind of mirror image data method for cleaning, apparatus and system
Technical field
The present invention relates to computer data processing technology fields, particularly, are related to a kind of mirror image data method for cleaning, device And system.
Background technique
As number of applications constantly increases on cloud, the mirror image quantity in mirror image warehouse also constantly increases therewith.But mirror As the valid image quantity in warehouse and few, which results in a large amount of wastes of mirror image warehouse storage resource, and also add The time of investigation problem.
Currently, mirror image cleaning generallys use first according to time-sequencing, then retains the mirror image of fixed number, it is more to clear up other The mode of remaining mirror image.But the method for these cleaning mirror images has a problem that, the quantity of each application hair patch is irregular not Together, one version is several or even more than ten of patch for some applications, and having does not have patch using a version.If retaining mirror image Parameter setting it is smaller, send out the application more than patch and be possible to all retain the mirror image of a version, result in the need for retracting When can not find the last one mirror image of a version;If retaining the larger of the parameter setting of mirror image, it will cause cleanings Effect is had a greatly reduced quality.Therefore, the art need one kind can be with significantly more efficient mirror image data method for cleaning.
Summary of the invention
This specification embodiment is designed to provide a kind of mirror image data method for cleaning, apparatus and system, can be more Unwanted mirror image data is targetedly cleared up, it is accurate to retain the image release needed.
This specification provides a kind of mirror image data method for cleaning, apparatus and system includes under type realization such as:
A kind of mirror image data method for cleaning, comprising:
Mirror image name data is obtained from mirror image warehouse, the mirror image name data includes Apply Names and label, institute Stating label includes application version information;
The mirror image name data is ranked up according to the Apply Names and application version information;
The mirror image title of mirror image for clearance is filtered out from the mirror image name data after sequence according to mirror image cleaning rule;
The mirror image title of the mirror image for clearance is sent to mirror image warehouse, so that mirror image warehouse is according to the mirror for clearance The mirror image title of picture carries out mirror image cleaning.
It is described that mirror image title number is obtained from mirror image warehouse in another embodiment of the method that this specification provides According to, comprising:
The operation information of the corresponding application of going into operation of current production time node is received, the operation information includes application of going into operation Apply Names;
The operation is obtained from mirror image warehouse according to the Apply Names and applies corresponding mirror image name data.
This specification provide the method another embodiment in, it is described according to mirror image cleaning rule after sequence The mirror image title of mirror image for clearance is filtered out in mirror image name data:
The corresponding mirror image cleaning rule of target application is obtained, the mirror image cleaning rule is corresponding according to the target application Application version information and/or version updating feature determine;
It is filtered out from the mirror image name data after the corresponding sequence of the target application according to the mirror image cleaning rule The mirror image title of the corresponding mirror image for clearance of the target application.
In another embodiment of the method that this specification provides, the label includes the period version being arranged successively Field, patch release field and timestamp field;
The period version field is true according to the period version number updated in default update cycle and default update cycle It is fixed, the patch release field according to the determination of the period version increased patch release number, the timestamp field according to The renewal time of application determines.
On the other hand, this specification embodiment also provides a kind of mirror image data cleaning plant, and described device includes:
Data acquisition module, for obtaining mirror image name data from mirror image warehouse, the mirror image name data includes answering With title and label, the label includes application version information;
Data sorting module, for according to the Apply Names and application version information to the mirror image name data into Row sequence;
Data screening module, it is for clearance for being filtered out from the mirror image name data after sequence according to mirror image cleaning rule The mirror image title of mirror image;
Data transmission blocks, for the mirror image title of the mirror image for clearance to be sent to mirror image warehouse, so that mirror image storehouse Library carries out mirror image cleaning according to the mirror image title of the mirror image for clearance.
In another embodiment for the described device that this specification provides, described device further includes data reception module, In,
The data reception module is used to receive the operation information of the corresponding application of going into operation of current production time node, described Operation information includes the Apply Names applied of going into operation;
The data acquisition module is also used to obtain the operation application pair from mirror image warehouse according to the Apply Names The mirror image name data answered.
In another embodiment for the described device that this specification provides, the data screening module includes:
Rule determination unit, for obtaining the corresponding mirror image cleaning rule of target application, the mirror image cleaning rule according to The corresponding application version information of the target application and/or version updating feature determine;
Data screening unit, for according to the mirror image cleaning rule from the mirror image after the corresponding sequence of the target application The mirror image title of the corresponding mirror image for clearance of the target application is filtered out in name data.
In another embodiment for the described device that this specification provides, the label includes the period version being arranged successively Field, patch release field and timestamp field;
The period version field is true according to the period version number updated in default update cycle and default update cycle It is fixed, the patch release field according to the determination of the period version increased patch release number, the timestamp field according to The renewal time of application determines.
On the other hand, this specification embodiment also provides a kind of mirror image data cleaning equipment, including processor and for depositing Store up processor-executable instruction memory, when described instruction is executed by the processor realization the following steps are included:
Mirror image name data is obtained from mirror image warehouse, the mirror image name data includes Apply Names and label, institute Stating label includes application version information;
The mirror image name data is ranked up according to the Apply Names and application version information;
The mirror image title of mirror image for clearance is filtered out from the mirror image name data after sequence according to mirror image cleaning rule;
The mirror image title of the mirror image for clearance is sent to mirror image warehouse, so that mirror image warehouse is according to the mirror for clearance The mirror image title of picture carries out mirror image cleaning.
On the other hand, this specification embodiment also provides a kind of mirror image data cleaning system, and the system comprises at least one A processor and the memory for storing computer executable instructions, the processor are realized described any when executing described instruction The step of one embodiment the method.
Mirror image data method for cleaning, the apparatus and system of this specification one or more embodiment offer, can be according to mirror As the Apply Names in title determine the corresponding application of each mirror image, it is then possible to according to the application version information in mirror image title Determine the versions such as version, the corresponding patch release of each version and the version issuing time of the application stored in mirror image warehouse Feature.It is then possible to the cleaning to the mirror image data of the application be realized based on version feature, thus more targetedly cleaning Unwanted image release data, it is accurate to retain the image release data needed.
Detailed description of the invention
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only The some embodiments recorded in this specification, for those of ordinary skill in the art, in not making the creative labor property Under the premise of, it is also possible to obtain other drawings based on these drawings.In the accompanying drawings:
Fig. 1 is a kind of flow diagram for mirror image data method for cleaning embodiment that this specification provides;
Fig. 2 is the mirror image data method for cleaning flow diagram in one embodiment that this specification provides;
Fig. 3 is a kind of modular structure schematic diagram for mirror image data cleaning plant embodiment that this specification provides;
Fig. 4 is the schematic configuration diagram according to the server of an exemplary embodiment of this specification.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in this specification, below in conjunction with this explanation Attached drawing in book one or more embodiment carries out the technical solution in this specification one or more embodiment clear, complete Site preparation description, it is clear that described embodiment is only specification a part of the embodiment, instead of all the embodiments.Based on saying Bright book one or more embodiment, it is obtained by those of ordinary skill in the art without making creative efforts all The range of this specification example scheme protection all should belong in other embodiments.
As number of applications constantly increases on cloud, the mirror image quantity in mirror image warehouse also constantly increases therewith.But mirror As the valid image quantity in warehouse and few, which results in a large amount of wastes of mirror image warehouse storage resource, and also add The time of investigation problem.Correspondingly, this specification embodiment provides a kind of mirror image data method for cleaning, it can be according to mirror image name Apply Names in title determine the corresponding application of each mirror image, it is then possible to be determined according to the application version information in mirror image title The versions such as the version of the application stored in mirror image warehouse, the corresponding patch release of each version and version issuing time are special Sign.It is then possible to the cleaning to the mirror image data of the application be realized based on version feature, to more targetedly clear up not The image release data needed, it is accurate to retain the image release data needed.
Fig. 1 is a kind of mirror image data method for cleaning embodiment flow diagram that this specification provides.Although this theory Bright book provides as the following examples or method operating procedure shown in the drawings or apparatus structure, but based on conventional or without wound Less operating procedure or module list after the labour for the property made may include more in the method or device or part merging Member.In the step of there is no necessary causalities in logicality or structure, the execution sequence of these steps or the module of device Structure is not limited to this specification embodiment or execution shown in the drawings sequence or modular structure.The method or modular structure Device, server or end product in practice is in application, can be according to embodiment or method shown in the drawings or module Structure carry out sequence execution or it is parallel execute (such as parallel processor or multiple threads environment, even include distribution Formula processing, server cluster implementation environment).
Specific one embodiment as shown in Figure 1, the mirror image data method for cleaning that this specification provides one embodiment In, the method may include:
S0: obtaining mirror image name data from mirror image warehouse, and the mirror image name data includes Apply Names and label, The label includes application version information.
Mirror image warehouse can be the database of the mirror image data of one or more version for storing application.It is described to answer With that can refer in order to complete a certain or a few particular task and computer program by developing operation on operating system Data.After each update, the corresponding application data of more new version can be uploaded in mirror image warehouse, to be backed up.It answers The mirror image data of each version can be stored in mirror image warehouse in the form of image file, and each image file is corresponding There is mirror image title.Mirror image title is unique in mirror image warehouse, if an image file of the same name is increased newly, before covering Image file.
In some embodiments, the mirror image title may include Apply Names and label, and format such as can be Image:tag, image are Apply Names, and tag is label.The Apply Names can be used to characterize corresponding to image file Using may include application version information in the label, the application version information can be used to characterize the version of the application Feature, such as using version features such as corresponding version, the corresponding patch release of each version and version issuing times.It is described Name format when can be generated according to each application in label for characterizing the field feature of the version information of application determines.
Preferably, in one embodiment of this specification, the label may include the period version field being arranged successively, Patch release field and timestamp field.The period version field can be according to default update cycle and default update week The period version number updated in phase determines that the default update cycle such as can be the moon, season or year.The patch release word Section may include determining to the increased patch release number of corresponding period version.The timestamp field can be according to application more The new time determines.
For example, the mirror image title of certain image file can indicate are as follows: bj1/wapb-b2-app: V1.84.01.0.19051915014957, wherein bj1/wapb-b2-app is Apply Names, and V1 indicates major version number, field " 84.01 " indicate period version field, and " 0 " indicates patch release field, and " 19051915014957 " indicate timestamp field.Such as Fruit presets the update cycle as the moon, then every mistake one month, first meeting of period version field add 1, become " 85 " from " 84 ";Period The second of version field is the serial number for the period version sent out every month, and first version is " 01 ", and second version is " 02 ", And so on, it changes one month and then starts again.Patch release field is the serial number of the patch of each period version, primitive period version This corresponding patch release field is " 0 ", when issuing first patch release of the period version, first patch release pair The patch release field answered is " 1 ", and so on, a cycle version is changed, then restarts start of calculation.When " 19051915014957 " are Between stab field, according to application each version specific renewal time determine.
Above-mentioned name format can be used when the application of each version generates, in order to data query and operation processing.When So, when each version application data can also be backed up to mirror image warehouse, the corresponding mirror image data of each application is uniformly changed to State name format.Using the mirror image title of above-mentioned name format setting mirror image, can be further improved using in mirror image title The specific aim and accuracy of application version information progress mirror image cleaning.
The mirror image name data of all image files in available mirror image warehouse, can also only obtain target image file Mirror image name data, target image file can according to need sets itself.In one embodiment of this specification, it can adopt Mirror image name data is obtained from mirror image warehouse with following manner:
The operation information of the corresponding application of going into operation of current production time node is received, the operation information includes application of going into operation Apply Names;
The operation is obtained from mirror image warehouse according to the Apply Names and applies corresponding mirror image name data.
The production time node may include that the more new version of application is distributed in each platform to replace original version operation Time point.The application of going into operation may include generating version updating and being distributed in each platform to replace answering for original version operation With.In some embodiments, production time node data can be imported in mirror image cleaning equipment in advance, then, based on operation Timing node instructs to trigger mirror image cleaning operation.It can such as refer in next day triggering mirror image cleaning operation of production time node It enables, to clear up the data in mirror image warehouse.
After triggering the instruction of mirror image cleaning operation, mirror image cleaning equipment can send inquiry request to mirror image warehouse, inquire mirror As the mirror image data in warehouse, the mirror image name data of each image file is obtained from mirror image warehouse.Increase portion in mirror image warehouse newly After dividing the update edition data of application, the corresponding part legacy data of the certain applications can be cleared up, and only be retained effective Edition data, to reduce the storage pressure in mirror image warehouse.And the application of version updating is not carried out, it is not usually required to carry out mirror image Therefore data scrubbing by obtaining the application gone into operation every time, then, carries out mirror image cleaning for the batch application, can be into one Step improves the efficiency of mirror image cleaning.
Certainly, on the basis of carrying out mirror image cleaning based on above-mentioned production time node, cleaning cycle can also be set, it is right All mirror image datas in mirror image warehouse can be fully cleaned, with further realize the mirror image data of the application to partial invalidity into Row cleaning.
S2: the mirror image name data is ranked up according to the Apply Names and application version information.
Can according in each mirror image name data Apply Names and application version information to the mirror image name data It is ranked up.The mirror image name data of same application title can be extracted, then, according to application version information to having The mirror image name data of same application title is ranked up.For example, can be ranked up according to the sequencing that version is issued:
Mirror image title example: bj1/wapb-b2-app:V1.86.01.0.19051915014957
Bj1/wapb-b2-app:V1.86.02.0.19051915314957
Bj1/wapb-b2-app:V1.86.01.0.19041915014957
Bj1/wapb-b2-app:V1.87.01.0.19051915014957
It can be with after sequence are as follows:
Bj1/wapb-b2-app:V1.87.01.0.19051915014957
Bj1/wapb-b2-app:V1.86.02.0.19051915314957
Bj1/wapb-b2-app:V1.86.01.0.19051915014957
Bj1/wapb-b2-app:V1.86.01.0.19041915014957
S4: the mirror image name of mirror image for clearance is filtered out from the mirror image name data after sequence according to mirror image cleaning rule Claim.
Mirror image cleaning rule can be preset according to actual needs, such as be can be set and only retained newest several period versions Corresponding mirror image data, alternatively, can also only retain newest N number of patch of a period version if patch release is more Version and the corresponding all versions of this period version etc., it is of course also possible to only retain some or multiple spies as needed Fixed version.In practical application scene, it can be sieved from the mirror image name data after sequence according to preset mirror image cleaning rule Select the mirror image title of mirror image for clearance.The corresponding cleaning rule of each Apply Names may be the same or different, here not It limits.
In one embodiment of this specification, it can also be screened from the mirror image name data after sequence using following manner The mirror image title of mirror image for clearance out:
The corresponding mirror image cleaning rule of target application is obtained, the mirror image cleaning rule is corresponding according to the target application Application version information and/or version updating feature determine;
It is filtered out from the mirror image name data after the corresponding sequence of the target application according to the mirror image cleaning rule The mirror image title of the corresponding mirror image for clearance of the target application.
Version updating feature and/or the field data feature of characterization version information etc. that each application can be analyzed in advance are come true The mirror image cleaning rule of fixed each application.For example, the update cycle frequency of some applications is higher (updating within such as one month primary), and one Time update cycle applied a bit is longer (updating within such as 1 year primary), but patch more new version is more.It is respectively answered by analyzing in advance Version updating and version field feature determine the mirror image cleaning rule of each application, can more targetedly carry out mirror As the cleaning of data.When practical mirror image is cleared up, the corresponding mirror image cleaning rule of available target application is cleared up according to the mirror image It is corresponding for clearance that rule filters out the target application from the mirror image name data after the corresponding sequence of the target application The mirror image title of mirror image.
S6: being sent to mirror image warehouse for the mirror image title of the mirror image for clearance, so that mirror image warehouse is according to described to clear The mirror image title for managing mirror image carries out mirror image cleaning.
The mirror image title of the mirror image for clearance filtered out according to mirror image cleaning rule is sent to mirror image warehouse, and can be same When send removal request to mirror image warehouse, mirror image warehouse is according to removal request and the mirror image title of mirror image for clearance, to warehouse Interior corresponding mirror image data is cleared up.
Fig. 2 indicates a kind of flow chart for mirror image cleaning that this specification provides.As shown in Fig. 2, one of this specification is answered With in scene, the step of mirror image is cleared up, can be with are as follows:
Production time point is imported mirror image and clears up system by S101, each node;
S102: next day triggering mirror image of production time point clears up instruction;
S103: mirror image clears up system and sends inquiry request to mirror image warehouse, obtains the mirror image name data of operation mirror image;
S104: according in mirror image title Apply Names and application version information mirror image name data is ranked up;
S105: the mirror image List Names for needing to clear up are filtered out;
S106: removal request and mirror image List Names are sent to mirror image warehouse;
S107: mirror image warehouse mirror image data is deleted according to removal request and mirror image List Names.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Specifically it is referred to The description of aforementioned relevant treatment related embodiment, does not do repeat one by one herein.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
The mirror image data method for cleaning that this specification one or more embodiment provides, can be according to answering in mirror image title The corresponding application of each mirror image is determined with title, it is then possible to determine mirror image warehouse according to the application version information in mirror image title The version features such as the version of the application of middle storage, the corresponding patch release of each version and version issuing time.Then, may be used To realize the cleaning to the mirror image data of the application based on version feature, to more targetedly clear up unwanted mirror image Edition data is accurate to retain the image release data needed.
Based on mirror image data method for cleaning described above, this specification one or more embodiment also provides a kind of mirror image Data scrubbing device.The device may include the system for having used this specification embodiment the method, software (application), Module, component, server etc. simultaneously combine the necessary device for implementing hardware.Based on same innovation thinking, this specification embodiment Device in one or more embodiments of offer is as described in the following examples.The implementation solved the problems, such as due to device with Method is similar, therefore the implementation of the specific device of this specification embodiment may refer to the implementation of preceding method, repeats place not It repeats again.Used below, the group of the software and/or hardware of predetermined function may be implemented in term " unit " or " module " It closes.Although device described in following embodiment is preferably realized with software, the combination of hardware or software and hardware Realization be also that may and be contemplated.Specifically, Fig. 3 indicates a kind of mirror image data cleaning plant embodiment that specification provides Modular structure schematic diagram, as shown in figure 3, the apparatus may include:
Data acquisition module 802 can be used for obtaining mirror image name data, the mirror image name data from mirror image warehouse Including Apply Names and label, the label includes application version information;
Data sorting module 804 can be used for according to the Apply Names and application version information to the mirror image name Data are claimed to be ranked up;
Data screening module 806 can be used for being screened from the mirror image name data after sequence according to mirror image cleaning rule The mirror image title of mirror image for clearance out;
Data transmission blocks 808 can be used for the mirror image title of the mirror image for clearance being sent to mirror image warehouse, so that Mirror image warehouse carries out mirror image cleaning according to the mirror image title of the mirror image for clearance.
In another embodiment of this specification, described device further includes data reception module, wherein
The data reception module can be used for receiving the operation information of the corresponding application of going into operation of current production time node, The operation information includes the Apply Names applied of going into operation;
The data acquisition module, which can be also used for obtaining the operation from mirror image warehouse according to the Apply Names, answers With corresponding mirror image name data.
In another embodiment of this specification, the data screening module 806 may include:
Rule determination unit can be used for obtaining the corresponding mirror image cleaning rule of target application, the mirror image cleaning rule It is determined according to the corresponding application version information of the target application and/or version updating feature;
Data screening unit can be used for according to the mirror image cleaning rule after the corresponding sequence of the target application The mirror image title of the corresponding mirror image for clearance of the target application is filtered out in mirror image name data.
In another embodiment of this specification, the label may include the period version field being arranged successively, patch Version field and timestamp field;The period version field can be according in default update cycle and default update cycle The period version number of update determines that the patch release field can be according to true to the increased patch release number of the period version Fixed, the timestamp field can be determined according to the renewal time of application.
It should be noted that device described above can also include other embodiment party according to the description of embodiment of the method Formula.Concrete implementation mode is referred to the description of related method embodiment, does not repeat one by one herein.
The mirror image data cleaning plant that this specification one or more embodiment provides, can be according to answering in mirror image title The corresponding application of each mirror image is determined with title, it is then possible to determine mirror image warehouse according to the application version information in mirror image title The version features such as the version of the application of middle storage, the corresponding patch release of each version and version issuing time.Then, may be used To realize the cleaning to the mirror image data of the application based on version feature, to more targetedly clear up unwanted mirror image Edition data is accurate to retain the image release data needed.
Method or apparatus described in above-described embodiment that this specification provides can realize that business is patrolled by computer program It collects and records on a storage medium, the storage medium can be read and be executed with computer, realize this specification embodiment institute The effect of description scheme.Therefore, this specification also provides a kind of mirror image data cleaning equipment, including processor and storage processor The memory of executable instruction, when described instruction is executed by the processor realize the following steps are included:
Mirror image name data is obtained from mirror image warehouse, the mirror image name data includes Apply Names and label, institute Stating label includes application version information;
The mirror image name data is ranked up according to the Apply Names and application version information;
The mirror image title of mirror image for clearance is filtered out from the mirror image name data after sequence according to mirror image cleaning rule;
The mirror image title of the mirror image for clearance is sent to mirror image warehouse, so that mirror image warehouse is according to the mirror for clearance The mirror image title of picture carries out mirror image cleaning.
Embodiment of the method provided by this specification embodiment can mobile terminal, terminal, server or It is executed in similar arithmetic unit.For running on the server, Fig. 4 is clear using the mirror image data of this specification embodiment Manage the hardware block diagram of server.As shown in figure 4, server 10 may include at one or more (only showing one in figure) Reason device 20 (processing unit that processor 20 can include but is not limited to Micro-processor MCV or programmable logic device FPGA etc.), Memory 30 for storing data and the transmission module 40 for communication function.This neighborhood those of ordinary skill can manage Solution, structure shown in Fig. 4 are only to illustrate, and do not cause to limit to the structure of above-mentioned electronic device.For example, server 10 may be used also It including component more or more less than shown in Fig. 4, such as can also include other processing hardware, such as database or multistage Caching, GPU, or with the configuration different from shown in Fig. 4.
Memory 30 can be used for storing the software program and module of application software, such as the searcher in the embodiment of the present invention Corresponding program instruction/the module of method, the software program and module that processor 20 is stored in memory 30 by operation, thus Perform various functions application and data processing.Memory 30 may include high speed random access memory, may also include non-volatile deposit Reservoir, such as one or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, Memory 30 can further comprise the memory remotely located relative to processor 20, these remote memories can pass through network It is connected to terminal.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile communication Net and combinations thereof.
Transmission module 40 is used to that data to be received or sent via a network.Above-mentioned network specific example may include meter The wireless network that the communication providers of calculation machine terminal provide.In an example, transmission module 40 includes a network adapter (Network Interface Controller, NIC), can be connected by base station with other network equipments so as to interconnection Net is communicated.In an example, transmission module 40 can be radio frequency (Radio Frequency, RF) module, be used to lead to Wireless mode is crossed to be communicated with internet.
The storage medium may include the physical unit for storing information, usually by after information digitalization again with benefit The media of the modes such as electricity consumption, magnetic or optics are stored.It may include: that letter is stored in the way of electric energy that the storage medium, which has, The device of breath such as, various memory, such as RAM, ROM;The device of information is stored in the way of magnetic energy such as, hard disk, floppy disk, magnetic Band, core memory, magnetic bubble memory, USB flash disk;Using optical mode storage information device such as, CD or DVD.Certainly, there are also it Readable storage medium storing program for executing of his mode, such as quantum memory, graphene memory etc..
It should be noted that equipment described above can also include other embodiment party according to the description of embodiment of the method Formula.Concrete implementation mode is referred to the description of related method embodiment, does not repeat one by one herein.
Mirror image data cleaning equipment described in above-described embodiment can determine each mirror according to the Apply Names in mirror image title As corresponding application, it is then possible to determine the application stored in mirror image warehouse according to the application version information in mirror image title The version features such as version, the corresponding patch release of each version and version issuing time.It is then possible to be based on version feature The cleaning to the mirror image data of the application is realized, to more targetedly clear up unwanted image release data, accurately Retain the image release data needed.
This specification also provides a kind of mirror image data cleaning system, and the system can be individual mirror image data cleaning system System, can also apply in a variety of computer data processing systems.The system can be individual server, also can wrap Include the server cluster, system of the one or more the methods for having used this specification or one or more embodiment devices (including distributed system), software (application), practical operation device, logic gates device, quantum computer etc. and combine must The terminal installation for the implementation hardware wanted.The mirror image data cleaning system may include that at least one processor and storage calculate The memory of machine executable instruction, the processor are realized when executing described instruction in above-mentioned any one or multiple embodiments The step of the method.
It should be noted that system described above can also include others according to the description of method or Installation practice Embodiment, concrete implementation mode are referred to the description of related method embodiment, do not repeat one by one herein.
Mirror image data described in above-described embodiment clears up system, can determine each mirror according to the Apply Names in mirror image title As corresponding application, it is then possible to determine the application stored in mirror image warehouse according to the application version information in mirror image title The version features such as version, the corresponding patch release of each version and version issuing time.It is then possible to be based on version feature The cleaning to the mirror image data of the application is realized, to more targetedly clear up unwanted image release data, accurately Retain the image release data needed.
It should be noted that this specification device or system described above according to the description of related method embodiment also It may include other embodiments, concrete implementation mode is referred to the description of embodiment of the method, does not go to live in the household of one's in-laws on getting married one by one herein It states.All the embodiments in this specification are described in a progressive manner, and same and similar part is mutual between each embodiment Mutually referring to each embodiment focuses on the differences from other embodiments.Especially for hardware+program For class, storage medium+program embodiment, since it is substantially similar to the method embodiment, so be described relatively simple, it is related Place illustrates referring to the part of embodiment of the method.
This specification embodiment is not limited to comply with standard data model/template or this specification embodiment institute The case where description.It is modified slightly in certain professional standards or the practice processes for using customized mode or embodiment to describe Embodiment also may be implemented above-described embodiment it is identical, it is equivalent or it is close or deformation after it is anticipated that implementation result.Using these The embodiment of the acquisitions such as modification or deformed data acquisition, storage, judgement, processing mode, still may belong to this specification Optional embodiment within the scope of.
It is above-mentioned that this specification specific embodiment is described.Other embodiments are in the scope of the appended claims It is interior.In some cases, the movement recorded in detail in the claims or step can be come according to the sequence being different from embodiment It executes and desired result still may be implemented.In addition, process depicted in the drawing not necessarily require show it is specific suitable Sequence or consecutive order are just able to achieve desired result.In some embodiments, multitasking and parallel processing be also can With or may be advantageous.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, vehicle-mounted human-computer interaction device, cellular phone, camera phone, smart phone, individual Digital assistants, media player, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or The combination of any equipment in these equipment of person.
For convenience of description, it is divided into various modules when description apparatus above with function to describe respectively.Certainly, implementing this The function of each module can be realized in the same or multiple software and or hardware when specification one or more, it can also be with The module for realizing same function is realized by the combination of multiple submodule or subelement etc..Installation practice described above is only It is only illustrative, for example, in addition the division of the unit, only a kind of logical function partition can have in actual implementation Division mode, such as multiple units or components can be combined or can be integrated into another system or some features can be with Ignore, or does not execute.Another point, shown or discussed mutual coupling, direct-coupling or communication connection can be logical Some interfaces are crossed, the indirect coupling or communication connection of device or unit can be electrical property, mechanical or other forms.
It is also known in the art that other than realizing controller in a manner of pure computer readable program code, it is complete Entirely can by by method and step carry out programming in logic come so that controller with logic gate, switch, specific integrated circuit, programmable Logic controller realizes identical function with the form for being embedded in microcontroller etc..Therefore this controller is considered one kind Hardware component, and the structure that the device for realizing various functions that its inside includes can also be considered as in hardware component.Or Person even, can will be considered as realizing the device of various functions either the software module of implementation method can be hardware again Structure in component.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method or equipment of element.
It will be understood by those skilled in the art that this specification one or more embodiment can provide as method, system or calculating Machine program product.Therefore, this specification one or more embodiment can be used complete hardware embodiment, complete software embodiment or The form of embodiment combining software and hardware aspects.Moreover, this specification one or more embodiment can be used at one or It is multiple wherein include computer usable program code computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) on the form of computer program product implemented.
This specification one or more embodiment can computer executable instructions it is general on It hereinafter describes, such as program module.Generally, program module includes executing particular task or realization particular abstract data type Routine, programs, objects, component, data structure etc..This this specification one can also be practiced in a distributed computing environment Or multiple embodiments, in these distributed computing environments, by being held by the connected remote processing devices of communication network Row task.In a distributed computing environment, program module can be located at the local and remote computer including storage equipment In storage medium.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", The description of " specific example " or " some examples " etc. means specific features described in conjunction with this embodiment or example, structure, material Or feature is contained at least one embodiment or example of this specification.In the present specification, to the signal of above-mentioned term Property statement must not necessarily be directed to identical embodiment or example.Moreover, specific features, structure, material or the spy of description Point may be combined in any suitable manner in any one or more of the embodiments or examples.In addition, without conflicting with each other, Those skilled in the art can be by different embodiments or examples described in this specification and different embodiments or examples Feature is combined.
The foregoing is merely the embodiments of this specification, are not limited to this specification.For art technology For personnel, this specification can have various modifications and variations.It is all made any within the spirit and principle of this specification Modification, equivalent replacement, improvement etc., should be included within the scope of the claims of this specification.

Claims (10)

1. a kind of mirror image data method for cleaning characterized by comprising
Mirror image name data is obtained from mirror image warehouse, the mirror image name data includes Apply Names and label, the mark Label include application version information;
The mirror image name data is ranked up according to the Apply Names and application version information;
The mirror image title of mirror image for clearance is filtered out from the mirror image name data after sequence according to mirror image cleaning rule;
The mirror image title of the mirror image for clearance is sent to mirror image warehouse, so that mirror image warehouse is according to the mirror image for clearance Mirror image title carries out mirror image cleaning.
2. the method according to claim 1, wherein described obtain mirror image name data, packet from mirror image warehouse It includes:
The operation information of the corresponding application of going into operation of current production time node is received, the operation information includes answering for operation application Use title;
The operation is obtained from mirror image warehouse according to the Apply Names and applies corresponding mirror image name data.
3. the method according to claim 1, wherein it is described according to mirror image cleaning rule from the mirror image name after sequence Claim the mirror image title that mirror image for clearance is filtered out in data:
The corresponding mirror image cleaning rule of target application is obtained, the mirror image cleaning rule is according to the corresponding application of the target application Version information and/or version updating feature determine;
It is filtered out from the mirror image name data after the corresponding sequence of the target application according to the mirror image cleaning rule described The mirror image title of the corresponding mirror image for clearance of target application.
4. the method according to claim 1, wherein the label include the period version field being arranged successively, Patch release field and timestamp field;
The period version field is determining according to the period version number updated in default update cycle and default update cycle, institute It states patch release field and determines that the timestamp field is according to application according to the increased patch release number of the period version Renewal time determines.
5. a kind of mirror image data cleaning plant, which is characterized in that described device includes:
Data acquisition module, for obtaining mirror image name data from mirror image warehouse, the mirror image name data includes application name Claim and label, the label include application version information;
Data sorting module, for being arranged according to the Apply Names and application version information the mirror image name data Sequence;
Data screening module, for filtering out mirror image for clearance from the mirror image name data after sequence according to mirror image cleaning rule Mirror image title;
Data transmission blocks, for the mirror image title of the mirror image for clearance to be sent to mirror image warehouse, so that mirror image warehouse root Mirror image cleaning is carried out according to the mirror image title of the mirror image for clearance.
6. device according to claim 5, which is characterized in that described device further includes data reception module, wherein
The data reception module is used to receive the operation information of the corresponding application of going into operation of current production time node, the operation Information includes the Apply Names applied of going into operation;
It is corresponding that the data acquisition module is also used to obtain the operation application from mirror image warehouse according to the Apply Names Mirror image name data.
7. device according to claim 5, which is characterized in that the data screening module includes:
Rule determination unit, for obtaining the corresponding mirror image cleaning rule of target application, the mirror image cleaning rule is according to The corresponding application version information of target application and/or version updating feature determine;
Data screening unit, for according to the mirror image cleaning rule from the mirror image title after the corresponding sequence of the target application The mirror image title of the corresponding mirror image for clearance of the target application is filtered out in data.
8. device according to claim 5, which is characterized in that the label include the period version field being arranged successively, Patch release field and timestamp field;
The period version field is determining according to the period version number updated in default update cycle and default update cycle, institute It states patch release field and determines that the timestamp field is according to application according to the increased patch release number of the period version Renewal time determines.
9. a kind of mirror image data cleaning equipment, which is characterized in that including processor and for storage processor executable instruction Memory, when described instruction is executed by the processor realize the following steps are included:
Mirror image name data is obtained from mirror image warehouse, the mirror image name data includes Apply Names and label, the mark Label include application version information;
The mirror image name data is ranked up according to the Apply Names and application version information;
The mirror image title of mirror image for clearance is filtered out from the mirror image name data after sequence according to mirror image cleaning rule;
The mirror image title of the mirror image for clearance is sent to mirror image warehouse, so that mirror image warehouse is according to the mirror image for clearance Mirror image title carries out mirror image cleaning.
10. a kind of mirror image data clears up system, which is characterized in that the system comprises at least one processors and storage to calculate The memory of machine executable instruction, the processor realize any one of the claim 1-4 side when executing described instruction The step of method.
CN201910699440.3A 2019-07-31 2019-07-31 Mirror image data cleaning method, device and system Active CN110442480B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910699440.3A CN110442480B (en) 2019-07-31 2019-07-31 Mirror image data cleaning method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910699440.3A CN110442480B (en) 2019-07-31 2019-07-31 Mirror image data cleaning method, device and system

Publications (2)

Publication Number Publication Date
CN110442480A true CN110442480A (en) 2019-11-12
CN110442480B CN110442480B (en) 2022-04-15

Family

ID=68432547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910699440.3A Active CN110442480B (en) 2019-07-31 2019-07-31 Mirror image data cleaning method, device and system

Country Status (1)

Country Link
CN (1) CN110442480B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111291017A (en) * 2020-03-03 2020-06-16 中国工商银行股份有限公司 Mirror image storage and extraction method and device of mirror image warehouse
CN111752676A (en) * 2020-05-28 2020-10-09 苏州浪潮智能科技有限公司 Docker-based homonymous mirror image removing method, system, terminal and storage medium
CN112433964A (en) * 2020-04-17 2021-03-02 上海哔哩哔哩科技有限公司 Method and equipment for cleaning cache dirty data
CN116842001A (en) * 2023-08-29 2023-10-03 合肥中科类脑智能技术有限公司 Mirror image data cleaning method and device, electronic equipment and artificial intelligent platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090144718A1 (en) * 2007-11-30 2009-06-04 Joseph Boggs Systems and methods for updating software appliances
CN106484906A (en) * 2016-10-21 2017-03-08 焦点科技股份有限公司 A kind of distributed objects storage system flash back method and device
CN107066296A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 The method for cleaning and device of mirror image in a kind of clustered node
CN107105054A (en) * 2017-05-17 2017-08-29 郑州云海信息技术有限公司 A kind of mirror image garbage-cleaning system and method towards docker mirror images warehouse
CN109343859A (en) * 2018-08-17 2019-02-15 咪咕文化科技有限公司 A kind of information processing method, device and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090144718A1 (en) * 2007-11-30 2009-06-04 Joseph Boggs Systems and methods for updating software appliances
CN106484906A (en) * 2016-10-21 2017-03-08 焦点科技股份有限公司 A kind of distributed objects storage system flash back method and device
CN107066296A (en) * 2017-03-31 2017-08-18 北京奇艺世纪科技有限公司 The method for cleaning and device of mirror image in a kind of clustered node
CN107105054A (en) * 2017-05-17 2017-08-29 郑州云海信息技术有限公司 A kind of mirror image garbage-cleaning system and method towards docker mirror images warehouse
CN109343859A (en) * 2018-08-17 2019-02-15 咪咕文化科技有限公司 A kind of information processing method, device and storage medium

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
BREEZEY: "Harbor镜像清理", 《HTTPS://WWW.CNBLOGS.COM/BREEZEY/P/10615231.HTML》 *
KEVIN BURNETTK等: "delete-docker-registry-image", 《HTTPS://GITHUB.COM/BURNETTK/DELETE-DOCKER-REGISTRY-IMAGE》 *
SENTHIL NATHAN等: "CoMICon: A Co-Operative Management System for Docker Container Images", 《2017 IEEE INTERNATIONAL CONFERENCE ON CLOUD ENGINEERING (IC2E)》 *
YWQ935: "Docker registry仓库历史镜像批量清理", 《HTTPS://BLOG.CSDN.NET/YWQ935/ARTICLE/DETAILS/83828888》 *
高原: "基于Docker的私有云主机***研究与实现", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111291017A (en) * 2020-03-03 2020-06-16 中国工商银行股份有限公司 Mirror image storage and extraction method and device of mirror image warehouse
CN111291017B (en) * 2020-03-03 2024-04-05 中国工商银行股份有限公司 Mirror image storage and extraction method and device of mirror image warehouse
CN112433964A (en) * 2020-04-17 2021-03-02 上海哔哩哔哩科技有限公司 Method and equipment for cleaning cache dirty data
CN112433964B (en) * 2020-04-17 2022-06-14 上海哔哩哔哩科技有限公司 Method and equipment for cleaning cache dirty data
CN111752676A (en) * 2020-05-28 2020-10-09 苏州浪潮智能科技有限公司 Docker-based homonymous mirror image removing method, system, terminal and storage medium
CN111752676B (en) * 2020-05-28 2022-06-21 苏州浪潮智能科技有限公司 Docker-based homonymous mirror image removing method, system, terminal and storage medium
CN116842001A (en) * 2023-08-29 2023-10-03 合肥中科类脑智能技术有限公司 Mirror image data cleaning method and device, electronic equipment and artificial intelligent platform

Also Published As

Publication number Publication date
CN110442480B (en) 2022-04-15

Similar Documents

Publication Publication Date Title
CN110442480A (en) A kind of mirror image data method for cleaning, apparatus and system
Mokbel et al. MNTG: An extensible web-based traffic generator
CN110096528A (en) The method, apparatus and system of formation sequence in a kind of distributed system
CN109933834A (en) A kind of model creation method and device of time series data prediction
CN108200070B (en) Method and device for generating list
CN110347708A (en) A kind of data processing method and relevant device
CN110489641A (en) A kind of information recommendation data processing method and device
CN106886535A (en) A kind of data pick-up method and apparatus for being adapted to multiple data sources
CN110472154A (en) A kind of resource supplying method, apparatus, electronic equipment and readable storage medium storing program for executing
CN106791983A (en) A kind of intelligent television user behavior analysis method and system
CN109597678A (en) Task processing method and device
CN110910054A (en) Method and device for determining track and method and device for recommending time
CA3007463A1 (en) Display method, display program, and display control device
CN110162573A (en) A kind of distribution sequence generating method, apparatus and system
CN109741108A (en) Streaming application recommended method, device and electronic equipment based on context aware
CN109857738A (en) Date storage method, device, computer equipment and storage medium
CN108829790A (en) A kind of data batch processing method, apparatus and system
CN109376977A (en) Recommended agent people method, electronic equipment and computer readable storage medium
CN105468676A (en) Big data processing method
CN103218458B (en) Recommendation method and recommendation server
CN114329058A (en) Image gathering method and device and electronic equipment
CN112988383A (en) Resource allocation method, device, equipment and storage medium
CN109726328A (en) Information acquisition method, device, electronic equipment and computer readable storage medium
CN104184988A (en) Video data monitoring method and system
CN109583963A (en) A kind of advertisement placement method, apparatus and system towards high net value client

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