CN108696581B - Distributed information caching method and device, computer equipment and storage medium - Google Patents

Distributed information caching method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN108696581B
CN108696581B CN201810427864.XA CN201810427864A CN108696581B CN 108696581 B CN108696581 B CN 108696581B CN 201810427864 A CN201810427864 A CN 201810427864A CN 108696581 B CN108696581 B CN 108696581B
Authority
CN
China
Prior art keywords
server
information
user
cache
target
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.)
Active
Application number
CN201810427864.XA
Other languages
Chinese (zh)
Other versions
CN108696581A (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.)
Shanghai Xiaoi Robot Technology Co Ltd
Original Assignee
Shanghai Xiaoi Robot Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Xiaoi Robot Technology Co Ltd filed Critical Shanghai Xiaoi Robot Technology Co Ltd
Priority to CN201810427864.XA priority Critical patent/CN108696581B/en
Publication of CN108696581A publication Critical patent/CN108696581A/en
Application granted granted Critical
Publication of CN108696581B publication Critical patent/CN108696581B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/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/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1029Protocols 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1034Reaction to server failures by a load balancer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • H04L67/5683Storage of data provided by user terminals, i.e. reverse caching
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling 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/63Routing a service request depending on the request content or context

Abstract

The embodiment of the invention discloses a distributed information caching method and device, computer equipment and a storage medium. The method comprises the following steps: acquiring user cache information, wherein the user cache information comprises first user identification information, each node in the distributed cluster system communicates through a cluster communication port, and at least two nodes in the distributed cluster system are configured with a server; according to the first user identification information, selecting a server matched with the user cache information in the distributed cluster system as a target server; and executing the operation of caching the user cache information in the target server through the cluster communication port. The embodiment of the invention can optimize the existing distributed caching technology and meet the ever-increasing personalized and convenient distributed caching requirements of people.

Description

