CN110321199A - A kind of notification method, device, electronic equipment and the medium of shared data change - Google Patents

A kind of notification method, device, electronic equipment and the medium of shared data change Download PDF

Info

Publication number
CN110321199A
CN110321199A CN201910615236.9A CN201910615236A CN110321199A CN 110321199 A CN110321199 A CN 110321199A CN 201910615236 A CN201910615236 A CN 201910615236A CN 110321199 A CN110321199 A CN 110321199A
Authority
CN
China
Prior art keywords
host node
shared data
link information
node
itself
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
CN201910615236.9A
Other languages
Chinese (zh)
Other versions
CN110321199B (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.)
China Electronics Technology Network Security Technology Co ltd
Original Assignee
Chengdu Westone Information Industry Inc
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 Chengdu Westone Information Industry Inc filed Critical Chengdu Westone Information Industry Inc
Priority to CN201910615236.9A priority Critical patent/CN110321199B/en
Publication of CN110321199A publication Critical patent/CN110321199A/en
Application granted granted Critical
Publication of CN110321199B publication Critical patent/CN110321199B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45579I/O management, e.g. providing access to device drivers or storage
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This disclosure relates to a kind of notification method, device, electronic equipment and the readable storage medium storing program for executing of shared data change, the disclosure directly elects to obtain host node in each virtual machine internal, remaining virtual machine is used as from node, target network disk is written in the link information of itself by host node, makes respectively to establish connection with host node accordingly from node.When arbitrary node changes shared data, change signal can be sent to host node based on the connection between host node, and Notification of Changes is sent to other nodes by host node.Based on above scheme, the disclosure can be by third party's functional unit and using there are on the basis of the agreement of risk, identical purpose is realized by carrying out minimal amount of configuration before first use, configuration is simpler, spends the time shorter, risk hidden danger that may be present is eliminated simultaneously, actual effect is more preferably.Apply device, electronic equipment and the readable storage medium storing program for executing of a kind of notification method of shared data change also beneficial effect having the same.

Description

