CN109062717A - Data buffer storage and caching disaster recovery method and system, caching system - Google Patents

Data buffer storage and caching disaster recovery method and system, caching system Download PDF

Info

Publication number
CN109062717A
CN109062717A CN201810662821.XA CN201810662821A CN109062717A CN 109062717 A CN109062717 A CN 109062717A CN 201810662821 A CN201810662821 A CN 201810662821A CN 109062717 A CN109062717 A CN 109062717A
Authority
CN
China
Prior art keywords
business datum
caching
caching system
cached
business
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
CN201810662821.XA
Other languages
Chinese (zh)
Other versions
CN109062717B (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.)
Advanced New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202211086091.6A priority Critical patent/CN115470026A/en
Priority to CN201810662821.XA priority patent/CN109062717B/en
Publication of CN109062717A publication Critical patent/CN109062717A/en
Application granted granted Critical
Publication of CN109062717B publication Critical patent/CN109062717B/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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0709Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a distributed system consisting of a plurality of standalone computer nodes, e.g. clusters, client-server systems
    • 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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0715Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a system implementing multitasking
    • 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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/073Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a memory management context, e.g. virtual memory or cache management
    • 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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0745Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in an input/output transactions management context
    • 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/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0793Remedial or corrective actions

Abstract

This specification embodiment provides a kind of data buffer storage and caching disaster recovery method and system, caching system, on the one hand physics validity period of the business datum in caching system is set as permanent effective, so that there is the business datum revealed all the details for realizing caching in caching system, always to realize caching disaster tolerance;On the other hand to newest business datum is distally requested when the business datum logic in caching system is expired, to guarantee in the case where available remote data, the business datum that operation system is got is the business datum within the logical validity phase.

Description

