CN109167810A - Monitoring, notice, method for refreshing and device calculate equipment and storage medium - Google Patents

Monitoring, notice, method for refreshing and device calculate equipment and storage medium Download PDF

Info

Publication number
CN109167810A
CN109167810A CN201810840464.1A CN201810840464A CN109167810A CN 109167810 A CN109167810 A CN 109167810A CN 201810840464 A CN201810840464 A CN 201810840464A CN 109167810 A CN109167810 A CN 109167810A
Authority
CN
China
Prior art keywords
clustered node
node equipment
equipment
data cached
change
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
CN201810840464.1A
Other languages
Chinese (zh)
Other versions
CN109167810B (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
Advantageous 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 CN201810840464.1A priority Critical patent/CN109167810B/en
Publication of CN109167810A publication Critical patent/CN109167810A/en
Application granted granted Critical
Publication of CN109167810B publication Critical patent/CN109167810B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Abstract

This specification, which provides, a kind of to be monitored, notice, method for refreshing and device, calculates equipment and storage medium, whether what wherein monitor method was adapted for listening in the multiple clustered node equipment disposed in a trunked mode data cached changes, each clustered node equipment be registered in change management equipment subscribe to some clustered node equipment in the data cached subscription information changed, which comprises it is data cached to first in the first clustered node equipment whether occur change monitor;When listen to described first it is data cached change when, the described first data cached relevant information changed is reported into the change management equipment, so that the described first data cached relevant information changed is pushed to the second clustered node equipment by the change management equipment.

Description

Monitoring, notice, method for refreshing and device calculate equipment and storage medium
Technical field
This specification is related to program applied technical field, in particular to a kind of monitoring, notice, the refreshing of data cached change Method and apparatus calculate equipment and storage medium.
Background technique
In general, when program application is disposed in a trunked mode, in order to reduction database access pressure and raising data Acquisition speed, clustered node can work as some clustered node in cluster by identical data buffer storage into respective memory When having updated data cached, the data cached of other clustered nodes is unable to synchronized update, this may cause the number that user is accessed According to being incorrect.
Summary of the invention
In view of this, this specification embodiment provides monitoring, notice, method for refreshing and the dress of a kind of data cached change It sets, calculate equipment and storage medium, to solve technological deficiency existing in the prior art.
According to this specification embodiment in a first aspect, providing a kind of monitor method of data cached change, the side Method be adapted for listening in the multiple clustered node equipment disposed in a trunked mode it is data cached whether change, each collection Group node equipment be registered in change management equipment subscribe to some clustered node equipment in it is data cached change order Read information, which comprises
It is data cached to first in the first clustered node equipment whether occur change monitor, wherein described first Clustered node equipment is any one in the multiple clustered node equipment, except described the in the multiple clustered node equipment Other clustered node equipment except one clustered node equipment are the second clustered node equipment;
When listen to described first it is data cached change when, by described first it is data cached change related believe Breath reports to the change management equipment, so that the change management equipment is by the described first data cached phase changed It closes information and pushes to the second clustered node equipment.
According to the second aspect of this specification embodiment, a kind of notification method of data cached change, the side are provided Method is suitable for executing in change management equipment, for data cached to the multiple clustered node equipment push disposed in a trunked mode The information changed, each clustered node equipment is registered in change management equipment respectively subscribes to some clustered node The data cached subscription information changed in equipment, which comprises
Receive the first data cached relevant information changed in the first clustered node equipment, wherein described first Clustered node equipment is any one in the multiple clustered node equipment, except described the in the multiple clustered node equipment Other clustered node equipment except one clustered node equipment are the second clustered node equipment;
According to the subscription information, the described first data cached more new information changed will be corresponded to and push to second Clustered node equipment, so that the second clustered node equipment is according to the update acquisition of information data to refresh described second Second in clustered node equipment is data cached.
According to the third aspect of this specification embodiment, a kind of method for refreshing of data cached change, the side are provided Method is suitable for refreshing data cached in the multiple clustered node equipment disposed in a trunked mode, each clustered node Equipment is registered with the data cached subscription information changed subscribed in some clustered node equipment in change management equipment, The described method includes:
Receive that change management equipment sends corresponds to data cached changing more in the first clustered node equipment New information, wherein the more new information is sent by the change management equipment according to the subscription information, the first cluster section Point device is any one in the multiple clustered node equipment, and first cluster is removed in the multiple clustered node equipment Other clustered node equipment except node device are the second clustered node equipment;
According to the more new information, sends and update the data cached update request;
It receives and corresponds to the buffer update data for updating request, it is slow to second in the second clustered node equipment Deposit data is refreshed.
According to the fourth aspect of this specification embodiment, a kind of monitoring device of data cached change, the dress are provided Set in the multiple clustered node equipment for being adapted for listening for disposing in a trunked mode it is data cached whether change, each collection Group node equipment be registered in change management equipment subscribe to some clustered node equipment in it is data cached change order Information is read, described device includes:
Monitor, be configured as it is data cached to first in the first clustered node equipment whether occur change supervise It listens, wherein the first clustered node equipment is any one in the multiple clustered node equipment, the multiple cluster section Other clustered node equipment in point device in addition to the first clustered node equipment are the second clustered node equipment;
Report device, be configured as when listen to described first it is data cached change when, it is data cached by described first The relevant information changed reports to the change management equipment, so that the change management equipment is cached described first The relevant information that data change pushes to the second clustered node equipment.
According to the 5th of this specification embodiment the aspect, a kind of notice device of data cached change is additionally provided, it is described Device is suitable for executing in change management equipment, is configured as slow to the multiple clustered node equipment push disposed in a trunked mode The information that deposit data changes, each clustered node equipment are registered with some collection of subscription in change management equipment respectively The data cached subscription information changed in group node equipment, described device include:
Second receiver is configured as receiving the first data cached correlation changed in the first clustered node equipment Information, wherein the first clustered node equipment is any one in the multiple clustered node equipment, the multiple cluster Other clustered node equipment in node device in addition to the first clustered node equipment are the second clustered node equipment;
Pusher, is configured as according to the subscription information, will correspond to described first and data cached change more New information pushes to the second clustered node equipment, so that the second clustered node equipment is according to the update acquisition of information number Refresh accordingly second data cached in the second clustered node equipment.
According to the 6th of this specification embodiment the aspect, a kind of refreshing apparatus of data cached change is additionally provided, it is described Device is suitable for refreshing data cached in the multiple clustered node equipment disposed in a trunked mode, each cluster section Point device is registered with the data cached subscription letter changed subscribed in some clustered node equipment in change management equipment Breath, described device include:
It is slow in the first clustered node equipment to be configured as corresponding to for reception change management equipment transmission for third receiver The more new information that deposit data changes, wherein the more new information is by the change management equipment according to the subscription information It sends, the first clustered node equipment is any one in the multiple clustered node equipment, the multiple clustered node Other clustered node equipment in equipment in addition to the first clustered node equipment are the second clustered node equipment;
Second follower is configured as sending the update data cached update request according to the more new information;
The third receiver, which is additionally configured to receive, corresponds to the buffer update data for updating request;
Updating device is configured as according to the buffer update data to the second caching in the second clustered node equipment Data are refreshed.
According to the 7th of this specification embodiment aspect, additionally provide a kind of calculating equipment, including memory, processor and The computer instruction that can be run on a memory and on a processor is stored, when the processor executes described instruction described in realization The refreshing side of the notification method or the data cached change of the monitor method of data cached change or the data cached change The step of method.
According to the eighth aspect of this specification embodiment, a kind of computer readable storage medium is additionally provided, is stored with Computer instruction, the instruction realized when being executed by processor the data cached change monitor method or the data cached change The step of notification method more or the method for refreshing of the data cached change.
The each clustered node equipment of the present embodiment is data cached changed slow by subscribing in change management equipment Deposit altering event, thus when in some clustered node equipment it is data cached change when, change management equipment can in time by Caching altering event is pushed to other clustered node equipment.
Detailed description of the invention
Fig. 1 is to show the structural block diagram of the calculating equipment 100 according to one embodiment of this specification;
Fig. 2 is to show the schematic flow chart of the monitor method of data cached change of one embodiment of this specification;
Fig. 3 is to show the schematic flow chart of the notification method of data cached change of one embodiment of this specification;
Fig. 4 is to show the schematic flow chart of the method for refreshing of data cached change of one embodiment of this specification;
Fig. 5 is that the monitoring of data cached change for showing one embodiment of this specification, notice, push method for refreshing show Meaning property flow chart;
Fig. 6 is to show the exemplary module of the updating system of data cached change of one embodiment of this specification;
Fig. 7 is to show the exemplary module of the updating system of data cached change of another embodiment of this specification.
Specific embodiment
Many details are explained in the following description in order to fully understand this specification.But this specification energy Enough to be implemented with being much different from other way described herein, those skilled in the art can be without prejudice to this specification intension In the case where do similar popularization, therefore this specification is not limited by following public specific implementation.
Fig. 1 is to show the structural block diagram of the calculating equipment 100 according to one embodiment of this specification.The calculating equipment 100 Component include but is not limited to memory 110 and processor 120.Processor 120 is connected with memory 110 by bus 130, Database 800 is for saving user data.
Calculating equipment 100 further includes access device 140, access device 140 enable calculate equipment 100 via one or Multiple network communications.The example of these networks include public switched telephone network (PSTN), local area network (LAN), wide area network (WAN), The combination of the communication network of personal area network (PAN) or such as internet.Access device 140 may include wired or wireless any class One or more of network interface (for example, network interface card (NIC)) of type, such as IEEE802.11 WLAN (WLAN) wireless interface, worldwide interoperability for microwave accesses (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) interface, Cellular network interface, blue tooth interface, near-field communication (NFC) interface, etc..
In one embodiment of this specification, unshowned other component in above-mentioned and Fig. 1 of equipment 100 is calculated It can be connected to each other, such as pass through bus.It should be appreciated that calculating device structure block diagram shown in FIG. 1 is merely for the sake of example Purpose, rather than the limitation to this specification range.Those skilled in the art can according to need, and increase or replace other portions Part.
Calculating equipment 100 can be any kind of static or mobile computing device, including mobile computer or mobile meter Calculate equipment (for example, tablet computer, personal digital assistant, laptop computer, notebook computer, net book etc.), movement Phone (for example, smart phone), wearable calculating equipment (for example, smartwatch, intelligent glasses etc.) or other kinds of shifting Dynamic equipment, or the static calculating equipment of such as desktop computer or PC.Calculating equipment 100 can also be mobile or state type Server.
Wherein, processor 120 can execute the step in method shown in Fig. 2.Fig. 2 is to show according to this specification one in fact Apply the schematic flow chart of the monitor method of the data cached change of example, including step 202, step 204.The method is suitable for prison Listen it is data cached whether change, the multiple clustered node equipment disposed in a trunked mode are suitable for the journey that will store in database The related data of sequence application is cached into memory, and each clustered node equipment is registered in change management equipment subscribes to certain The data cached subscription information changed in a clustered node equipment.
Step 202: it is data cached to first in the first clustered node equipment whether occur change monitor, wherein The first clustered node equipment is any one in the multiple clustered node equipment, in the multiple clustered node equipment Other clustered node equipment in addition to the first clustered node equipment are the second clustered node equipment.
In a kind of embodiment, what the multiple clustered node equipment disposed in a trunked mode were cached is Alipay, Jingdone district The user configuration data and/or user service data of the application programs such as store or wechat are balanced to it when some user is supported In a clustered node equipment when, one side user again login application program when can download it from the clustered node equipment Configuration data and business datum (such as account balance or order status), the configuration data or industry of another aspect user application Business data may change.Monitor whether data cached in each clustered node equipment occurs change, when with When the configuration data or business datum of family application program may change, the clustered node equipment can be known at the first time In data cached generation
Step 204: the described first data cached relevant information changed is reported into the change management equipment, with So that the described first data cached relevant information changed is pushed to the second cluster section by the change management equipment Point device.
In a kind of embodiment, the change management equipment can use distributed file management equipment, will distributed text Part management equipment receives each clustered node equipment and changes about caching as configuration management frame dynamic under distributed environment The subscription of event, after data cached in some clustered node equipment is changed, the clustered node equipment changed Changed data are sent to database preservation and altering event distribution of notifications formula file management facilities will be cached, with toilet It states change management equipment and the data cached relevant information changed is pushed into other clustered nodes by the clustered node equipment Equipment.
In a kind of embodiment, before the step 204 further include: data cached changed when listening to described first When, it data cached be sent to the database by what is changed and store.
When listen to some clustered node equipment it is data cached change when, data cached transmission that will change It is stored to the database, the configuration data of application program or the persistent storage of business datum may be implemented.
In a kind of embodiment before the step 204 further include: receive that the database sends corresponds to the generation The data cached storage address mark of change.
In a kind of embodiment, before step 204 further include receive that the database sends correspond to the generation When the data cached storage address mark of change, correspondingly, the relevant information in step 206 includes: first collection The facility information of group node equipment and storage address mark, so that other clustered node equipment are according to the storage address mark Know and carries out targetedly data update.
In a kind of embodiment, when the data cached middle data volume that change part occurs is less than setting value, such as data Amount is 5M or 10M, and the second clustered node equipment can also directly obtain more new data from the first clustered node equipment, this In the case of, the relevant information includes: facility information and the data cached generation change part of the first clustered node equipment Data ID so that the change management equipment the described first data cached relevant information changed is pushed to it is described Second clustered node equipment, the second clustered node equipment collect according to the facility information and the data ID from described first The acquisition of group node equipment is changed data cached.
The embodiment of the present invention by clustered node equipment it is data cached whether changed caching altering event into Row is monitored, and can obtain the data cached information become in some clustered node equipment, in time so as to cache change More event is pushed in time in other clustered node equipment, when allowing other clustered node equipment data cached can be with first Between perceive variation and refresh, achieve the purpose that the data cached synchronization in each clustered node equipment.
Wherein, the step in method shown in Fig. 3 can also be performed in processor 120.Fig. 3 is shown according to this specification one The schematic flow chart of the notification method of the data cached change of embodiment, including step 302 and step 304.The method is suitable In pushing the data cached information changed, the multiple clustered node equipment disposed in a trunked mode are suitable for deposit in database The related data of the program application of storage is cached into memory, and each clustered node equipment is stepped in change management equipment respectively Note has the data cached subscription information changed subscribed in some clustered node equipment.
Step 302: receiving the first data cached relevant information changed in the first clustered node equipment, wherein The first clustered node equipment is any one in the multiple clustered node equipment, in the multiple clustered node equipment Other clustered node equipment in addition to the first clustered node equipment are the second clustered node equipment.
In a kind of embodiment, the more new packets include the action type and operating main body of more new data, wherein operating Type includes full dose load and data ID load, and when action type is that full dose loads, operating main body is sky;When action type is When data ID is loaded, operating main body is the data ID (storage address mark) of more new data.
In a kind of embodiment, before step 304 further include:
Receive the data cached subscription information changed of subscription that the multiple clustered node equipment is sent;It is ordered to described Information is read to be registered.
The each clustered node equipment of the present embodiment is data cached changed slow by subscribing in change management equipment Deposit altering event, thus when in some clustered node equipment it is data cached change when, change management equipment can in time by Caching altering event is pushed to other clustered node equipment.
In a kind of embodiment, the change management equipment can use distributed file management equipment, will distributed text Part management equipment receives each clustered node equipment and changes about caching as configuration management frame dynamic under distributed environment The subscription of event, after data cached in some clustered node equipment is changed, the clustered node equipment changed Changed data are sent to database preservation and altering event distribution of notifications formula file management facilities will be cached, with toilet It states change management equipment and the data cached relevant information changed is pushed into other clustered nodes by the clustered node equipment Equipment.
Step 304: according to the subscription information, the described first data cached more new information changed will be corresponded to and pushed away It send to the second clustered node equipment, so that the second clustered node equipment more new information according to is from the database Or first to obtain data in clustered node equipment data cached with refresh in the second clustered node equipment second.
The embodiment of the present invention by clustered node equipment it is data cached whether changed caching altering event into Row is monitored, and can obtain the data cached information become in some clustered node equipment, in time so as to cache change More event is pushed in time in other clustered node equipment, when allowing other clustered node equipment data cached can be with first Between perceive variation and refresh, achieve the purpose that the data cached synchronization in each clustered node equipment.
Wherein, the step in method shown in Fig. 4 can also be performed in processor 120.Fig. 4 is shown according to this specification one The schematic flow chart of the method for refreshing of the data cached change of embodiment, including step 402 is to step 406.The method is suitable Refresh in data cached in clustered node equipment, the multiple clustered node equipment disposed in a trunked mode are suitable for The related data that the program stored in database is applied is cached into memory, each clustered node equipment is in change management The data cached subscription information changed subscribed in some clustered node equipment is registered in equipment.
Step 402: receiving the data cached generation corresponded in the first clustered node equipment that change management equipment is sent The more new information of change, wherein the more new information is sent by the change management equipment according to the subscription information, and described the One clustered node equipment is any one in the multiple clustered node equipment, except described in the multiple clustered node equipment Other clustered node equipment except first clustered node equipment are the second clustered node equipment.
In a kind of embodiment, the change management equipment can use distributed file management equipment, will distributed text Part management equipment receives each clustered node equipment and changes about caching as configuration management frame dynamic under distributed environment The subscription of event, after data cached in some clustered node equipment is changed, the clustered node equipment changed Changed data are sent to database preservation and altering event distribution of notifications formula file management facilities will be cached, with toilet It states change management equipment and the data cached relevant information changed is pushed into other clustered nodes by the clustered node equipment Equipment.
In a kind of embodiment of this specification embodiment, before step 402 further include:
It is sent to change management equipment and subscribes to the data cached subscription request changed, the subscription request includes corresponding The facility information of clustered node equipment.
The each clustered node equipment of the present embodiment is data cached changed slow by subscribing in change management equipment Deposit altering event, thus when in some clustered node equipment it is data cached change when, change management equipment can in time by Caching altering event is pushed to other clustered node equipment.
In a kind of embodiment of this specification embodiment, wherein the information that updates includes updating the action type of data And operating main body, wherein action type includes full dose load and data ID load, when action type is that full dose loads, operation master Body is sky;When action type is that data ID is loaded, operating main body is the data ID (storage address mark) of more new data.
Step 404: according to the more new information, sending and update the data cached update request.
The altering event of the data cached clustered node changed is sent to its in cluster in the management equipment After its clustered node, each clustered node of other clustered nodes after receiving the altering event, in other clustered nodes The data cached request of data of the corresponding altering event can be sent to database or the first clustered node equipment.
Step 406: receiving and correspond to the buffer update data for updating request, in the second clustered node equipment Second data cached refreshed.
The each clustered node equipment of the present embodiment is data cached changed slow by subscribing in change management equipment Deposit altering event, thus when in some clustered node equipment it is data cached change when, change management equipment can in time by Caching altering event is pushed to other clustered node equipment.
According to the clustered node facility information for subscribing to the data cached altering event changed, by the data cached hair The altering event to change more is sent to other clustered node equipment.
Fig. 5 is the monitoring of data cached change for showing this specification one embodiment, the signal of notice, method for refreshing Property flow chart;As shown in figure 5, the embodiment the following steps are included:
(1) caching altering event is subscribed to.In initial phase, all clustered node equipment (including node 1) in cluster are allowed All subscribe to the caching altering event of distributed file management equipment.
(2) data cached variation.When some user be supported be balanced to node 1 and to it is data cached done change when, section Point 1 updates the data cached of oneself first, then goes to step 3.
(3) persistence delta data.Then user is gone to step 4 to database to the storage of data cached change.
(4) publication caching altering event.Step 3 is connect, after the caching of persistence variation, is set to distributed file management Preparation cloth once caches altering event, then goes to step 5.
(5) push caching altering event.Distributed file management equipment is pushed to altering event is cached in addition to node 1 All nodes, then go to step 6.
(6) flush buffers.When each clustered node equipment receives caching altering event, correspondence is fished for from database Delta data with update caching.So far, the caching of all device group node equipment is completed to synchronize.
Corresponding with the monitor method embodiment of aforementioned data cached change, this specification additionally provides data cached change Monitoring device embodiment, described device embodiment can also pass through hardware or software and hardware combining by software realization Mode realize.Taking software implementation as an example, as the device on a logical meaning, being will by the processor of equipment where it Corresponding computer program instructions are read into memory what operation was formed in nonvolatile memory.For hardware view, this A kind of hardware configuration of equipment where the device of specification may include processor, network interface, memory and non-volatile deposit Except reservoir, equipment in embodiment where device can also be wrapped generally according to the actual functional capability of the monitoring of data cached change Other hardware are included, this is repeated no more.
It is that the module map of the data cached updating system of one embodiment of this specification offer is provided referring to Fig. 6, Fig. 6.Institute Stating data cached screening new system includes the monitoring device 500 of data cached change, data cached and 600 and of notification module more The refreshing apparatus 700 of data cached change.Monitoring device 500 in Fig. 6 is corresponding with Fig. 2 embodiment, and described device 500 includes Monitor 510 reports device 520.Described device be adapted for listening for it is data cached whether change, that disposes in a trunked mode is multiple The related data for the program application that clustered node equipment is suitable for store in database is cached into memory, each cluster section Point device is registered with the data cached subscription letter changed subscribed in some clustered node equipment in change management equipment Breath.
Monitor 510, be configured as it is data cached to first in the first clustered node equipment whether occur change carry out It monitors, wherein the first clustered node equipment is any one in the multiple clustered node equipment, the multiple cluster Other clustered node equipment in node device in addition to the first clustered node equipment are the second clustered node equipment;
Report device 520, be configured as when listen to described first it is data cached change when, by it is described first caching number The change management equipment is reported to according to the relevant information changed, so that the change management equipment is delayed described first The relevant information that deposit data changes pushes to the second clustered node equipment.
Fig. 7 is to show the system module frame diagram of the data cached refreshing of this specification one embodiment.In Fig. 7, delay The monitoring device of deposit data change further includes the first follower 530, is configured as that the described first data cached generation ought be listened to When change, the data cached database 800 that is sent to changed is stored;
In an optional embodiment, monitoring device 500 further include:
First receiver, be configured as receiving the database sends correspond to it is described change it is data cached Storage address mark.
In an optional embodiment, the relevant information include: the first clustered node equipment facility information and The storage address mark.
Referring to Fig. 6, the notice device 600 in Fig. 6 is corresponding with Fig. 3 embodiment, and described device 600 includes second receiver 610, pusher 620.Described device is suitable for pushing the data cached information changed, the multiple clusters disposed in a trunked mode The related data for the program application that node device is suitable for store in database is cached into memory, and each clustered node is set Back-up is not registered with the data cached subscription letter changed subscribed in some clustered node equipment in change management equipment Breath.
Second receiver 610 is configured as receiving first in the first clustered node equipment and data cached changes Relevant information, wherein the first clustered node equipment is any one in the multiple clustered node equipment, the multiple Other clustered node equipment in clustered node equipment in addition to the first clustered node equipment are that the second clustered node is set It is standby;
Pusher 620, is configured as according to the subscription information, will correspond to described first and data cached changes More new information pushes to the second clustered node equipment, so that the second clustered node equipment is according to the update acquisition of information Data are data cached with refresh in the second clustered node equipment second.
In an optional embodiment, device 600 further include:
It is data cached to be configured as the subscription sent to the described second received the multiple clustered node equipment for logger The subscription information changed is registered;Wherein, the second receiver is additionally configured to received the multiple cluster section The data cached subscription information changed of subscription that point device is sent.
In an optional embodiment, the more new packets include the action type and operating main body of more new data.
With continued reference to Fig. 6, the refreshing apparatus 700 in Fig. 6 is corresponding with Fig. 4 embodiment, and described device 700 connects including third Receive device 710, the second follower 720 and updating device 730.Described device is suitable for brushing data cached in clustered node equipment Newly, the related data for the program application that the multiple clustered node equipment disposed in a trunked mode are suitable for store in database Into memory, each clustered node equipment is registered in change management equipment subscribes in some clustered node equipment caching The data cached subscription information changed.
Third receiver 710 is configured as corresponding in the first clustered node equipment for reception change management equipment transmission The data cached more new information changed, wherein the more new information is by the change management equipment according to the subscription Information is sent, and the first clustered node equipment is any one in the multiple clustered node equipment, the multiple cluster Other clustered node equipment in node device in addition to the first clustered node equipment are the second clustered node equipment;
Second follower 720 is configured as sending the update data cached update according to the more new information and asking It asks;
The third receiver 710, which is additionally configured to receive, corresponds to the buffer update data for updating request;
Updating device 730 is configured as according to the buffer update data to second in the second clustered node equipment It is data cached to be refreshed.
In an optional embodiment, second follower, which is additionally configured to send to change management equipment, subscribes to caching The subscription request that data change, it is described to subscribe to the facility information that request includes respective cluster node device.
In an optional embodiment, the more new packets include the action type and operating main body of more new data.
It is that the module map of the data cached updating system of one embodiment of this specification offer is provided referring to Fig. 6, Fig. 6.Institute Stating data cached screening new system includes the monitoring device 500 of data cached change, data cached and 600 and of notice device more The refreshing apparatus 700 of data cached change.Monitoring device 500 in Fig. 6 is corresponding with Fig. 2 embodiment, and described device 500 includes Monitor 510, reports device 530 at first follower 520.Described device be adapted for listening for it is data cached whether change, with cluster The related data for the program application that multiple clustered node equipment of mode deployment are suitable for store in database is cached into memory, Each clustered node equipment is registered with the data cached hair subscribed in some clustered node equipment in change management equipment The subscription information to change more.
It should be pointed out that with the monitor method of aforementioned data cached change or the notification method of the data cached change Or the method for refreshing of the data cached change is corresponding, this specification additionally provides corresponding Installation practice, described device Embodiment can also be realized by software realization by way of hardware or software and hardware combining.Taking software implementation as an example, It is by the processor of equipment where it by calculating corresponding in nonvolatile memory as the device on a logical meaning Machine program instruction is read into memory what operation was formed.For hardware view, this specification generates the dress of event detection model A kind of hardware configuration of equipment where setting may include except processor, network interface, memory and nonvolatile memory, in fact The equipment in example where device is applied generally according to the actual functional capability of the event detection, can also include other hardware, no longer to this It repeats.
Device, module or the unit that above-described embodiment illustrates can specifically be realized, Huo Zheyou by computer chip or entity Product with certain function is realized.A kind of typically to realize that equipment is computer, the concrete form of computer can be a People's computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation It is any several in equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of kind equipment.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
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 unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.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.
One embodiment of this specification also provides a kind of calculating equipment, including memory, processor and storage are on a memory And the computer instruction that can be run on a processor, the processor realize the data cached change when executing described instruction The step of method for refreshing of the notification method or the data cached change of monitor method or the data cached change.
One embodiment of this specification also provides a kind of computer readable storage medium, is stored with computer instruction, this refers to Order realize when being executed by processor the monitor method of the data cached change or the notification method of the data cached change or The step of method for refreshing of the data cached change.
A kind of exemplary scheme of above-mentioned computer readable storage medium for the present embodiment.It should be noted that this is deposited The technical solution of storage media and the technical solution of above-mentioned automated testing method belong to same design, the technical side of storage medium The detail content that case is not described in detail may refer to the description of the technical solution of above-mentioned automated testing method.
The computer instruction includes computer program code, the computer program code can for source code form, Object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry institute State any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium include it is interior Increase and decrease appropriate can be carried out according to the requirement made laws in jurisdiction with patent practice by holding, such as in certain jurisdictions of courts Area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, this specification is not limited by the described action sequence, because For according to this specification, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Necessary to specification.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
This specification preferred embodiment disclosed above is only intended to help to illustrate this specification.Alternative embodiment is not All details of detailed descriptionthe, do not limit the invention to the specific embodiments described.Obviously, according in this specification Hold, can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to preferably explain this theory The principle and practical application of bright book, so that skilled artisan be enable to better understand and utilize this specification.This Specification is limited only by the claims and their full scope and equivalents.

Claims (27)

1. a kind of monitor method of data cached change, the method are adapted for listening for the multiple clustered nodes disposed in a trunked mode Whether data cached in equipment changes, each clustered node equipment be registered in change management equipment subscription certain The data cached subscription information changed in a clustered node equipment, which comprises
It is data cached to first in the first clustered node equipment whether occur change monitor, wherein first cluster Node device is any one in the multiple clustered node equipment, except first collection in the multiple clustered node equipment Other clustered node equipment except group node equipment are the second clustered node equipment;
When listen to described first it is data cached change when, will be in the described first data cached relevant information changed Report is to the change management equipment, so that the change management equipment believes the described first data cached correlation changed Breath pushes to the second clustered node equipment.
2. according to the method described in claim 1, wherein described by the described first data cached relevant information changed It reports to before the change management device step further include:
The data cached database that is sent to changed is stored.
3. according to the method described in claim 2, wherein data cached being sent to the database for what is changed described Carry out storing step after, it is described by the described first data cached relevant information changed be sent to change management equipment walk Before rapid further include:
The data cached storage address changed that corresponds to that the database is sent is received to identify.
4. according to the method described in claim 2, wherein the relevant information includes: the equipment of the first clustered node equipment Information and storage address mark.
5. according to the method described in claim 1, wherein the relevant information includes: the equipment of the first clustered node equipment Information and the data cached data ID that change part occurs so that the change management equipment by the described first data cached hair The relevant information to change more pushes to the second clustered node equipment, and the second clustered node equipment is believed according to the equipment Breath and the data ID change data cached from the first clustered node equipment acquisition.
6. a kind of notification method of data cached change, the method is suitable for executing in change management equipment, for collection Multiple clustered node equipment of group's mode deployment push the data cached information changed, each clustered node equipment point The data cached subscription letter changed subscribed in some clustered node equipment is not registered in the change management equipment Breath, which comprises
Receive the first data cached relevant information changed in the first clustered node equipment, wherein first cluster Node device is any one in the multiple clustered node equipment, except first collection in the multiple clustered node equipment Other clustered node equipment except group node equipment are the second clustered node equipment;
According to the subscription information, the described first data cached more new information changed will be corresponded to and push to the second cluster Node device, so that the second clustered node equipment refreshes second cluster according to the update acquisition of information data Second in node device is data cached.
7. according to the method described in claim 6, wherein first caching will be corresponded to according to the subscription information described The more new information that data change pushes to before the second clustered node device step further include:
Receive the data cached subscription information changed of subscription that the multiple clustered node equipment is sent;
The subscription information is registered.
8. according to the method described in claim 6, wherein the second clustered node equipment is according to the more new information from data The the second caching number for obtaining data in library or in the first clustered node equipment to refresh in the second clustered node equipment According to, wherein the first data cached data portion changed is stored in the database in the first clustered node equipment Or in the first clustered node equipment.
9. according to the method described in claim 6, wherein the information that updates includes updating action type and the operation master of data Body.
10. according to the method described in claim 6, wherein the change management equipment is distributed file management equipment.
11. a kind of method for refreshing of data cached change, the method is suitable for the multiple clustered nodes disposed in a trunked mode Data cached in equipment is refreshed, and each clustered node equipment is registered with some collection of subscription in change management equipment The data cached subscription information changed in group node equipment, which comprises
Receive the data cached update letter changed corresponded in the first clustered node equipment that change management equipment is sent Breath, wherein the more new information is sent by the change management equipment according to the subscription information, and first clustered node is set Any one standby in the multiple clustered node equipment, removes first clustered node in the multiple clustered node equipment Other clustered node equipment except equipment are the second clustered node equipment;
According to the more new information, sends and update the data cached update request;
It receives and corresponds to the buffer update data for updating request, to the second caching number in the second clustered node equipment According to being refreshed.
12. according to the method for claim 11, wherein corresponding to the first collection what the reception change management equipment was sent Before the first data cached update information Step changed in group node equipment further include:
It is sent to change management equipment and subscribes to the data cached subscription request changed, the subscription request includes respective cluster The facility information of node device.
13. according to the method for claim 11, wherein sending the update request, first clustered node to database The first data cached data portion changed saves in the database in equipment.
14. according to the method for claim 11, wherein sending the update request, institute to the first clustered node equipment It states the second clustered node equipment and is obtained from the first clustered node equipment and correspond to the buffer update number for updating request According to.
15. according to the method for claim 11, wherein the information that updates includes updating the action type and operation of data Main body.
16. a kind of monitoring device of data cached change, described device is adapted for listening for the multiple cluster sections disposed in a trunked mode Whether data cached in point device changes, and each clustered node equipment is registered with subscription in change management equipment The data cached subscription information changed in some clustered node equipment, described device include:
Monitor, be configured as it is data cached to first in the first clustered node equipment whether occur change monitor, In, the first clustered node equipment is any one in the multiple clustered node equipment, and the multiple clustered node is set Other clustered node equipment in standby in addition to the first clustered node equipment are the second clustered node equipment;
Report device, be configured as when listen to described first it is data cached change when, by the described first data cached generation The relevant information of change reports to the change management equipment, so that the change management equipment is data cached by described first The relevant information changed pushes to the second clustered node equipment.
17. device according to claim 16, wherein further include:
First follower, the data cached database that is sent to for being configured as to change store.
18. device according to claim 17, wherein further include:
First receiver, is configured as receiving that the database sends corresponds to the data cached storage changed Address mark.
19. device according to claim 16, wherein the relevant information includes: setting for the first clustered node equipment Standby information and the storage address identify.
20. a kind of notice device of data cached change, described device is suitable for the method and is suitable for holding in change management equipment Row, is configured as pushing the data cached information changed to the multiple clustered node equipment disposed in a trunked mode, each The clustered node equipment is registered with the data cached hair subscribed in some clustered node equipment in change management equipment respectively The subscription information to change more, described device include:
Second receiver is configured as receiving the in the first clustered node equipment first data cached related letter changed Breath, wherein the first clustered node equipment is any one in the multiple clustered node equipment, the multiple cluster section Other clustered node equipment in point device in addition to the first clustered node equipment are the second clustered node equipment;
Pusher is configured as to correspond to the described first data cached update changed according to the subscription information and believing Breath push to the second clustered node equipment so that the second clustered node equipment according to the update acquisition of information data with Refresh second data cached in the second clustered node equipment.
21. device according to claim 20, wherein further include:
Logger is configured as the data cached generation of subscription sent to the described second received the multiple clustered node equipment The subscription information of change is registered;
Wherein, it is data cached to be additionally configured to the subscription that received the multiple clustered node equipment is sent for the second receiver The subscription information changed.
22. device according to claim 20, wherein the information that updates includes updating the action type and operation of data Main body.
23. a kind of refreshing apparatus of data cached change, described device is suitable for the multiple clustered nodes disposed in a trunked mode Data cached in equipment is refreshed, and each clustered node equipment is registered with some collection of subscription in change management equipment The data cached subscription information changed in group node equipment, described device include:
Third receiver is configured as receiving the caching number corresponded in the first clustered node equipment that change management equipment is sent According to the more new information changed, wherein the more new information is sent by the change management equipment according to the subscription information, The first clustered node equipment is any one in the multiple clustered node equipment, in the multiple clustered node equipment Other clustered node equipment in addition to the first clustered node equipment are the second clustered node equipment;
Second follower is configured as sending the update data cached update request according to the more new information;
The third receiver, which is additionally configured to receive, corresponds to the buffer update data for updating request;
Updating device is configured as data cached to second in the second clustered node equipment according to the buffer update data Refreshed.
24. device according to claim 23, wherein second follower is additionally configured to send out to change management equipment It send and subscribes to the data cached subscription request changed, it is described to subscribe to the facility information that request includes respective cluster node device.
25. device according to claim 23, wherein the information that updates includes updating the action type and operation of data Main body.
26. a kind of calculating equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine instruction, the processor realize claim 1-5,6-10 or 11-15 described in any item methods when executing described instruction Step.
27. a kind of computer readable storage medium, is stored with computer instruction, which realizes right when being executed by processor It is required that the step of 1-5,6-10 or 11-15 described in any item methods.
CN201810840464.1A 2018-07-27 2018-07-27 Monitoring, notification and refreshing method and device, computing device and storage medium Active CN109167810B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810840464.1A CN109167810B (en) 2018-07-27 2018-07-27 Monitoring, notification and refreshing method and device, computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810840464.1A CN109167810B (en) 2018-07-27 2018-07-27 Monitoring, notification and refreshing method and device, computing device and storage medium

Publications (2)

Publication Number Publication Date
CN109167810A true CN109167810A (en) 2019-01-08
CN109167810B CN109167810B (en) 2021-09-14

Family

ID=64898356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810840464.1A Active CN109167810B (en) 2018-07-27 2018-07-27 Monitoring, notification and refreshing method and device, computing device and storage medium

Country Status (1)

Country Link
CN (1) CN109167810B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125126A (en) * 2019-11-29 2020-05-08 浪潮(北京)电子信息产业有限公司 Storage state management method, system, electronic equipment and storage medium
CN111628895A (en) * 2020-05-28 2020-09-04 苏州浪潮智能科技有限公司 Configuration data synchronization method, device, equipment and readable storage medium
CN113094378A (en) * 2021-03-19 2021-07-09 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN114979150A (en) * 2022-07-14 2022-08-30 北京长亭未来科技有限公司 Distributed cluster node management method, system, device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188566A (en) * 2007-12-13 2008-05-28 沈阳东软软件股份有限公司 A method and system data buffering and synchronization under cluster environment
US20140074802A1 (en) * 2012-09-12 2014-03-13 International Business Machines Corporation Secure deletion operations in a wide area network
CN106528574A (en) * 2015-09-14 2017-03-22 阿里巴巴集团控股有限公司 Data synchronization method and device
CN106559452A (en) * 2015-09-28 2017-04-05 阿里巴巴集团控股有限公司 Data processing method and device under cluster environment
CN107623729A (en) * 2017-09-08 2018-01-23 华为技术有限公司 A kind of caching method, equipment and cache service system
CN108182152A (en) * 2017-11-28 2018-06-19 深圳市丰巢科技有限公司 A kind of local cache based on Redis refreshes implementation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188566A (en) * 2007-12-13 2008-05-28 沈阳东软软件股份有限公司 A method and system data buffering and synchronization under cluster environment
US20140074802A1 (en) * 2012-09-12 2014-03-13 International Business Machines Corporation Secure deletion operations in a wide area network
CN106528574A (en) * 2015-09-14 2017-03-22 阿里巴巴集团控股有限公司 Data synchronization method and device
CN106559452A (en) * 2015-09-28 2017-04-05 阿里巴巴集团控股有限公司 Data processing method and device under cluster environment
CN107623729A (en) * 2017-09-08 2018-01-23 华为技术有限公司 A kind of caching method, equipment and cache service system
CN108182152A (en) * 2017-11-28 2018-06-19 深圳市丰巢科技有限公司 A kind of local cache based on Redis refreshes implementation method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125126A (en) * 2019-11-29 2020-05-08 浪潮(北京)电子信息产业有限公司 Storage state management method, system, electronic equipment and storage medium
CN111628895A (en) * 2020-05-28 2020-09-04 苏州浪潮智能科技有限公司 Configuration data synchronization method, device, equipment and readable storage medium
CN111628895B (en) * 2020-05-28 2022-06-17 苏州浪潮智能科技有限公司 Configuration data synchronization method, device, equipment and readable storage medium
CN113094378A (en) * 2021-03-19 2021-07-09 北京达佳互联信息技术有限公司 Data processing method and device, electronic equipment and storage medium
CN113094378B (en) * 2021-03-19 2024-02-06 北京达佳互联信息技术有限公司 Data processing method, device, electronic equipment and storage medium
CN114979150A (en) * 2022-07-14 2022-08-30 北京长亭未来科技有限公司 Distributed cluster node management method, system, device and medium
CN114979150B (en) * 2022-07-14 2022-10-28 北京长亭未来科技有限公司 Distributed cluster node management method, system, device and medium

Also Published As

Publication number Publication date
CN109167810B (en) 2021-09-14

Similar Documents

Publication Publication Date Title
CN109167810A (en) Monitoring, notice, method for refreshing and device calculate equipment and storage medium
CN106790629A (en) Data synchronization unit and its realize the method for data syn-chronization, client access system
CN105472002B (en) Based on the session synchronization method copied immediately between clustered node
CN109213792A (en) Method, server-side, client, device and the readable storage medium storing program for executing of data processing
CN106209943A (en) The system of selection of communication node and device
CN110048896A (en) A kind of company-data acquisition methods, device and equipment
CN108390933A (en) Message distributing method, device, server and storage medium
CN106775498A (en) A kind of data cached synchronous method and system
CN110310198A (en) Management method, device, equipment and the readable storage medium storing program for executing of enterprise's amount information
CN115048254B (en) Simulation test method, system, equipment and readable medium for data distribution strategy
CN109218418A (en) Method of data synchronization and device calculate equipment and storage medium
CN102163197A (en) Skin changing method, system and device
CN106909197B (en) Virtualization host time management method and virtualization host system
CN110019537A (en) Local cache method for refreshing, device, computer equipment and storage medium
CN106815053A (en) A kind of data-updating method, device, data call end and data update system
CN104317863A (en) License number inquiry method and system
US20090094599A1 (en) System and method for optimized targeting in a large scale system
CN115525717A (en) Data synchronization processing method and device
CN115225645A (en) Service updating method, device, system and storage medium
CN112714008B (en) Network topology analysis method, device and storage medium
US20130198282A1 (en) Apparatus and method for providing social magazine information
CN110278226A (en) Load balance process method, apparatus and electronic equipment
CN114374614A (en) Network topology configuration method and device
CN106790477A (en) Realize the system and method for cloud classroom cluster
CN106991129B (en) Real-time database system based on SOA (service oriented architecture) framework power dispatching system and implementation method

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

Effective date of registration: 20200922

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.

Effective date of registration: 20200922

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.

GR01 Patent grant
GR01 Patent grant