CN107733715A - The management system and method for configuration information in a kind of distributed system - Google Patents

The management system and method for configuration information in a kind of distributed system Download PDF

Info

Publication number
CN107733715A
CN107733715A CN201711017294.9A CN201711017294A CN107733715A CN 107733715 A CN107733715 A CN 107733715A CN 201711017294 A CN201711017294 A CN 201711017294A CN 107733715 A CN107733715 A CN 107733715A
Authority
CN
China
Prior art keywords
configuration information
modules
server
zookeeper cluster
distributed system
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
CN201711017294.9A
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.)
Suzhou Snail Digital Technology Co Ltd
Original Assignee
Suzhou Snail Digital Technology 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 Suzhou Snail Digital Technology Co Ltd filed Critical Suzhou Snail Digital Technology Co Ltd
Priority to CN201711017294.9A priority Critical patent/CN107733715A/en
Publication of CN107733715A publication Critical patent/CN107733715A/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/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0253Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using browsers or web-pages for accessing management information
    • 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/0843Configuration by using pre-existing information, e.g. using templates or copying from other elements based on generic templates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses the management system and method for configuration information in a kind of distributed system, wherein management system includes:Multiple servers;ZooKeeper cluster modules are accessed, from ZooKeeper cluster module download configuration information;Web modules;For operating the configuration information of server, wherein operation includes creating, checks and change, and the configuration information after aforesaid operations is sent to database module and business module;Database module;Business module;The configuration information that the Web modules are sent is received, configuration information is pushed to ZooKeeper cluster modules and receives the operating result of ZooKeeper cluster modules;The operating result of ZooKeeper cluster modules is fed back to web modules and database module;ZooKeeper cluster modules;Storage will be applied to the current configuration information of the configuration information and distributed system in distributed system;The configuration information that needs are updated is sent to server;The latest configuration information of push server is to business module.The present invention improves the management and control ability of configuration information by a unified web module.

Description

The management system and method for configuration information in a kind of distributed system
Technical field
The present invention relates to the management system and management method of a kind of information management technique, specifically configuration information.
Background technology
In current distributed system, a system is generally by hundreds server group into managing this large amount of server Configuration information is a very difficult thing, and workload is big, cumbersome and easy error;Generally, distributed system can use ZooKeeper cluster modules carry out management coordination server, but are directed to configuration information, and ZooKeeper cluster modules only can serve as Simple storage;We are generally more desirable to can be to configuration information progress management, and so, our cans change any one clothes Any one configuration information of business device.It would therefore be desirable to a kind of can be in the method for the managing configuration information of convenience and high-efficiency.
The content of the invention
The technical problems to be solved by the invention are to be directed to above-mentioned the deficiencies in the prior art, and one kind is provided can be convenient By the configuration information centralized management of server, the configuration information management system and method for batch updating.
In order to solve the above technical problems, the technical solution adopted by the present invention is:
The management system of configuration information in a kind of distributed system, including:
Multiple servers;ZooKeeper cluster modules are accessed, from ZooKeeper cluster module download configuration information;
Web modules, for operating the configuration information of server, wherein operation includes establishment, checks and change, and by aforesaid operations Configuration information afterwards is sent to database module and business module;
Database module, the configuration information for storing the server;
Business module, the configuration information that the Web modules are sent is received, configuration information is pushed to ZooKeeper cluster modules And receive the operating result of ZooKeeper cluster modules;The operating result of ZooKeeper cluster modules is fed back to web modules And database module;
ZooKeeper cluster modules, storage will be applied to the current of configuration information in distributed system and distributed system Configuration information;The configuration information that needs are updated is sent to server;The latest configuration information of push server is to business module.
The Web modules provide operation interface, operation interface are provided for user, for checking and changing current distribution The configuration information of system.
The Web modules provide configuration and check interface, and user checks that part or all of clothes are seen at interface by the configuration The configuration information of business device.
The Web modules provide configuration and create interface, and user creates interface batch by the configuration and creates more services The configuration of device.
After the ZooKeeper cluster modules receive the configuration information of business module push, it is configuration information packet making Need to update, then send update notification to the server in distributed system.
After the server receives the notice that the ZooKeeper cluster modules are sent, go under ZooKeeper cluster modules It is downloaded from oneself configuration information.
The management method of configuration information in a kind of distributed system, it is characterised in that including:
Configuration information generation step:The configuration information of respective server is checked, creates or changed by Web modules;
Configuration information preserves step:Preserve the configuration information of above-mentioned configuration information generation step generation;
Configuration information pushes step:The configuration information that above-mentioned configuration information generation step generates is pushed to ZooKeeper clusters Module;
Configuration information distributing step:The configuration information that above-mentioned configuration information push step receives is sent to corresponding server;
Configuration information update step:Server receives the configuration information of the configuration information distributing step distribution and renewal.
In the configuration information distributing step, ZooKeeper cluster modules push update notification to server.
In the configuration information update step, after server receives the notice of ZooKeeper cluster modules push, voluntarily determine Fixed when to update configuration, server can select to update configuration information at once or postpone till to restart next time.
Compared with prior art, the invention has the advantages that:Prior art requires that keeper remotely logs on to often One server goes to change configuration information, and the present invention can manage whole servers by a unified web system Whole configuration informations, establishment and renewal to configuration information can be completed by web system, improve the management and control of configuration information Ability.
Brief description of the drawings
Fig. 1 is the structured flowchart of the present invention.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real Applying mode, the present invention is further detailed explanation.
Embodiment one
As shown in Fig. 1, the invention provides the configuration information management system in a set of distributed system, lines table with the arrow Show communication link.The core component that this system includes is as follows:
Web modules:Web modules provide operation interface, are write, are operated in web server using PHP, behaviour is provided for user Make interface, for checking and changing the configuration information of current system;User can see whole servers by this system Configuration information.Web modules provide configuration and check interface, and user matches somebody with somebody confidence by what this interface can see whole servers Breath.Web modules provide the interface for creating configuration, and by this interface, user can create the configuration of multiple servers in batches, match somebody with somebody After putting establishment, Web modules can be saved in configuration information in database, then be pushed to business module again.Web modules carry For updating configuration interface, user changes the existing configuration information of server in this page, after modification, Web module meetings Configuration information is saved in database, is then pushed to business module.
Business module:Business module is responsible for handling the operation from Web modules.After Web modules push renewal operation, industry Operation is pushed to ZooKeeper cluster modules and receives the operating result of ZooKeeper cluster modules by business module, then knot Fruit feeds back to Web modules and database.The latest configuration information of ZooKeeper cluster modules meeting push server gives business mould This information is saved in database and notifies Web modules by block, business module.
Database module:Database module is used for the current configuration information of storage system and the configuration information that will be updated.
Cluster module:As the terminal of configuration information, storage will be applied to configuration information in distributed system and The current configuration information of distributed system.After ZooKeeper cluster modules receive the configuration information of business module push, configuration Then packet sends update notification to the server in distributed system labeled as needing to update, after server is notified, ZooKeeper cluster modules are gone to download the configuration information of oneself.After server update complete configuration information, can oneself is current Configuration information is uploaded in ZooKeeper cluster modules, and ZooKeeper cluster modules and then notice business module system update enter Degree is currently configured with server.
The implementation of distributed system is completed by following step:
ZooKeeper cluster modules are installed in a distributed system first, the Servers-all in system is required for accessing ZooKeeper cluster modules;Then business module is disposed, business module is write using C++, is deployed in CentOS 6.8, right Outside service is provided by Transmission Control Protocol;Then Web modules are disposed and database, Web modules is write using PHP, use Nginx 1.8.1 Web server is used as, is deployed in the systems of CentOS 6.8, database module uses Mysql, is deployed in identical Server in.
The general occupation mode of distributed system is that user have modified phase by the Web page of browser access system After the configuration information for answering server, modification information is pushed to business module by Web modules, and data are saved in data by business module Storehouse, and it is pushed to ZooKeeper cluster modules;ZooKeeper cluster modules can push update notification to server, server After notified, decide in its sole discretion and when update configuration, server can be selected to update configuration information at once or postponed till next It is secondary to restart.

Claims (9)

1. the management system of configuration information in a kind of distributed system, including:
Multiple servers;ZooKeeper cluster modules are accessed, from ZooKeeper cluster module download configuration information;
Web modules;For operating the configuration information of server, wherein operation includes establishment, checks and change, and by aforesaid operations Configuration information afterwards is sent to database module and business module;
Database module;For storing the configuration information of the server;
Business module;The configuration information that the Web modules are sent is received, configuration information is pushed to ZooKeeper cluster modules And receive the operating result of ZooKeeper cluster modules;The operating result of ZooKeeper cluster modules is fed back to web modules And database module;
ZooKeeper cluster modules;Storage will be applied to the current of configuration information in distributed system and distributed system Configuration information;The configuration information that needs are updated is sent to server;The latest configuration information of push server is to business module.
2. the management system of configuration information in a kind of distributed system according to claim 1, it is characterised in that:It is described Web modules provide operation interface, and operation interface is provided for user, match somebody with somebody confidence for check and change current distributed system Breath.
3. the management system of configuration information in a kind of distributed system according to claim 1, it is characterised in that:It is described Web modules provide configuration and check interface, and user checks that what interface saw part or all of server matches somebody with somebody confidence by the configuration Breath.
4. the management system of configuration information in a kind of distributed system according to claim 1, it is characterised in that:It is described Web modules provide configuration and create interface, and user creates the configuration of multiple servers by configuration establishment interface batch.
5. according to the management system of configuration information in a kind of any described distributed systems of claim 1-4, it is characterised in that: After the ZooKeeper cluster modules receive the configuration information of business module push, configuration information packet making to need to update, Then update notification is sent to the server in distributed system.
6. the management system of configuration information in a kind of distributed system according to claim 5, it is characterised in that:The clothes After business device receives the notice that the ZooKeeper cluster modules are sent, go what ZooKeeper cluster modules downloaded oneself to match somebody with somebody confidence Breath.
A kind of 7. management method of configuration information in distributed system, it is characterised in that including:
Configuration information generation step:The configuration information of respective server is checked, creates or changed by Web modules;
Configuration information preserves step:Preserve the configuration information of above-mentioned configuration information generation step generation;
Configuration information pushes step:The configuration information that above-mentioned configuration information generation step generates is pushed to ZooKeeper clusters Module;
Configuration information distributing step:The configuration information that above-mentioned configuration information push step receives is sent to corresponding server;
Configuration information update step:Server receives the configuration information of the configuration information distributing step distribution and renewal.
8. management method according to claim 7, it is characterised in that in the configuration information distributing step, ZooKeeper Cluster module pushes update notification to server.
9. management method according to claim 8, it is characterised in that in the configuration information update step, server is received To after the notice of ZooKeeper cluster modules push, decide in its sole discretion and when update configuration, confidence is matched somebody with somebody in renewal at once for server selection Cease or postpone till and restart next time.
CN201711017294.9A 2017-10-26 2017-10-26 The management system and method for configuration information in a kind of distributed system Pending CN107733715A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711017294.9A CN107733715A (en) 2017-10-26 2017-10-26 The management system and method for configuration information in a kind of distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711017294.9A CN107733715A (en) 2017-10-26 2017-10-26 The management system and method for configuration information in a kind of distributed system

Publications (1)

Publication Number Publication Date
CN107733715A true CN107733715A (en) 2018-02-23

Family

ID=61213900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711017294.9A Pending CN107733715A (en) 2017-10-26 2017-10-26 The management system and method for configuration information in a kind of distributed system

Country Status (1)

Country Link
CN (1) CN107733715A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989396A (en) * 2018-06-26 2018-12-11 成都晶博电气科技有限公司 A kind of supervisory layers, monitoring system and monitoring system control method
CN112363777A (en) * 2020-11-16 2021-02-12 中国电力财务有限公司 System cluster configuration method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092718A (en) * 2013-12-12 2014-10-08 腾讯数码(天津)有限公司 Distributed system and configuration information updating method in distributed system
CN105610987A (en) * 2016-03-18 2016-05-25 车智互联(北京)科技有限公司 Method, application and system for managing server cluster
CN105677404A (en) * 2015-12-31 2016-06-15 拉扎斯网络科技(上海)有限公司 Zookeeper-based configuration updating method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092718A (en) * 2013-12-12 2014-10-08 腾讯数码(天津)有限公司 Distributed system and configuration information updating method in distributed system
CN105677404A (en) * 2015-12-31 2016-06-15 拉扎斯网络科技(上海)有限公司 Zookeeper-based configuration updating method and device
CN105610987A (en) * 2016-03-18 2016-05-25 车智互联(北京)科技有限公司 Method, application and system for managing server cluster

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989396A (en) * 2018-06-26 2018-12-11 成都晶博电气科技有限公司 A kind of supervisory layers, monitoring system and monitoring system control method
CN112363777A (en) * 2020-11-16 2021-02-12 中国电力财务有限公司 System cluster configuration method and system

Similar Documents

Publication Publication Date Title
CN107766132B (en) Multi-task scheduling method, application server and computer readable storage medium
CN107172187B (en) A kind of SiteServer LBS and method
CN110351342A (en) Service order processing method, device, computer equipment and storage medium
US7809679B2 (en) Distributed data access methods and apparatus for process control systems
CN108574702A (en) A kind of cloud application dispositions method and system
CN103780627A (en) Native APP, Web APP and Wechat-similar APP information synchronization system
EP2429120A1 (en) Distributed network management system, network element management server, and data configuration management method
CN104036429A (en) Intelligent transformer station configuration file standardized management system and file verification method
CN107689982A (en) Multi-data source method of data synchronization, application server and computer-readable recording medium
CN104967650A (en) Third-party e-commerce platform unified releasing method
CN101406060A (en) Time-delay video downloading service by using P2P content distribution network
CN104852971B (en) Plug-in protocol device and data communication method based on plug-in protocol
CN109144559A (en) A kind of method for pushing and server of updated data package
CN107547606A (en) Data processing method, cluster manager dual system, explorer, data handling system
CN111967789B (en) Distribution automation terminal warehouse debugging system of transferring
CN110795147A (en) Interface protocol file management method and device
CN103036775A (en) Information exchange device, system and method
CN105099772A (en) Method and system for upgrading energy efficiency service cloud terminal
CN107733715A (en) The management system and method for configuration information in a kind of distributed system
CN109871498A (en) Back end interface response method, device, electronic equipment and storage medium
CN111460038A (en) Quasi-real-time data synchronization method and device
CN103139311A (en) System, device and method of file sharing
CN106888264B (en) A kind of method for interchanging data and device
CN110737670B (en) Method, device and system for guaranteeing consistency of cluster data
CN103685485B (en) Mobile terminal VoIP (voice over internet protocol) communication audio management system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180223

RJ01 Rejection of invention patent application after publication