Data buffer storage and caching disaster recovery method and system, caching system
Technical field
This specification is related to technical field of risk control more particularly to data buffer storage and caching disaster recovery method and system, delays Deposit system.
Background technique
In practical applications, remote server is it sometimes appear that performance bottleneck, or appearance are abnormal, for example service processes are different It is often killed, database delay machine or connection number have expired.Therefore need to design some Disaster Tolerant Schemes, to guarantee the normal fortune of business Row.
Summary of the invention
Based on this, this specification embodiment provides data buffer storage and caching disaster recovery method and system, caching system.
According to this specification embodiment in a first aspect, providing a kind of data cache method, which comprises receiving To operation system send service data request when, business datum is searched in caching system;If finding, the business is obtained The logical validity phase of data;Wherein, the logical validity phase is the term of validity that the business datum corresponds to business;If described The logical validity phase is already expired, and by the business datum from being distally cached to the caching system, and the business datum is being cached Physics validity period in system is set as permanent effective.
Optionally, the method also includes: if not finding the business datum in caching system, by the business number According to from being distally cached to the caching system.
Optionally, the method also includes: if not finding the business datum in caching system, getting caching After data lock, the business datum is searched in caching system again, if not finding the business datum yet, by the industry Business data are from being distally cached to the caching system.
Optionally, the method also includes: if obtaining data cached lock time-out, end process.
Optionally, by the business datum from including: by significance level height the step of being distally cached to the caching system The first business datum second business datum low with significance level cached respectively into the caching system it is mutually isolated not With in region.
Optionally, by the business datum before being distally cached to the caching system, the method also includes: if The cache unit for storing the second business datum has been expired, and evicts longest second business datum of cache-time from caching.
Optionally, the method also includes: the business datum in caching system is back to operation system.
Optionally, the method also includes: if the logical validity phase is already expired, judge in the service data request whether Carry data cached lock;If so, returning the business datum from the step of being distally cached to the caching system.
Optionally, the method also includes: if the logical validity phase non-mistake, the business that will be found in caching system Data are back to operation system.
Optionally, physics validity period of the business datum in caching system is permanent effective.
According to the second aspect of this specification embodiment, a kind of caching disaster recovery method is provided, which comprises if distal end Business datum obtains time-out, and business datum is searched in caching system;The business datum found is sent to operation system;Its In, the business datum is cached according to the data cache method of any embodiment to the caching system.
According to the third aspect of this specification embodiment, a kind of data buffer storage device is provided, described device includes: first to look into Module is looked for, for searching business datum in caching system when receiving the service data request of operation system transmission;First Module is obtained, if obtaining the logical validity phase of the business datum for finding;Wherein, the logical validity phase is described Business datum corresponds to the term of validity of business;First cache module, if being already expired for the logical validity phase, by the business Physics validity period of the business datum in caching system is set as permanent from being distally cached to the caching system by data Effectively.
Optionally, described device further include: the second cache module, if for not finding the business in caching system Data, by the business datum from being distally cached to the caching system.
Optionally, described device further include: third searching module, for existing after getting data cached lock again The business datum is searched in caching system;Third cache module, for not finding the business yet in third searching module When data, by the business datum from being distally cached to the caching system.
Optionally, described device further include: waiting-timeout module, if terminating process for obtaining data cached lock time-out.
Optionally, the first cache module includes: cache unit, for by the first high business datum of significance level with it is important The second low business datum of degree is cached respectively in the different zones mutually isolated into the caching system.
Optionally, described device further include: data evict module from, if the cache unit for storing the second business datum is It is full, evict longest second business datum of cache-time from caching.
Optionally, described device further include: the first sending module, for the business datum in caching system to be back to industry Business system.
Optionally, described device further include: judgment module judges the business if being already expired for the logical validity phase Whether data cached lock is carried in request of data;If so, returning to the function of executing the first cache module.
Optionally, described device further include: the second sending module will cache if being used for the logical validity phase non-mistake The business datum found in system is back to operation system.
Optionally, physics validity period of the business datum in caching system is permanent effective.
According to the fourth aspect of this specification embodiment, a kind of caching disaster tolerance device is provided, described device includes: second to look into Module is looked for, if obtaining time-out for distal end business datum, business datum is searched in caching system;Sending module, for that will look into The business datum found is sent to operation system;Wherein, the business datum is slow according to the data cache method of any embodiment It deposits to the caching system.
According to the 5th of this specification embodiment the aspect, a kind of computer readable storage medium is provided, meter is stored thereon with Calculation machine program, which is characterized in that the method for any embodiment is realized when the program is executed by processor.
According to the 6th of this specification embodiment the aspect, a kind of caching system, including memory, processor and storage are provided On a memory and the computer program that can run on a processor, which is characterized in that when the processor executes described program The method for realizing any embodiment.
Optionally, the caching system includes general caching unit and white list cache unit;The white list caching is single Member is for storing the first high business datum of significance level, and the general caching unit is for storing the second low industry of significance level Business data;Wherein, the second business datum cached at first is evicted from caching when the general caching unit is filled with.
Using this specification example scheme, on the one hand the physics validity period by business datum in caching system is set as forever Long effectively, so that there is the business datum revealed all the details for realizing caching in caching system, always to realize caching disaster tolerance;It is another To newest business datum is distally requested when business datum logic of the aspect in caching system is expired, to guarantee available In the case where remote data, the business datum that operation system is got is the business datum within the logical validity phase.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not This specification embodiment can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the reality for meeting this specification Example is applied, and is used to explain the principle of this specification embodiment together with specification.
Fig. 1 is the distal end of this specification one embodiment and the schematic diagram that proximal end interacts.
Fig. 2 is the data cache method flow chart of this specification one embodiment.
Fig. 3 is the data buffer storage of this specification one embodiment and the programming flowchart of disaster recovery method.
Fig. 4 is the caching disaster recovery method flow chart of this specification one embodiment.
Fig. 5 is the block diagram of the data buffer storage device of this specification one embodiment.
Fig. 6 is the block diagram of the caching disaster tolerance device of this specification one embodiment.
Fig. 7 is the structural schematic diagram of the caching system of this specification one embodiment.
Fig. 8 is the frame of the computer equipment for implementing this specification embodiment method of this specification one embodiment Figure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with this specification embodiment.On the contrary, they are only The example of the device and method consistent with some aspects as detailed in the attached claim, this specification embodiment Son.
It is only to be not intended to be limiting merely for for the purpose of describing particular embodiments in the term that this specification embodiment uses This specification embodiment.In this specification embodiment and the "an" of singular used in the attached claims, " institute State " and "the" be also intended to including most forms, unless the context clearly indicates other meaning.It is also understood that making herein Term "and/or" refers to and may combine comprising one or more associated any or all of project listed.
It will be appreciated that though various letters may be described using term first, second, third, etc. in this specification embodiment Breath, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, In the case where not departing from this specification scope of embodiments, the first information can also be referred to as the second information, similarly, the second letter Breath can also be referred to as the first information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... " or " in response to determination ".
As shown in Figure 1, being the distal end of this specification one embodiment and the schematic diagram that proximal end interacts.Wherein, proximal end 102 can be communicated with distal end 104, to obtain required data from distal end 104.It may include for executing industry in proximal end 102 The operation system 102a and caching system 102b of business, wherein operation system 102a can be long-range according to getting from distal end 104 The corresponding business of data run, meanwhile, in order to promote the efficiency of whole system, reduce with the data interaction between distal end 104, closely End 102 can also store data in caching system 102b after getting teledata.Caching system 102b can be Same proceeding internal memory, striding course memory, with the memory of physical machine different virtual machine, be also possible to the storage mediums such as hard disk.In reality Under certain scenes of application, the high availability of guarantee business is generally required.For example, gateway is to slow for Alipay gateway scene Configuration data dependence in deposit system 102b is stronger, if the data cached failure in caching system 102b, back-end services are again Configuration data can not be got, it will lead to the failure of entire service link, this scene needs cache it is highly usable, even if Back-end server goes wrong, and caching system 102b still can guarantee that business is available, and gateway arrives the dependence reduction of data It is minimum.
Based on this, this specification embodiment provides a kind of data cache method.As shown in Fig. 2, the method can include:
Step 202: when receiving the service data request of operation system transmission, business number is searched in caching system According to;
Step 204: if finding, obtaining the logical validity phase of the business datum;Wherein, the logical validity phase is institute State the term of validity that business datum corresponds to business;
Step 206: if the logical validity phase is already expired, by the business datum from being distally cached to the caching system, And physics validity period of the business datum in caching system is set as permanent effective.
In step 204, the logical validity phase of business datum refers to that the business datum needed for executing a certain business is opposite In the term of validity of the business.After the logical validity phase, business datum is considered as stale data for the business, but In order to be able to achieve caching disaster tolerance, still expired business datum can be stored in caching system, without stale data is deleted, To realize that caching is revealed all the details.Therefore, the logical validity phase can be regarded as the term of validity of business datum.Physics has in contrast The time limit that effect phase, i.e. business datum save in caching system.Business datum more than physics validity period will be expelled out of caching.
The logical validity phase of business datum can preset, for example, being set as 1 hour.It can be arranged for caching system One time label carries logical validity phase information in time label, can the timing since being stored in caching system business datum, When timing reaches the logical validity phase, it is believed that the business datum logical validity phase is already expired.
In step 206, it if the logical validity phase of business datum is already expired, can attempt from distally obtaining newest business Data cache newest business datum to caching system if got, and the business datum expired to logic is covered Lid, to guarantee the timeliness of business datum.Here distal end can be upstream application system, be also possible to database etc..
On the one hand physics validity period of the business datum in caching system is set as permanent effective by this specification embodiment, make The business datum for existing always in caching system and revealing all the details for realizing caching is obtained, to realize caching disaster tolerance;On the other hand slow To newest business datum is distally requested when business datum logic in deposit system is expired, to guarantee in available remote data In the case where, the business datum that operation system is got is the business datum within the logical validity phase.
It in one embodiment, can be directly by the industry if not finding the business datum in caching system Business data are from being distally cached to the caching system.If not finding the business datum in caching system, show caching system System is not cached the business datum, even if be cached business datum, but because reasons, the general such as expire in caching system space Business datum evicts caching from.Therefore, can be to distal end requested service data, and business datum is buffered in caching system, To realize that caching is revealed all the details.
In one embodiment, if not finding the business datum in caching system, data cached lock is being got Later, the business datum is searched in caching system again;If not finding the business datum yet, by the business datum From being distally cached to the caching system.
In the present embodiment, every part it is data cached be owned by a data cached lock, can be carried in service data request One " key " value, key can be considered the key assignments of caching system, be equivalent to the unique identification of business datum in the buffer.It is receiving When service data request, judge whether service data request gets data cached lock.Only get the industry of data cached lock Business request of data, just obtaining remote data for the service data request, this is the number in order to reduce distal end under high concurrent scene According to interaction pressure.And the business datum why is searched in caching system again, it is because of a service data request When taking data cached lock, it is possible to which other threads are from distally having got business datum and be stored to caching system In.Therefore, by secondary judgement, can to avoid with distally carry out unnecessary data interaction.
Further, the timeout mechanism for obtaining data cached lock can be set in the present embodiment.If obtaining caching Data lock time-out, directly terminates process.Timeout mechanism is unnecessary in order to prevent waits so that waste of resource, prevents extreme feelings Request queue is waiting always under condition, occurs overloading so as to cause system snowslide.
It in one embodiment, can be by important journey by the business datum from when being distally cached to the caching system Spend the first high business datum second business datum low with significance level cache respectively it is mutually isolated into the caching system Different zones in.Here the first business datum can be the business pair that payment transaction data etc. require High Availabitity ability The business datum answered.Label can be set for business datum in advance, the business datum with different labels is cached to not respectively In same buffer zone.
Further, the buffer zone for caching the first business datum can be set to never evict data from, cache the second industry The buffer zone of business data can be set to evict the longest business datum of cache-time from.By way of emphasis data isolation, The proximal end of emphasis data and general data caching is kept apart, emphasis data carry out full dose caching, and general data is still according to slow It deposits strategy to evict to execute, if caching system is not enough to support full dose data, this mode can guarantee significant data (example Such as, the business datum of emphasis trade company) centainly can disaster tolerance, and for long-tail data disaster tolerance to a certain extent.
In one embodiment, if the logical validity phase of business datum is already expired, it can be determined that in the service data request Whether data cached lock is carried;If so, returning the business datum from the step of being distally cached to the caching system.This reality It applies in example, the business datum expired for logic, remote data can also be obtained by data cached lock.It is slow with aforementioned setting Unlike the embodiment of deposit data lock, the present embodiment can be not provided with time-out time.Due to being storage in this caching system There is business datum, although logic is expired, still the expired business datum of logic can be returned into business, is protected with this The High Availabitity of card business.Obtaining data cached lock and being not provided with time-out time is to reduce in the case where physical store is hit The response time of service data request, the performance of lifting system.
If the logical validity phase non-mistake, directly can be back to industry for the business datum found in caching system Business system.
Physics validity period of the business datum in caching system is permanent effective.It should be noted that " permanently having here Effect " refers to cache-time more than sometime threshold value, which can be one very long time (for example, 1 year), only It wants to guarantee to realize caching disaster tolerance.
The proximal end cache logic of the present embodiment same can be encapsulated into a caching component, and business needs to obtain data When, data are directly obtained by caching component, are to be obtained from caching, or obtained from remote service end as data Judged by caching component, business does not need to perceive the logic of any caching and disaster tolerance.The programming flowchart of Fig. 3 shows proximal end Caching component is how to carry out data buffer storage, and how to carry out disaster tolerance in the event of an anomaly.Specifically may include with Lower step:
Step 302: operation system is obtained data cached by caching component.
Step 304: caching component searches business datum from caching system, if caching is breakdown, thens follow the steps 320;If cache hit (that is, finding business datum in the buffer), thens follow the steps 306.
Step 306: the key assignments (key) of business datum can be carried in service data request, each key-value pair answers unique one A data cached lock, each time point only have a key assignments get it is data cached lock go distal end obtain data.In step 304 Cache it is breakdown after, will acquire the corresponding data cached lock of the key assignments, then execute step 308.
Step 308: if getting data cached lock, executing step 310;It is no to then follow the steps 318.
Step 310: since there may be other threads, and distal end have been gone to obtain business datum, and business datum being stored Into caching system, it after getting data cached lock, will judge whether caching hits again, if miss, will carry out Step 312, if hit, returns data to business, process terminates.
Step 312: obtaining remote data, then execute step 314.
Step 314: the data of proximal end caching are written in object in the remote data write-in proximal end caching system that will acquire here Be in reason storage it is never expired, only caching, which has been expired, just understands trigger data when needing the data to evict from and is deleted by physics, but meeting The logic expired time of setting business.Then step 316 is executed.
Step 316: the business datum in caching system is back to operation system.In this step, if distal end occurs The problems such as Network Abnormal, database delay machine, is revealed all the details the data in caching system by this mechanism to guarantee that business is total It is available to data, ensure that the high availability of business.
Step 318: if obtaining data cached lock time-out, directly terminating process.
Step 320: in the caching system of proximal end have business datum when, first judge this it is data cached whether logic is expired, such as Fruit is out of date, then carries out step 322, and otherwise to operation system, process terminates direct return cache data.
Step 322: it is similar with step 306, the corresponding data cached lock of the key assignments is obtained, step 324 is then executed.
Step 324: if getting data cached lock, thening follow the steps 326;Otherwise, business datum is returned, and terminates to flow Journey.
Step 326: obtaining distal end business datum, and execute step 328.
Step 328: if obtained successfully, thening follow the steps 314;If obtaining failure, (remote service end occurs abnormal When), then follow the steps 316.
The scheme of this specification embodiment has at least the following advantages:
(1) it in the case where disaster occurs, is revealed all the details by the data for hitting physics as disaster tolerance data, is come with this The high availability of guarantee business.
It (2), can be under high concurrent scene to distally protecting by the way that data cached lock is arranged.
(3) pass through setting timeout mechanism, it is therefore prevented that it is unnecessary to wait to waste of resource, and prevent extreme case Lower request queue is waiting always, occurs overloading so as to cause system snowslide.
(4) by separately delaying higher first business datum of significance level and lower second business datum of significance level It deposits, and the first business datum never evicts caching from, only just evicts second cached at first from when respective cache region is filled with Business datum ensure that the disaster tolerance of emphasis business.
As shown in figure 4, this specification embodiment also provides a kind of caching disaster recovery method, which comprises
Step 402: if distal end business datum obtains time-out, business datum is searched in caching system;
Step 404: the business datum found is sent to operation system;
Wherein, the business datum is cached according to the data cache method of any embodiment to the caching system.
It is corresponding with the embodiment of preceding method, this specification embodiment additionally provide device, computer storage media and The embodiment of caching system.
As shown in figure 5, Fig. 5 is a kind of this specification embodiment data buffer storage device shown according to an exemplary embodiment Block diagram, described device includes:
First searching module 502, for receive operation system transmission service data request when, in caching system Search business datum;
First obtains module 504, if obtaining the logical validity phase of the business datum for finding;Wherein, described to patrol Collecting validity period is the term of validity that the business datum corresponds to business;
First cache module 506, if being already expired for the logical validity phase, by the business datum from being distally cached to institute Caching system is stated, and physics validity period of the business datum in caching system is set as permanent effective.
As shown in fig. 6, Fig. 6 is a kind of this specification embodiment caching disaster tolerance device shown according to an exemplary embodiment Block diagram, described device includes:
Second searching module 602 searches business datum if obtaining time-out for distal end business datum in caching system;
Sending module 604, for the business datum found to be sent to operation system;
Wherein, the business datum is cached according to the data cache method of any embodiment to the caching system.
The specific details of the realization process of the function of modules and effect, which are shown in, in above-mentioned apparatus corresponds to step in the above method Realization process, details are not described herein.
The embodiment of this specification device can be applied on a computing device, such as server or terminal device.Device Embodiment can also be realized by software realization by way of hardware or software and hardware combining.Taking software implementation as an example, As the device on a logical meaning, being will be corresponding in nonvolatile memory by the processor of file process where it Computer program instructions are read into memory what operation was formed.For hardware view, as shown in fig. 7, being this specification device A kind of hardware structure diagram of place computer equipment, in addition to processor 702 shown in Fig. 7, memory 704, network interface 706, with And except nonvolatile memory 708, server or electronic equipment in embodiment where device are set generally according to the computer Standby actual functional capability can also include other hardware, repeat no more to this.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The module of explanation may or may not be physically separated, and the component shown as module can be or can also be with It is not physical module, it can it is in one place, or may be distributed on multiple network modules.It can be according to actual The purpose for needing to select some or all of the modules therein to realize this specification scheme.Those of ordinary skill in the art are not In the case where making the creative labor, it can understand and implement.
Correspondingly, this specification embodiment also provides a kind of computer storage medium, is stored with journey in the storage medium Sequence realizes the method in any of the above-described embodiment when described program is executed by processor.
Correspondingly, this specification embodiment also provides a kind of caching system, including memory, processor and is stored in storage On device and the computer program that can run on a processor, which is characterized in that the processor is realized when executing described program The method for stating any embodiment.
Further, as shown in figure 8, the caching system includes general caching unit 802 and white list cache unit 804;The white list cache unit 804 is for storing the first high business datum of significance level, the general caching unit 802 For storing the second low business datum of significance level;Wherein, will cached at first when the general caching unit 802 is filled with Two business datums evict caching from.
It wherein includes storage medium (the including but not limited to disk of program code that the application, which can be used in one or more, Memory, CD-ROM, optical memory etc.) on the form of computer program product implemented.Computer-usable storage medium packet Permanent and non-permanent, removable and non-removable media is included, can be accomplished by any method or technique information storage.Letter Breath can be computer readable instructions, data structure, the module of program or other data.The example packet of the storage medium of computer Include but be not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), Other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices or any other non-biography Defeated medium, can be used for storage can be accessed by a computing device information.
Those skilled in the art will readily occur to this after considering specification and practicing specification embodiment disclosed herein Disclosed other embodiments.The disclosure is intended to cover any variations, uses, or adaptations of the disclosure, these changes Type, purposes or adaptive change follow the general principles of this disclosure and undocumented in the art including the disclosure Common knowledge or conventional techniques.The description and examples are only to be considered as illustrative, the true scope and spirit of the disclosure It is indicated by the following claims.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.
The foregoing is merely the preferred embodiments of the disclosure, not to limit the disclosure, all essences in the disclosure Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of disclosure protection.

