CN104104701A - Online service configuration updating method and system - Google Patents

Online service configuration updating method and system Download PDF

Info

Publication number
CN104104701A
CN104104701A CN201310119449.5A CN201310119449A CN104104701A CN 104104701 A CN104104701 A CN 104104701A CN 201310119449 A CN201310119449 A CN 201310119449A CN 104104701 A CN104104701 A CN 104104701A
Authority
CN
China
Prior art keywords
server
configuration
online service
configuration information
config update
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
CN201310119449.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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310119449.5A priority Critical patent/CN104104701A/en
Publication of CN104104701A publication Critical patent/CN104104701A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an online service configuration updating method and a system, and belongs to the technical field of internet. The method comprises steps: after online service configuration updating operation is triggered, a configuration server acquires to-be-configured information, and a configuration updating command is sent to the online service server; after the online service server receives the configuration updating command, a local configuration updating module is called; and the configuration updating module updates the configuration of the online service server according to the to-be-configured information. The online service is updated through the configuration updating module, the online service does not need to be restarted, the configuration updating time of online service can be shortened, and online service availability is improved.

Description

The method and system of the config update of online service
Technical field
The present invention relates to Internet technical field, particularly a kind of method and system of config update of online service.
Background technology
In the Internet, have a kind of online service, refer to the Internet service of operation on line, per second when this service online have ten hundreds of users to initiate request to this service.The information such as path and threshold value of this service routine in the time that when operation need to load a series of parameter and decides program operation, these parameters are exactly the configuration of online service, and changeable and fast-developing due to Internet service, the Modification Frequency configuring in this service routine is also very high.Be the problem that needs solution so how to realize the config update of online service, wherein, the config update of online service just refers to parameter and threshold value etc. corresponding in the configuration that is adjusted at line service.
A kind of method of config update of online service is provided in prior art, in the time that online service needs Reconfigurations, the value of corresponding configuration item in configuration is replaced with to new value, then restart online service, corresponding configuration item in online service is replaced by the new value in amended configuration file, thereby has realized the config update to online service.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem:
Online service has taken the most of the time of config update in the process of restarting, if and user sends request of data to online service in restarting process, can not obtain the response of online service, only have online service to restart and just can reuse afterwards, so just affect the availability of online service.So how to reduce the time of Reconfigurations file in online service, be the problem that needs solution to improve the availability of online service.
Summary of the invention
In order to shorten the config update time of online service, the embodiment of the present invention provides a kind of method and system of config update of online service.Described technical scheme is as follows:
On the one hand, provide a kind of method of config update of online service, described method comprises:
After the config update operation of online service is triggered, configuration server obtains wish configuration information, and sends config update order to the server of online service, and described config update order comprises described wish configuration information;
The server of described online service is receiving after described config update order, calls local config update module;
Described config update module, receiving after the calling of described server, responds described config update order, according to the configuration in the server of online service described in described wish configuration information update.
On the other hand, provide a kind of system of config update of online service, described system comprises: the server of configuration server and online service, and wherein, the server of described online service comprises config update module;
Described configuration server, after being triggered, obtaining wish configuration information, and sends config update order to the server of described online service for the config update operation when online service, and described config update order comprises described wish configuration information;
The server of described online service, for receiving after described config update order, calls described config update module;
Described config update module, for receiving after the calling of described server, responds described config update order, according to the configuration in the server of online service described in described wish configuration information update.
The beneficial effect that the technical scheme providing in the embodiment of the present invention is brought is: after config update operation is triggered, configuration server obtains wish configuration information, and send config update order to the server of online service, the server of described online service receives after described config update order, call local config update module, make described config update module according to the configuration in the server of online service described in described wish configuration information update.Wherein do not need to restart online service and just can realize the renewal of configuration, shortened the config update time of online service, improved the availability of online service.
Brief description of the drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the scene schematic diagram of the online service that provides in the embodiment of the present invention;
Fig. 2 is the method flow diagram of the config update of a kind of online service of providing in the embodiment of the present invention one;
Fig. 3 is the method flow diagram of the config update of a kind of online service of providing in the embodiment of the present invention two;
Fig. 4 is the schematic diagram of the system of the config update of a kind of online service of providing in the embodiment of the present invention three;
Fig. 5 is the schematic diagram of the system of the config update of the another kind of online service that provides in the embodiment of the present invention three.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Online service refers to the Internet service of operation on line, and per second when service online have ten hundreds of users to initiate request to this service.The application scenarios of online service as shown in Figure 1, this online service is a kind of chat software, multiple users use this chat software simultaneously, send request to the server of chat software simultaneously, and the server of chat software forwards these users' information or store simultaneously.
Embodiment mono-
Referring to Fig. 2, a kind of method of configuration information update of online service is provided in the present embodiment, comprising:
101, after the config update operation of online service is triggered, configuration server obtains wish configuration information, and sends config update order to the server of described online service, and described config update order comprises described wish configuration information;
102, the server of described online service is receiving after described config update order, calls local config update module;
103, described config update module, receiving after the calling of described server, responds described config update order, according to the configuration in the server of online service described in described wish configuration information update.
Wherein, some parameters and threshold value etc. when configuration refers to online service operation, form by configuration file exists, when starting, online service reads in, changeable and fast-developing due to Internet service, in online service, the renewal frequency of configuration information is also very high, and config update just refers to adjusts parameter and threshold value etc. corresponding in configuration.Want configuration information and refer to the information that online service need to be upgraded.
In another embodiment, described configuration server obtains wish configuration information, comprising:
Configuration server obtains the configuration item and renewal value corresponding to described configuration item that need renewal;
Described configuration server is replaced described original value corresponding to configuration item that needs renewal by described renewal value, obtains wanting configuration information.
In another embodiment, described configuration server also comprises before sending config update order to the server of online service:
Described configuration server checks that whether described wish configuration information is legal, if so, continues to carry out the step that sends config update order to the server of online service.
In another embodiment, described configuration server checks that whether described wish configuration information is legal, comprising:
Judge that described wish establishes the attribute information of configuration information and whether match with preset value, if, confirm that described wish configuration information is legal, wherein, want preconfigured information attribute information comprise: the configuration item number of the file format of described wish configuration information and/or described wish configuration information.
In another embodiment, described method also comprises:
In the time that described wish configuration information is illegal, described configuration server returns to carry out and obtains the step of wanting configuration information.
In another embodiment, described config update module, according to after the configuration in the server of online service described in described wish configuration information update, also comprises:
The server of detection module in described server after to described Reconfigurations tested;
After the server after described Reconfigurations is by described test, the server after described Reconfigurations continues to provide described online service.
The beneficial effect of the present embodiment is: after config update operation is triggered, configuration server obtains wish configuration information, and send config update order to the server of online service, the server of described online service receives after described config update order, call local config update module, make described config update module according to the configuration in the server of online service described in described wish configuration information update.Wherein do not need to restart online service and just can realize the renewal of configuration, shortened the config update time of online service, improved the availability of online service.
Embodiment bis-
A kind of method of config update of online service is provided in the embodiment of the present invention, do not need to restart online service and realize the config update of online service, control online service Reconfigurations file by the mode of real-time network instruction, thereby shortened the time of online service config update.Referring to Fig. 3, method flow comprises:
201, configuration server receiving system keeper's trigger action, starts the config update operation of online service.
In the present embodiment, system manager includes but not limited to: the people that configuration file is managed or program, and in this present embodiment and be not specifically limited.System manager manages configuration file, in the time having new configuration information, starts config update operation.
202, configuration server obtains wish configuration information.
In this step, after the config update operation of configuration server is activated, configuration server obtains wish configuration information, comprising: configuration server obtains configuration item and renewal value corresponding to described configuration item that needs upgrade; Described configuration server is replaced described original value corresponding to configuration item that needs renewal by described renewal value, obtains wanting configuration information.Wherein, in the time that system manager initiates config update operation, the configuration item of needs amendment and the renewal value of its correspondence are informed to configuration server, configuration server replaces by renewal value original value that this configuration item is corresponding simultaneously.Original value is exactly the value before the not renewal that this configuration item is corresponding, and wanting configuration information is the configuration file after upgrading.
203, configuration server checks that whether described wish configuration information is legal, if so, performs step 204, otherwise, return to step 202.
In the present embodiment, want after configuration information when getting, in order to ensure the availability of online service, first check the legitimacy of wanting configuration information, after validity checking is passed through, continue again to carry out config update flow process, if legitimacy is not passed through, alternatively, can return to step 202 and re-execute to obtain and want the flow process of configuration information, or stop config update flow process, in this present embodiment and be not specifically limited.
Wherein, configuration server checks that whether described wish configuration information is legal, comprise: judge that described wish establishes the attribute information of configuration information and whether match with preset value, if, confirm that described wish configuration information is legal, wherein, the attribute information of wanting preconfigured information includes but not limited to: the configuration item number of the file format of described wish configuration information and/or described wish configuration information etc.Wherein preset value refers to file format or the configuration project etc. of original configuration file.For example, in the time that original configuration file comprises 10 configuration items, 10 configuration items are preset value, if wish configuration information comprises 11 configuration items, want configuration information and preset value does not match, confirm to want configuration information illegal, comprise 10 configuration items if want configuration information, want configuration information and preset value matches, confirm to want configuration information legal.
Certainly, this step is alternatively, also can not check and the legitimacy of wanting configuration information directly perform step 204 in concrete implementation, is originally in embodiment and is not specifically limited this.
204, configuration server sends config update order to the server of online service.
In the present embodiment, get and want after configuration information, configuration server sends config update order, i.e. network instruction according to preset rules to the server of online service.Wherein, config update order comprises wish configuration information, and it can be also multiple that the online service that needs config update can be one, in this present embodiment and be not specifically limited.Preset rules includes but not limited to: the transmission form that the server of configuration server and online service is made an appointment, and to being not specifically limited in this present embodiment.
205, the server of online service receives after config update order, calls local config update module.
In this step, config update module is set in the server of online service, when the server of online service receives after config update order, calls config update module, trigger config update module and carry out config update.
206, config update order described in config update module responds, according to the configuration in the server of online service described in described wish configuration information update.
In this step, config update module, receiving after config update order, does not need to restart online service, just can upgrade the configuration in server according to described wish configuration information, has shortened the time that online service is upgraded.
In the present embodiment, alternatively, config update module, according to after the configuration in the server of online service described in described wish configuration information update, also comprises: the server of the detection module in described server after to described Reconfigurations tested; After the server after described Reconfigurations is by described test, the server after described Reconfigurations continues to provide described online service.If can not return to 202 continuation by test carries out.Wherein, concrete testing process similarly to the prior art, to repeating no more in this present embodiment.
The beneficial effect of the present embodiment is: after config update operation is triggered, configuration server obtains wish configuration information, and send config update order to the server of online service, the server of described online service receives after described config update order, call local config update module, make described config update module according to the configuration in the server of online service described in described wish configuration information update.Wherein do not need to restart online service and just can realize the renewal of configuration, shortened the config update time of online service, improved the availability of online service.
Embodiment tri-
Referring to Fig. 4, a kind of system of config update of online service is provided in the embodiment of the present invention, comprising: the server 302 of configuration server 301 and online service, wherein, the server 302 of described online service comprises config update module 302a;
Described configuration server 301, after being triggered, obtaining wish configuration information, and sends config update order to the server 302 of described online service for the config update operation when online service, and described config update order comprises described wish configuration information;
The server 302 of described online service, for receiving after described config update order, calls described config update module 302a;
Described config update module 302a, for receiving after the calling of described server, responds described config update order, according to the configuration in the server of online service described in described wish configuration information update.
In another embodiment, described configuration server 301 obtains wish configuration information, comprising:
Configuration server 301 obtains the configuration item and renewal value corresponding to described configuration item that need renewal;
The described renewal value of described configuration server 301 use is replaced described original value corresponding to configuration item that needs renewal, obtains wanting configuration information.
In another embodiment, described config update module 302a also comprises before sending config update order to the server of online service:
Described configuration server 301 checks that whether described wish configuration information is legal, if so, continues to carry out the step that sends config update order to the server 302 of online service.
In another embodiment, 301 of described configuration servers check that whether described wish configuration information is legal, comprising:
Judge that described wish establishes the attribute information of configuration information and whether match with preset value, if, confirm that described wish configuration information is legal, wherein, want preconfigured information attribute information comprise: the configuration item number of the file format of described wish configuration information and/or described wish configuration information.
In another embodiment, in the time that described wish configuration information is illegal, described configuration server 301 returns to carry out and obtains the step of wanting configuration information.
In another embodiment, referring to Fig. 5, described server 302 also comprises:
Detection module 302b,, tests the server after described Reconfigurations according to after the configuration of the server of online service described in described wish configuration information update for described config update module 302a;
After the server 302 after described Reconfigurations is by described test, the server 302 after described Reconfigurations continues to provide described online service.
The beneficial effect of the present embodiment is: after config update operation is triggered, configuration server obtains wish configuration information, and send config update order to the server of online service, the server of described online service receives after described config update order, call local config update module, make described config update module according to the configuration in the server of online service described in described wish configuration information update.Wherein do not need to restart online service and just can realize the renewal of configuration, shortened the config update time of online service, improved the availability of online service.
It should be noted that: the system of the config update of the online service that above-described embodiment provides, only be illustrated with the division of above-mentioned each functional module, in practical application, can above-mentioned functions be distributed and completed by different functional modules as required, be divided into different functional modules by the internal structure of system, to complete all or part of function described above.
In addition, the embodiment of the method for the system of the config update of the online service that above-described embodiment provides and the config update of online service belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can carry out the hardware that instruction is relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any amendment of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (12)

1. a method for the config update of online service, is characterized in that, described method comprises:
After the config update operation of online service is triggered, configuration server obtains wish configuration information, and sends config update order to the server of described online service, and described config update order comprises described wish configuration information;
The server of described online service is receiving after described config update order, calls local config update module;
Described config update module, receiving after the calling of server of described online service, responds described config update order, according to the configuration in the server of online service described in described wish configuration information update.
2. method according to claim 1, is characterized in that, described configuration server obtains wish configuration information, comprising:
Configuration server obtains the configuration item and renewal value corresponding to described configuration item that need renewal;
Described configuration server is replaced described original value corresponding to configuration item that needs renewal by described renewal value, obtains wanting configuration information.
3. method according to claim 1, is characterized in that, described configuration server also comprises before sending config update order to the server of online service:
Described configuration server checks that whether described wish configuration information is legal, if so, continues to carry out the step that sends config update order to the server of online service.
4. method according to claim 3, is characterized in that, described configuration server checks that whether described wish configuration information is legal, comprising:
Judge that described wish establishes the attribute information of configuration information and whether match with preset value, if, confirm that described wish configuration information is legal, wherein, want preconfigured information attribute information comprise: the configuration item number of the file format of described wish configuration information and/or described wish configuration information.
5. according to the method described in claim 3 or 4, it is characterized in that, described method also comprises:
In the time that described wish configuration information is illegal, described configuration server returns to carry out and obtains the step of wanting configuration information.
6. method according to claim 1, is characterized in that, described config update module, according to after the configuration in the server of online service described in described wish configuration information update, also comprises:
The server of detection module in described server after to described Reconfigurations tested;
After the server after described Reconfigurations is by described test, the server after described Reconfigurations continues to provide described online service.
7. a system for the config update of online service, is characterized in that, described system comprises: the server of configuration server and online service, and wherein, the server of described online service comprises config update module;
Described configuration server, after being triggered, obtaining wish configuration information, and sends config update order to the server of described online service for the config update operation when online service, and described config update order comprises described wish configuration information;
The server of described online service, for receiving after described config update order, calls described config update module;
Described config update module, for receiving after the calling of described server, responds described config update order, according to the configuration in the server of online service described in described wish configuration information update.
8. system according to claim 7, is characterized in that, described configuration server obtains wish configuration information, comprising:
Configuration server obtains the configuration item and renewal value corresponding to described configuration item that need renewal;
Described configuration server is replaced described original value corresponding to configuration item that needs renewal by described renewal value, obtains wanting configuration information.
9. system according to claim 7, is characterized in that, described configuration server also comprises before sending config update order to the server of online service:
Described configuration server checks that whether described wish configuration information is legal, if so, continues to carry out the step that sends config update order to the server of online service.
10. system according to claim 9, is characterized in that, described configuration server checks that whether described wish configuration information is legal, comprising:
Judge that described wish establishes the attribute information of configuration information and whether match with preset value, if, confirm that described wish configuration information is legal, wherein, want preconfigured information attribute information comprise: the configuration item number of the file format of described wish configuration information and/or described wish configuration information.
11. according to the system described in claim 9 or 10, it is characterized in that,
In the time that described wish configuration information is illegal, described configuration server returns to carry out and obtains the step of wanting configuration information.
12. systems according to claim 7, is characterized in that, described server also comprises:
Detection module,, tests the server after described Reconfigurations according to after the configuration of the server of online service described in described wish configuration information update for described config update module;
After the server after described Reconfigurations is by described test, the server after described Reconfigurations continues to provide described online service.
CN201310119449.5A 2013-04-08 2013-04-08 Online service configuration updating method and system Pending CN104104701A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310119449.5A CN104104701A (en) 2013-04-08 2013-04-08 Online service configuration updating method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310119449.5A CN104104701A (en) 2013-04-08 2013-04-08 Online service configuration updating method and system

Publications (1)

Publication Number Publication Date
CN104104701A true CN104104701A (en) 2014-10-15

Family

ID=51672501

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310119449.5A Pending CN104104701A (en) 2013-04-08 2013-04-08 Online service configuration updating method and system

Country Status (1)

Country Link
CN (1) CN104104701A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677404A (en) * 2015-12-31 2016-06-15 拉扎斯网络科技(上海)有限公司 Zookeeper based configuration updating method and device
CN106325930A (en) * 2016-08-23 2017-01-11 北京百度网讯科技有限公司 Method and device for notifying change of configuration files
CN107154866A (en) * 2017-04-19 2017-09-12 腾讯科技(深圳)有限公司 Realize the method and system of service dynamic configuration
CN107203714A (en) * 2016-03-18 2017-09-26 北京京东尚科信息技术有限公司 The collocation method and device of data check file
CN107766091A (en) * 2016-08-15 2018-03-06 福建天泉教育科技有限公司 Service management and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179573A (en) * 2007-10-24 2008-05-14 中兴通讯股份有限公司 Method of implementing online dynamic updating server software configuration information
CN101635643A (en) * 2009-08-31 2010-01-27 中国联合网络通信集团有限公司 Method and system for changing terminal service and network management platform
US20120102494A1 (en) * 2010-10-20 2012-04-26 Microsoft Corporation Managing networks and machines for an online service

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179573A (en) * 2007-10-24 2008-05-14 中兴通讯股份有限公司 Method of implementing online dynamic updating server software configuration information
CN101635643A (en) * 2009-08-31 2010-01-27 中国联合网络通信集团有限公司 Method and system for changing terminal service and network management platform
US20120102494A1 (en) * 2010-10-20 2012-04-26 Microsoft Corporation Managing networks and machines for an online service

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677404A (en) * 2015-12-31 2016-06-15 拉扎斯网络科技(上海)有限公司 Zookeeper based configuration updating method and device
CN105677404B (en) * 2015-12-31 2019-03-19 拉扎斯网络科技(上海)有限公司 A kind of configuration update method and device based on Zookeeper
CN107203714A (en) * 2016-03-18 2017-09-26 北京京东尚科信息技术有限公司 The collocation method and device of data check file
CN107203714B (en) * 2016-03-18 2020-09-01 北京京东尚科信息技术有限公司 Configuration method and device of data verification file
CN107766091A (en) * 2016-08-15 2018-03-06 福建天泉教育科技有限公司 Service management and system
CN106325930A (en) * 2016-08-23 2017-01-11 北京百度网讯科技有限公司 Method and device for notifying change of configuration files
CN107154866A (en) * 2017-04-19 2017-09-12 腾讯科技(深圳)有限公司 Realize the method and system of service dynamic configuration
CN107154866B (en) * 2017-04-19 2018-10-30 腾讯科技(深圳)有限公司 Realize the method and system of service dynamic configuration

Similar Documents

Publication Publication Date Title
CN108566290B (en) Service configuration management method, system, storage medium and server
CN102355500B (en) Service push method and device
CN104219316A (en) Method and device for processing call request in distributed system
US10303463B2 (en) Terminal management framework and terminal management method
CN110445841B (en) Cloud disk mounting method and device for cloud physical machine and storage medium
CN104104701A (en) Online service configuration updating method and system
CN107395385A (en) Method for upgrading software and device
CN108092789B (en) Method and device for managing network slice template
CN103885865A (en) Method and device for managing sensors
CN113572862A (en) Cluster deployment method and device, electronic equipment and storage medium
CN104954482A (en) Configuration management system and method
WO2021136233A1 (en) Service upgrading method, device and system
CN111488163B (en) Firmware updating method and device, electronic equipment and storage medium
CN115129574A (en) Code testing method and device
CN112583630B (en) Device management method, device, system, device and storage medium
US11379561B2 (en) License usage management
CN109495298B (en) Method and device for managing nodes in OpenStack system
CN104572255A (en) Multilayer application hosting method, device and system
CN112685102B (en) Gateway plug-in hot loading method, device, equipment and medium
CN110768811A (en) Method, device and system for updating YANG model file library
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN113377385A (en) Client automatic deployment method and device
CN104348646A (en) Configuration data processing method, device and system
CN112130889A (en) Resource management method and device, storage medium and electronic device
CN112148429A (en) Information processing method and device for managing container arrangement engine cluster

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: 20141015

RJ01 Rejection of invention patent application after publication