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

Information configuration method and device based on zookeeper

A technology for information configuration and configuration information, applied in the computer field, can solve the problems of the large load of the zookeeper server and affect the processing performance of the zookeeper server, and achieve the effect of reducing the load

Active Publication Date: 2017-02-01
BEIJING QIHOO TECH CO LTD +1
View PDF4 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Since hundreds of servers often serve together in practical applications, each server usually runs at least hundreds of processes. For example, if 100 servers provide services together, and each server runs 200 processes, each server Each process of each process establishes a long connection with the zookeeper server, and a total of 20,000 connections need to be established. It can be seen that this configuration method brings a large load to the zookeeper server and seriously affects the processing performance of the zookeeper server.

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
  • Information configuration method and device based on zookeeper
  • Information configuration method and device based on zookeeper
  • Information configuration method and device based on zookeeper

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] In order to enable those skilled in the art to better understand the solution of the present invention, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings and implementation manners.

[0051] see figure 1 ,show figure 1 It is a schematic flow chart of Embodiment 1 of a zookeeper-based information configuration method according to an embodiment of the present invention, and the method includes:

[0052] Step 101, start a process to occupy an inter-process lock, establish a long connection between the process and the zookeeper server, and monitor all configuration information in the local disk through the process.

[0053] A process is the basis of the operating system structure and is an executing program. When any process in the server starts to run, it needs to read the configuration information first, and then process the program flow according to the configuration.

[0054] In the embodim...

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 an information configuration method and device based on a zookeeper. The method comprises the following steps: starting up a progress to occupy an inter-process lock and establishing long connection between the progress and a zookeeper server; monitoring all configuration information in a local disk through the progress; and acquiring corresponding information configuration from the zookeeper server by the progress according to a received updating and configuration information notice and updating into the local disk, so as to enable a progress for reading configuration information to only look up the corresponding configuration information from the local disk. With the adoption of the information configuration method and device based on the zookeeper, the load of the zookeeper server can be reduced.

Description

[0001] The patent application of the present invention is a divisional application of the Chinese invention patent application with the filing date of October 11, 2013, the application number of 201310472913.9, and the title of "a zookeeper-based information configuration method and device". technical field [0002] The invention relates to the field of computer technology, in particular to a zookeeper-based information configuration method and device. Background technique [0003] With the continuous development of computer technology, distributed systems are usually used in network applications, and multiple servers are used to provide services together. Each server has hundreds of processes. The process configuration of these servers is usually the same. When a certain When the process configuration needs to be modified, the process configuration in all servers must be modified. [0004] At present, zookeeper is often used to centrally manage all process configuration inf...

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/52
CPCG06F9/526
Inventor 冯所范王超朱超
Owner BEIJING QIHOO TECH CO LTD