Distributed information caching method and device, computer equipment and storage medium
Technical Field
The embodiment of the invention relates to the field of distributed systems, in particular to a distributed information caching method and device, computer equipment and a storage medium.
Background
With the development of the internet, the number of users using network services is increasing, and one server cannot support a huge user group, so that in order to provide better services for people, multiple servers are generally selected and arranged in a distributed cluster environment, but the problem of cache sharing exists in the distributed setting server, and the development of distributed applications for caching information is more and more emphasized by people.
Currently, there are many distributed cache products on the market, such as Memcached, radics and other common software, which can implement operations of storing, retrieving or backing up data of a specific object (such as List, Map and other data types) in a distributed cluster environment.
The existing cache products have certain limitations, such as: the method is characterized in that the method is required to be independently installed and deployed, and a server port is specially opened for calling; when a problem occurs in a cache program for caching a product, a special professional is required to maintain the cache program. In other words, if a distributed cluster system wants to use the existing cache product, the corresponding client and server must be installed separately to be applicable.
Disclosure of Invention
The embodiment of the invention provides a distributed information caching method and device, computer equipment and a storage medium, which aim to optimize the existing distributed caching technology and meet the ever-increasing personalized and convenient distributed caching requirements of people.
In a first aspect, an embodiment of the present invention provides a method for caching distributed information, including:
acquiring user cache information, wherein the user cache information comprises first user identification information, each node in the distributed cluster system communicates through a cluster communication port, and at least two nodes in the distributed cluster system are configured with a server;
according to the first user identification information, selecting a server matched with the user cache information in the distributed cluster system as a target server;
and executing the operation of caching the user cache information in the target server through the cluster communication port.
In a second aspect, an embodiment of the present invention further provides a distributed information caching apparatus, including:
the system comprises a user cache information acquisition module, a distributed cluster system and a user cache information acquisition module, wherein the user cache information acquisition module is used for acquiring user cache information which comprises first user identification information, each node in the distributed cluster system is communicated through a cluster communication port, and at least two nodes in the distributed cluster system are provided with servers;
a target server selection module, configured to select, according to the first user identification information, a server in the distributed cluster system that matches the user cache information as a target server;
and the user cache information caching module is used for executing the operation of caching the user cache information in the target server through the cluster communication port.
In a third aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where when the processor executes the computer program, the processor implements the method for caching distributed information according to any one of the embodiments of the present invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for caching distributed information according to any one of the embodiments of the present invention.
The embodiment of the invention selects the target server according to the user cache information, caches the user cache information to the target server by taking the existing cluster communication port in the distributed cluster system as the server port, solves the problems that the cache product is required to be independently installed and deployed in the prior art, and the distributed information can be cached only by opening a new port for the cache product, saves precious port resources, optimizes the performance of the whole distributed cluster system, and thoroughly avoids the labor cost required for independently installing and deploying the cache product.
Drawings
Fig. 1a is a schematic structural diagram of a distributed information cluster system to which an embodiment of the present invention is applied;
fig. 1b is a flowchart of a distributed information caching method according to an embodiment of the present invention;
fig. 2 is a flowchart of a distributed information caching method according to a second embodiment of the present invention;
fig. 3a is a flowchart of a distributed information caching method according to a third embodiment of the present invention;
fig. 3b is a functional block diagram of a distributed information caching method according to a third embodiment of the present invention;
fig. 4 is a flowchart of a distributed information caching method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a distributed information caching apparatus according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
It should be further noted that, for the convenience of description, only some but not all of the relevant aspects of the present invention are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Example one
Fig. 1a is a schematic structural diagram of a distributed cluster system to which an embodiment of the present invention is applied, and as shown in fig. 1a, a distributed cluster system may include a plurality of devices 101, and the devices 101 implement information interaction through a router 102. Each device 101 in the distributed cluster system can cooperate to complete a task together or independently complete a task, each device 101 can be a control node to issue a task to other devices 101 in the distributed cluster system, and meanwhile, when any one device 101 fails in task, other devices 101 can take over the failed task to execute the task again, so that the distributed cluster system can have the functions of load balancing and failure recovery, and the problem of network congestion is solved.
Each device 101 is a node in the distributed cluster system, and the devices 101 communicate with each other through their respective cluster communication ports. Typically, when a distributed cluster system is constructed, each node selects the same port (e.g., 7000 ports) as the cluster communication port.
The distributed cluster system in the embodiment of the invention comprises a plurality of nodes with a caching function, the caching operation of the information can be realized by installing a caching client on the node, the caching position of the information is in a server installed on the node in the distributed cluster system, and the server is specially used for storing the caching information. Accordingly, any node in the distributed cluster system can acquire the contents cached in the servers on other nodes at any time. Generally, a client for performing a caching operation and a server for storing caching information are both installed in the same node, that is, a node capable of performing a caching operation is generally a node configured with a server.
The server may be configured on some or all of the nodes in the distributed cluster system. Optionally, the cache server may be configured in each node in the distributed cluster system, so that when any node receives the cache information, an operation of storing the cache information by any cache server in all the cache servers in the distributed cluster system may be directly performed.
Fig. 1b is a flowchart of a distributed information caching method according to an embodiment of the present invention, where this embodiment is applicable to a case where user cache information is stored in a distributed cluster system, and the method may be executed by a distributed information caching apparatus according to an embodiment of the present invention, and the apparatus may be implemented in a software and/or hardware manner, and may generally be integrated into one node in the distributed cluster system, for example, a desktop or a robot. As shown in fig. 1b, the method of this embodiment specifically includes:
s110, obtaining user cache information, wherein the user cache information comprises first user identification information, each node in the distributed cluster system is communicated through a cluster communication port, and at least two nodes in the distributed cluster system are configured with a server.
In this embodiment, the user cache information specifically refers to backup information of interaction information sent when an interaction user performs information interaction with one node in the distributed cluster system. Generally speaking, when receiving interactive information of an interactive user, a node executes corresponding information feedback according to the interactive information, and stores backup information of the interactive information in a distributed cluster system in a distributed cache manner.
Typically, if the node receiving the interaction information can perform a caching operation, the corresponding user caching information can be directly cached; if the node receiving the interaction information can not execute the caching operation, selecting another node capable of executing the caching operation in the distributed cluster system, and sending the user caching information corresponding to the interaction information to the selected node for caching; or whether the node receiving the interaction information can execute the caching operation or not, the node sends the user caching information corresponding to the interaction information to a load balancing system, and the load balancing system selects the node to cache the user caching information.
The interactive user can send the interactive information to the distributed cluster system through a computer, an intelligent terminal (a mobile phone, a tablet and the like) or a wearable device and other terminals. The interactive information may specifically be voice or text information input through an application program such as a web browser or a WeChat. Therefore, the user cache information corresponding to the interaction information correspondingly includes first user identification information for uniquely determining the identity of the user, and specifically may be information such as an IP address of a computer, a mobile phone number, or an account number of a login application program.
Generally, there are a plurality of nodes in a distributed cluster system, and each two nodes can communicate with each other through a cluster communication port. At least two nodes may be selected in the distributed cluster system to configure servers for caching information. Typically, corresponding servers may be configured on all nodes in the distributed cluster system.
In this embodiment, the nodes in the distributed cluster system may be robots, that is: the distributed cluster system may include a plurality of robot nodes, and a node capable of performing an operation of caching information of a caching user in the distributed cluster system may be used as a target node, that is, an execution subject of the distributed information caching method is the target node.
Specifically, the user cache information is an interaction problem sent to the robot node by the interaction user through a client of a set type. In a specific example, the user cache information may be an interaction problem sent by an interactive user to a target node through a safari application in a terminal of the IOS system.
In another optional embodiment of the present invention, obtaining the user cache information may include: obtaining the user cache information distributed via a load balancing system, the load balancing system comprising: load balancing software and/or load balancing hardware.
Specifically, the load balancing system is configured to distribute the user cache information to a plurality of servers in the distributed cluster system, so that the data load of the servers in the distributed cluster system reaches a balanced state, and the type of the load balancing system may be F5, Nginx, Apache, or the like.
S120, according to the first user identification information, selecting a server matched with the user cache information in the distributed cluster system as a target server.
In this embodiment, selecting, according to the first user identification information, a server that matches the user cache information in the distributed cluster system as a target server may include: determining attribute information of the user cache information according to the first user identification information, where the attribute information may be in multiple forms, for example: application program attributes such as WeChat, microblog or webpage; device attributes such as desktop computers, mobile terminals or wearable devices; or data format attributes such as voice or text, and the like, and further, according to the attribute information of the user cache information, a server matched with the user cache information is selected as a target server in the distributed cluster system.
Similarly, when the previously stored user cache information is read, second user identification information of the read user cache information may also be obtained, and according to the second user identification information, it is determined from which node the server configured in the corresponding user cache information needs to be read.
In addition, different first user identification information can be mapped into a set numerical range, the corresponding relation between different numerical values in the range and different servers in the distributed cluster system is established, and then after a certain first user identification information is obtained, a target server corresponding to the first user identification information is obtained through the mapping processing.
In addition, the target server can be selected by traversing the servers according to a set sequence and storing the user cache information into the server which is traversed currently and has the minimum relevance with the user cache information. In this regard, the present invention is not particularly limited in the embodiments.
By selecting the server matched with the user cache information to store the user cache information, the accuracy of caching the user cache information can be improved, and the problem that excessive data is stored in one server to reduce the response speed of the server is solved.
Optionally, the target server may be determined directly according to the first user identification information, or may be determined according to the first user identification information in combination with a state (normal or failure) of each server in the distributed cluster system, which is not limited in this embodiment.
S130, through the cluster communication port, the operation of caching the user cache information in the target server is executed.
In this embodiment, each node in the distributed cluster system may communicate through a cluster communication port, and after a target server is determined, cache user cache information in the target server. The specific method for storing the user cache information into the target server may be to call a cache interface of the target server to cache the user cache information through the cluster communication port.
In this embodiment, in order to avoid the defects of the prior art, a set jar packet added in advance in the project file configured in each node is considered to implement a function of a client performing a caching operation and a function of a server caching user cache information. Because the jar packet belongs to lightweight application, a user does not need to install cache software independently, and therefore, an independent port does not need to be opened to serve as a server port to transmit user cache information, and only the existing cluster communication port is used.
The cache objects supported by the jar package comprise any one or more of the following objects: string objects, List objects, Map objects, and custom serialized objects. The cache objects are all universal cache objects in the java environment, and a user can set the required cache objects according to actual needs. The cache object specifically refers to a data format of the cached user cache information.
Specifically, the serialized object may be an object containing information such as data of the object, a state, and data of an object referred to by the serialized object, that is, various information of the object is retained to the greatest extent. The jar package can contain various serialized objects, the information of the cache object is reserved to the greatest extent, the information related to the object can be obtained when the cache object is read, in addition, the jar package can support the user-defined serialized object, and the expansibility of the jar package is improved. The jar package can be directly added into the project file configured by the node, a user does not need to reinstall the program, and the implementation difficulty and the subsequent maintenance cost of the distributed information caching method are reduced.
Optionally, the user setting items of the jar package include: the user setting items of the server list or jar package comprise: a list of servers and a destruction duration. The server list may include servers included in the distributed cluster, and attribute information of the servers, such as address information, state information, and the like of the servers. Moreover, the information stored in the server list may be updated periodically; the destroy duration may be a period for performing a destroy operation on the cache content of the server in the distributed cluster system, and may be specifically set by a user.
Generally, after the target server successfully stores the user cache information, the feedback information is correspondingly sent to the node sending the user cache information, and the node sending the user cache information determines whether the target server successfully caches the user cache information according to whether the feedback information is received and the content of the feedback information. Therefore, whether the target server successfully caches the user cache information or not can be monitored according to feedback information returned after the target server successfully caches the user cache information, so that other servers can be reselected for caching when caching fails, and the reliability of the distributed information caching system is improved.
The embodiment of the invention selects the target server according to the user cache information, caches the user cache information to the target server by taking the existing cluster communication port in the distributed cluster system as the server port, solves the problems that the cache product is required to be independently installed and deployed in the prior art, and the distributed information can be cached only by opening a new port for the cache product, saves precious port resources, optimizes the performance of the whole distributed cluster system, and thoroughly avoids the labor cost required for independently installing and deploying the cache product.
On the basis of the above embodiments, the method further includes: and when the preset destroying time duration is determined to be reached, destroying the stored set cache content in a server configured by the node executing the method.
Specifically, the cache content in the server configured by each node in the distributed cluster system may be periodically destroyed to release resources, so as to prevent the problem of data loss due to response delay of the distributed cluster system caused by data redundancy.
Optionally, before destroying the stored set cache content in the server configured by the node executing the method, the method further includes: when the destruction duration is determined to be reached, sending destruction prompt information to a management user; and/or sending destruction prompt information to a management user when the difference between the current time point and the destruction time point corresponding to the destruction duration is determined to be smaller than a set time threshold.
Specifically, before the cache content is destroyed, the cache content is confirmed to the manager, so that the situation that the data is destroyed by the manager when the manager still needs the data to be destroyed, and thus the loss of the user is avoided, the flexibility of the distributed information caching method is improved, and the user experience is improved.
Example two
Fig. 2 is a flowchart of a distributed information caching method according to a second embodiment of the present invention, which is embodied based on the second embodiment. Then, the selecting, according to the first user identification information, a server that matches the user cache information in the distributed cluster system as a target server includes: and selecting a server matched with the user cache information from normal servers of the distributed cluster system as a target server according to the first user identification information. Specifically, as shown in fig. 2, the specific method includes:
s210, user cache information is obtained, the user cache information comprises first user identification information, all nodes in the distributed cluster system are communicated through a cluster communication port, at least two nodes in the distributed cluster system are provided with servers, and the distributed cluster system is divided into a normal server and a fault server according to the states of the servers.
In this embodiment, it may be specifically determined whether the server is a normal server or a failed server to construct a server list, where all the servers in the distributed cluster system, identification information corresponding to each server, and a corresponding address are stored, where the identification information is used to identify the normal server and the failed server. Meanwhile, the identification information corresponding to the server in the server list may be updated periodically. All nodes in the distributed cluster system can store the server list, and the state of the target server is obtained according to the server list.
The server can be identified by adopting a monitoring mode. The method specifically comprises the following steps: and sending information to all the servers regularly, judging whether the servers are in fault or not according to the content of the feedback information when the feedback information of the servers is received, and identifying the corresponding servers. Or directly sending user cache information to the target server, and judging whether the target server is a fault server according to whether the target server sends feedback information and the content of the sent feedback information: specifically, when the feedback information sent by the target server is not received, it may be determined that the target server fails; or when the content of the feedback information is not matched with the content of the feedback information corresponding to the successful cache, determining that the target server is in failure, and identifying the target server as a failed server.
S220, according to the first user identification information, selecting a server matched with the user cache information from normal servers of the distributed cluster system as a target server.
In this embodiment, the target server is selected from the normal servers, and the probability that the selected target server is the failure server is reduced, so that the success rate of caching the cache information of the user is improved.
And S230, executing the operation of caching the user cache information in the target server through the cluster communication port.
Therefore, the embodiment of the invention improves the success rate of caching the user cache information and improves the reliability of the cache system of the distributed information by dividing the servers into the fault server and the normal server and selecting the target server from the normal servers.
EXAMPLE III
Fig. 3a is a flowchart of a distributed information caching method according to a third embodiment of the present invention, and the present embodiment is optimized based on the foregoing embodiments. Specifically, as shown in fig. 3a, the specific method includes:
s310, obtaining user cache information, wherein the user cache information comprises first user identification information, all nodes in the distributed cluster system are communicated through a cluster communication port, at least two nodes in the distributed cluster system are provided with servers, and the distributed cluster system is divided into a normal server and a fault server according to the states of the servers.
S320, according to the first user identification information, selecting a server matched with the user cache information from normal servers of the distributed cluster system as a target server.
S330, through the cluster communication port, the operation of caching the user cache information in the target server is executed.
S340, when it is determined that the target server fails to cache the user cache information, identifying the target server as a fault server.
In this embodiment, it may be configured that, after the target server successfully caches the user cache information, the target server sends the setting feedback information to the node that sends the user cache information, and if the node that sends the user cache information does not receive the setting feedback information sent by the target server within the set time, it is determined that the target server fails to cache the user cache information, that is, the target server is a failed server, and identifies the failed server.
S350, reselecting a new target server from the normal servers of the distributed cluster system, and executing the operation of caching the user cache information in the new target server through the cluster communication port.
In this embodiment, according to the updated identification information of the server, a normal server may be screened out, and a target server may be re-determined from the normal server, and the user cache information may be cached in a new target server. Typically, the re-determined target server may be the first server in the server list, or the best performing server (or, the least likely server to fail) in the server list. Typically, a performance tag of each server may be added to the server list in advance to help determine the new target server.
S360, judging whether the user cache information is cached successfully or not; if yes, go to S370; if not, the process returns to the step S340.
In this embodiment, if the new target server is still the failed server, the previous steps may be repeatedly executed until the user cache information is successfully cached.
S370, the flow ends.
In another optional embodiment of the invention, the method further comprises: monitoring the state of a fault server; when the fault server is changed from the fault state to the normal state, taking the fault server as a target fault server, and acquiring a fault time period of the target fault server; selecting cache contents corresponding to the failure time period from servers configured by the nodes executing the method to synchronize to the target failure server; and identifying the target failure server as a normal server.
Specifically, a listener for automatically detecting the state of the server (the listener can be implemented by embedding relevant codes in the jar packet), and the state of the server can be detected regularly (every 5 minutes or 10 minutes, etc.) or in real time. When the condition that the fault server is changed into the normal server is monitored, the fault time of the fault server is obtained, meanwhile, the cache content in the fault time is obtained and sent to the fault server, and the fault server is identified as the normal server. The server can select whether to accept all or part of the sent cache content (such as receiving only the user cache information that should be sent to the server).
The failure time may specifically be a time period that a time when the failed server is last marked as the failed server is taken as a starting point, and a time when the monitor monitors that the failed server recovers to be normal is taken as an ending point.
In a specific example, fig. 3b is a functional block diagram of a distributed information caching method according to an embodiment of the present invention, as shown in fig. 3b, a user message 371 (the user cache information described above) is transmitted to load balancing software/hardware 372, the load balancing software or hardware 372 randomly allocates a node 373 that performs a caching operation to cache the user information 371, and the node 373 determines a target server according to a received caching instruction and information such as a user ID included in the user information 371. Node 373 sends the user information 371 to the target server for caching, and determines whether caching is successful, if yes, directly executes subsequent operations, and returns a corresponding successful caching response to load balancing software/hardware 372; if not, the target server failure is identified and all available servers are re-recursively allocated until user message 371 is successfully cached. The node 373 may embed a server status listener, and when the server status changes from failure to normal, the caches in all servers are automatically synchronized, so as to avoid an abnormal situation that the requested history cache content cannot be found.
Therefore, when the state of the fault server is detected to be changed into the normal state, all cache contents transmitted in the fault time period are sent to the fault server, and data transmitted in the fault time period are backed up, so that the condition that historical cache contents cannot be found is avoided, and the reliability of the distributed information cache system is improved.
Optionally, the method further includes: obtaining a cache reading instruction, wherein the cache reading instruction comprises second user identification information; selecting a server matched with the cache reading instruction from normal servers of the distributed cluster system as a reading server according to the second user identification information; executing an operation of reading the cache content matched with the cache reading instruction from the reading server through the cluster communication port; when it is determined that reading from the reading server fails, identifying the reading server as a failed server; reselecting a normal server from the normal servers of the distributed cluster system as a new reading server; and returning to execute the step of reading the cache content matched with the cache reading instruction from the reading server through the cluster communication port until the cache information matched with the cache reading instruction is successfully read.
In the distributed cluster system in this embodiment, the cache content needs to be read from the server in addition to the storage of the cache content in the server, and the server can be determined to be read by the second user identification information included in the cache read instruction, and the cache content is read from the server; and when the reading fails, re-determining the reading server from the normal server to read the cache content until the reading succeeds. Therefore, the reading server is determined to read the cache content according to the cache reading instruction, the required cache content can be accurately acquired, the fault tolerance rate of the distributed information cache system is improved in the aspect of reading the cache content, and the accuracy and the reliability of the distributed information cache system are further improved.
The cache server of the user cache information can be recorded when the user cache information is cached, the address of the cache server is directly obtained when the user cache information needs to be read, the address is used for constructing second user identification information, a cache reading instruction is finally generated, and the user cache information can be accurately read.
According to the embodiment of the invention, when the target server fails to cache the user cache information, the target server is selected from the normal servers again until the cache is successful, so that the reliability of the distributed information cache system is further improved.
Example four
Fig. 4 is a flowchart of a distributed information caching method according to a fourth embodiment of the present invention, and the present embodiment is optimized based on the foregoing embodiments. Specifically, as shown in fig. 4, the specific method includes:
s401, obtaining user cache information, wherein the user cache information comprises first user identification information, each node in the distributed cluster system is communicated through a cluster communication port, at least two nodes in the distributed cluster system are provided with servers, and the distributed cluster system is divided into a normal server and a fault server according to the state of the servers.
S402, calculating the identification hash code corresponding to the first user identification information, and obtaining the hash code absolute value of the identification hash code.
In this embodiment, the hash code may be a numerical value calculated according to the first user identification information, and is used to distribute different first user identification information into a set numerical value range, where a calculation method of the hash code may be specifically determined according to actual needs, and the embodiment of the present invention is not particularly limited.
And S403, calculating a remainder of the absolute value of the hash code divided by the total number of the servers in the distributed cluster system.
Obviously, the range of the remainder necessarily belongs to [0, N-1], where N is a server in the distributed cluster system. Through the above setting, an association correspondence relationship can be established between any first user identification information and one server in the distributed cluster system, that is: in this embodiment, the hash code value is normalized, which is beneficial to constructing the corresponding relationship between the hash code value and the server.
S404, inquiring a pre-established server list according to the calculated remainder to obtain an alternative server.
In this embodiment, the server list may include the correspondence between the remainder and the server, the server identification information, the address of the server, and the like. And inquiring a server list according to the remainder determined by the first user identification information, and taking the acquired first server as an alternative server.
S405, judging whether the alternative server is a normal server, if so, executing S406. If not, go to S407.
S406, determining the alternative server as the target server.
S407, identifying the alternative server as a fault server, and selecting a normal server from the server list as the target server.
In this embodiment, whether the candidate server is a target server is determined according to the state of the candidate server.
In this embodiment, if the alternative server is a failed server, another normal server is selected as a target server, and the cache content is successfully stored in the other normal server, so that the problems that the alternative server fails to store the cache content in time, data loss is caused, and the like are solved.
Alternatively, the nearest normal server of the alternative server in the server list may be selected as the new target server. Or the first server in the server list is used as a new target server, or a normal server with the highest priority is selected as a target server in the server list according to the priority of the server, or a preset server is selected, wherein the preset server has the highest reliability and the lowest probability of failure occurrence. In this regard, the embodiments of the present invention are not particularly limited.
S408, through the cluster communication port, executing the operation of caching the user cache information in the target server.
S409, when the target server is determined to fail to cache the user cache information, identifying the target server as a fault server.
S410, reselecting a new target server from the normal servers of the distributed cluster system, and executing the operation of caching the user cache information in the new target server through the cluster communication port.
Optionally, reselecting a new target server from the normal servers of the distributed cluster system, including: and inquiring the server list, and selecting a normal server from the server list as the new target server. Therefore, the state of the server can be directly inquired according to the server list, a normal server can be quickly selected to serve as a redetermined target server, and the problem processing capacity and efficiency of the distributed information caching system are improved.
S411, judging whether the user cache information is cached successfully or not; if yes, go to step S412; if not, the process returns to the step S409.
And S412, ending the process.
In the embodiment of the invention, the corresponding hash code value is calculated according to the first user identification information, the corresponding relation between the first user identification information and the server in the distributed cluster system is indirectly established according to the corresponding relation between the hash code value and the server, so that the alternative server is inquired in a prestored server list according to the first user identification information and is used as a target server, and when the alternative server is a fault server, a normal server is reselected and is used as the target server, the user cache information can be accurately stored in the corresponding target server, and therefore, the purpose of balancing the load is achieved by uniformly caching the user cache information in the distributed cluster system according to the requirement of the load balancing.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a distributed information caching apparatus according to a fifth embodiment of the present invention, and as shown in fig. 5, the apparatus specifically includes:
a user cache information obtaining module 510, configured to obtain user cache information, where the user cache information includes first user identification information, each node in the distributed cluster system communicates through a cluster communication port, and at least two nodes in the distributed cluster system are configured with a server;
a target server selecting module 520, configured to select, according to the first user identification information, a server in the distributed cluster system, where the server is matched with the user cache information, as a target server;
a user cache information caching module 530, configured to execute an operation of caching the user cache information in the target server through the cluster communication port.
The embodiment of the invention selects the target server according to the user cache information, caches the user cache information to the target server by taking the existing cluster communication port in the distributed cluster system as the server port, solves the problems that the cache product is required to be independently installed and deployed in the prior art, and the distributed information can be cached only by opening a new port for the cache product, saves precious port resources, optimizes the performance of the whole distributed cluster system, and thoroughly avoids the labor cost required for independently installing and deploying the cache product.
Further, the user cache information obtaining module 510 is configured to: obtaining the user cache information distributed via a load balancing system, the load balancing system comprising: load balancing software and/or load balancing hardware.
Further, the apparatus is further configured to: and dividing the server into a normal server and a fault server according to the state of the server.
Further, the target server selecting module 520 is specifically configured to: and selecting a server matched with the user cache information from normal servers of the distributed cluster system as a target server according to the first user identification information.
Further, the apparatus further comprises: the fault server identification module is used for identifying the target server as a fault server when the target server fails to cache the user cache information; the target server re-determining module is used for re-selecting a new target server from normal servers of the distributed cluster system and executing the operation of caching the user cache information in the new target server through the cluster communication port; and the information circulating cache module is used for continuously triggering the execution of the fault server identification module and the target server re-determination module until the user cache information is cached successfully.
Further, the target server selecting module 520 is specifically configured to: calculating an identification hash code corresponding to the first user identification information, and obtaining a hash code absolute value of the identification hash code; calculating a remainder of the absolute value of the hash code divided by the total number of the servers in the distributed cluster system; inquiring a pre-established server list according to the remainder obtained by calculation to obtain an alternative server; if the alternative server is determined to be the normal server, determining the alternative server as the target server; and if the alternative server is determined to be the fault server, selecting a normal server from the server list as the target server.
Further, the target server re-determining module is specifically configured to: and inquiring the server list, and selecting a normal server from the server list as the new target server.
Further, the apparatus further comprises: the fault server monitoring module is used for monitoring the state of a fault server; the fault time acquisition module is used for taking the fault server as a target fault server and acquiring a fault time period of the target fault server when the fault server is changed from a fault state to a normal state; a cache content synchronization module, configured to select, from servers configured by a node executing the method, a cache content corresponding to the failure time period to synchronize to the target failure server; and the fault server identification modification module is used for identifying the target fault server as a normal server.
Further, the apparatus is further configured to: obtaining a cache reading instruction, wherein the cache reading instruction comprises second user identification information; selecting a server matched with the cache reading instruction from normal servers of the distributed cluster system as a reading server according to the second user identification information; executing an operation of reading the cache content matched with the cache reading instruction from the reading server through the cluster communication port; when it is determined that reading from the reading server fails, identifying the reading server as a failed server; reselecting a normal server from the normal servers of the distributed cluster system as a new reading server; and returning to execute the step of reading the cache content matched with the cache reading instruction from the reading server through the cluster communication port until the cache information matched with the cache reading instruction is successfully read.
Further, the apparatus further comprises: and the destruction module is used for destroying the stored set cache content in a server configured by the node executing the method when the preset destruction time length is determined to be reached.
Further, the apparatus is further configured to: when the destruction duration is determined to be reached, sending destruction prompt information to a management user; and/or sending destruction prompt information to a management user when the difference between the current time point and the destruction time point corresponding to the destruction duration is determined to be smaller than a set time threshold.
Further, the device is executed by a preset jar packet added in advance in the engineering files configured by the nodes; the cache objects supported by the jar package comprise any one or more of the following objects: string objects, List objects, Map objects, and custom serialized objects.
Further, the apparatus further comprises: the distributed cluster system comprises a plurality of robot nodes; the user cache information is an interaction problem sent to the robot node by an interaction user through a client with a set type.
The distributed information caching device provided by the embodiment of the invention can execute the distributed information caching method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a computer device according to a sixth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary computer device 612 suitable for use in implementing embodiments of the present invention. The computer device 612 shown in fig. 6 is only an example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention.
As shown in fig. 6, the computer device 612 is in the form of a general purpose computing device. Components of computer device 612 may include, but are not limited to: one or more processors or processing units 616, a system memory 628, and a bus 618 that couples various system components including the system memory 628 and the processing unit 616.
Bus 618 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MCA) bus, an enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
Computer device 612 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 612 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 628 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)630 and/or cache memory 632. The computer device 612 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 634 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard disk drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read-Only Memory (CD-ROM), Digital Video disk (DVD-ROM), or other optical media) may be provided. In such cases, each drive may be connected to bus 618 by one or more data media interfaces. Memory 628 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 640 having a set (at least one) of program modules 642 may be stored, for example, in memory 628, such program modules 642 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 642 generally perform the functions and/or methods of the described embodiments of the present invention.
The computer device 612 may also communicate with one or more external devices 614 (e.g., keyboard, pointing device, display 624, etc.), with one or more devices that enable a user to interact with the computer device 612, and/or with any devices (e.g., network card, modem, etc.) that enable the computer device 612 to communicate with one or more other computing devices. Such communication may be through an Input/Output (I/O) interface 622. Further, computer device 612 may also communicate with one or more networks (e.g., Local Area Network (LAN), Wide Area Network (WAN)) via Network adapter 620 As shown, Network adapter 620 communicates with other modules of computer device 612 via bus 618.
The processing unit 616 executes programs stored in the system memory 628, so as to execute various functional applications and data processing, for example, implement a distributed information caching method provided by the embodiment of the present invention.
That is, the processing unit implements, when executing the program: acquiring user cache information, wherein the user cache information comprises first user identification information, each node in the distributed cluster system communicates through a cluster communication port, and at least two nodes in the distributed cluster system are configured with a server; according to the first user identification information, selecting a server matched with the user cache information in the distributed cluster system as a target server; and executing the operation of caching the user cache information in the target server through the cluster communication port.
EXAMPLE seven
The seventh embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the distributed information caching method provided in all the embodiments of the present invention:
that is, the program when executed by the processor implements: acquiring user cache information, wherein the user cache information comprises first user identification information, each node in the distributed cluster system communicates through a cluster communication port, and at least two nodes in the distributed cluster system are configured with a server; according to the first user identification information, selecting a server matched with the user cache information in the distributed cluster system as a target server; and executing the operation of caching the user cache information in the target server through the cluster communication port.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a RAM, a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (20)