Claims (15)

1. a kind of data cache method, which comprises
When receiving the service data request of operation system transmission, business datum is searched in caching system;
If finding, the logical validity phase of the business datum is obtained;Wherein, the logical validity phase is the business datum pair It should be in the term of validity of business;
If the logical validity phase is already expired, by the business datum from being distally cached to the caching system, and by the business Physics validity period of the data in caching system is set as permanent effective.
2. according to the method described in claim 1, the method also includes:
If not finding the business datum in caching system, it is from the caching is distally cached to by the business datum System.
3. according to the method described in claim 1, the method also includes:
If not finding the business datum in caching system, after getting data cached lock, again in caching system It is middle to search the business datum;
If not finding the business datum yet, by the business datum from being distally cached to the caching system.
4. according to the method described in claim 1, by the business datum from packet the step of being distally cached to the caching system It includes:
The first high business datum of significance level second business datum low with significance level is cached respectively to the caching and is In system in mutually isolated different zones.
5. according to the method described in claim 4, by the business datum before being distally cached to the caching system, institute State method further include:
If the cache unit of the second business datum of storage has been expired, longest second business datum of cache-time is evicted from caching.
6. according to the method described in claim 1, the method also includes:
Business datum in caching system is back to operation system.
7. according to the method described in claim 1, the method also includes:
If the logical validity phase is already expired, judge data cached lock whether is carried in the service data request;
If so, returning the business datum from the step of being distally cached to the caching system.
8. according to the method described in claim 7, the method also includes:
If the logical validity phase non-mistake, is back to operation system for the business datum found in caching system.
9. according to claim 1 to method described in 8 any one, physics validity period of the business datum in caching system It is permanent effective.
10. a kind of caching disaster recovery method, which comprises
If distal end business datum obtains time-out, business datum is searched in caching system;
The business datum found is sent to operation system;
Wherein, the business datum is cached according to method described in claim 1 to 9 any one to the caching system.
11. a kind of data buffer storage device, described device include:
First searching module, for searching industry in caching system when receiving the service data request of operation system transmission Business data;
First obtains module, if obtaining the logical validity phase of the business datum for finding;Wherein, the logical validity Phase is the term of validity that the business datum corresponds to business;
First cache module, if being already expired for the logical validity phase, by the business datum from being distally cached to the caching System, and physics validity period of the business datum in caching system is set as permanent effective.
12. a kind of caching disaster tolerance device, described device include:
Second searching module searches business datum if obtaining time-out for distal end business datum in caching system;
Sending module, for the business datum found to be sent to operation system;
Wherein, the business datum is cached according to method described in claim 1 to 9 any one to the caching system.
13. a kind of computer readable storage medium, is stored thereon with computer program, power is realized when which is executed by processor Benefit requires method described in 1 to 10 any one.
14. a kind of caching system including memory, processor and stores the calculating that can be run on a memory and on a processor Machine program, the processor realize method described in claims 1 to 10 any one when executing described program.
15. caching system according to claim 14, the caching system includes general caching unit and white list caching Unit;
The white list cache unit is for storing the first high business datum of significance level, and the general caching unit is for depositing Store up the second low business datum of significance level;
Wherein, the second business datum cached at first is evicted from caching when the general caching unit is filled with.
CN201810662821.XA 2018-06-25 2018-06-25 Data caching method, data caching system, data caching disaster tolerance method, data caching disaster tolerance system and data caching system Active CN109062717B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211086091.6A CN115470026A (en) 2018-06-25 2018-06-25 Data caching method, data caching system, data caching disaster tolerance method, data caching disaster tolerance system and data caching system
CN201810662821.XA CN109062717B (en) 2018-06-25 2018-06-25 Data caching method, data caching system, data caching disaster tolerance method, data caching disaster tolerance system and data caching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810662821.XA CN109062717B (en) 2018-06-25 2018-06-25 Data caching method, data caching system, data caching disaster tolerance method, data caching disaster tolerance system and data caching system

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202211086091.6A Division CN115470026A (en) 2018-06-25 2018-06-25 Data caching method, data caching system, data caching disaster tolerance method, data caching disaster tolerance system and data caching system

