A master-slave server system application method, system, server and storage medium
The technology of a server system and application method is applied in the field of systems, master-slave server system application methods, servers and storage media, and can solve problems affecting the compatibility of master-slave server system application methods and increase subsequent system maintenance costs.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] On the one hand, if figure 1 The present invention provides a master-slave server system application method, which includes,
[0042] Step S110, when the business service is in the working state, control the current master cache server and the current slave cache server to perform synchronous cache data operations; the master cache server and the slave cache server are synchronized before the business service is in the working state After the definition is completed, after the primary cache server and the secondary cache server are defined, a relationship is established between the business service and the primary cache server; after the relationship between the business service and the primary cache server is established, The business service starts to provide corresponding services, and at the same time, synchronous cache data processing is performed between the slave cache server and the master cache server, so that the data on the slave cache server is consistent wi...
Embodiment 2
[0051] As a further preferred embodiment, such as figure 2 As shown, the above-mentioned a kind of master-slave server system application method specifically includes:
[0052] Step S209, after the sentinel service node obtains the address information of the current primary cache server, the business service connects to the current primary cache server according to the address information so that the business service is in a working state. Specifically, after the current primary cache server and the current secondary cache server are determined, start the business service, and after the business service is successfully started, first connect to the sentinel service node, and the sentry service node obtains the current primary cache server's Address information, then, the business service connects to the current primary cache server according to the address information, and the current primary cache server can be in a working state when the business service is connected.
[0...
Embodiment 3
[0063] The present invention further provides a master-slave server system application system, which includes:
[0064] The synchronization unit controls the operation of synchronizing cached data between the current master cache server and the current slave cache server when the business service is in a working state;
[0065] A detection unit, the sentinel service detects the heartbeat of the current primary cache server and the current secondary cache server;
[0066] The update unit is configured to control the current secondary cache server to be updated as the next primary cache server when the heartbeat of the current primary cache server is in an abnormal state.
[0067] As a further preferred embodiment, the above-mentioned master-slave server system application system further includes:
[0068] The connection unit is configured to connect the business service to the current primary cache server according to the address information after the sentinel service obtains ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