1. A cache method of distributed information is applied to a distributed cluster system, and is characterized in that the method is executed by a preset jar packet added in advance in an engineering file configured by a node, and the method comprises the following steps:
obtaining user cache information, wherein the user cache information comprises first user identification information, each node in the distributed cluster system communicates through a cluster communication port, at least two nodes in the distributed cluster system are configured with a server, the nodes configured with the server are used for executing cache operation, and the server is used for storing the user cache information;
according to the first user identification information, selecting a server matched with the user cache information in the distributed cluster system as a target server;
and executing the operation of caching the user cache information in the target server through the cluster communication port.
2. The method of claim 1, wherein the server is divided into a normal server and a failed server according to the state of the server;
the selecting a server matched with the user cache information in the distributed cluster system as a target server according to the first user identification information includes:
and selecting a server matched with the user cache information from normal servers of the distributed cluster system as a target server according to the first user identification information.
3. The method of claim 2, wherein after the caching of the user cache information at the target server is performed via the cluster communication port, the method further comprises:
when it is determined that the target server fails to cache the user cache information, identifying the target server as a failed server;
reselecting a new target server from normal servers of the distributed cluster system, and executing the operation of caching the user cache information in the new target server through the cluster communication port;
and continuously executing the two steps until the user cache information is cached successfully.
4. The method of claim 3, wherein determining a target server in the distributed cluster system that matches the user cache information according to the first user identification information comprises:
calculating an identification hash code corresponding to the first user identification information, and obtaining a hash code absolute value of the identification hash code;
calculating a remainder of the absolute value of the hash code divided by the total number of the servers in the distributed cluster system;
inquiring a pre-established server list according to the remainder obtained by calculation to obtain an alternative server;
if the alternative server is determined to be the normal server, determining the alternative server as the target server;
and if the alternative server is determined to be the fault server, selecting a normal server from the server list as the target server.
5. The method of claim 4, wherein the reselecting a new target server from among the normal servers in the distributed cluster system comprises:
and inquiring the server list, and selecting a normal server from the server list as the new target server.
6. The method of claim 3, further comprising:
monitoring the state of a fault server;
when the fault server is changed from the fault state to the normal state, taking the fault server as a target fault server, and acquiring a fault time period of the target fault server;
selecting cache contents corresponding to the failure time period from servers configured by the nodes executing the method to synchronize to the target failure server;
and identifying the target failure server as a normal server.
7. The method of claim 6, further comprising:
obtaining a cache reading instruction, wherein the cache reading instruction comprises second user identification information;
selecting a server matched with the cache reading instruction from normal servers of the distributed cluster system as a reading server according to the second user identification information;
executing an operation of reading the cache content matched with the cache reading instruction from the reading server through the cluster communication port;
when it is determined that reading from the reading server fails, identifying the reading server as a failed server;
reselecting a normal server from the normal servers of the distributed cluster system as a new reading server;
and returning to execute the step of reading the cache content matched with the cache reading instruction from the reading server through the cluster communication port until the cache information matched with the cache reading instruction is successfully read.
8. The method of claim 1, wherein obtaining user cache information comprises:
obtaining the user cache information distributed via a load balancing system, the load balancing system comprising: load balancing software and/or load balancing hardware.
9. The method of claim 1, further comprising:
and when the preset destroying time duration is determined to be reached, destroying the stored set cache content in a server configured by the node executing the method.
10. The method according to claim 9, wherein before destroying the stored set cache content in a server configured by a node executing the method, the method further comprises:
when the destruction duration is determined to be reached, sending destruction prompt information to a management user; and/or
And sending destruction prompt information to a management user when the difference between the current time point and the destruction time point corresponding to the destruction duration is smaller than a set time threshold.
11. The method according to any one of claims 1 to 10,
the cache objects supported by the jar package comprise any one or more of the following objects: string objects, List objects, Map objects, and custom serialized objects.
12. The method of any of claims 1-10, wherein the distributed cluster system comprises a plurality of robotic nodes;
the user cache information is an interaction problem sent to the robot node by an interaction user through a client with a set type.
13. A distributed information caching device is applied to a distributed cluster system, and is characterized in that the device executes a preset jar packet added in advance in an engineering file configured by a node, and the device comprises:
a user cache information obtaining module, configured to obtain user cache information, where the user cache information includes first user identification information, each node in the distributed cluster system communicates through a cluster communication port, at least two nodes in the distributed cluster system are configured with a server, and the server is used to store the user cache information;
a target server selection module, configured to select, according to the first user identification information, a server in the distributed cluster system that matches the user cache information as a target server;
and the user cache information caching module is used for executing the operation of caching the user cache information in the target server through the cluster communication port.
14. The apparatus of claim 13, wherein the server is divided into a normal server and a failure server according to the state of the server;
the target server selection module is specifically configured to: and selecting a server matched with the user cache information from normal servers of the distributed cluster system as a target server according to the first user identification information.
15. The apparatus of claim 14, further comprising:
the fault server identification module is used for identifying the target server as a fault server when the target server fails to cache the user cache information;
the target server re-determining module is used for re-selecting a new target server from normal servers of the distributed cluster system and executing the operation of caching the user cache information in the new target server through the cluster communication port;
and the information circulating cache module is used for continuously triggering the execution of the fault server identification module and the target server re-determination module until the user cache information is cached successfully.
16. The apparatus of claim 15, wherein the target server selection module is specifically configured to:
calculating an identification hash code corresponding to the first user identification information, and obtaining a hash code absolute value of the identification hash code;
calculating a remainder of the absolute value of the hash code divided by the total number of the servers in the distributed cluster system;
inquiring a pre-established server list according to the remainder obtained by calculation to obtain an alternative server;
if the alternative server is determined to be the normal server, determining the alternative server as the target server;
and if the alternative server is determined to be the fault server, selecting a normal server from the server list as the target server.
17. The apparatus of claim 15, further comprising:
the fault server monitoring module is used for monitoring the state of a fault server;
the fault time acquisition module is used for taking the fault server as a target fault server and acquiring a fault time period of the target fault server when the fault server is changed from a fault state to a normal state;
a cache content synchronization module, configured to select, from servers configured by a node including the apparatus, a cache content corresponding to the failure time period to synchronize to the target failure server;
and the fault server identification modification module is used for identifying the target fault server as a normal server.
18. The apparatus of any one of claims 13-17,
the cache objects supported by the jar package comprise any one or more of the following objects: string objects, List objects, Map objects, and custom serialized objects.
19. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of caching distributed information according to any one of claims 1 to 12 when executing said program.
20. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method of caching distributed information according to any one of claims 1 to 12.
CN201810427864.XA 2018-05-07 2018-05-07 Distributed information caching method and device, computer equipment and storage medium Active CN108696581B (en)

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 CN108696581A (en) 2018-10-23
CN108696581B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
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
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
CN111078147B (en) * 2019-12-16 2022-06-28 南京领行科技股份有限公司 Processing method, device and equipment for cache data and storage medium
CN111159233B (en) * 2019-12-18 2024-03-08 金蝶软件(中国)有限公司 Distributed caching method, system, computer 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