Publications (2)

Publication Number Publication Date
CN109062717A true CN109062717A (en) 2018-12-21
CN109062717B CN109062717B (en) 2022-07-12

Family

ID=64821508

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202211086091.6A Pending CN115470026A (en) 2018-06-25 2018-06-25 Data caching method, data caching system, data caching disaster tolerance method, data caching disaster tolerance system and data caching system
CN201810662821.XA Active CN109062717B (en) 2018-06-25 2018-06-25 Data caching method, data caching system, data caching disaster tolerance method, data caching disaster tolerance system and data caching system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202211086091.6A Pending CN115470026A (en) 2018-06-25 2018-06-25 Data caching method, data caching system, data caching disaster tolerance method, data caching disaster tolerance system and data caching system

Country Status (1)

Country Link
CN (2) CN115470026A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125175A (en) * 2019-12-20 2020-05-08 北京奇艺世纪科技有限公司 Service data query method and device, storage medium and electronic device
CN111813792A (en) * 2020-06-22 2020-10-23 上海悦易网络信息技术有限公司 Method and equipment for updating cache data in distributed cache system
CN111935490A (en) * 2019-05-13 2020-11-13 深圳市茁壮网络股份有限公司 Live broadcast and stream recording disaster tolerance processing method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070143340A1 (en) * 2005-12-08 2007-06-21 Lee Sang M System and method of time-based cache coherency maintenance in user file manager of object-based storage system
CN101090401A (en) * 2007-05-25 2007-12-19 金蝶软件(中国)有限公司 Data buffer store method and system at duster environment
CN102521410A (en) * 2011-12-28 2012-06-27 天津凯发电气股份有限公司 VxWorks-operating-system-based file storage structure and storage method
CN105302840A (en) * 2014-07-31 2016-02-03 阿里巴巴集团控股有限公司 Cache management method and device
CN105338088A (en) * 2015-11-04 2016-02-17 国家电网公司 Mobile P2P network buffer memory replacement method
CN105373369A (en) * 2014-08-25 2016-03-02 北京皮尔布莱尼软件有限公司 Asynchronous caching method, server and system
US20170277638A1 (en) * 2016-03-25 2017-09-28 Home Box Office, Inc. Cache map with sequential tracking for invalidation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070143340A1 (en) * 2005-12-08 2007-06-21 Lee Sang M System and method of time-based cache coherency maintenance in user file manager of object-based storage system
CN101090401A (en) * 2007-05-25 2007-12-19 金蝶软件(中国)有限公司 Data buffer store method and system at duster environment
CN102521410A (en) * 2011-12-28 2012-06-27 天津凯发电气股份有限公司 VxWorks-operating-system-based file storage structure and storage method
CN105302840A (en) * 2014-07-31 2016-02-03 阿里巴巴集团控股有限公司 Cache management method and device
CN105373369A (en) * 2014-08-25 2016-03-02 北京皮尔布莱尼软件有限公司 Asynchronous caching method, server and system
CN105338088A (en) * 2015-11-04 2016-02-17 国家电网公司 Mobile P2P network buffer memory replacement method
US20170277638A1 (en) * 2016-03-25 2017-09-28 Home Box Office, Inc. Cache map with sequential tracking for invalidation

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935490A (en) * 2019-05-13 2020-11-13 深圳市茁壮网络股份有限公司 Live broadcast and stream recording disaster tolerance processing method and system
CN111935490B (en) * 2019-05-13 2023-12-05 深圳市茁壮网络股份有限公司 Live broadcast recording and streaming disaster recovery processing method and system
CN111125175A (en) * 2019-12-20 2020-05-08 北京奇艺世纪科技有限公司 Service data query method and device, storage medium and electronic device
CN111125175B (en) * 2019-12-20 2023-09-01 北京奇艺世纪科技有限公司 Service data query method and device, storage medium and electronic device
CN111813792A (en) * 2020-06-22 2020-10-23 上海悦易网络信息技术有限公司 Method and equipment for updating cache data in distributed cache system