A kind of notification method, device, electronic equipment and the medium of shared data change
Technical field
This application involves virtualization field of cloud computer technology, in particular to a kind of notification method, the dress of shared data change It sets, electronic equipment and computer readable storage medium.
Background technique
Current era, in order to preferably promote resource utilization, virtualization technology is widely used to all trades and professions.In cloud It virtually can be more virtual machines by the computing resource of a physical server based on virtualization technology, so that often in calculating field Platform virtual machine can accept different business respectively, to increase the utilization rate of computing resource.
Block would generally be distributed for virtual machine and store equipment (network disk), so that virtual machine reads data from network disk Or data are written into network disk.Sometimes more virtual machines need to same data according to respective business demand respectively into Row subsequent processing, this partial data are referred to as shared data, therefore only need network disk by the shared data is stored simultaneously Distribute to these virtual machines, that is to say, that each virtual machine can be written and read behaviour to the shared data in the network disk Make.When any virtual machine has modified shared data, other virtual machine subsequent processes are not impacted, is just needed in order to prevent Other virtual machines are timely notified, so that it is timely responded to oneself follow-up business in modified shared data in the notice Required part reads to memory and completes high speed processing, avoids flogging a dead horse.
Under the cloud computing environment based on virtual machine, in the technology in terms of existing realization shared data Notification of Changes, or need By third party's functional unit (such as external message queue) or to need that there are risks using under current application environment Agreement (such as VRRP agreement, VRRP consultation send multicast packets, it is most of by numerous Imaginary Mechanisms at cloud computing environment in be Do not allow to send multicast packets), it not only needs to carry out complicated configuration, but also need the risk outside commitment, actually uses It is ineffective.
Therefore, how to overcome items technological deficiency present in above-mentioned the relevant technologies, be that those skilled in the art urgently solve Certainly the problem of.
Summary of the invention
Purpose of this disclosure is to provide notification method, device, electronic equipment and the computers of a kind of change of shared data can Read storage medium, it is intended to for by each Imaginary Mechanism at virtualization cloud computing environment provide it is a kind of configure it is less, simpler total With data Notification of Changes mechanism.
To achieve the goals above, present disclose provides a kind of notification method of shared data change, the notification method packets It includes:
It detects in the target network disk for storing shared data and whether has recorded link information;
If not recorded the link information in the target network disk, as host node by the link information of itself The target network disk is written, is established so that other virtual machines are used as from node by the link information and the host node Communication connection;
When itself changing the shared data or receive any described sent from node because changing the shared data Shared data when changing signal, send shared data Notification of Changes to others from node.
Optionally, the notification method of shared data change further include:
If record has the link information in the target network disk, believed from node by the connection as described Breath is established with corresponding host node and is communicated to connect;
When itself changes the shared data, the corresponding host node of Xiang Suoshu link information sends the shared data and becomes More signal;
When the host node or other change shared datas from node, the data that the host node is sent are received Notification of Changes.
Optionally, after the target network disk is written in the link information of itself as host node, further includes:
Write operation lock is applied to the field for recording the link information in target storage.
Optionally, the notification method of shared data change further include:
When determining that itself can not continue as the host node, the write operation lock is released, and remove in the field The link information of record.
Optionally, before the target network disk is written in the link information of itself as host node, further includes:
Obtain itself current operation conditions;
When the operation conditions meets preset requirement, executes described as host node and institute is written into the link information of itself The step of stating target network disk.
Optionally, the notification method of shared data change further include:
It is additional from vertex ticks for itself when determining itself as described in from node;
When determining itself as the host node, for itself additional host node label.
Optionally, the link information includes IP address and/or TCP port number.
To achieve the above object, present invention also provides a kind of notice device of shared data change, the notice device packets It includes:
Link information checks unit, for detect in the target network disk for storing shared data whether the company of record Connect information;
Host node link information writing unit has not recorded the link information for working as in the target network disk When, then the target network disk is written into the link information of itself as host node, so that other virtual machines are used as from node It is established and is communicated to connect by the link information and the host node;
Data Notification of Changes host node processing unit, for working as itself change shared data or receiving any described When changing signal because changing the shared data that the shared data is sent from node, shared data Notification of Changes is sent to other Slave node.
Optionally, the notice device of shared data change further include:
From node connection unit, for when record has the link information in the target network disk, as described It is established and is communicated to connect with corresponding host node by the link information from node;
Data change signal transmitting unit, for when itself changes the shared data, Xiang Suoshu link information to be corresponding Host node send the shared data and change signal;
Data Notification of Changes receiving unit changes the shared data from node for working as the host node or others When, receive the data Notification of Changes that the host node is sent.
Optionally, the notice device of shared data change further include:
Write operation locks applying unit, for the target network disk to be written in the link information of itself as host node Later, write operation lock is applied to the field for recording the link information in target storage.
Optionally, the notice device of shared data change further include:
Write operation locks lifting unit, for writing behaviour described in releasing when determining that itself can not continue as the host node It locks, and removes the link information recorded in the field.
Optionally, the notice device of shared data change further include:
Self-operating state acquiring unit, for the target network to be written in the link information of itself as host node Before disk, itself current operation conditions is obtained;
Operation conditions meets execution unit, described as master for executing when the operation conditions meets preset requirement The step of target network disk is written in the link information of itself by node.
Optionally, the notice device of shared data change further include:
From vertex ticks extra cell, for being added from node mark for itself when determining itself as described in from node Note;
Host node marks extra cell, for adding host node mark for itself when determining itself as the host node Note.
To achieve the above object, the disclosure additionally provides a kind of electronic equipment, which includes:
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize as described in above content The notification method of shared data change.
To achieve the above object, also a kind of computer readable storage medium of the disclosure, is stored thereon with computer program, should The notification method of the change of the shared data as described in above content is realized when program is executed by processor.
According to the above-mentioned technical solution, needs are different from by third party's functional unit or using there are the agreements of risk Mode, the notification method of the change of shared data provided by the disclosure: electing to obtain host node in each virtual machine internal and will Remaining virtual machine is used as from node, and the link information that may connect to itself is written respectively from node as the virtual machine of host node Also it in the target network disk being able to access that, is communicated to connect so that can be established from node according to the link information and host node, When arbitrary node changes shared data, it is based on communication connection between host node to the corresponding signal of host node transmission, Shared data Notification of Changes is sent to other nodes by host node.Due to being directly the choosing provided in each virtual machine internal Act and subsequent realization mechanism, not only without third party's functional unit and using there are the agreements of risk, but also due to method Simply, it is only necessary to carry out minimal amount of configuration before first use, so that configuration step is less, spends the time shorter, disappear simultaneously In addition to risk hidden danger that may be present, actual effect is more preferably.
The disclosure also discloses notice device, electronic equipment and the computer-readable storage medium of a kind of shared data change Matter, beneficial effect having the same, details are not described herein.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of the notification method for shared data change that the embodiment of the present disclosure provides;
Fig. 2 is a kind of structural block diagram of the notice device for shared data change that the embodiment of the present disclosure provides;
Fig. 3 is the structural block diagram of the notice device for another shared data change that the embodiment of the present disclosure provides;
Fig. 4 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present disclosure provides.
Specific embodiment
Purpose of this disclosure is to provide notification method, device, electronic equipment and the computers of a kind of change of shared data can Read storage medium, it is intended to for by each Imaginary Mechanism at virtualization cloud computing environment provide it is a kind of configure it is less, simpler total With data Notification of Changes mechanism.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art All other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Referring to Figure 1, Fig. 1 is a kind of flow chart of the notification method for shared data change that the embodiment of the present disclosure provides, It includes the following steps, it should be noted that the executing subject of following steps is any in virtualization cloud computing environment Virtual machine, and the virtual machine and other virtual machines have shared data in identical network disk:
S101: whether detection has recorded link information in the target network disk for storing shared data, if not recording There is link information then to execute S102, otherwise executes S104;
This step is intended to by whether having recorded link information in current virtual machine testing target network disk, so as to basis Testing result determines that itself will be as host node still from node.Wherein, the target network disk be stored with it is current virtual The network disk for the data that machine and other virtual machines are used in conjunction with, the link information be used for according to parameter wherein included with it is corresponding Virtual machine establish data communication.Specifically, the link information can be IP address, MAC Address, the port numbers of corresponding virtual machine Deng the parameter that can arbitrarily establish data communication with corresponding virtual machine, herein and it is not specifically limited.
Timely to notify each corresponding virtual machine when shared data changes, and solve as far as possible existing Technology is by tedious steps caused by third party's functional unit or using there are the agreement bring potential risk of risk, the application By providing a kind of election mechanism or competition mechanism in each virtual machine internal, come determine one for other virtual machine services " host node ", i.e., each other virtual machines, which only need to establish with the host node, to be communicated and (forms star topology), is come by host node The Notification of Changes for needing to send when conveying and forward any virtual machine change shared data.
Certainly, it is not to only exist a kind of this mode, to achieve the above object, any of identical data can also be being shared Communication is established between two virtual machines, that is, forms mesh topology.Since the main purpose of the application is to reduce to realize this function The configuration step of energy simplifies operation, therefore star topology is more suitable for the purpose of the application, compared to mesh topology, star topology It only needs that each other virtual machines is allowed only to communicate with host node foundation, realizes simpler.Certainly, netted after excluding this factor The mode of topology is also a kind of feasible mode.
S102: target network disk is written into the link information of itself as host node;
This step is established on the basis of the testing result of S101 is not recorded link information in target network disk, this Application sets the link information as the link information of host node, connects for being established by the link information with corresponding host node It connects, and record, which is not detected, has the link information then to illustrate currently to select host node not yet, therefore current virtual machine will The target network disk is written as host node, and by the link information of itself, subsequent same execution S101's is other to allow Virtual machine has been recorded the testing result of link information.It should be noted that after determining host node, subsequent other void Quasi- machine will exist as from node.
It is the basis for constructing star topology that the target network disk, which is written, in the link information of itself, because in practical application Under scene, each virtual machine independent can be accessed to the target network disk, and not know about other side's between each virtual machine mutually In the presence of, therefore the notice to realize shared data change, needing to construct one and capable of establishing with each virtual machine has in communication Turn station (host node).Therefore each void is written by the link information that the virtual machine as host node will be connected to itself in the application In the target network disk that quasi- machine is able to access that, can respectively to be established from node according to the link information and the host node Communication, and then realize the building of star topology.
It further, can also be by the connection in order to accelerate the speed of each virtual machine testing link information as far as possible Information writes in the part field that the target network disk can be accessed to first, such as head information or head file, according to net All particular/special requirements that may be present, can flexibly be adjusted, herein under the type of network disk and different practical application scenes And it is not specifically limited.
S103: when itself change shared data or the shared number arbitrarily sent from node by change shared data is received When according to change signal, shared data Notification of Changes is sent to others from node;
S102 complete link information write-in and based on this with respectively set up star topology from node after, this step is intended to It is illustrated for the subsequent possible shared data change occurred, specific there are two kinds of situations:
Situation one: current virtual machine (host node) changes shared data, and current virtual machine will be according to building Star topology to it is each from node send shared data Notification of Changes, so as to receive the slave section of the shared data Notification of Changes Data used are updated to newest by point in time;
Situation two: arbitrarily changing shared data from node, can be from actually changing the slave node of shared data to host node It sends shared data and changes signal, and send shared data Notification of Changes from node from host node to other.
S104: it is communicated to connect as being established from node by link information with corresponding host node;
This step is established on the basis of the testing result of S101 is that record has link information in target network disk, due to The presence for having been detected by link information illustrates to currently exist host node, therefore current virtual machine will determine itself conduct From node, and the link information by detecting is established with corresponding host node and is communicated to connect.
S105: it when host node or other change corporate datas from node, receives and is become by the shared data that host node is sent More notify;
S106: when itself changes shared data, shared data is sent to the corresponding host node of link information and changes signal.
S105 and S106, which belongs to, can have two operations when current virtual machine is used as from node, wherein S106 is specifically described Be operation when itself changing shared data;S105 is the operation that can be executed in the situation opposite with S106.Concrete operations Content to carry out explanation in above-mentioned steps, details are not described herein again.
Needs are different from by third party's functional unit or using there are the mode of the agreement of risk, the present embodiment is provided Shared data change notification method: elect to obtain host node in each virtual machine internal and using remaining virtual machine as from section Point, and the link information that may connect to itself is written to the target being respectively also able to access that from node as the virtual machine of host node It in network disk, is communicated to connect so that can be established from node according to the link information and host node, when arbitrary node changes altogether When with data, communication connection between host node is based on to the corresponding signal of host node transmission, will share by host node Data Notification of Changes is sent to other nodes.Due to being directly election and the subsequent realization mechanism in the offer of each virtual machine internal, Not only without third party's functional unit and using there are the agreements of risk, but also since method is simple, it is only necessary to for the first time Minimal amount of configuration is carried out using preceding, so that configuration step is less, spends the time shorter, while eliminating risk that may be present Hidden danger, actual effect is more preferably.
On the basis of the above embodiments, for prevent by host node be written target network disk in link information usurped Change, it can also be by host node after target network disk is written in the link information of itself, and then to the target network disk The middle field for recording the link information applies write operation lock.Prevent other virtual machines come outer by way of applying write operation lock Portion invader carries out write operation to the field.Further, in order to guarantee respectively must execute according in the field from node S101, it is also necessary in advance be fixed at this parameter in the configuration of each virtual machine.
On the basis of the above embodiments, be also possible under concrete scene because a variety of causes cause it is various happen, Even if may also can not be always maintained at down as current host node, therefore in view of the various host nodes that may cause occur more For the case where, informing mechanism when to change shared data is able to no interruption, can also current host node determine from When body can not be continued as host node, release write operation lock, and remove the link information recorded in field, so as to allow it is subsequent its Its virtual machine passes through S101 again and selects new host node.
Further, it there may come a time when to cause the virtual machine as host node to have no chance voluntarily to remove because of emergency case Write operation lock, such as because burst reason causes the virtual machine as host node instantaneously to collapse, or carry virtual machine presence Entity hardware damage etc..If write operation lock can only be released by host node originally, will be unable to so that shared data changes Informing mechanism continue, to make that the effective of informing mechanism can not be influenced as far as possible in this case, also Write operation lock can be adjusted in several ways, such as setting heartbeat can be connected between host node and its write operation being arranged lock It connects, makes write operation lock survival with the alive signals by periodic feedback, once write operation lock is more than that preset time could not connect The alive signals that host node is sent are received, write operation lock will be released voluntarily, and trigger the operation for removing link information;It can also be by Host node respectively selected from node one from node as write operation lock release permission owner, with by should from node with Whether the communication acknowledgement host node established between the host node there is exception, and then is released from node using the releasing permission by this Write operation lock, etc. mode, those skilled in the art can provide a variety of mutation schemes under the guidance of this thought, and being no more than should The implementation of inventive concept will also belong to the protection scope of the application.
Further, when target network disk can also record each virtual machine to the inquiry that whether there is link information Between, and it is put into queue, in order to when subsequent needs carry out replacement host node, directly, quickly according to query time Original slave node is successively chosen as new host node.
According to the description of above content, it can be seen that whether host node can stablize, lasting presence and play its work With, there is great relevance to the operation of entire informing mechanism, replacement host node will need to rebuild star topology every time after all, It needs to consume unnecessary resource and expends the time.Therefore in order to enable host node long-time stable as far as possible exists, may be used also First to obtain itself before as host node the target network disk is written in the link information of itself by current virtual machine Current operation conditions, and judge itself operating status whether meet preset requirement (requirement be system design at the beginning of to will Virtual machine requirement, such as disposable load, free memory, standby resources etc. as host node), when operation conditions is full When sufficient preset requirement, the step of target network disk is written into the link information of itself as host node is just executed.
Further, it is contemplated that this can also be preset and be wanted by data flow or the unstability of load under practical application scene It asks and is designed as multisection type, such as be set as high, medium and low three gear, wherein being more than that middle-grade thinks to can be used as host node, if currently Virtual machine only exist in middle-grade, and have within a preset time other virtual machines be in top grade, then can preferably select in height The virtual machine of shelves is as host node.
On the basis of above-mentioned any embodiment, to be host node convenient for which virtual machine under difference current state, which It is a little to determine that its own belongs to host node or when from node by each virtual machine for from node, it is additional corresponding for itself Host node or from vertex ticks, so as to it is direct, quickly host node belonged to still from node according to label determination.
In order to make it easy to understand, referring also to Fig. 2, on the basis of Fig. 3 is the technical solution provided according to above-described embodiment, In conjunction with a kind of schematic diagram of the specific framework provided after practical application scene:
From figure 2 it can be seen that one co-exists in 5 virtual machines in the distributed storage network constructed based on virtual machine, Wherein, virtual machine 1 and virtual machine 2 be the hardware resource utilization virtualization technology based on physical machine 1 be created that come, virtual machine 3, Virtual machine 4 and virtual machine 5 be the hardware resource utilization virtualization technology based on physical machine 2 be created that come.Virtual machine 1, void Quasi- machine 2 and virtual machine 3 are assigned with the identical network disk being contained in shared memory block 1 by distributed storage network, virtually Machine 4 and virtual machine 5 are assigned with the identical network disk being contained in shared memory block 2 by distributed storage network.
It is serviced from Fig. 2 it can also be seen that will also be respectively present notice in each virtual machine, wherein saved based on virtual machine 2 Point (Master), virtual machine 1 and virtual machine 3 are the slave node (Slave) for being different from virtual machine 2, and as the virtual of host node Machine 2 will hold the unique notification permission by way of applying file lock, that is to say, that virtual machine 2 will be determined as host node When, the link information (Master IP, that is, the IP address of host node) of oneself is written to the network magnetic where the shared data In disk, and apply file lock, so that the unique notification permission will not be obtained again by virtual machine 1 and virtual machine 3.1 He of virtual machine Virtual machine 3, which then passes through, obtains link information foundation and the connection of virtual machine 2 (connection between notice service is expressed as in Fig. 2), For sending amendment advice.
Because situation is complicated, it can not enumerate and be illustrated, those skilled in the art should be able to recognize according to the application The basic skills principle combination actual conditions of offer may exist many examples, in the case where not paying enough creative works, It should within the scope of protection of this application.
Fig. 3 is referred to, Fig. 3 is a kind of structural block diagram of the access mechanism for ciphertext data that the embodiment of the present disclosure provides, should Access mechanism may include:
Whether link information checks unit 100, record for detecting in the target network disk for storing shared data There is link information;
Host node link information writing unit 200, for when not recorded link information in target network disk, then making Target network disk is written into the link information of itself for host node, so that other virtual machines, which are used as from node, passes through link information It establishes and communicates to connect with host node;
Data Notification of Changes host node processing unit 300, for working as itself change shared data or receiving arbitrarily from section When point changes signal because of the shared data sent of change shared data, shared data Notification of Changes is sent to others from section Point.
Further, the notice device of shared data change can also include:
From node connection unit, for passing through company as from node when record has link information in target network disk It connects information and establishes communication connection with corresponding host node;
Data change signal transmitting unit, are used for when itself changes shared data, to the corresponding host node of link information It sends shared data and changes signal;
Data Notification of Changes receiving unit, for receiving master when host node or other change shared datas from node The data Notification of Changes that node is sent.
Further, the notice device of shared data change can also include:
Write operation locks applying unit, for as host node by itself link information write-in target network disk it Afterwards, write operation lock is applied to the field for recording link information in target storage.
Further, the notice device of shared data change can also include:
Write operation locks lifting unit, for when determining that itself can not continue as host node, releasing write operation lock, and it is clear Except the link information recorded in field.
Further, the notice device of shared data change can also include:
Self-operating state acquiring unit, for target network disk to be written in the link information of itself as host node Before, itself current operation conditions is obtained;
Operation conditions meets execution unit, will be certainly as host node for executing when operation conditions meets preset requirement The step of target network disk is written in the link information of body.
Further, the notice device of shared data change can also include:
From vertex ticks extra cell, for being added from vertex ticks for itself when determining itself as from node;
Host node marks extra cell, for being marked for itself additional host node when determining itself as host node.
The Installation practice that the present embodiment corresponds to above method embodiment as one exists, with embodiment of the method Whole beneficial effects, no longer repeat one by one herein.
Fig. 4 is the block diagram of a kind of electronic equipment 700 shown according to an exemplary embodiment.As shown in figure 4, electronic equipment 700 may include processor 701 and memory 702, and it is defeated to can further include multimedia component 703, information input/information One or more of (I/O) interface 704 and communication component 705 out.
Wherein, processor 701 is used for the integrated operation of controlling electronic devices 700, above-mentioned in the electronic equipment to complete All or part of the steps in the notification method of the shared data change executed on the virtual machine of middle operation;Memory 702 is used for Various types of data are stored to support the operation in electronic equipment 700, these data for example may include in the electronics The instruction of any application or method operated in equipment 700 and the relevant data of application program.The memory 702 can By any kind of volatibility or non-volatile memory device or their combination realization, such as static random access memory Device (Static Random Access Memory, SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable Read-Only Memory, EPROM), programmable read only memory (Programmable Read-Only Memory, PROM), read-only memory (Read-Only Memory, ROM), magnetic memory, flash memory, One or more of disk or CD.
Multimedia component 703 may include screen and audio component.Wherein screen for example can be touch screen, audio component For output and/or input audio signal.For example, audio component may include a microphone, microphone is for receiving outside Audio signal.The received audio signal can be further stored in memory 702 or be sent by communication component 705.Sound Frequency component further includes at least one loudspeaker, is used for output audio signal.I/O interface 704 is processor 701 and other interface moulds Interface is provided between block, other above-mentioned interface modules can be keyboard, mouse, button etc..These buttons can be virtual push button Or entity button.Communication component 705 is for carrying out wired or wireless communication between electronic equipment 700 and other equipment.Wirelessly Communication, such as Wi-Fi, bluetooth, near-field communication (Near Field Communication, abbreviation NFC), 2G, 3G or 4G or it One or more of combination, therefore the corresponding communication component 705 may include: Wi-Fi module, bluetooth module, NFC Module.
In one exemplary embodiment, electronic equipment 700 can be by one or more application specific integrated circuit (Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device, Abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field programmable gate array (Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics member Part is realized, for executing the access method for the ciphertext data that above-described embodiment provides.
In a further exemplary embodiment, a kind of computer readable storage medium for being stored with program instruction is additionally provided, The program instruction will realize operation corresponding with the program instruction when being executed by processor.For example, the computer-readable storage Medium can be the above-mentioned memory 702 including program instruction, and above procedure instruction is specially can be by the processing of electronic equipment 700 Device 701 completes the access method for the ciphertext data that above-described embodiment provides when being executed.

Claims (10)

1. a kind of notification method of shared data change characterized by comprising
It detects in the target network disk for storing shared data and whether has recorded link information;
If not recorded the link information in the target network disk, the link information of itself is written as host node The target network disk communicates so that other virtual machines are used as from node by the link information with host node foundation Connection;
When itself change the shared data or receive it is any described from node because that changes that the shared data sent is total to When changing signal with data, shared data Notification of Changes is sent to others from node.
2. notification method according to claim 1, which is characterized in that further include:
If record has a link information in the target network disk, as it is described from node by the link information and Corresponding host node establishes communication connection;
When itself changes the shared data, the corresponding host node of Xiang Suoshu link information sends the shared data change letter Number;
When the host node or other change shared datas from node, the data change that the host node is sent is received Notice.
3. notification method according to claim 1, which is characterized in that the link information of itself is being written as host node After the target network disk, further includes:
Write operation lock is applied to the field for recording the link information in target storage.
4. notification method according to claim 3, which is characterized in that further include:
When determining that itself can not continue as the host node, the write operation lock is released, and remove and record in the field Link information.
5. notification method according to claim 1, which is characterized in that the link information of itself is being written as host node Before the target network disk, further includes:
Obtain itself current operation conditions;
When the operation conditions meets preset requirement, executes described as host node and the mesh is written into the link information of itself The step of marking network disk.
6. notification method according to claim 1, which is characterized in that further include:
It is additional from vertex ticks for itself when determining itself as described in from node;
When determining itself as the host node, for itself additional host node label.
7. notification method according to any one of claims 1 to 6, which is characterized in that the link information includes IP address And/or TCP port number.
8. a kind of notice device of shared data change characterized by comprising
Link information checks unit, and connection letter whether has been recorded in the target network disk for storing shared data for detecting Breath;
Host node link information writing unit, for when not recorded the link information in the target network disk, then The target network disk is written into the link information of itself as host node, so that other virtual machines, which are used as from node, passes through institute It states link information and the host node is established and communicated to connect;
Data Notification of Changes host node processing unit, for working as itself change shared data or receiving any described from section When point changes signal because changing the shared data that the shared data is sent, send shared data Notification of Changes to others from Node.
9. a kind of electronic equipment characterized by comprising
Memory, for storing computer program;
Processor realizes shared data change as described in any one of claim 1 to 7 when for executing the computer program Notification method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program, the computer program realize shared data change as described in any one of claim 1 to 7 when being executed by processor Notification method.
CN201910615236.9A 2019-07-09 2019-07-09 Method and device for notifying common data change, electronic equipment and medium Active CN110321199B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910615236.9A CN110321199B (en) 2019-07-09 2019-07-09 Method and device for notifying common data change, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910615236.9A CN110321199B (en) 2019-07-09 2019-07-09 Method and device for notifying common data change, electronic equipment and medium

Publications (2)

Publication Number Publication Date
CN110321199A true CN110321199A (en) 2019-10-11
CN110321199B CN110321199B (en) 2022-04-12

Family

ID=68121666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910615236.9A Active CN110321199B (en) 2019-07-09 2019-07-09 Method and device for notifying common data change, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN110321199B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857800A (en) * 2020-07-01 2020-10-30 北京达佳互联信息技术有限公司 Dynamic component configuration method and device, electronic equipment and storage medium
CN116932008A (en) * 2023-09-12 2023-10-24 湖南速子文化科技有限公司 Method, device, equipment and medium for updating component data of virtual society simulation

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020083111A1 (en) * 1989-09-08 2002-06-27 Auspex Systems, Inc. Parallel I/O network file server architecture
US20050132154A1 (en) * 2003-10-03 2005-06-16 International Business Machines Corporation Reliable leader election in storage area network
CN103297456A (en) * 2012-02-24 2013-09-11 阿里巴巴集团控股有限公司 Method for accessing sharing resources in distributed system and distributed system
US8832492B1 (en) * 2010-05-14 2014-09-09 Symantec Corporation Systems and methods for managing applications
CN104767794A (en) * 2015-03-13 2015-07-08 青岛海信传媒网络技术有限公司 Node election method in distributed system and nodes in distributed system
EP3364632A1 (en) * 2011-09-23 2018-08-22 Open Invention Network, LLC System for live-migration and automated recovery of applications in a distributed system
CN108537063A (en) * 2018-02-26 2018-09-14 阿里巴巴集团控股有限公司 A kind of method, apparatus and equipment of data storage
CN108696595A (en) * 2018-05-28 2018-10-23 郑州云海信息技术有限公司 Distributed type assemblies method of data synchronization, master node, slave node, system and medium
CN108846289A (en) * 2018-06-08 2018-11-20 北京京东尚科信息技术有限公司 Election information processing method and processing system and election system and storage medium
CN109144657A (en) * 2017-06-14 2019-01-04 中兴通讯股份有限公司 A kind of method and apparatus of the file-sharing of spanning operation system platform
CN109558212A (en) * 2018-11-27 2019-04-02 深信服科技股份有限公司 A kind of virtualized management method of physical equipment, system, physical equipment and medium
CN109656679A (en) * 2018-11-06 2019-04-19 新华三云计算技术有限公司 A kind of the storage access method and device of virtual machine

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020083111A1 (en) * 1989-09-08 2002-06-27 Auspex Systems, Inc. Parallel I/O network file server architecture
US20050132154A1 (en) * 2003-10-03 2005-06-16 International Business Machines Corporation Reliable leader election in storage area network
US8832492B1 (en) * 2010-05-14 2014-09-09 Symantec Corporation Systems and methods for managing applications
EP3364632A1 (en) * 2011-09-23 2018-08-22 Open Invention Network, LLC System for live-migration and automated recovery of applications in a distributed system
CN103297456A (en) * 2012-02-24 2013-09-11 阿里巴巴集团控股有限公司 Method for accessing sharing resources in distributed system and distributed system
CN104767794A (en) * 2015-03-13 2015-07-08 青岛海信传媒网络技术有限公司 Node election method in distributed system and nodes in distributed system
CN109144657A (en) * 2017-06-14 2019-01-04 中兴通讯股份有限公司 A kind of method and apparatus of the file-sharing of spanning operation system platform
CN108537063A (en) * 2018-02-26 2018-09-14 阿里巴巴集团控股有限公司 A kind of method, apparatus and equipment of data storage
CN108696595A (en) * 2018-05-28 2018-10-23 郑州云海信息技术有限公司 Distributed type assemblies method of data synchronization, master node, slave node, system and medium
CN108846289A (en) * 2018-06-08 2018-11-20 北京京东尚科信息技术有限公司 Election information processing method and processing system and election system and storage medium
CN109656679A (en) * 2018-11-06 2019-04-19 新华三云计算技术有限公司 A kind of the storage access method and device of virtual machine
CN109558212A (en) * 2018-11-27 2019-04-02 深信服科技股份有限公司 A kind of virtualized management method of physical equipment, system, physical equipment and medium

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
KENICHI TANAKA等: "Web-Disk-Based Efficient Application Delivery Method for Grids", 《2009 INTERNATIONAL CONFERENCE ON NETWORK-BASED INFORMATION SYSTEMS》 *
万川梅等: "《Hadoop应用开发实战详解(修订版)》", 31 August 2014, 中国铁道出版社 *
中间件兴趣圈: "源码分析ElasticJob选主实现原理", 《HTTPS://BLOG.CSDN.NET/PRESTIGEDING/ARTICLE/DETAILS/79796978》 *
刘立辉等: "基于TDI的网络虚拟磁盘驱动研究与实现", 《计算机技术与发展》 *
谈兴秋: "增量同步约束条件下的多节点间主节点选举算法", 《现代电子技术》 *
青岛英谷教育科技股份有限公司,山东工商学院: "《大数据开发与应用》", 30 September 2018, 西安电子科技大学出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857800A (en) * 2020-07-01 2020-10-30 北京达佳互联信息技术有限公司 Dynamic component configuration method and device, electronic equipment and storage medium
CN116932008A (en) * 2023-09-12 2023-10-24 湖南速子文化科技有限公司 Method, device, equipment and medium for updating component data of virtual society simulation
CN116932008B (en) * 2023-09-12 2023-12-08 湖南速子文化科技有限公司 Method, device, equipment and medium for updating component data of virtual society simulation

Also Published As

Publication number Publication date
CN110321199B (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN110365748B (en) Service data processing method and device, storage medium and electronic device
US10810096B2 (en) Deferred server recovery in computing systems
CN110058803A (en) Store the local management console of equipment
CN108040108A (en) Communication handover method, device, coordination service device and readable storage medium storing program for executing
CN106254100A (en) A kind of data disaster tolerance methods, devices and systems
EP2815328B1 (en) Power efficient brokered communication supporting notification blocking
JP6262229B2 (en) Tag latency monitoring and control system for improved web page performance
CN106533714A (en) Method and device for re-instantiating virtual network function
CN110808857B (en) Network intercommunication method, device, equipment and storage medium for realizing Kubernetes cluster
CN110321199A (en) A kind of notification method, device, electronic equipment and the medium of shared data change
CN108628660A (en) A kind of virtual machine expands capacity reduction method and virtual management equipment
JP2014229088A (en) Data processing system, data processing device, and storage medium
CN110851186B (en) Network equipment restarting method and device, electronic equipment and readable storage medium
JP2021010164A (en) Method and apparatus for processing notification using notification preset
CN103118248A (en) Monitoring method, monitoring agency, monitoring server and monitoring system
CN107819598A (en) A kind of method and device for managing network function node
JP5200658B2 (en) Server system
CN107547308A (en) A kind of controller in message mirror-image method, device, software defined network SDN
JP6543715B2 (en) Control of self-organizing network functions
CN110658969A (en) Picture processing method, device, equipment and storage medium
WO2021259171A1 (en) Operation state switching method and device, master/standby management system, and network system
US20220116446A1 (en) Information Processing System and Method of Controlling Information Processing System
JP6111209B2 (en) Virtual machine management system, virtual machine management method, environment management server, and program
JP7189104B2 (en) Information processing system and control method for information processing system
JP6852776B1 (en) Blockchain system, program and network connection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CB03 Change of inventor or designer information

Inventor after: Wu Qingguo

Inventor before: Wu Guoqing

CB03 Change of inventor or designer information
CP01 Change in the name or title of a patent holder

Address after: No. 333, Yunhua Road, high tech Zone, Chengdu, Sichuan 610041

Patentee after: China Electronics Technology Network Security Technology Co.,Ltd.

Address before: No. 333, Yunhua Road, high tech Zone, Chengdu, Sichuan 610041

Patentee before: CHENGDU WESTONE INFORMATION INDUSTRY Inc.

CP01 Change in the name or title of a patent holder