Citations (3)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN108696581A (en) 2018-10-23

Similar Documents

Publication Publication Date Title
CN108696581B (en) Distributed information caching method and device, computer equipment and storage medium
US10110671B2 (en) Method, system, and device for managing server hardware resources in a cloud scheduling environment
CN108712332B (en) Communication method, system and device
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
US9647892B2 (en) Cloud-based service resource provisioning based on network characteristics
CN107729176B (en) Disaster recovery method and disaster recovery system for configuration file management system
CN107666493B (en) Database configuration method and equipment thereof
CN107729570B (en) Data migration method and device for server
US20130346513A1 (en) Migrating a chat message service provided by a chat server to a new chat server
US9390156B2 (en) Distributed directory environment using clustered LDAP servers
CN113347037B (en) Data center access method and device
CN111258627A (en) Interface document generation method and device
CN110896362B (en) Fault detection method and device
CN114363334A (en) Network configuration method, device and equipment for cloud system and cloud desktop virtual machine
US11153173B1 (en) Dynamically updating compute node location information in a distributed computing environment
US11381665B2 (en) Tracking client sessions in publish and subscribe systems using a shared repository
CN114070889B (en) Configuration method, traffic forwarding device, storage medium, and program product
CN110247847B (en) Method and device for back source routing between nodes
CN111629054B (en) Message processing method, device and system, electronic equipment and readable storage medium
CN114816866A (en) Fault processing method and device, electronic equipment and storage medium
US8832242B2 (en) Determining a network address for managed devices to use to communicate with manager server in response to a change in a currently used network address
CN112860505A (en) Method and device for regulating and controlling distributed clusters
CN112579247A (en) Method and device for determining task state
CN112968975B (en) Service request processing method and device
CN116260855B (en) Communication method, communication device, electronic equipment and storage medium

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