CN112822036A - Configuration data synchronization method of distributed system - Google Patents

Configuration data synchronization method of distributed system Download PDF

Info

Publication number
CN112822036A
CN112822036A CN202011580567.2A CN202011580567A CN112822036A CN 112822036 A CN112822036 A CN 112822036A CN 202011580567 A CN202011580567 A CN 202011580567A CN 112822036 A CN112822036 A CN 112822036A
Authority
CN
China
Prior art keywords
configuration
data
session
distributed system
client
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.)
Pending
Application number
CN202011580567.2A
Other languages
Chinese (zh)
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.)
Suning Consumer Finance Co ltd
Original Assignee
Suning Consumer Finance 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 Suning Consumer Finance Co ltd filed Critical Suning Consumer Finance Co ltd
Priority to CN202011580567.2A priority Critical patent/CN112822036A/en
Publication of CN112822036A publication Critical patent/CN112822036A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • H04L41/0873Checking configuration conflicts between network elements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention relates to a configuration data synchronization method of a distributed system, wherein the distributed system comprises a main server end and a plurality of client ends, and the main server end is provided with a data configuration unit for modifying configuration data and monitoring configuration information of each client end. And a plurality of clients subscribe the data configuration unit and perform configuration real-time synchronization. The invention realizes the modification of the configuration data, the monitoring of the configuration information of each client and the realization of the consistency of the configuration data by arranging the data configuration unit at the main server end of the distributed system.

Description

Configuration data synchronization method of distributed system
Technical Field
The invention belongs to the technical field of consumption financial data configuration, and particularly relates to a configuration data synchronization method of a distributed system.
Background
The consumer finance field adopts a distributed system to provide services for clients, and the distributed system comprises a main server side and a plurality of client sides. According to the inventor, the existing distributed system is based on a traditional relational database and has a single-point bottleneck, or the existing distributed system is configured through a message queue technology, so that messages are easily lost or repeated, and the problem of inconsistent synchronization of configuration data is caused. In addition, in a distributed system, failure of the primary server often causes immeasurable consequences and hidden dangers.
Disclosure of Invention
The invention provides a configuration data synchronization method of a distributed system, which ensures the consistency of configuration updating of a server side and a client side when configuration data is modified.
The technical scheme adopted by the invention is as follows:
a distributed system configuration data synchronization method, the distributed system includes main server end and multiple customer ends, the said main server end sets up the data configuration unit used for modifying the configuration data, monitoring every customer end configuration information; and the plurality of clients subscribe the data configuration unit and perform configuration real-time synchronization.
Further, after the configuration data is modified, the data configuration unit initiates a request for establishing a session to the client, establishes a first session with the client, and the client returns a response for successfully establishing the session and interacts configuration information through the first session.
Further, the main server side provides a page for data configuration modification.
Furthermore, the configuration data synchronization method further comprises the step of calling the data configuration unit at any client side to modify the configuration data, and informing other client sides of modifying the configuration by the data configuration unit after the configuration data is modified.
Further, after the configuration is modified on the client, the client sends a second session to the data configuration unit, and after the data configuration unit receives the second session and responds, the second session is updated to a third session, and the configuration information is synchronized to other clients through the third session.
Further, the distributed system also comprises a secondary server side which is used for hot switching to replace the primary server side to continue service when the primary server side fails.
The invention has the beneficial effects that:
the invention realizes the modification of the configuration data, the monitoring of the configuration information of each client and the realization of the consistency of the configuration data by arranging the data configuration unit at the main server end of the distributed system.
Detailed Description
The configuration data synchronization method of the distributed system according to the present invention is further described in detail by the following embodiments.
A method for synchronizing configuration data of a distributed system comprises a main server and a plurality of clients, wherein the main server is provided with a data configuration unit for modifying configuration data and monitoring configuration information of each client. And a plurality of clients subscribe the data configuration unit and perform configuration real-time synchronization.
Specifically, after the configuration data is modified, the data configuration unit initiates a request for establishing a session to the client, establishes a first session with the client, and the client returns a response for successfully establishing the session and interacts configuration information through the first session.
The main server side provides a page for data configuration modification.
As an improvement of the above scheme, the configuration data synchronization method further includes calling a data configuration unit at any client to modify the configuration data, and notifying other clients of modifying the configuration by the data configuration unit after the configuration data is modified. After the configuration is modified on the client, the client sends a second session to the data configuration unit, after the data configuration unit receives the second session and responds, the second session is updated to a third session, and the configuration information is synchronized to other clients through the third session. Therefore, configuration updating can be realized at the main server side and the client side, and configuration updating work is greatly facilitated.
In this embodiment, the distributed system further includes an auxiliary server for hot switching to replace the main server to continue service when the main server fails, so as to improve the stability of the system and reduce the influence of an emergency.
The above description is only an embodiment of the present invention, but the scope of the present invention is not limited thereto, and any alternative or alternative method that can be easily conceived by those skilled in the art within the technical scope of the present invention should be covered by the scope of the present invention.

Claims (6)

1. A distributed system configuration data synchronization method, the distributed system includes main server end and multiple customer ends, characterized by that, the said main server end sets up the data configuration unit used for modifying the configuration data, monitoring every customer end configuration information; and the plurality of clients subscribe the data configuration unit and perform configuration real-time synchronization.
2. The method according to claim 1, wherein after the configuration data is modified, the data configuration unit initiates a request for establishing a session to the client, establishes a first session with the client, and the client returns a response for successfully establishing the session, and interacts the configuration information through the first session.
3. The configuration data synchronization method for distributed system according to claim 1, wherein the master server provides a page for data configuration modification.
4. The method for synchronizing configuration data of a distributed system according to any one of claims 1 to 3, further comprising invoking the data configuration unit at any one of the clients to modify the configuration data, and notifying other clients of modifying the configuration by the data configuration unit after the configuration data is modified.
5. The method according to claim 4, wherein after the configuration is modified on the client, the client sends a second session to the data configuration unit, and after the data configuration unit receives and responds to the second session, the second session is updated to a third session, and the configuration information is synchronized to other clients through the third session.
6. The configuration data synchronization method for the distributed system according to claim 1, wherein the distributed system further comprises a secondary server for hot-switching to continue the service in place of the primary server when the primary server fails.
CN202011580567.2A 2020-12-28 2020-12-28 Configuration data synchronization method of distributed system Pending CN112822036A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011580567.2A CN112822036A (en) 2020-12-28 2020-12-28 Configuration data synchronization method of distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011580567.2A CN112822036A (en) 2020-12-28 2020-12-28 Configuration data synchronization method of distributed system

Publications (1)

Publication Number Publication Date
CN112822036A true CN112822036A (en) 2021-05-18

Family

ID=75854151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011580567.2A Pending CN112822036A (en) 2020-12-28 2020-12-28 Configuration data synchronization method of distributed system

Country Status (1)

Country Link
CN (1) CN112822036A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577817A (en) * 2009-06-10 2009-11-11 中兴通讯股份有限公司 Distributed video monitoring system and method thereof for keeping data consistency
CN102291416A (en) * 2011-09-14 2011-12-21 成都软智科技有限公司 Two-way synchronizing method and system of client-side and server-side
CN104092718A (en) * 2013-12-12 2014-10-08 腾讯数码(天津)有限公司 Distributed system and configuration information updating method in distributed system
CN110719311A (en) * 2018-07-13 2020-01-21 深圳兆日科技股份有限公司 Distributed coordination service method, system and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101577817A (en) * 2009-06-10 2009-11-11 中兴通讯股份有限公司 Distributed video monitoring system and method thereof for keeping data consistency
CN102291416A (en) * 2011-09-14 2011-12-21 成都软智科技有限公司 Two-way synchronizing method and system of client-side and server-side
CN104092718A (en) * 2013-12-12 2014-10-08 腾讯数码(天津)有限公司 Distributed system and configuration information updating method in distributed system
CN110719311A (en) * 2018-07-13 2020-01-21 深圳兆日科技股份有限公司 Distributed coordination service method, system and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN108616596B (en) Block chain self-adaptive consensus method based on dynamic authorization and network environment perception
CN110175213A (en) A kind of oracle database synchronization system and method based on SCN mode
CN103559104B (en) A kind of distributed redundancy real-time database framework based on mixed communication
US20070124348A1 (en) Database system configured for automatic failover with no data loss
CN102054035A (en) Data range-based method for synchronizing data in database
CN105630913A (en) Redis pipeline communication-based message passing method and system
CN112532396A (en) Optimized Byzantine fault-tolerant method based on aggregated signature and storage medium
CN105338095A (en) Conversation data processing method and device
CN108390919B (en) Message synchronization system and method for high-reliability dual-computer hot standby
CN107734017B (en) Data service method and system
WO2023093641A1 (en) User relationship chain storage method, apparatus and system, electronic device, and storage medium
CN112600881A (en) Method, device, server and storage medium for providing service of internet of things
CN112822036A (en) Configuration data synchronization method of distributed system
CN101415008A (en) Method for implementing call centre based on XMPP protocol
WO2022151709A1 (en) Smart contract sharding processing method
WO2020150944A1 (en) Service processing method and system
CN110213359A (en) A kind of car networking networking data delivery system and method based on D2D
CN109005176A (en) A kind of real estate data reporting system and method
CN111475333A (en) Openstack-based database backup method and device
CN107357866A (en) A kind of production domesticization moving method of information system for power enterprise middleware, database
CN116707759A (en) Lightweight alliance chain consensus method for high concurrency scene of data flow
CN114172792B (en) Method and device for realizing sequence number generation method for ensuring high availability of service
CN111090637A (en) Financial-level high-availability MySQL database implementation method based on A10
CN107566475B (en) Session failover method and device
CN115314596A (en) High-availability hotline telephone customer service response system, method, device and 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: No.88, Huaihai Road, Qinhuai District, Nanjing City, Jiangsu Province, 210000

Applicant after: Nanyin Faba Consumer Finance Co.,Ltd.

Address before: No.88, Huaihai Road, Qinhuai District, Nanjing City, Jiangsu Province, 210000

Applicant before: SUNING CONSUMER FINANCE Co.,Ltd.