Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Configuration center information synchronization method and system

A technology for configuration information and information synchronization, applied in program control devices, program control design, instruments, etc., can solve problems such as strong dependence on third-party middleware, and achieve the effect of ensuring data consistency, reducing complexity, and preventing influences

Pending Publication Date: 2021-11-26
SHANGHAI BILIBILI TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The main purpose of this application is to propose a configuration center information synchronization method, system, electronic device, and computer-readable storage medium, aiming to solve the problem that the configuration center server is strongly dependent on third-party middleware

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Configuration center information synchronization method and system
  • Configuration center information synchronization method and system
  • Configuration center information synchronization method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0071] see figure 1 , figure 1 It is an application environment architecture diagram of a configuration center system proposed in the first embodiment of the present application. This application can be applied to application environments including, but not limited to, the configuration center server 2 , client 4 , configuration center management 6 , and configuration center database 8 .

[0072] Wherein, the configuration center server 2 may include multiple server nodes for providing configuration information for the client 2 . The server may be a computing device such as a rack server, a blade server, a tower server, or a cabinet server, and may be an independent server or a server cluster composed of multiple servers.

[0073] The client 4 is an SDK client, which is used to obtain configuration updates from the configuration center server 2 . The client 2 may be a terminal device such as a PC (Personal Computer, personal computer), a mobile phone, a tablet computer, a p...

Embodiment 2

[0079] Such as figure 2 As shown in FIG. 2 , it is a flow chart of a method for synchronizing configuration center information proposed in the second embodiment of the present application. It can be understood that the flowchart in this method embodiment is not used to limit the sequence of execution steps. Some steps in the flow chart can also be added or deleted as needed. The method will be described below with the configuration center server 2 as the execution subject.

[0080] The method includes the following steps:

[0081] S100. Set a first information table recording configuration information of the current server node and a second information table recording configuration information of other server nodes in the configuration center in a local file of each server node of the configuration center.

[0082] In this embodiment, the Gossip protocol is used to realize the self-management of the server address information among the server nodes on the server side, whic...

Embodiment 3

[0096] Such as Figure 4 As shown in FIG. 2 , it is a flow chart of a method for synchronizing configuration center information proposed in the third embodiment of the present application. In the third embodiment, the configuration center information synchronization method further includes step S204 on the basis of the above-mentioned second embodiment. It can be understood that the flowchart in this method embodiment is not used to limit the sequence of execution steps. Some steps in the flow chart can also be added or deleted as needed.

[0097] The method includes the following steps:

[0098] S200, setting a first information table recording configuration information of the current server node and a second information table recording configuration information of other server nodes of the configuration center in a local file of each server node of the configuration center.

[0099] In this embodiment, the Gossip protocol is used to realize the self-management of the serv...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a configuration center information synchronization method. The method comprises the following steps: setting a first information table for recording configuration information of a current server node and a second information table for recording configuration information of other server nodes of a configuration center in a local file of each server node of the configuration center; and pairing the two server nodes of the configuration center with each other, and exchanging configuration information between each pair of server nodes in a push-pull-pull mode so as to update the second information table. The invention further discloses a configuration center system, a configuration center information synchronization system, an electronic device and a computer readable storage medium. Therefore, the problem that the configuration center server side strongly depends on the third-party middleware can be solved.

Description

technical field [0001] The present application relates to the technical field of configuration centers, and in particular to a configuration center information synchronization method, system, electronic device, and computer-readable storage medium. Background technique [0002] In the development of distributed microservices, many projects require unified management of service startup configuration, business logic configuration, and grayscale configuration, thus introducing a distributed configuration center system. At present, the service discovery of the configuration center is mainly realized in the following two ways: [0003] The first is the registration center (service discovery middleware), that is, the configuration center server actively registers the address information of its own server to the service discovery middleware when it starts, and the middleware and the server maintain a heartbeat mechanism to verify the server Whether it is still alive, the server ob...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
CPCG06F9/44505
Inventor 韩志华陈天宇
Owner SHANGHAI BILIBILI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products