Unlock instant, AI-driven research and patent intelligence for your innovation.

Zookeeper-based dynamic configuration method and device

A technology of dynamic configuration and configuration information, applied in transmission systems, electrical components, etc., can solve problems such as errors and inconvenient changes

Active Publication Date: 2022-02-22
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, if there are many machines, it is not convenient to use the traditional modification method, and when the configuration of each machine is different, the possibility of error is higher

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
  • Zookeeper-based dynamic configuration method and device
  • Zookeeper-based dynamic configuration method and device
  • Zookeeper-based dynamic configuration method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

[0052] figure 1 It is a flow chart of a zookeeper-based dynamic configuration method shown according to an exemplary embodiment. like figure 1As shown, the zookeeper-based dynamic configuration method is used in the server, including the following steps:

[0053] Step S10, the service interface monitors the nodes on the zookeeper connected to itself, wherein each service interface i...

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 present disclosure relates to a zookeeper-based dynamic configuration method and device, the method comprising: a service interface monitors nodes on the zookeeper connected to itself, wherein each service interface is connected to at least one node; When the content changes, the service interface obtains the changed content from the node, and the content of the node includes configuration information of the service interface; the service interface transmits the changed content to the corresponding server, making the server corresponding to the service interface adjust the configuration information of the service interface. This disclosure connects the service interface with the nodes on the zookeeper, and each service interface is connected to at least one node, monitors the nodes on the zookeeper through the service interface, obtains the changed node content, and adjusts itself according to the changed node content The configuration information, based on the flexibility of zookeeper, can flexibly configure the service interfaces of different application services belonging to different servers.

Description

technical field [0001] The present disclosure relates to the technical field of distributed servers, in particular to a zookeeper-based dynamic configuration method and device. Background technique [0002] When deploying services in a distributed manner, there is often such a requirement that certain services deployed on certain machines need to dynamically adjust parameters, such as log output, thresholds involved in the program, etc. Many existing methods will Modify the open configuration function of the web container corresponding to the program on each machine, such as java's JMX (Java Management Extensions, Java Management Extensions). In the JMX specification, the management component is defined as follows: it is a Java object that can represent management resources, complying with A certain design pattern also needs to implement a specific interface defined by the specification. This definition ensures that all management components represent managed resources in a...

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 Patents(China)
IPC IPC(8): H04L41/0803H04L41/0813H04L41/0816H04L67/10
CPCH04L41/0803H04L41/0813H04L41/0816H04L67/10
Inventor 张旭华
Owner BEIJING XIAOMI MOBILE SOFTWARE CO LTD