Also Published As

Publication number Publication date
CN115470026A (en) 2022-12-13
CN109062717B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
US20170083579A1 (en) Distributed data processing method and system
US7188125B1 (en) Replication using a special off-host network device
CN111104235B (en) Queue-based asynchronous processing method and device for service requests
CN103885895B (en) Write performance in fault-tolerant cluster storage system
US20160142369A1 (en) Service addressing in distributed environment
CN107395659A (en) A kind of method and device of service handling and common recognition
CN103942252B (en) A kind of method and system for recovering data
US20110060724A1 (en) Distributed database recovery
CN105224255B (en) A kind of storage file management method and device
CN103312624B (en) A kind of Message Queuing Services system and method
CN109062717A (en) Data buffer storage and caching disaster recovery method and system, caching system
JP2009529183A (en) Multi-cache coordination for response output cache
KR101574451B1 (en) Imparting durability to a transactional memory system
US10614131B2 (en) Methods and apparatus of an immutable threat intelligence system
CN108491252A (en) distributed transaction processing method and distributed system
CN107092628B (en) Time series data processing method and device
US11080146B2 (en) System and method for storage unavailability tolerant backup
US8433768B1 (en) Embedded model interaction within attack projection framework of information system
CN104468399A (en) Data transmission method and device and server
US7143317B2 (en) Computer event log overwriting intermediate events
CN109327506A (en) A kind of resource allocation methods, device and readable storage medium storing program for executing
EP3407196B1 (en) Preventing reader starvation during order preserving data stream consumption
CN106406771A (en) Log recording method and log recorder
CN109783499A (en) A kind of data cache method, device and server
CN113268518B (en) Flow statistics method and device and distributed flow statistics system

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
TA01 Transfer of patent application right

Effective date of registration: 20200930

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

Effective date of registration: 20200930

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant