CN108696581A - Caching method, device, computer equipment and the storage medium of distributed information - Google Patents
Caching method, device, computer equipment and the storage medium of distributed information Download PDFInfo
- Publication number
- CN108696581A CN108696581A CN201810427864.XA CN201810427864A CN108696581A CN 108696581 A CN108696581 A CN 108696581A CN 201810427864 A CN201810427864 A CN 201810427864A CN 108696581 A CN108696581 A CN 108696581A
- Authority
- CN
- China
- Prior art keywords
- server
- information
- user
- cache
- distributed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1029—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1034—Reaction to server failures by a load balancer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5683—Storage of data provided by user terminals, i.e. reverse caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the invention discloses a kind of caching method of distributed information, device, computer equipment and storage mediums.The method includes:User cache information is obtained, the user cache information includes the first user identity information, and each node is by cluster communication port communication in the distributed cluster system, and at least two nodes are configured with server in the distributed cluster system;According to first user identity information, selected in the distributed cluster system with the server of the user cache information matches as destination server;By the cluster communication port, execute the user cache information cache in the operation of the destination server.The embodiment of the present invention can optimize existing distributed caching technology, meet ever-increasing personalized, facilitation the distributed caching demand of people.
Description
Technical field
The present embodiments relate to distributed system field more particularly to a kind of caching method of distributed information, device,
Computer equipment and storage medium.
Background technology
With the development of internet, the user volume using network service is more and more, and a server can not support huge
User group, in order to people provide preferably service, be typically chosen setting multiple servers, and be deployed in distribution
In cluster environment, but distributed setting server can have what caching was shared, be answered for the distribution of cache information
Exploitation is increasingly valued by people.
Currently, may be implemented on the market there are many distributed caching product, such as Memcached, Radis popular software
Under distributed type assemblies environment, the behaviour such as deposited, withdrawed or backed up to the data of special object (data types such as such as List, Map)
Make.
Existing caching product has certain limitation, such as:Necessary separately installed deployment, and specially open one for it
A Service-Port is called;Caching product caching program when something goes wrong, need especially professional personnel can
It safeguards.In other words, if a distributed cluster system is wanted to use existing caching product, it is necessary to separately installed corresponding visitor
Family end and server could be applicable in.
Invention content
An embodiment of the present invention provides a kind of caching method of distributed information, device, computer equipment and storages to be situated between
Matter meets ever-increasing personalized, facilitation the distributed caching need of people to optimize existing distributed caching technology
It asks.
In a first aspect, an embodiment of the present invention provides a kind of caching methods of distributed information, including:
User cache information is obtained, the user cache information includes the first user identity information, the distributed type assemblies
Each node is by cluster communication port communication in system, and at least two nodes are configured with service in the distributed cluster system
Device;
According to first user identity information, selection and the user cache information in the distributed cluster system
Matched server is as destination server;
By the cluster communication port, execute the user cache information cache in the behaviour of the destination server
Make.
Second aspect, the embodiment of the present invention additionally provide a kind of buffer storage of distributed information, including:
User cache data obtaining module, for obtaining user cache information, the user cache information includes the first use
Family identification information, each node passes through cluster communication port communication, the distributed cluster system in the distributed cluster system
In at least two nodes be configured with server;
Destination server selecting module is used for according to first user identity information, in the distributed cluster system
It is middle to select with the server of the user cache information matches as destination server;
User cache information cache module, for by the cluster communication port, executing the user cache information
It is cached in the operation of the destination server.
The third aspect, the embodiment of the present invention additionally provide a kind of computer equipment, including memory, processor and are stored in
It is realized on memory and when processor described in the computer program that can run on a processor executes described program as the present invention is real
Apply the caching method of any distributed information in example.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, are stored thereon with computer
Program realizes the caching method of the distributed information as described in any in the embodiment of the present invention when program is executed by processor.
The embodiment of the present invention according to user cache information selection target server, and by distributed cluster system have
Cluster communication port user cache information is cached to destination server as Service-Port, solve the prior art
In must separately installed deployment cache product, and for the caching product open a new port and could realize that caching is distributed and believe
The problem of breath, has saved valuable port resource, has optimized the performance of entire distributed cluster system, and thoroughly avoids individually
Installation and deployment cache the human cost that product needs.
Description of the drawings
Fig. 1 a are a kind of structural schematic diagrams for distributed information group system that the embodiment of the present invention one is applicable in;
Fig. 1 b are a kind of flow charts of the caching method for distributed information that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of the caching method of distributed information provided by Embodiment 2 of the present invention;
Fig. 3 a are a kind of flow charts of the caching method for distributed information that the embodiment of the present invention three provides;
Fig. 3 b are a kind of functional block diagrams of the caching method for distributed information that the embodiment of the present invention three provides;
Fig. 4 is a kind of flow chart of the caching method for distributed information that the embodiment of the present invention four provides;
Fig. 5 is a kind of structural schematic diagram of the buffer storage for distributed information that the embodiment of the present invention five provides;
Fig. 6 is a kind of structural schematic diagram for computer equipment that the embodiment of the present invention six provides.
Specific implementation mode
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limitation of the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
It also should be noted that only the parts related to the present invention are shown for ease of description, in attached drawing rather than
Full content.It should be mentioned that some exemplary embodiments are described before exemplary embodiment is discussed in greater detail
At the processing or method described as flow chart.Although operations (or step) are described as the processing of sequence by flow chart,
It is that many of which operation can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can be by again
It arranges.The processing can be terminated when its operations are completed, it is also possible to the additional step being not included in attached drawing.
The processing can correspond to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 a are a kind of structural schematic diagrams for distributed cluster system that the embodiment of the present invention one is applicable in, such as Fig. 1 a institutes
Show, a distributed cluster system may include multiple equipment 101, these equipment 101 realize information by a router 102
Interaction.Each equipment 101 in distributed cluster system can coordinate jointly completes a task, can also complete independently one
A task, and each equipment 101 can become control node, the other equipment 101 into the distributed cluster system is sent out
Cloth task, meanwhile, when any one 101 mission failure of equipment, other equipment 101 can the task of take over failure re-execute
Task, to allow distributed cluster system to have the function of load balancing and failure recovery, to solve asking for network congestion
Topic.
Wherein, each equipment 101 is the node in the distributed cluster system, while between equipment 101 and equipment 101
It is communicated by respective cluster communication port.Typically, when setting up distributed cluster system, each node selects together
Single port (for example, 7000 ports) is used as the cluster communication port.
Include multiple nodes for having caching function in distributed cluster system in the embodiment of the present invention, information is delayed
Depositing operation can be realized by installing a cache client on node, and the cache location of information is in distributed cluster system
The server installed of node in, the server is dedicated for memory buffers information.Correspondingly, in distributed cluster system
Any node can obtain the content cached in the server on other nodes at any time.In general, it is used to execute caching behaviour
The client of work and server for memory buffers information are that correspondence is installed in same node, that is, being able to carry out
The node of caching is usually configured with the node of server.
Can in distributed cluster system part of nodes or whole node on configure above-mentioned server.It is optional
, the cache server is configured in each node that can be in distributed cluster system, so as in any one section
When point receives cache information, an optional buffer service from whole cache servers in distributed cluster system is directly executed
The operation that device stores the cache information.
Fig. 1 b are a kind of flow chart of the caching method for distributed information that the embodiment of the present invention one provides, and the present embodiment can
The case where suitable for storing user cache information distributed cluster system, this method can be by provided in an embodiment of the present invention
The buffer storage of distributed information executes, which can be used software and/or the mode of hardware is realized, and can generally collect ingredient
In a node in cloth group system, for example, desktop computer or robot etc..As shown in Figure 1 b, the method tool of the present embodiment
Body includes:
S110, obtains user cache information, and the user cache information includes the first user identity information, the distribution
Each node is by cluster communication port communication in group system, and at least two nodes are configured with clothes in the distributed cluster system
Business device.
In the present embodiment, user cache information specifically refers to interactive user and a node in distributed cluster system
When carrying out information exchange, the backup information of the interactive information of transmission.In general, a node is in the interaction for receiving interactive user
When information, corresponding information is executed according to the interactive information and is fed back, meanwhile, the backup information of interactive information is cached in a distributed manner
Mode stored in distributed cluster system.
It typically, can be directly to corresponding if the node for receiving the interactive information is able to carry out caching
User cache information is cached;Caching can not be executed if receiving the node of the interactive information, it can be
Other nodes for being able to carry out caching are selected in distributed cluster system, and will use corresponding with the interactive information
The node that family cache information is sent to selection is cached;No matter whether the node for receiving the interactive information can
Caching is executed, user cache information corresponding with the interactive information is all sent to SiteServer LBS, is born by this
Equal balance system is carried to select node to cache the user cache information.
Wherein, interactive user can by the terminals such as computer, intelligent terminal (mobile phone, tablet etc.) or wearable device to
The distributed cluster system sends the interactive information.The interactive information can be answered by web browser or wechat etc.
The voice or text information inputted with program.Therefore, the corresponding user cache information of interactive information includes accordingly the first use
Family identification information, the identity for uniquely determining user can be specifically the IP address of computer, cell-phone number or log in using journey
The information such as the account of sequence.
In general, there are multiple nodes in distributed cluster system, and can pass through between each two node
Cluster communication port is communicated.At least two nodes can be selected to be configured to cache information in the distributed cluster system
Server.Typically, corresponding server is configured on whole nodes that can be in distributed cluster system.
Wherein, in the present embodiment, the node in distributed cluster system can be robot, namely:The distribution collects
Group's system may include multiple robot nodes, while cache user caching can will be executed in distributed cluster system
The node of information operation is destination node as the executive agent of destination node namely the caching method of distributed information.
Specifically, user cache information is the friendship that interactive user is sent by setting the client of type to robot node
Mutual problem.In a specific example, user cache information can be in terminal of the interactive user by IOS systems
The interaction problems that safari application programs are sent to destination node.
In another optional embodiment of the invention, user cache information is obtained, may include:It obtains equal via load
The user cache information of balance system distribution, the SiteServer LBS include:Load balancing software and/or load balancing are hard
Part.
Specifically, SiteServer LBS is used to sharing user cache information into multiple services in distributed cluster system
Device makes the data load amount of the server in distributed cluster system reach equilibrium state, and the type of SiteServer LBS can be with
It is F5, Nginx or Apache etc..
S120, according to first user identity information, selection and the user are slow in the distributed cluster system
The server of information matches is deposited as destination server.
In the present embodiment, according to first user identity information, selection and institute in the distributed cluster system
The server for stating user cache information matches may include as destination server:According to first user identity information, really
The attribute information of the fixed user cache information, the attribute information can be diversified forms, such as:Wechat, microblogging or net
The application attributes such as page;The device attributes such as desktop computer, mobile terminal or wearable device;Or the data lattice such as voice or text
Formula attribute etc., so can according to the attribute information of the user cache information, in the distributed cluster system selection with
The server of the user cache information matches is as destination server.
It is similar, when the user cache information stored before reading, the user cache information of reading can also be obtained
Second user identification information the service for needing to be configured from which node is determined according to the second user identification information
Corresponding user cache information is read in device.
Further, it is also possible to the first different user identity informations be mapped in the numberical range of a setting, and build
The correspondence between different server in the different numerical value and distributed cluster system within the scope of this is found, in turn, is obtaining certain
It after one the first user identity information, is handled by above-mentioned mapping, obtains target clothes corresponding with first user identity information
Business device.
In addition, the mode of selection target server can also be according to setting order traversal server, user cache is believed
Breath deposit currently traverse and in the server of user cache information relevance minimum.In this regard, not making in the embodiment of the present invention
Concrete restriction.
By selecting the server stores user cache information with user cache information matches, it is slow that cache user can be improved
Stored accuracy realizes that avoiding storing excessive data in a server reduces the response speed of server.
Optionally, can the destination server directly be determined according to the first user identity information, it can also be according to first
The state (normal or failure) of each server, determines the target clothes in user identity information combination distributed cluster system
Business device, the present embodiment is to this and is not limited.
S130 is executed the user cache information cache by the cluster communication port in the destination server
Operation.
In the present embodiment, each node in distributed cluster system can be communicated by cluster communication port,
It, will be in user cache information cache to the destination server after determining destination server.Wherein, user cache information is deposited
Entering the specific method in destination server can be, by cluster communication port, the cache interface of invocation target server caches
The user cache information.
In the present embodiment, in order to avoid the defect of the prior art, consider in the project file that each node is configured
, the setting jar packets that are previously added, to realize the function and cache user cache information of the client for executing caching
The function of server.Since jar packets belong to lightweight application, user does not have to separately installed cache software, therefore yet
Without opening individual port as server end port transmission user cache information, it is using only existing cluster communication port
It can.
Wherein, the cache object that the jar packets are supported includes following any one or more:String objects, List objects,
Map objects and custom list object.Above-mentioned cache object is cache object general in java environment, and user can
Required cache object to be arranged according to actual needs.The cache object, in particular to the user cache information that is cached
Data format.
Specifically, serializing object can be the letters such as the data of object of the data comprising object, state and its reference
The object of breath, i.e. utmostly various information of object of reservation.Jar packets can include a variety of serializing objects, by cache object
Information utmostly retain, the associated information of the object can be obtained when reading the cache object, jar packets can be in addition
It supports custom list object, improves the autgmentability of the jar packets.Jar packets can be directly added into the project file of node configuration
In, program is reinstalled without user, reduces the realization difficulty of the caching method of distributed information and subsequent maintenance cost.
Optionally, the user setting item of jar packets includes:The user setting item of server list or jar packets includes:Clothes
Business device list and destruction duration.Wherein, server list may include server included in distributed type assemblies, and clothes
The attribute information, such as the address information of server, status information etc. of business device.Moreover, the information stored in server list can
To regularly update;It can carry out destroying operation for the cache contents to server in distributed cluster system to destroy duration
Period can be specifically configured by user.
In general, it after destination server successfully stores user cache information, can correspond to transmission user cache information
Node send feedback information, send the node of user cache information according to whether receiving feedback information and feedback information
Content determines the whether successful cache user cache information of destination server.As a result, according in destination server success cache user
Whether the feedback information returned after cache information, can be succeeded cache user cache information with monitoring objective server, so as to
It is cached with reselecting other servers in cache failure, to improve the reliability of the caching system of distributed information.
The embodiment of the present invention according to user cache information selection target server, and by distributed cluster system have
Cluster communication port user cache information is cached to destination server as Service-Port, solve the prior art
In must separately installed deployment cache product, and for the caching product open a new port and could realize that caching is distributed and believe
The problem of breath, has saved valuable port resource, has optimized the performance of entire distributed cluster system, and thoroughly avoids individually
Installation and deployment cache the human cost that product needs.
On the basis of the various embodiments described above, the method further includes:When determining the preset destruction duration of arrival,
In the server that the node for executing the method is configured, the setting cache contents of storage are destroyed.
Specifically, the caching in the server for each node configuration that can be arranged in planned disposal distributed cluster system
Content discharges resource, prevents from leading to distributed cluster system operating lag because of data redundancy, to cause to lose asking for data
Topic.
Optionally, in the server that the node for executing the method is configured, the setting cache contents of storage are carried out
Before destruction, the method further includes:When determining the arrival destruction duration, is sent to management user and destroy prompt message;
And/or determining the current point in time difference destroyed between time point corresponding with the destruction duration less than setting time threshold value
When, it is sent to management user and destroys prompt message.
Specifically, before destroying cache contents, confirm to administrative staff, prevents in administrative staff to that will destroy
Data the case where loss of the data to cause user is destroyed there is still a need in the case of, improve distributed information caching method
Flexibility, improve user experience.
Embodiment two
Fig. 2 be a kind of flow chart of the caching method of distributed information provided by Embodiment 2 of the present invention, the present embodiment with
Embodied based on above-described embodiment, in the present embodiment, according to the state of the server be divided into normal server and
Failed server.It is then described according to first user identity information, selection and the use in the distributed cluster system
The matched server of family cache information as destination server, including:According to first user identity information, in the distribution
It is selected in the normal server of formula group system with the server of the user cache information matches as destination server.Specifically
As shown in Fig. 2, specific method includes:
S210, obtains user cache information, and the user cache information includes the first user identity information, the distribution
Each node is by cluster communication port communication in group system, and at least two nodes are configured with clothes in the distributed cluster system
Business device, wherein normal server and failed server are divided into according to the state of the server.
In the present embodiment, judge that server is normal server or failed services implement body and can build a service
Device list, has a server all in the distributed cluster system, and each corresponding identification information of server and right
The address answered, the identification information is for identifying normal server and failed server.Meanwhile the clothes in the server list
The corresponding identification information of business device can regularly update.All nodes can have server row in distributed cluster system
Table, and according to the state of server list acquisition destination server.
Wherein it is possible to be identified to server by the way of monitoring.Can be specifically:Periodically sent out to whole servers
Deliver letters breath, when receiving the feedback information of server, according to the content of feedback information differentiate server whether failure, and to phase
The server answered is identified.Or can also be and directly send user cache information to destination server, according to destination service
Whether device sends feedback information, and the content of the feedback information of transmission, judges whether the destination server is failed server:
Specifically, can determine the target server failure when being not received by the feedback information of destination server transmission;Or work as
When the content of the content of feedback information feedback information corresponding with successfully caching mismatches, the target server failure is determined, and
The destination server is identified as failed server.
S220 is selected according to first user identity information in the normal server of the distributed cluster system
Server with the user cache information matches is as destination server.
In the present embodiment, the selection target server from normal server, the destination server for reducing selection are failures
The probability of server, to realize the success rate for improving cache user cache information.
S230 is executed the user cache information cache by the cluster communication port in the destination server
Operation.
The embodiment of the present invention is by server by being divided into failed server and normal server as a result, and from normal service
Selection target server in device improves the success rate of cache user cache information, and that improves the caching system of distributed information can
By property.
Embodiment three
Fig. 3 a are a kind of flow chart for the caching method of distributed information that the embodiment of the present invention three provides, the present embodiment with
It is optimized based on above-described embodiment.Specific as shown in Figure 3a, specific method includes:
S310, obtains user cache information, and the user cache information includes the first user identity information, the distribution
Each node is by cluster communication port communication in group system, and at least two nodes are configured with clothes in the distributed cluster system
Business device, wherein normal server and failed server are divided into according to the state of the server.
S320 is selected according to first user identity information in the normal server of the distributed cluster system
Server with the user cache information matches is as destination server.
S330 is executed the user cache information cache by the cluster communication port in the destination server
Operation.
S340, when determining that the destination server caches the user cache information failure, by the destination server
It is identified as failed server.
In the present embodiment, destination server can be set after success cache user cache information, to transmission user
The node of cache information sends setting feedback information, if the node for sending user cache information does not receive mesh in setting time
The setting feedback information that server is sent is marked, determines that the destination server cache user cache information fails, i.e. the destination service
Device is failed server, and is identified to it.
S350 reselects new destination server in the normal server of the distributed cluster system, and passes through
The cluster communication port is executed the user cache information cache in the operation of the new destination server.
In the present embodiment, according to the identification information of updated server normal server can therefrom be sifted out, and from
In redefine destination server, by user cache information cache in new destination server.Typically, the mesh redefined
Mark server can be best performance in first server or server list in server list server (or
Person says, is least easy to happen the server of failure).Typically, can each server be added in the server list in advance
Performance label, be used to help determine the new destination server.
S360 judges whether successfully to cache the user cache information;If so, executing S370;It is executed if it is not, returning
S340。
In the present embodiment, if new destination server still be failed server, can repeat before the step of, directly
To success cache user cache information.
S370 terminates flow.
In another optional embodiment of the invention, the method further includes:Monitor the state of failed server;Work as institute
When stating failed server and being changed to normal condition by malfunction, using the failed server as target faults server, and
Obtain the fault time section of the target faults server;In the server that the node for executing the method is configured, selection
Cache contents corresponding with fault time section are synchronized to the target faults server;By the target faults server mark
It is normal server to know.
Specifically, the monitor of an automatic detection service device state can be arranged, (monitor can be by institute
State and be implanted into correlative code realization in jar packets), timing (every 5 minutes either 10 minutes etc.) or the in real time shape of detection service device
State.When listening to faulty server and being changed into normal server, the fault time of failed server is obtained, while obtaining should
Cache contents in fault time are sent to the failed server, and the failed server is identified as normal server.The clothes
Business device can voluntarily choose whether all to receive or partly receive (to send the cache contents sent as only received script
To the user cache information of the server).
Wherein, the fault time can be specifically to be noted as failed services with described failed server the last time
The time of device is starting point, monitors out the failed server using monitor and restores the normal time as the period of terminal.
In a specific example, Fig. 3 b are a kind of caching methods of distributed information provided in an embodiment of the present invention
Functional block diagram, as shown in Figure 3b, user message 371 (previously described user cache information) are sent to load balancing software/hard
Part 372, the node 373 that an execution caching is randomly assigned by load balancing software or hardware 372 cache user letter
Breath 371, the node 373 is according to the cache instruction received, and the information such as User ID for being included according to user information 371 determine
Destination server.The user information 371 is sent to the destination server and cached by node 373, and judge whether caching at
Work(, if so, subsequent operation is directly executed, and the cache responses that will succeed accordingly return to load balancing software/hardware 372;If
It is no, the target server failure is identified, recurrence distributes all available servers again, until arriving successfully cache user message 371
Until.Wherein, node 373 can embed server state monitor, when server state becomes normal from failure, meeting
Caching in automatic synchronization Servers-all, the abnormal conditions that can not be but found to avoid request history buffer content occur.
It, will the interior institute transmitted of fault time section when as a result, by detecting that the state of failed server becomes normal condition
There are cache contents to be sent to the failed server, the data transmitted in fault time are backed up, avoids that history can not be found
The case where cache contents, improves the reliability of the caching system of distributed information.
Optionally, the method further includes:It obtains caching and reads instruction, it includes second user mark that the caching, which reads instruction,
Know information;According to the second user identification information, in the normal server of the distributed cluster system selection with it is described
Caching reads the server of instructions match as reading service device;By the cluster communication port, executes and taken from the reading
It is engaged in reading the operation for the cache contents that instructions match is read with the caching in device;It is read from the reading service device when determining
When failure, the reading service device is identified as failed server;The weight in the normal server of the distributed cluster system
Newly select a normal server as new reading service device;It returns and executes through the cluster communication port, execute from described
The step of operation for the cache contents that reading reads instructions match with the caching in reading service device, until successfully reading and institute
State the cache information that caching reads instructions match.
In distributed cluster system in the present embodiment, also needed to other than the memory buffers content into server from
Cache contents are read in server, can be determined by caching the second user identification information for reading and including in instruction and read clothes
Business device, and therefrom read cache contents;When reading failure, it is slow to read that reading service device is redefined from normal server
Content is deposited, until reading successfully.Determine that reading service device reads cache contents by reading instruction according to caching as a result,
It may be implemented accurately to obtain the cache contents needed, the caching system of distributed information improved in terms of the reading of cache contents
Serious forgiveness further increases the accuracy and reliability of the caching system of distributed information.
Wherein it is possible to record the cache server of the user cache information in cache user cache information, and needing
It reads in the user cache information, directly acquires the address of the cache server, for building second user identification information, finally
It generates caching and reads instruction, the user cache information is accurately read in realization.
The embodiment of the present invention is when determining the failure of destination server cache user cache information, again from normal server
Selection target server, until caching the reliability for the caching system for successfully further increasing distributed information.
Example IV
Fig. 4 is a kind of flow chart for the caching method of distributed information that the embodiment of the present invention four provides, the present embodiment with
It is optimized based on above-described embodiment.Specifically as shown in figure 4, specific method includes:
S401, obtains user cache information, and the user cache information includes the first user identity information, the distribution
Each node is by cluster communication port communication in group system, and at least two nodes are configured with clothes in the distributed cluster system
Business device, wherein normal server and failed server are divided into according to the state of the server.
S402 calculates mark Hash codes corresponding with first user identity information, and obtains the mark Hash codes
Hash codes absolute value.
In the present embodiment, Hash codes can be the numerical value calculated according to the first user identity information, and being used for will not
The first same user identity information is distributed in the numberical range of setting, wherein the computational methods of Hash codes specifically can basis
Actual needs determines that the embodiment of the present invention is not particularly limited.
S403 is calculated remaining after the server sum in the Hash codes absolute value divided by the distributed cluster system
Number.
Obviously, the range Bi Ranshuyu [ of the remainder;0, N-1], wherein the N is in the distributed cluster system
Server.It, can be by arbitrary first user identity information, with a server in distributed cluster system by above-mentioned setting
Association correspondence is established, namely:In the present embodiment, Hash code value is normalized, be conducive to build Hash code value with
The correspondence of server.
S404 inquires the server list pre-established according to the remainder being calculated, and obtains an alternative services
Device.
In the present embodiment, server list may include the correspondence of the remainder and server, server identification letter
The address etc. of breath and server.According to the remainder determined by the first user identity information, server list is inquired, by the of acquisition
One server alternately server.
S405 judges whether the alternate servers are normal server, if so, executing S406.If it is not, executing S407.
The alternate servers are determined as the destination server by S406.
The alternate servers are identified as failed server, and choose one normally in the server list by S407
Server is as the destination server.
In the present embodiment, according to the state of alternate servers, judge whether using the alternate servers as destination service
Device.
In the present embodiment, if alternate servers are failed server, optionally other normal servers take as target
Be engaged in device, cache contents be successfully stored in other normal servers, avoid alternate servers failure and in can not caching in time
The problems such as storing storage, causing loss of data.
Optionally, the normal server that alternate servers can be selected nearest in server list takes as new target
Business device.Either using the First server in the server list as new destination server or can also be according to clothes
The priority of business device, selects the normal server of highest priority as destination server in the server list, may be used also
To select preset server, wherein the preset server reliability highest, the probability that failure occurs are minimum.
In this regard, the embodiment of the present invention is not particularly limited.
S408 is executed the user cache information cache by the cluster communication port in the destination server
Operation.
S409, when determining that the destination server caches the user cache information failure, by the destination server
It is identified as failed server.
S410 reselects new destination server in the normal server of the distributed cluster system, and passes through
The cluster communication port is executed the user cache information cache in the operation of the new destination server.
Optionally, new destination server is reselected in the normal server of the distributed cluster system, including:
The server list is inquired, a normal server is chosen in the server list as the new destination server.
The state of server can be directly inquired according to server list as a result, quickly selects a normal server, as again true
Fixed destination server improves the ability and efficiency of the caching system process problem of distributed information.
S411 judges whether successfully to cache the user cache information;If so, executing S412;It is executed if it is not, returning
S409。
S412 terminates flow.
In embodiments of the present invention, its corresponding Hash code value is calculated according to the first user identity information, and according to Hash
The correspondence of code value and server establishes pair of the first user identity information and the server in distributed cluster system indirectly
It should be related to, to inquire alternate servers in the server list to prestore according to the first user identity information, be taken as target
Business device, and when alternate servers are failed server, one normal server of gravity treatment can delay user as destination server
It deposits information and is accurately stored in corresponding destination server, it is to realize the demand according to equally loaded, user cache information is uniform
It is buffered in distributed cluster system, achievees the purpose that equally loaded.
Embodiment five
Fig. 5 is a kind of structural schematic diagram of the buffer storage for distributed information that the embodiment of the present invention five provides, such as Fig. 5 institutes
Show, described device specifically includes:
User cache data obtaining module 510, for obtaining user cache information, the user cache information includes first
User identity information, each node passes through cluster communication port communication, the distributed type assemblies system in the distributed cluster system
At least two nodes are configured with server in system;
Destination server selecting module 520 is used for according to first user identity information, in the distributed type assemblies system
It is selected in system with the server of the user cache information matches as destination server;
User cache information cache module 530, for by the cluster communication port, the user cache to be believed in execution
Breath is cached in the operation of the destination server.
The embodiment of the present invention according to user cache information selection target server, and by distributed cluster system have
Cluster communication port user cache information is cached to destination server as Service-Port, solve the prior art
In must separately installed deployment cache product, and for the caching product open a new port and could realize that caching is distributed and believe
The problem of breath, has saved valuable port resource, has optimized the performance of entire distributed cluster system, and thoroughly avoids individually
Installation and deployment cache the human cost that product needs.
Further, the user cache data obtaining module 510, is used for:What acquisition was distributed via SiteServer LBS
The user cache information, the SiteServer LBS include:Load balancing software and/or load balancing hardware.
Further, described device is additionally operable to:It is divided into normal server and failed services according to the state of the server
Device.
Further, the destination server selecting module 520 is specifically used for:According to first user identity information,
It is selected in the normal server of the distributed cluster system with the server of the user cache information matches as target
Server.
Further, described device further includes:Failed server mark module, for delaying when the determining destination server
When depositing the user cache information failure, the destination server is identified as failed server;Destination server redefines
Module, for reselecting new destination server in the normal server of the distributed cluster system, and by described
Cluster communication port is executed the user cache information cache in the operation of the new destination server;Message loop is slow
Storing module redefines holding for module for constantly triggering the failed server mark module and the destination server
Row, until successfully caching the user cache information.
Further, the destination server selecting module 520, is specifically used for:It calculates and believes with first user identifier
Corresponding mark Hash codes are ceased, and obtain the Hash codes absolute value of the mark Hash codes;The Hash codes absolute value is calculated to remove
With the remainder after the server sum in the distributed cluster system;According to the remainder being calculated, inquiry is built in advance
Vertical server list obtains an alternate servers;If it is determined that the alternate servers are identified as normal server, then by institute
It states alternate servers and is determined as the destination server;If it is determined that the alternate servers are identified as failed server, then exist
A normal server is chosen in the server list as the destination server.
Further, the destination server redefines module, is specifically used for:The server list is inquired, in institute
It states and chooses a normal server in server list as the new destination server.
Further, described device further includes:Failed server monitors module, the state for monitoring failed server;
Fault time acquisition module, for when the failed server is changed to normal condition by malfunction, the failure to be taken
Device be engaged in as target faults server, and obtains the fault time section of the target faults server;Cache contents synchronization module,
In server for being configured in the node for executing the method, selection cache contents corresponding with fault time section are same
It walks to the target faults server;Failed server identifies modified module, for being by the target faults server identification
Normal server.
Further, described device is additionally operable to:It obtains caching and reads instruction, it includes second user that the caching, which reads instruction,
Identification information;According to the second user identification information, selection and institute in the normal server of the distributed cluster system
It states caching and reads the server of instructions match as reading service device;By the cluster communication port, execute from the reading
The operation for the cache contents that instructions match is read with the caching is read in server;It is read from the reading service device when determining
When taking unsuccessfully, the reading service device is identified as failed server;In the normal server of the distributed cluster system
A normal server is reselected as new reading service device;It returns and executes through the cluster communication port, execute from institute
State in reading service device read with it is described caching read instructions match cache contents operation the step of, until successfully read with
The caching reads the cache information of instructions match.
Further, described device further includes:Module is destroyed, is used for when determining the preset destruction duration of arrival,
In the server that the node for executing the method is configured, the setting cache contents of storage are destroyed.
Further, described device is additionally operable to:When determining the arrival destruction duration, sends destruction to management user and carry
Show information;And/or it is set determining that the current point in time difference destroyed between time point corresponding with the destruction duration is less than
When time threshold, is sent to management user and destroy prompt message.
Further, in the project file that described device is configured by node, the setting jar packets being previously added execute;Institute
It includes following any one or more to state the cache object of jar packets support:It String objects, List objects, Map objects and makes by oneself
Justice serializing object.
Further, described device further includes:The distributed cluster system includes multiple robot nodes;The user
Cache information is the interaction problems that interactive user is sent by setting the client of type to the robot node.
The buffer storage for the distributed information that the embodiment of the present invention is provided can perform any embodiment of the present invention and be provided
Distributed information caching method, have the corresponding function module of execution method and advantageous effect.
Embodiment six
Fig. 6 is a kind of structural schematic diagram for computer equipment that the embodiment of the present invention six provides.Fig. 6 is shown suitable for being used for
Realize the block diagram of the exemplary computer device 612 of embodiment of the present invention.The computer equipment 612 that Fig. 6 is shown is only one
A example should not bring any restrictions to the function and use scope of the embodiment of the present invention.
As shown in fig. 6, computer equipment 612 is showed in the form of universal computing device.The component of computer equipment 612 can
To include but not limited to:One or more processor or processing unit 616, system storage 628 connect different system group
The bus 618 of part (including system storage 628 and processing unit 616).
Bus 618 indicates one or more in a few class bus structures, including memory bus or Memory Controller,
Peripheral bus, graphics acceleration port, processor or the local bus using the arbitrary bus structures in a variety of bus structures.It lifts
For example, these architectures include but not limited to industry standard architecture (Industry Standard
Architecture, ISA) bus, microchannel architecture (Micro Channel Architecture, MCA) bus, enhancing
Type isa bus, Video Electronics Standards Association (Video Electronics Standards Association, VESA) local
Bus and peripheral component interconnection (Peripheral Component Interconnect, PCI) bus.
Computer equipment 612 typically comprises a variety of computer system readable media.These media can be it is any can
The usable medium accessed by computer equipment 612, including volatile and non-volatile media, moveable and immovable Jie
Matter.
System storage 628 may include the computer system readable media of form of volatile memory, such as deposit at random
Access to memory (RAM) 630 and/or cache memory 632.Computer equipment 612 may further include it is other it is removable/
Immovable, volatile/non-volatile computer system storage medium.Only as an example, storage system 634 can be used for reading
Write immovable, non-volatile magnetic media (Fig. 6 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 6,
It can provide for the disc driver to moving non-volatile magnetic disk (such as " floppy disk ") read-write, and to removable non-easy
The property lost CD (such as compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), number regard
Disk (Digital Video Disc-Read Only Memory, DVD-ROM) or other optical mediums) read-write disc drives
Device.In these cases, each driver can be connected by one or more data media interfaces with bus 618.Storage
Device 628 may include at least one program product, which has one group of (for example, at least one) program module, these journeys
Sequence module is configured to perform the function of various embodiments of the present invention.
Program/utility 640 with one group of (at least one) program module 642, can be stored in such as memory
In 628, such program module 642 includes --- but being not limited to --- operating system, one or more application program, other
Program module and program data may include the realization of network environment in each or certain combination in these examples.Journey
Sequence module 642 usually executes function and/or method in embodiment described in the invention.
Computer equipment 612 can also be with one or more external equipments 614 (such as keyboard, sensing equipment, display
624 etc.) it communicates, the equipment interacted with the computer equipment 612 communication can be also enabled a user to one or more, and/or
(such as network interface card is adjusted with any equipment that the computer equipment 612 communicated with one or more of the other computing device is enable
Modulator-demodulator etc.) communication.This communication can be carried out by input/output (Input/Output, I/O) interface 622.And
And computer equipment 612 can also pass through network adapter 620 and one or more network (such as LAN (Local
Area Network, LAN), wide area network (Wide Area Network, WAN) communication.As shown, network adapter 620 is logical
Bus 618 is crossed to communicate with other modules of computer equipment 612.It should be understood that although being not shown in Fig. 6, it can be in conjunction with calculating
Machine equipment 612 uses other hardware and/or software module, including but not limited to:Microcode, device driver, redundancy processing are single
Member, external disk drive array, (Redundant Arrays of Inexpensive Disks, RAID) system, magnetic tape drive
Device and data backup storage system etc..
Processing unit 616 is stored in program in system storage 628 by operation, to perform various functions using with
And data processing, such as realize a kind of caching method for distributed information that the embodiment of the present invention is provided.
That is, the processing unit is realized when executing described program:Obtain user cache information, the user cache information
Including the first user identity information, each node passes through cluster communication port communication, the distribution in the distributed cluster system
At least two nodes are configured with server in formula group system;According to first user identity information, in the distributed collection
It is selected with the server of the user cache information matches as destination server in group's system;Pass through the cluster communication end
Mouthful, it executes the user cache information cache in the operation of the destination server.
Embodiment seven
The embodiment of the present invention seven provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
The caching method of the distributed information provided such as all inventive embodiments of the application is provided when sequence is executed by processor:
That is, the program is realized when being executed by processor:User cache information is obtained, the user cache information includes the
One user identity information, each node passes through cluster communication port communication, the distributed type assemblies in the distributed cluster system
At least two nodes are configured with server in system;According to first user identity information, in the distributed cluster system
It is middle to select with the server of the user cache information matches as destination server;By the cluster communication port, execute
By the user cache information cache in the operation of the destination server.
The arbitrary of one or more computer-readable media may be used in the computer storage media of the embodiment of the present invention
Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable
Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or
Device, or the arbitrary above combination.The more specific example (non exhaustive list) of computer readable storage medium includes:Tool
There are one or the electrical connection of multiple conducting wires, portable computer diskette, hard disk, RAM, read-only memory (Read Only
Memory, ROM), erasable programmable read only memory (Erasable Programmable Read Only Memory,
EPROM), flash memory, optical fiber, portable CD-ROM, light storage device, magnetic memory device or above-mentioned any appropriate combination.
In this document, can be any include computer readable storage medium or the tangible medium of storage program, which can be by
The either device use or in connection of instruction execution system, device.
Computer-readable signal media may include in a base band or as the data-signal that a carrier wave part is propagated,
Wherein carry computer-readable program code.Diversified forms may be used in the data-signal of this propagation, including --- but
It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be
Any computer-readable medium other than computer readable storage medium, which can send, propagate or
Transmission for by instruction execution system, device either device use or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited
In --- wireless, electric wire, optical cable, radio frequency (RadioFrequency, RF) etc. or above-mentioned any appropriate group
It closes.
Note that above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that
The present invention is not limited to specific embodiments described here, can carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out to the present invention by above example
It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also
May include other more equivalent embodiments, and the scope of the present invention is determined by scope of the appended claims.
Claims (20)
1. a kind of caching method of distributed information is applied in distributed cluster system, which is characterized in that the method packet
It includes:
User cache information is obtained, the user cache information includes the first user identity information, the distributed cluster system
In each node by cluster communication port communication, at least two nodes are configured with server in the distributed cluster system;
According to first user identity information, selection and the user cache information matches in the distributed cluster system
Server as destination server;
By the cluster communication port, execute the user cache information cache in the operation of the destination server.
2. according to the method described in claim 1, it is characterized in that, according to the state of the server be divided into normal server and
Failed server;
It is described according to first user identity information, selection and the user cache information in the distributed cluster system
Matched server as destination server, including:
According to first user identity information, selection and the user in the normal server of the distributed cluster system
The matched server of cache information is as destination server.
3. according to the method described in claim 2, it is characterized in that, by the cluster communication port, execute the use
Family cache information is cached in after the operation of the destination server, and the method further includes:
When determining that the destination server caches the user cache information failure, the destination server is identified as failure
Server;
New destination server is reselected in the normal server of the distributed cluster system, and logical by the cluster
Believe port, executes the user cache information cache in the operation of the new destination server;
Constantly both the above step is executed until successfully caching the user cache information.
4. according to the method described in claim 3, it is characterized in that, described according to first user identity information, described
The destination server with the user cache information matches is determined in distributed cluster system, including:
Mark Hash codes corresponding with first user identity information are calculated, and the Hash codes for obtaining the mark Hash codes are exhausted
To value;
Calculate the remainder after the server sum in the Hash codes absolute value divided by the distributed cluster system;
According to the remainder being calculated, the server list pre-established is inquired, obtains an alternate servers;
If it is determined that the alternate servers are identified as normal server, then the alternate servers are determined as the target takes
Business device;
If it is determined that the alternate servers are identified as failed server, then a normal service is chosen in the server list
Device is as the destination server.
5. according to the method described in claim 4, it is characterized in that, the normal server in the distributed cluster system
In reselect new destination server, including:
The server list is inquired, a normal server is chosen in the server list as the new destination service
Device.
6. according to the method described in claim 3, it is characterized in that, the method further includes:
Monitor the state of failed server;
When the failed server is changed to normal condition by malfunction, taken the failed server as target faults
Business device, and obtain the fault time section of the target faults server;
In the server that the node for executing the method is configured, selection cache contents corresponding with fault time section are same
It walks to the target faults server;
It is normal server by the target faults server identification.
7. according to the method described in claim 6, it is characterized in that, the method further includes:
It obtains caching and reads instruction, it includes second user identification information that the caching, which reads instruction,;
According to the second user identification information, selection and the caching in the normal server of the distributed cluster system
The server of instructions match is read as reading service device;
By the cluster communication port, executes to read from the reading service device and read the slow of instructions match with the caching
Deposit the operation of content;
When determining the reading failure from the reading service device, the reading service device is identified as failed server;
A normal server is reselected in the normal server of the distributed cluster system as new reading service device;
It returns and executes through the cluster communication port, execution is read to read with the caching from the reading service device and be instructed
The step of operation of matched cache contents, until successfully reading the cache information for reading instructions match with the caching.
8. according to the method described in claim 1, it is characterized in that, obtain user cache information, including:
The user cache information distributed via SiteServer LBS is obtained, the SiteServer LBS includes:Load balancing
Software and/or load balancing hardware.
9. according to the method described in claim 1, it is characterized in that, the method further includes:
When determining the preset destruction duration of arrival, in the server that the node for executing the method is configured, will deposit
The setting cache contents of storage are destroyed.
10. according to the method described in claim 9, it is characterized in that, the server configured in the node for executing the method
In, before the setting cache contents of storage are destroyed, the method further includes:
When determining the arrival destruction duration, is sent to management user and destroy prompt message;And/or
Determining the current point in time difference destroyed between time point corresponding with the destruction duration less than setting time threshold value
When, it is sent to management user and destroys prompt message.
11. according to claim 1-10 any one of them methods, which is characterized in that the engineering text that the method is configured by node
In part, the setting jar packets being previously added execute;
The cache object that the jar packets are supported includes following any one or more:String objects, List objects, Map objects with
And custom list object.
12. according to claim 1-10 any one of them methods, which is characterized in that the distributed cluster system includes multiple
Robot node;
The user cache information is the interaction that interactive user is sent by setting the client of type to the robot node
Problem.
13. a kind of buffer storage of distributed information is applied in distributed cluster system, which is characterized in that described device packet
It includes:
User cache data obtaining module, for obtaining user cache information, the user cache information is marked including the first user
Know information, each node is by cluster communication port communication in the distributed cluster system, in the distributed cluster system extremely
Few two nodes are configured with server;
Destination server selecting module, for according to first user identity information, being selected in the distributed cluster system
The server with the user cache information matches is selected as destination server;
User cache information cache module, for by the cluster communication port, executing the user cache information cache
In the operation of the destination server.
14. device according to claim 13, which is characterized in that be divided into normal server according to the state of the server
And failed server;
The destination server selecting module is specifically used for:According to first user identity information, in the distributed type assemblies
It is selected in the normal server of system with the server of the user cache information matches as destination server.
15. device according to claim 14, which is characterized in that described device further includes:
Failed server mark module, for when determining that the destination server caches the user cache information failure, inciting somebody to action
The destination server is identified as failed server;
Destination server redefines module, new for being reselected in the normal server of the distributed cluster system
Destination server, and by the cluster communication port, execute and take the user cache information cache in the new target
The operation of business device;
Message loop cache module, for constantly triggering the failed server mark module and the destination server again
The execution of determining module, until successfully caching the user cache information.
16. device according to claim 15, which is characterized in that the destination server selecting module is specifically used for:
Mark Hash codes corresponding with first user identity information are calculated, and the Hash codes for obtaining the mark Hash codes are exhausted
To value;
Calculate the remainder after the server sum in the Hash codes absolute value divided by the distributed cluster system;
According to the remainder being calculated, the server list pre-established is inquired, obtains an alternate servers;
If it is determined that the alternate servers are identified as normal server, then the alternate servers are determined as the target takes
Business device;
If it is determined that the alternate servers are identified as failed server, then a normal service is chosen in the server list
Device is as the destination server.
17. device according to claim 15, which is characterized in that described device further includes:
Failed server monitors module, the state for monitoring failed server;
Fault time acquisition module, for when the failed server is changed to normal condition by malfunction, will it is described therefore
Hinder server as target faults server, and obtains the fault time section of the target faults server;
Cache contents synchronization module, in the server that the node of execution the method is configured, selecting and the failure
Period corresponding cache contents are synchronized to the target faults server;
Failed server identifies modified module, for being normal server by the target faults server identification.
18. according to the device described in claim 13-17, which is characterized in that in the project file that described device is configured by node
, the setting jar packets being previously added execute;
The cache object that the jar packets are supported includes following any one or more:String objects, List objects, Map objects with
And custom list object.
19. a kind of computer equipment, including memory, processor and storage are on a memory and the meter that can run on a processor
Calculation machine program, which is characterized in that the processor realizes point as described in any in claim 1-12 when executing described program
The caching method of cloth information.
20. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
The caching method of the distributed information as described in any in claim 1-12 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810427864.XA CN108696581B (en) | 2018-05-07 | 2018-05-07 | Distributed information caching method and device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810427864.XA CN108696581B (en) | 2018-05-07 | 2018-05-07 | Distributed information caching method and device, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108696581A true CN108696581A (en) | 2018-10-23 |
CN108696581B CN108696581B (en) | 2021-08-13 |
Family
ID=63846151
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810427864.XA Active CN108696581B (en) | 2018-05-07 | 2018-05-07 | Distributed information caching method and device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108696581B (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109669775A (en) * | 2018-12-10 | 2019-04-23 | 平安科技(深圳)有限公司 | Distributed task dispatching method, system and storage medium |
CN109684080A (en) * | 2018-12-10 | 2019-04-26 | 平安科技(深圳)有限公司 | Centralized method for scheduling task, system and storage medium |
CN110427280A (en) * | 2019-06-19 | 2019-11-08 | 中国平安财产保险股份有限公司 | A kind of buffer memory management method, system, computer equipment and storage medium |
CN110784504A (en) * | 2019-08-29 | 2020-02-11 | 恒大智慧科技有限公司 | Intelligent distributed system deployment method, system and storage medium |
CN111078147A (en) * | 2019-12-16 | 2020-04-28 | 南京领行科技股份有限公司 | Processing method, device and equipment for cache data and storage medium |
CN111159233A (en) * | 2019-12-18 | 2020-05-15 | 金蝶软件(中国)有限公司 | Distributed caching method, system, computer device and storage medium |
CN111343262A (en) * | 2020-02-20 | 2020-06-26 | 中国建设银行股份有限公司 | Distributed cluster login method, device, equipment and storage medium |
CN112532673A (en) * | 2019-09-19 | 2021-03-19 | 北京京东振世信息技术有限公司 | Message sending method and device, computer readable storage medium and electronic equipment |
CN113590414A (en) * | 2021-06-30 | 2021-11-02 | 济南浪潮数据技术有限公司 | Server cluster information acquisition and caching method, device, equipment and medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103412635A (en) * | 2013-08-02 | 2013-11-27 | 清华大学 | Energy-saving method and energy-saving device of data center |
CN106651072A (en) * | 2015-10-30 | 2017-05-10 | 苏宁云商集团股份有限公司 | Dispatching method and device |
CN107979629A (en) * | 2016-10-25 | 2018-05-01 | 北京京东尚科信息技术有限公司 | Distributed cache system and its data cache method and device |
-
2018
- 2018-05-07 CN CN201810427864.XA patent/CN108696581B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103412635A (en) * | 2013-08-02 | 2013-11-27 | 清华大学 | Energy-saving method and energy-saving device of data center |
CN106651072A (en) * | 2015-10-30 | 2017-05-10 | 苏宁云商集团股份有限公司 | Dispatching method and device |
CN107979629A (en) * | 2016-10-25 | 2018-05-01 | 北京京东尚科信息技术有限公司 | Distributed cache system and its data cache method and device |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109684080A (en) * | 2018-12-10 | 2019-04-26 | 平安科技(深圳)有限公司 | Centralized method for scheduling task, system and storage medium |
CN109669775A (en) * | 2018-12-10 | 2019-04-23 | 平安科技(深圳)有限公司 | Distributed task dispatching method, system and storage medium |
CN110427280A (en) * | 2019-06-19 | 2019-11-08 | 中国平安财产保险股份有限公司 | A kind of buffer memory management method, system, computer equipment and storage medium |
CN110427280B (en) * | 2019-06-19 | 2024-05-28 | 中国平安财产保险股份有限公司 | Cache management method, system, computer equipment and storage medium |
CN110784504A (en) * | 2019-08-29 | 2020-02-11 | 恒大智慧科技有限公司 | Intelligent distributed system deployment method, system and storage medium |
CN112532673B (en) * | 2019-09-19 | 2023-12-05 | 北京京东振世信息技术有限公司 | Message sending method and device, computer readable storage medium and electronic equipment |
CN112532673A (en) * | 2019-09-19 | 2021-03-19 | 北京京东振世信息技术有限公司 | Message sending method and device, computer readable storage medium and electronic equipment |
CN111078147A (en) * | 2019-12-16 | 2020-04-28 | 南京领行科技股份有限公司 | Processing method, device and equipment for cache data and storage medium |
CN111078147B (en) * | 2019-12-16 | 2022-06-28 | 南京领行科技股份有限公司 | Processing method, device and equipment for cache data and storage medium |
CN111159233A (en) * | 2019-12-18 | 2020-05-15 | 金蝶软件(中国)有限公司 | Distributed caching method, system, computer device and storage medium |
CN111159233B (en) * | 2019-12-18 | 2024-03-08 | 金蝶软件(中国)有限公司 | Distributed caching method, system, computer equipment and storage medium |
CN111343262A (en) * | 2020-02-20 | 2020-06-26 | 中国建设银行股份有限公司 | Distributed cluster login method, device, equipment and storage medium |
CN111343262B (en) * | 2020-02-20 | 2022-04-29 | 中国建设银行股份有限公司 | Distributed cluster login method, device, equipment and storage medium |
CN113590414A (en) * | 2021-06-30 | 2021-11-02 | 济南浪潮数据技术有限公司 | Server cluster information acquisition and caching method, device, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN108696581B (en) | 2021-08-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108696581A (en) | Caching method, device, computer equipment and the storage medium of distributed information | |
US11934868B2 (en) | Systems and methods for scheduling tasks | |
US7577868B2 (en) | No data loss IT disaster recovery over extended distances | |
CN101772918B (en) | Operation, administration and maintenance (OAM) for chains of services | |
CN108234191A (en) | The management method and device of cloud computing platform | |
CN108777640B (en) | Server detection method, device, system and storage medium | |
CN111723024B (en) | Data processing method, device and system, client server and storage server | |
CN103581276A (en) | Cluster management device and system, service client side and corresponding method | |
US8543680B2 (en) | Migrating device management between object managers | |
CN104283780A (en) | Method and device for establishing data transmission route | |
CN106909197B (en) | Virtualization host time management method and virtualization host system | |
CN109474700A (en) | Cut-in method, storage medium, client and the memory node of iSCSI client | |
CN109167819A (en) | Data synchronous system, method, apparatus and storage medium | |
CN105959078A (en) | Cluster time synchronization method, cluster and time synchronization system | |
CN110290163A (en) | A kind of data processing method and device | |
CN106209680A (en) | Information processor and method | |
EP3481099B1 (en) | Load balancing method and associated device | |
CN109698774A (en) | Method and device for monitoring device working condition | |
EP3523928B1 (en) | Method and system for managing control connections with a distributed control plane | |
CN111935029B (en) | Gateway load balancing method and device, storage medium and electronic equipment | |
CN112261079B (en) | Distributed block storage service link management method and system based on iSCSI | |
CN106301898B (en) | A kind of synchronous method and device of configuration information | |
CN114138475A (en) | Data transmission load balancing method, device, equipment and storage medium | |
CN112882771A (en) | Server switching method and device of application system, storage medium and electronic equipment | |
US8412817B1 (en) | Load balancing voicemail server system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |