CN105591778A - Method and system for updating configuration file in distributed system - Google Patents

Method and system for updating configuration file in distributed system Download PDF

Info

Publication number
CN105591778A
CN105591778A CN201410572706.5A CN201410572706A CN105591778A CN 105591778 A CN105591778 A CN 105591778A CN 201410572706 A CN201410572706 A CN 201410572706A CN 105591778 A CN105591778 A CN 105591778A
Authority
CN
China
Prior art keywords
server
configuration file
distributed system
file
service
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
CN201410572706.5A
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.)
SHANGHAI TVMINING CULTURE MEDIA Co Ltd
Original Assignee
SHANGHAI TVMINING CULTURE MEDIA 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 SHANGHAI TVMINING CULTURE MEDIA Co Ltd filed Critical SHANGHAI TVMINING CULTURE MEDIA Co Ltd
Priority to CN201410572706.5A priority Critical patent/CN105591778A/en
Publication of CN105591778A publication Critical patent/CN105591778A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a system for updating a configuration file in a distributed system. The method comprises steps: a server in the distributed system monitors a work service process; the server detects updating information of the configuration file; and the server restarts the work service process, and an updating program for the configuration file is operated. The system comprises a principle controller and a server, wherein the principle controller comprises an information recording module for registering information of the server; and the server comprises a daemon module for monitoring the work service process and detecting the configuration file for the service program and restarting the work service process when the configuration file is found to be updated. By adopting the method and the system for updating the file in the distributed system, the time-consuming and labor consuming problem for updating the file configuration or the program for each server in the prior art can be solved.

Description

A kind of method and system of distributed system Reconfigurations file
Technical field
The present invention relates to field of computer technology, particularly the method for distributed system Reconfigurations file andSystem.
Background technology
Along with the develop rapidly of information industry, be no matter that traditional computer realm or emerging movement is interconnectedNet field, the system of distributed environment is more and more, and some distributed systems even have up to a hundred or thousands ofStation server node. In existing distributed system, upgrading service routine or upgrading certain configuration file needsSign in on certain concrete station server and operate, under more and more huger distributed system environment, for oftenThe configuration of station server transaction file or program waste time and energy.
Summary of the invention
The present invention is for solving in prior art as every station server transaction file configures or program wastes time and energyProblem, following technical scheme is provided:
A kind of method of distributed system Reconfigurations file: the server monitoring work clothes in distributed systemBusiness process; Server detects configuration file lastest imformation; Server is restarted described work service process, fortuneRow configuration file refresh routine. Further, this server can be monitored 8899 ports, receives control command.Main control computer in distributed system is registered user name and the login password of described server, main control computer configuration fileMore fresh content, service routine is upgraded in operation, and the service routine after upgrading is copied to the corresponding order of serverUnder record, the main control computer in distributed system sends program reset command to 8899 ports of described server.
A kind of distributed system, comprising: main control computer, comprise information recording module, and believe for registration serverBreath; Server, comprises finger daemon module, for monitoring work clothes business process, detects joining of service routinePut file, in the time finding that configuration file upgrades, restart described work service process.
A server in distributed system, comprising: finger daemon module, for monitoring work clothes be engaged in intoJourney, the configuration file of detection service routine, in the time finding that configuration file upgrades, restarts described work service and entersJourney. This finger daemon module is used for monitoring 8899 ports.
Update method, system and the server of distributed system file provided by the invention can be automatic by serverThe file configuration of restarting each server in the quick renewal distribution formula of the mode system of service routine, has reduced existingIn technology, upgrade input time, human cost for every station server configuration file.
Other features and advantages of the present invention will be set forth in the following description, and, partly from explanationIn book, become apparent, or understand by implementing the present invention. Object of the present invention and other advantages canRealize and obtain by specifically noted structure in write description, claims and accompanying drawing.
Below by drawings and Examples, technical scheme of the present invention is described in further detail.
Brief description of the drawings
Accompanying drawing is used to provide a further understanding of the present invention, and forms a part for description, with thisBright embodiment mono-is used from explanation the present invention, is not construed as limiting the invention. In the accompanying drawings:
Fig. 1 is the method flow diagram of distributed system Reconfigurations file in the embodiment of the present invention one.
Fig. 2 is the structural representation of distributed system in the embodiment of the present invention two.
Fig. 3 is modular structure schematic diagram in the embodiment of the present invention three.
Detailed description of the invention
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described, should be appreciated that described hereinPreferred embodiment only, for description and interpretation the present invention, is not intended to limit the present invention.
A kind of method of embodiment mono-, distributed system Reconfigurations file
As shown in Figure 1, embodiment mono-comprises:
Step 101, the server monitoring work service process in distributed system;
Particularly, the distributed server in distributed system of the present invention or title server cluster comprise finger daemon mouldPiece, for the ruuning situation of monitoring work clothes business process;
Step 102, server detects configuration file lastest imformation;
Particularly, this step comprises that finger daemon module in server detects the configuration file of service routineBe modified or upgrade;
Step 103, server is restarted work service process;
Particularly, this step comprises server autoboot work service immediately process, to configuration file or journeyOrder is upgraded, and while restarting, service routine can load new configuration file.
Preferably, this main control computer arranges renewal service routine, for example, according to the renewal clothes of linux script editBusiness program, the program of any one server in the renewable distributed server of this program, or certain configuration literary compositionPart, further, main control computer this configuration file telecopy to the corresponding order that will upgrade this station serverUnder record, at this moment the demons of this distributed server can detect the renewal of configuration file, restart clothesBusiness process.
Preferably, this finger daemon module also can be monitored 8899 ports, for receiving distributed systemThe control command that main control computer sends.
Comprehensive above step, embodiment mono-can be applied in following concrete scene: on main control computer, moveUpgrade service routine, for example, call scp order, new program is copied in the respective directories of server,Send then to 8899 ports of this server " restart+[process name] " order, this serviceFinger daemon module detects the order of 8899 ports, restarts service routine.
The embodiment of the present invention one is applied in Distributed Services management, can upgrade fast or configure all clothesResource or program in business device.
Embodiment bis-, a kind of distributed system
As shown in Figure 2, comprising:
Main control computer 21, comprises information recording module 211, for registration server information;
Server 22, comprises finger daemon module 221, for monitoring work clothes business process, detects service journeyThe configuration file of order, in the time finding that configuration file upgrades, restarts described work service process.
Preferably, this distributed system can be applied in following concrete scene: on main control computer, operation moreNew service routine, for example, call scp order, new program copied in the respective directories of server, soSend " restart+[process name] " order to afterwards 8899 ports of this server, the keeping of this serviceThe process module of protecting detects the order of 8899 ports, restarts service routine.
Server in embodiment tri-, a kind of distributed system
As shown in Figure 3, this server 31 comprises, finger daemon module 311, for monitoring work clothes be engaged in intoJourney, the configuration file of detection service routine, in the time finding that configuration file upgrades, restarts described work service and entersJourney.
Preferably, this distributed server can be applied in following concrete scene: distributed systemOn main control computer, service routine is upgraded in operation, for example, call scp order, and new program is copied to serverIn respective directories, send then to 8899 ports of this server " restart+[process name] " order,The finger daemon module of this service detects the order of 8899 ports, restarts service routine.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or meterCalculation machine program product. Therefore, the present invention can adopt complete hardware implementation example, completely implement software example or knotClose the form of the embodiment of software and hardware aspect. And the present invention can adopt at one or more wherein bagsThe computer-usable storage medium that contains computer usable program code (include but not limited to magnetic disc store andOptical memory etc.) form of the upper computer program of implementing.
The present invention is that reference is according to the method for the embodiment of the present invention, equipment (system) and computer program productThe flow chart of product and/or block diagram are described. Should understand can be by computer program instructions realization flow figure and/ or block diagram in each flow process and/or flow process in square frame and flow chart and/or block diagram and/Or the combination of square frame. Can provide these computer program instructions to all-purpose computer, special-purpose computer, embeddingThe processor of formula processor or other programmable data processing device, to produce a machine, makes by calculatingThe instruction that the processor of machine or other programmable data processing device is carried out produces for realizing at flow chart oneThe device of the function of specifying in square frame of individual flow process or multiple flow process and/or block diagram or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or other programmable data processing are establishedIn the standby computer-readable memory with ad hoc fashion work, make to be stored in this computer-readable memoryInstruction produce and comprise the manufacture of command device, this command device is realized in flow process or multiple of flow chartThe function of specifying in square frame of flow process and/or block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makeMust on computer or other programmable devices, carry out sequence of operations step to produce computer implemented placeReason, thus the instruction of carrying out on computer or other programmable devices is provided for realizing one of flow chartThe step of the function of specifying in square frame of flow process or multiple flow process and/or block diagram or multiple square frame.
Obviously, those skilled in the art can carry out various changes and modification and not depart from this present inventionBright spirit and scope. Like this, if of the present invention these amendment and modification belong to the claims in the present invention andWithin the scope of its equivalent technologies, the present invention be also intended to comprise these change and modification interior.

Claims (8)

1. a method for distributed system Reconfigurations file, is characterized in that, comprising:
Server monitoring work service process in described distributed system;
Described server detects configuration file lastest imformation;
Described server is restarted described work service process, running configuration file refresh routine.
2. method according to claim 1, is characterized in that, comprising:
Described server is monitored 8899 ports, receives control command.
3. method according to claim 1, is characterized in that, comprising:
Main control computer in described distributed system is registered user name and the login password of described server.
4. method according to claim 1, is characterized in that, comprises, main control computer configuration file moreFresh content, service routine is upgraded in operation, and the service routine after upgrading is copied to the respective directories of serverUnder.
5. method according to claim 4, is characterized in that, comprising:
Main control computer in described distributed system sends program reset command to 8899 ports of described server.
6. a distributed system, is characterized in that, comprising:
Main control computer, comprises information recording module, for registration server information;
Server, comprises finger daemon module, for monitoring work clothes business process, detects joining of service routinePut file, in the time finding that configuration file upgrades, restart described work service process.
7. the server in distributed system, is characterized in that, comprising:
Finger daemon module, for monitoring work clothes business process, detects the configuration file of service routine, when sending outWhen existing configuration file upgrades, restart described work service process.
8. server according to claim 7, is characterized in that, described finger daemon module is used forMonitor 8899 ports.
CN201410572706.5A 2014-10-23 2014-10-23 Method and system for updating configuration file in distributed system Pending CN105591778A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410572706.5A CN105591778A (en) 2014-10-23 2014-10-23 Method and system for updating configuration file in distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410572706.5A CN105591778A (en) 2014-10-23 2014-10-23 Method and system for updating configuration file in distributed system

Publications (1)

Publication Number Publication Date
CN105591778A true CN105591778A (en) 2016-05-18

Family

ID=55931043

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410572706.5A Pending CN105591778A (en) 2014-10-23 2014-10-23 Method and system for updating configuration file in distributed system

Country Status (1)

Country Link
CN (1) CN105591778A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871649A (en) * 2016-06-21 2016-08-17 上海帝联信息科技股份有限公司 Node server, service side and configuration file updating method thereof and updating control method
CN106789191A (en) * 2016-12-06 2017-05-31 微梦创科网络科技(中国)有限公司 A kind of automatic method for restarting of distributed deployment service processes and device
CN107104970A (en) * 2017-04-27 2017-08-29 努比亚技术有限公司 A kind of regular and synchronized processing method, system, rule server and gray scale server
CN109656610A (en) * 2018-12-12 2019-04-19 北京像素软件科技股份有限公司 The hot update method of online game distributed data and device
CN110347654A (en) * 2018-03-23 2019-10-18 北京京东尚科信息技术有限公司 A kind of method and apparatus of online cluster features
CN110750277A (en) * 2019-09-09 2020-02-04 无锡江南计算技术研究所 Updating method and system of distributed maintenance system
CN113138787A (en) * 2021-04-28 2021-07-20 中消云(北京)物联网科技研究院有限公司 Program updating method and device
CN113778514A (en) * 2021-09-17 2021-12-10 平安科技(深圳)有限公司 Program maintenance method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1517863A (en) * 2003-01-15 2004-08-04 联想(北京)有限公司 Automatic upgrading method for diskfree working station
CN1968283A (en) * 2006-05-12 2007-05-23 华为技术有限公司 Network management system and method
CN102455925A (en) * 2010-11-02 2012-05-16 金蝶软件(中国)有限公司 Method, device and terminal for software automatic deployment
CN103051469A (en) * 2012-09-13 2013-04-17 曙光信息产业(北京)有限公司 Centralized configuration management method under cloud environment
CN103164236A (en) * 2011-12-16 2013-06-19 深圳市腾讯计算机系统有限公司 Method and system of online update of remote server

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1517863A (en) * 2003-01-15 2004-08-04 联想(北京)有限公司 Automatic upgrading method for diskfree working station
CN1968283A (en) * 2006-05-12 2007-05-23 华为技术有限公司 Network management system and method
CN102455925A (en) * 2010-11-02 2012-05-16 金蝶软件(中国)有限公司 Method, device and terminal for software automatic deployment
CN103164236A (en) * 2011-12-16 2013-06-19 深圳市腾讯计算机系统有限公司 Method and system of online update of remote server
CN103051469A (en) * 2012-09-13 2013-04-17 曙光信息产业(北京)有限公司 Centralized configuration management method under cloud environment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871649A (en) * 2016-06-21 2016-08-17 上海帝联信息科技股份有限公司 Node server, service side and configuration file updating method thereof and updating control method
CN106789191A (en) * 2016-12-06 2017-05-31 微梦创科网络科技(中国)有限公司 A kind of automatic method for restarting of distributed deployment service processes and device
CN107104970A (en) * 2017-04-27 2017-08-29 努比亚技术有限公司 A kind of regular and synchronized processing method, system, rule server and gray scale server
CN110347654A (en) * 2018-03-23 2019-10-18 北京京东尚科信息技术有限公司 A kind of method and apparatus of online cluster features
CN109656610A (en) * 2018-12-12 2019-04-19 北京像素软件科技股份有限公司 The hot update method of online game distributed data and device
CN109656610B (en) * 2018-12-12 2022-03-15 北京像素软件科技股份有限公司 Distributed data hot updating method and device for online game
CN110750277A (en) * 2019-09-09 2020-02-04 无锡江南计算技术研究所 Updating method and system of distributed maintenance system
CN110750277B (en) * 2019-09-09 2022-11-15 无锡江南计算技术研究所 Updating method and system of distributed maintenance system
CN113138787A (en) * 2021-04-28 2021-07-20 中消云(北京)物联网科技研究院有限公司 Program updating method and device
CN113778514A (en) * 2021-09-17 2021-12-10 平安科技(深圳)有限公司 Program maintenance method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105591778A (en) Method and system for updating configuration file in distributed system
US20220179682A1 (en) Task processing method, apparatus, and system based on distributed system
CN104885055A (en) Method and device for application data synchronization
CN107018022B (en) Software upgrading processing method and device and terminal
CN103458086B (en) A kind of smart mobile phone and fault detection method thereof
CN101387957B (en) Multi-path software implementing apparatus and method
CN104115447A (en) Allowing destroy scheme configuration method and device under cloud computing architecture
CN104137482A (en) Disaster recovery data center configuration method and device under cloud computing framework
CN107632937B (en) Method and device for testing virtual machine cluster and readable storage medium
CN103036855B (en) A kind of equipment that realizes of rights management and method
US20190045360A1 (en) Flexible remote server validation
CN103500191A (en) Flow table configuration, query and table item deleting method and device
CN104113576A (en) Method and device for updating client
CN105704188A (en) Deployment method and apparatus of applications and services
CN103077034B (en) hybrid virtualization platform JAVA application migration method and system
CN103324582A (en) Memory migration method, memory migration device and equipment
CN105095103A (en) Storage device management method and device used for cloud environment
CN104216751A (en) Loading method and system of functional unit interface resource of application program
CN105117272A (en) Operating system manager, virtual machine and switching method between operating systems
CN104536805A (en) Resource providing system and method of virtualization platform
CN104517067A (en) Method, device and system for data access
CN103701653A (en) Processing method for interface hot plugging and unplugging configuration data and network configuration server
CN105592114A (en) Application software issuing method in virtual desktop environment
CN103984621B (en) log separation method and system
EP3639138B1 (en) Action undo service based on cloud platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160518

RJ01 Rejection of invention patent application after publication