WO2015081908A2 - 更新参数值的方法、装置和系统 - Google Patents

更新参数值的方法、装置和系统 Download PDF

Info

Publication number
WO2015081908A2
WO2015081908A2 PCT/CN2015/072101 CN2015072101W WO2015081908A2 WO 2015081908 A2 WO2015081908 A2 WO 2015081908A2 CN 2015072101 W CN2015072101 W CN 2015072101W WO 2015081908 A2 WO2015081908 A2 WO 2015081908A2
Authority
WO
WIPO (PCT)
Prior art keywords
configuration
server
service server
file
configuration file
Prior art date
Application number
PCT/CN2015/072101
Other languages
English (en)
French (fr)
Other versions
WO2015081908A3 (zh
Inventor
杜风涛
Original Assignee
腾讯科技(深圳)有限公司
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 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2015081908A2 publication Critical patent/WO2015081908A2/zh
Publication of WO2015081908A3 publication Critical patent/WO2015081908A3/zh

Links

Images

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/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/085Retrieval of network configuration; Tracking network configuration history

Definitions

  • the present invention relates to the field of computer technologies, and in particular, to a method, apparatus, and system for updating parameter values.
  • the Internet has become a very important part of people's lives. Users can conduct various kinds of network services through the Internet, such as visiting a website, logging in to an online game, etc.
  • the network service is implemented by the terminal accessing the service server on the network side.
  • the service server For the normal operation of the service server, you need to configure various parameters (such as the trigger threshold of a certain process, the object identifier of a certain process, and some address information).
  • the parameter values of multiple parameter items can be managed by the management personnel in the form of configuration files. Make settings and save them in the business server.
  • Each business server may require one or more configuration files.
  • the same configuration file may be used by the different service servers.
  • the management server that needs to use the same configuration file needs to update the configuration file in each service server.
  • the same operation results in a lower efficiency of updating the parameter values of the business server.
  • embodiments of the present invention provide a method, apparatus, and system for updating parameter values to improve the efficiency of updating service server parameter values.
  • the technical solution is as follows:
  • a method of updating a parameter value comprising:
  • the configuration server detects that the first configuration file stored in the configuration server changes
  • a method of updating a parameter value comprising:
  • the changed first configuration file is changed by the configuration server detecting that the first configuration file stored in the configuration server changes And determining, according to the correspondence between the pre-stored configuration file and the service server, the service server corresponding to the first configuration file, and sending the service server to the determined service server; the determined service server includes the first service server ;
  • the first service server updates the parameter values in the local service program according to the changed first configuration file.
  • a configuration server comprising:
  • a detecting module configured to detect that the first configuration file stored in the configuration server changes
  • a determining module configured to determine, according to a correspondence between the pre-stored configuration file and the service server, a service server corresponding to the first configuration file
  • a sending module configured to send, to the determined service server, the changed first configuration file, where the determined service server determines parameters in the local service program according to the received first configuration file that is changed The value is updated.
  • a first service server where the first service server includes:
  • a receiving module configured to receive a changed first configuration file sent by the configuration server, where the changed first configuration file is detected by the configuration server to detect the first configuration file stored in the configuration server And determining, according to the correspondence between the pre-stored configuration file and the service server, the service server corresponding to the first configuration file, and sending the service server to the determined service server; the determined service server includes the first service server;
  • an update module configured to update a parameter value in the local service program according to the changed first configuration file.
  • a system for updating parameter values comprising a configuration server and a service server, wherein:
  • the configuration server is configured to detect that the first configuration file stored in the configuration server is changed; and determine a service server corresponding to the first configuration file according to a correspondence between the pre-stored configuration file and the service server; Determining the service server to send the changed first configuration file; the determined service server includes the first service server;
  • the first service server is configured to receive the changed first configuration file sent by the configuration server, and update the parameter value in the local service program according to the changed first configuration file.
  • the service server corresponding to the first configuration file is determined according to the corresponding relationship between the pre-stored configuration file and the service server, and is sent to the determined service server. And the changed first configuration file, so that the determined service server updates the parameter value in the local service program according to the changed first configuration file when receiving the changed first configuration file.
  • the configuration file update can be centralized, and there is no need to repeat operations on each service server, thereby improving the efficiency of updating the service server parameter values.
  • FIG. 1 is a flowchart of a method for updating parameter values according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for updating parameter values according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for updating parameter values according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a configuration server according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a first service server according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a configuration server according to an embodiment of the present invention.
  • the embodiment of the invention provides a method for updating parameter values, which can be implemented by a configuration server and a service server.
  • the process of configuring a server in the method may include the following steps:
  • Step 101 The configuration server detects that the first configuration file stored in the configuration server changes.
  • Step 102 The configuration server determines, according to the correspondence between the pre-stored configuration file and the service server, the service server corresponding to the first configuration file.
  • Step 103 The configuration server sends the changed first configuration file to the determined service server, where the determined service server receives the changed first configuration file, and locally according to the changed first configuration file.
  • the parameter values in the business program are updated.
  • local refers to being stored in the service server or in a peripheral storage device physically coupled to the service server.
  • the processing flow of the service server in the method may include the following steps:
  • Step 201 The first service server receives the changed first configuration file sent by the configuration server.
  • the first configuration file after the change is determined by the configuration server when the first configuration file stored in the configuration server is changed, and the first configuration file is determined according to the corresponding relationship between the pre-stored configuration file and the service server.
  • the service server sends the determined service server to the determined service server; the determined service server includes the first service server.
  • Step 202 The first service server updates the parameter value in the local service program according to the changed first configuration file.
  • the service server corresponding to the first configuration file is determined according to the correspondence between the pre-stored configuration file and the service server, and Sending, to the determined service server, the changed first configuration file, so that the determined service server receives the changed first configuration file, according to the changed first configuration file, to the local service program.
  • the parameter values are updated.
  • the embodiment of the invention provides a method for updating parameter values, which can be implemented by a configuration server and a service server.
  • the configuration server is a server for centrally configuring parameter values of multiple business servers.
  • the configuration server can store multiple configuration files.
  • a service server is a server for carrying network services (such as providing web content data, playing network music, etc.).
  • the processing procedure of the method for updating parameter values provided by the embodiment of the present invention may include the following steps:
  • Step 301 The configuration server detects that the first configuration file stored in the configuration server changes.
  • the first configuration file may be any configuration file stored in the configuration server.
  • One or more parameter items and corresponding parameter values are recorded in the configuration file, and are used to configure parameter values of corresponding parameter items in the business program of the service server.
  • the management personnel can modify the configuration file stored on the configuration server through the management terminal.
  • the specific modification manner can be various, and the configuration file in the configuration server can be directly edited to complete the modification of the configuration file, or You can also replace the configuration files stored in the configuration server with the edited configuration file.
  • the configuration server receives the modification instruction input by the administrator (which may indicate the modification content of the configuration file, or may indicate the configuration file that is replaced and used for replacement), the modification of the corresponding configuration file may be performed. At this time, the configuration is performed.
  • the server can determine that the corresponding configuration file has changed, that is, the configuration server detects that the configuration file has changed.
  • Step 302 The configuration server determines, according to the correspondence between the pre-stored configuration file and the service server, the service server corresponding to the first configuration file (including the first service server that will be mentioned later).
  • the configuration server may pre-establish a correspondence relationship table, and store the file identifier of the configuration file and the server identifier of the service server in the corresponding relationship table to reflect the correspondence between the configuration file and the service server, where each The configuration file can correspond to one or more business servers, and each business server can also correspond to one or more configuration files.
  • the configuration server may search for the corresponding server identifier in the corresponding relationship table according to the file identifier of the first configuration file (referred to as the first file identifier) to determine the corresponding service server.
  • the corresponding relationship may be uniformly set by the configuration server according to the pre-planning, or the corresponding relationship may also be dynamically set by the service server to initiate the request, and the corresponding process of setting the corresponding relationship will be described in detail later.
  • Step 303 The configuration server sends the changed first configuration file to the determined service server.
  • the configuration server may directly send the changed first configuration file to each service server corresponding to the first configuration file.
  • the configuration server may first send an update notification to each service server, and each service server may separately obtain a first configuration file from the configuration server according to the respective situations. Accordingly, the process of configuring the server may be as follows:
  • the configuration server sends an update notification to the determined service server, where the update notification carries the first file identifier of the first configuration file. Then, the configuration server receives the determined file sent by the business server. The request is obtained, and the file obtaining request carries the first file identifier. Finally, the configuration server sends the changed first configuration file to the service server that sends the file acquisition request.
  • the update notification is used to notify the service server that a configuration file has been changed.
  • a file acquisition request is used to request a configuration server to obtain a configuration file.
  • the first configuration file may have multiple service servers, and the service server that receives the update notification may send a file acquisition request to the configuration server according to its own situation, and each time the configuration server receives a file acquisition request, The corresponding configuration file is obtained according to the file identifier carried in the file, and is fed back to the service server that sends the file acquisition request. Because the number of service servers corresponding to the first configuration file may be large, the above processing can prevent the instantaneous congestion of the configuration server.
  • Step 304 The first service server receives the changed first configuration file sent by the configuration server.
  • the first service server is any one of the service servers corresponding to the first configuration file.
  • the process of transmitting the changed first configuration file corresponds to the processing on the configuration server side, and the processing process of the first service server may be as follows:
  • the first service server receives an update notification sent by the configuration server. Then, when the preset file acquisition condition is satisfied, the first service server sends a file acquisition request to the configuration server. Finally, the first service server receives the changed first configuration file sent by the configuration server.
  • the file acquisition condition may be arbitrarily set according to requirements, for example, reaching a preset time period, or the business server is starting a local business process, and the like.
  • the configuration server may further generate a signature (or a digital signature) on the changed first configuration file, where the signature is obtained by encoding the first configuration file based on the preset encoding rule, and the unique corresponding to the first configuration file. Codewords, such as MD5 (Message Digest Algorithm 5) code.
  • MD5 Message Digest Algorithm 5
  • the configuration server then carries the signature of the first configuration file in the update notification. Based on the signature code carried in the update notification, the process of triggering the first service server to send the file acquisition request may be as follows:
  • the first service server generates a locally stored feature code of the configuration file corresponding to the first file identifier; and then, if the feature code carried in the update notification is different from the generated feature code, the first service server sends the configuration server to the configuration server. Send a file to get the request.
  • the first service server may extract the first file identifier and the feature code in the update notification, search the corresponding configuration file stored locally according to the first file identifier, and generate a signature code for the found feature file. Then, the generated feature code is compared with the extracted feature code. If it is different, the locally stored configuration file needs to be updated. At this time, a file acquisition request may be sent to the configuration server, if the same (for example, the version 1 is locally saved).
  • the first configuration file when the version 2 is updated, the first service server is in the closed state, the update is not participated, the version 3 is currently updated, and the content of the first configuration file of the version 3 and the version 1 is the same. Files do not need to be updated and there is no need to send a file get request.
  • Step 305 The first service server updates the parameter value in the local service program according to the changed first configuration file.
  • the business process (or business system) is a program run by the service server for carrying the network service.
  • the local business process means that at least a part of the business program is stored in the service server or stored in a peripheral storage device physically coupled with the service server.
  • the first service server acquires a pre-stored parameter item corresponding to the local business program.
  • the client configured by the configuration server for parameter configuration may be installed in the service server, and the operator of the service server may register in the client a parameter item that needs to be configured by the local service program, that is, the local business program. Corresponding parameter items, the client records these parameter items.
  • the first service server obtains the parameter value corresponding to the parameter item in the changed first configuration file.
  • the first service server updates the parameter value of the parameter item in the local business program according to the obtained parameter value.
  • the client may send a parameter update notification to the business program, where the parameter values of the above parameter items are carried in, so that the business program replaces the original parameter values of the parameter items.
  • This update method eliminates the need for the service program to periodically detect changes to the locally stored configuration files, which can reduce the overhead of the service server and improve resource utilization.
  • the configuration server may set the correspondence between the configuration file and the service server according to the request of the service server, and the specific processing procedure may be as follows:
  • Step 1 The configuration server receives a binding request sent by the second service server, where the binding request carries a second file identifier.
  • the second service server may be any service server, and may be the same service server or a different service server as the first service server.
  • the binding request is used to request the establishment of a correspondence between a service server and a configuration file, and may also carry the server identifier of the local service server.
  • the operator of the service server can browse the configuration file provided by the configuration server through the above client, select the configuration file required by the local business program, and trigger the generation of the binding request when the operator clicks the binding button.
  • the binding request carries the file identifier of the configuration file selected by the operator (ie, the second file identifier) and the server identifier of the local service server (ie, the second service server), and sends the file identifier to the configuration server.
  • Step 2 The configuration server adds a correspondence between the second configuration file corresponding to the second file identifier and the second service server in the mapping between the configuration file and the service server.
  • the process of updating a parameter value in a specific application scenario includes the following steps:
  • step 401 the administrator modifies the first configuration file stored in the configuration server.
  • Step 402 The configuration server determines, according to the correspondence between the pre-stored configuration file and the service server, the service server corresponding to the first configuration file (including the first service server).
  • Step 403 The configuration server sends an update notification to the service server corresponding to the first configuration file, where the update notification carries the first file identifier of the first configuration file and the MD5 code of the changed first configuration file.
  • Step 404 The client of the first service server compares the MD5 code in the update notification with the MD5 code of the locally stored first configuration file. If not, perform step 405.
  • Step 405 The client of the first service server sends a file acquisition request to the configuration server, where the file acquisition request carries the first file identifier.
  • Step 406 The configuration server sends the changed first configuration file to the client of the first service server.
  • Step 407 The client of the first service server updates the locally stored first configuration file according to the changed first configuration file.
  • Step 408 The client of the first service server notifies the local service program to update the parameter value of the pre-registered parameter item.
  • the client of the first service server notifies the local service program to update the parameter value of the pre-registered parameter item.
  • the service server corresponding to the first configuration file is determined according to the corresponding relationship between the pre-stored configuration file and the service server, and is determined.
  • the outgoing service server sends the changed first configuration file, so that the determined service server receives the changed first configuration file, and according to the changed first configuration file, the parameter value in the local service program Update.
  • the configuration file update can be centralized, and there is no need to repeat operations on each service server, thereby improving the efficiency of updating the service server parameter values.
  • the embodiment of the present invention further provides a configuration server.
  • the configuration server includes:
  • the detecting module 510 is configured to detect that the first configuration file stored in the configuration server changes
  • a determining module 520 configured to determine, according to a correspondence between the pre-stored configuration file and the service server, a service server corresponding to the first configuration file
  • the sending module 530 is configured to send, to the determined service server, the changed first configuration file, where the determined service server is configured according to the changed first configuration file to the local service program.
  • the parameter values are updated.
  • the sending module 530 is configured to:
  • the configuration server further includes a binding module (not shown) for:
  • the embodiment of the present invention further provides a first service server.
  • the first service server includes:
  • the receiving module 610 is configured to receive the changed first configuration file sent by the configuration server, where the changed first configuration file detects, by the configuration server, the first configuration file stored in the configuration server. When the change occurs, the first match is determined according to the correspondence between the pre-stored configuration file and the service server. Setting a service server corresponding to the file, and sending the service server to the determined service server; the determined service server includes the first service server;
  • the update module 620 is configured to update parameter values in the local service program according to the changed first configuration file.
  • the receiving module 610 is configured to:
  • the first service server receives the changed first configuration file sent by the configuration server.
  • the update notification further carries a feature code of the changed first configuration file
  • the receiving module 610 is configured to:
  • the update module 620 is configured to:
  • the parameter value of the parameter item in the local business program is updated according to the obtained parameter value.
  • the service server corresponding to the first configuration file is determined according to the correspondence between the pre-stored configuration file and the service server, and Sending, to the determined service server, the changed first configuration file, so that the determined service server receives the changed first configuration file, according to the changed first configuration file, to the local service program.
  • the parameter values are updated.
  • an embodiment of the present invention further provides a system for updating parameter values, where the system includes a configuration server and a service server, where:
  • the configuration server is configured to detect that the first configuration file stored in the configuration server is changed; and determine a service server corresponding to the first configuration file according to a correspondence between the pre-stored configuration file and the service server; Determining the service server to send the changed first configuration file; the determined service server includes the first service server;
  • the first service server is configured to receive the changed first configuration file sent by the configuration server, and update the parameter value in the local service program according to the changed first configuration file.
  • the service server corresponding to the first configuration file is determined according to the corresponding relationship between the pre-stored configuration file and the service server, and the change is sent to the determined service server.
  • the first configuration file is configured to enable the determined service server to update the parameter value in the local service program according to the changed first configuration file when receiving the changed first configuration file.
  • FIG. 7 is a schematic structural diagram of a configuration server according to an embodiment of the present invention.
  • the configuration server 1900 can vary considerably depending on configuration or performance, and can include one or more central processing units (CPUs) 1922 (eg, one or more processors) and memory 1932, one or More than one storage medium 1930 storing the application 1942 or data 1944 (eg, one or one storage device in Shanghai).
  • the memory 1932 and the storage medium 1930 may be short-term storage or persistent storage.
  • the program stored on storage medium 1930 may include one or more modules (not shown), each of which may include a series of instruction operations in the server.
  • central processor 1922 can be configured to communicate with storage medium 1930, executing a series of instruction operations in storage medium 1930 on configuration server 1900.
  • Configuration server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input and output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems. 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • Server 1900 can include a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs included for performing the following Operation instructions:
  • the configuration server detects that the first configuration file stored in the configuration server changes
  • the configuration server sends the changed first configuration file to the determined service server, where the determined service server determines the parameter value in the local service program according to the received first configuration file. Update.
  • the configuration server sends the changed first configuration file to the determined service server, including:
  • the configuration server sends an update notification to the determined service server, where the update notification carries the first file identifier of the first configuration file;
  • the configuration server receives the file acquisition request sent by the determined service server, where the file acquisition request carries the first file identifier
  • the configuration server sends the changed first configuration file to a service server that sends the file acquisition request.
  • the one or more processors in the server 1900 execute the one or more programs including instructions for performing the following operations:
  • the configuration server receives a binding request sent by the second service server, where the binding request carries a second file identifier
  • the configuration server adds a correspondence between the second configuration file corresponding to the second file identifier and the second service server in the corresponding relationship between the configuration file and the service server.
  • the service server corresponding to the first configuration file is determined according to the corresponding relationship between the pre-stored configuration file and the service server, and the change is sent to the determined service server.
  • the first configuration file is configured to enable the determined service server to update the parameter value in the local service program according to the changed first configuration file when receiving the changed first configuration file.
  • the service server provided by the embodiment of the present invention may have a relatively large difference due to different configurations or performances, and may include one or more central processing units (CPUs) (for example, one or more processors) and a memory.
  • CPUs central processing units
  • One or more storage media that store applications or data for example, one or one storage device in Shanghai.
  • the memory and the storage medium may be short-term storage or persistent storage.
  • Storage A program on a storage medium may include one or more modules (not shown), each of which may include a series of instruction operations on the server.
  • the central processor can be configured to communicate with the storage medium to perform a series of instruction operations on the storage medium on the server.
  • the server may also include one or more power supplies, one or more wired or wireless network interfaces, one or more input and output interfaces, one or more keyboards, and/or one or more operating systems, such as Windows ServerTM, Mac. OS XTM, UnixTM, LinuxTM, FreeBSDTM and more.
  • the server can include a memory, and one or more programs, wherein one or more programs are stored in the memory, and configured to be executed by one or more processors to include the one or more programs for performing the following operations Instructions:
  • the changed first configuration file is changed by the configuration server detecting that the first configuration file stored in the configuration server changes And determining, according to the correspondence between the pre-stored configuration file and the service server, the service server corresponding to the first configuration file, and sending the service server to the determined service server; the determined service server includes the first service server ;
  • the first service server updates the parameter values in the local service program according to the changed first configuration file.
  • the first service server sends a file acquisition request to the configuration server, where the file acquisition request carries the first file identifier
  • the first service server receives the changed first configuration file sent by the configuration server.
  • the update notification further carries a feature code of the changed first configuration file
  • the first service server sends a file acquisition request to the configuration server, including:
  • the first service server generates a locally stored feature code of the configuration file corresponding to the first file identifier
  • the first service server sends a file acquisition request to the configuration server.
  • the first service server updates the parameter values in the local service program according to the changed first configuration file, including:
  • the first service server acquires a pre-stored parameter item corresponding to a local service program
  • the first service server updates the parameter value of the parameter item in the local service program according to the obtained parameter value.
  • the service server corresponding to the first configuration file is determined according to the corresponding relationship between the pre-stored configuration file and the service server, and the change is sent to the determined service server.
  • the first configuration file is configured to enable the determined service server to update the parameter value in the local service program according to the changed first configuration file when receiving the changed first configuration file.
  • the device for updating the parameter value in the foregoing embodiment only exemplifies the division of each functional module, and in actual application, the function may be assigned to different functional modules according to needs. Upon completion, the internal structure of the device is divided into different functional modules to perform all or part of the functions described above.
  • the device for updating the parameter value provided by the foregoing embodiment is the same as the method embodiment for updating the parameter value, and the specific implementation process is described in detail in the method embodiment, and details are not described herein again.
  • a person skilled in the art may understand that all or part of the steps of implementing the above embodiments may be completed by hardware, or may be instructed by a program to execute related hardware, and the program may be stored in a computer readable storage medium.
  • the storage medium mentioned may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

 本发明公开了一种更新参数值的方法、装置和系统。所述方法包括:配置服务器检测到存储在所述配置服务器中的第一配置文件发生变化;所述配置服务器根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器;所述配置服务器向确定出的业务服务器发送变化后的第一配置文件,其中,所述确定出的业务服务器根据接收的所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。采用本发明,可以提高更新业务服务器参数值的效率。

Description

更新参数值的方法、装置和系统
本申请要求于2013年12月4日提交中国专利局、申请号为201310653383.8、发明名称为“一种更新参数值的方法、装置和系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及计算机技术领域,特别涉及一种更新参数值的方法、装置和系统。
背景技术
随着互联网技术和计算机技术的飞速发展,互联网已经成为了人们生活中的一个非常重要的组成部分,用户通过互联网可以进行各种各样的网络业务,如访问某网站、登录某网络游戏等,网络业务是由终端访问网络侧的业务服务器来实现的。
为了业务服务器的正常运行,需要对多种参数(如某处理的触发阈值、某处理的对象标识、某地址信息等)进行配置,多个参数项的参数值可以以配置文件的形式由管理人员进行设置,并保存在业务服务器中。每个业务服务器可能需要一个或多个配置文件。
而该多种不同的业务服务器可能使用同样的配置文件,在对配置文件进行更新时,对于这些使用同样配置文件的业务服务器,需要管理人员分别在各业务服务器中对该配置文件进行更新,重复相同的操作,导致对业务服务器的参数值进行更新的效率较为低下。
发明内容
有鉴于此,本发明实施例提供了一种更新参数值的方法、装置和系统,以提高更新业务服务器参数值的效率。所述技术方案如下:
一种更新参数值的方法,所述方法包括:
配置服务器检测到存储在所述配置服务器中的第一配置文件发生变化;
所述配置服务器根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器;
所述配置服务器向确定出的业务服务器发送变化后的第一配置文件,其中,所述确定出的业务服务器根据接收的所述变化后的第一配置文件,对本地的业务程序中的 参数值进行更新。
一种更新参数值的方法,所述方法包括:
第一业务服务器接收配置服务器发送的变化后的第一配置文件;所述变化后的第一配置文件由所述配置服务器在检测到存储在所述配置服务器中的所述第一配置文件发生变化时,根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器,并向确定出的业务服务器发送;所述确定出的业务服务器包括所述第一业务服务器;
所述第一业务服务器根据所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
一种配置服务器,所述配置服务器包括:
检测模块,用于检测到存储在所述配置服务器中的第一配置文件发生变化;
确定模块,用于根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器;
发送模块,用于向确定出的业务服务器发送变化后的第一配置文件,其中,所述确定出的业务服务器根据接收的所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
一种第一业务服务器,所述第一业务服务器包括:
接收模块,用于接收配置服务器发送的变化后的第一配置文件;所述变化后的第一配置文件由所述配置服务器在检测到存储在所述配置服务器中的所述第一配置文件发生变化时,根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器,并向确定出的业务服务器发送;所述确定出的业务服务器包括所述第一业务服务器;
更新模块,用于根据所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
一种更新参数值的系统,所述系统包括配置服务器和业务服务器,其中:
所述配置服务器,用于检测到存储在所述配置服务器中的第一配置文件发生变化;根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器;向确定出的业务服务器发送变化后的第一配置文件;所述确定出的业务服务器包括第一业务服务器;
所述第一业务服务器,用于接收所述配置服务器发送的变化后的第一配置文件;根据所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
在本发明实施例中,配置服务器检测到第一配置文件发生变化时,根据预先存储的配置文件与业务服务器的对应关系,确定第一配置文件对应的业务服务器,并向确定出的业务服务器发送变化后的第一配置文件,以使确定出的业务服务器在接收到变化后的第一配置文件时,根据变化后的第一配置文件,对本地的业务程序中的参数值进行更新。这样,对于使用相同配置文件的多个业务服务器,可以集中控制配置文件的更新,无需在各业务服务器上重复操作,从而,可以提高更新业务服务器参数值的效率。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的更新参数值的方法流程图;
图2是本发明实施例提供的更新参数值的方法流程图;
图3是本发明实施例提供的更新参数值的方法流程图;
图4是本发明实施例提供的更新参数值的方法流程图;
图5是本发明实施例提供的配置服务器的结构示意图;
图6是本发明实施例提供的第一业务服务器的结构示意图;
图7是本发明实施例提供的配置服务器的结构示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。
本发明实施例提供了一种更新参数值的方法,该方法可以由配置服务器和业务服务器共同实现。
如图1所示,该方法中配置服务器的处理流程可以包括如下的步骤:
步骤101,配置服务器检测到存储在所述配置服务器中的第一配置文件发生变化。
步骤102,配置服务器根据预先存储的配置文件与业务服务器的对应关系,确定第一配置文件对应的业务服务器。
步骤103,配置服务器向确定出的业务服务器发送变化后的第一配置文件,其中,确定出的业务服务器在接收到变化后的第一配置文件时,根据变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
使用在这里,“本地”是指保存在所述业务服务器中或者保存在与所述业务服务器物理耦合的外设存储器件中。
如图2所示,该方法中业务服务器的处理流程可以包括如下的步骤:
步骤201,第一业务服务器接收配置服务器发送的变化后的第一配置文件。此变化后的第一配置文件由配置服务器在检测到存储在所述配置服务器中的第一配置文件发生变化时,根据预先存储的配置文件与业务服务器的对应关系,确定第一配置文件对应的业务服务器,并向确定出的业务服务器发送;确定出的业务服务器包括第一业务服务器。
步骤202,第一业务服务器根据变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
本发明实施例中,配置服务器检测到存储在所述配置服务器中的第一配置文件发生变化时,根据预先存储的配置文件与业务服务器的对应关系,确定第一配置文件对应的业务服务器,并向确定出的业务服务器发送变化后的第一配置文件,以使确定出的业务服务器在接收到变化后的第一配置文件时,根据变化后的第一配置文件,对本地的业务程序中的参数值进行更新。这样,对于使用相同配置文件的多个业务服务器,可以集中控制配置文件的更新,无需在各业务服务器上重复操作,从而,可以提高更新业务服务器参数值的效率。
本发明实施例提供了一种更新参数值的方法,该方法可以由配置服务器和业务服务器共同实现。配置服务器是用于对多个业务服务器的参数值进行集中配置的服务器,配置服务器中可以存储有多个配置文件。业务服务器是用于承载网络业务(如提供网页内容数据、播放网络音乐等)的服务器。
如图3所示,本发明实施例提供的更新参数值的方法的处理流程可以包括如下的步骤:
步骤301,配置服务器检测到存储在所述配置服务器中的第一配置文件发生变化。
其中,第一配置文件可以是配置服务器中存储的任意的配置文件。配置文件中记录有一个或多个参数项和对应的参数值,用于对业务服务器的业务程序中相应参数项的参数值进行配置。
在实施中,管理人员可以通过管理终端对配置服务器上存储的配置文件进行修改,具体的修改方式可以多种多样,可以直接对配置服务器中的配置文件进行编辑,以完成配置文件的修改,或者,也可以使用编辑好的配置文件对配置服务器中存储的配置文件进行替换。配置服务器在接收到管理人员输入的修改指令(其中可以指示对配置文件的修改内容,或者可以指示被替换和用于替换的配置文件)时,可以执行相应的配置文件的修改,此时,配置服务器可以判定相应的配置文件发生变化,即配置服务器检测到配置文件发生变化。
步骤302,配置服务器根据预先存储的配置文件与业务服务器的对应关系,确定第一配置文件对应的业务服务器(包括后面将提到的第一业务服务器)。
在实施中,配置服务器可以预先建立对应关系表,在对应关系表中将配置文件的文件标识和业务服务器的服务器标识进行对应的存储,以反映配置文件与业务服务器的对应关系,其中,每个配置文件可以对应一个或多个业务服务器,每个业务服务器也可以对应一个或多个配置文件。配置服务器可以根据第一配置文件的文件标识(可称第一文件标识),在上述对应关系表中查找对应服务器标识,以确定对应的业务服务器。
上述对应关系可以由配置服务器根据预先规划统一设置,或者,该对应关系也可以由业务服务器发起请求来进行动态的设置,相应的设置对应关系的过程在后面内容中会进行详细的说明。
步骤303,配置服务器向确定出的业务服务器发送变化后的第一配置文件。
在实施中,与第一配置文件对应的业务服务器可以有多个,配置服务器可以直接向第一配置文件对应的各业务服务器发送变化后的第一配置文件。另外,配置服务器也可以先向各业务服务器发送更新通知,由各业务服务器分别根据各自的情况安排向配置服务器获取第一配置文件,相应的,配置服务器的处理过程可以如下:
首先,配置服务器向确定出的业务服务器发送更新通知,该更新通知中携带有第一配置文件的第一文件标识。然后,配置服务器接收确定出的业务服务器发送的文件 获取请求,文件获取请求中携带有第一文件标识。最后,配置服务器向发送文件获取请求的业务服务器发送变化后的第一配置文件。
其中,更新通知用于通知业务服务器某配置文件已发生变更。文件获取请求用于向配置服务器请求获取配置文件。
在实施中,第一配置文件对应的业务服务器可能有多个,接收到更新通知的业务服务器可以根据自己的情况安排向配置服务器发送文件获取请求,配置服务器每接收到一个文件获取请求的时候,便可以根据其中携带的文件标识获取对应的配置文件,并反馈给发送文件获取请求的业务服务器。因为第一配置文件对应的业务服务器可能数量较多,上述这样的处理,可以防止造成配置服务器的瞬间拥堵。
步骤304,第一业务服务器接收配置服务器发送的变化后的第一配置文件。
其中,第一业务服务器是上述第一配置文件对应的业务服务器中的任意一个业务服务器。
在实施中,对于传输变化后的第一配置文件的过程,与上述配置服务器侧的处理相对应,第一业务服务器的处理过程可以如下:
首先,第一业务服务器接收配置服务器发送的更新通知。然后,当满足预设的文件获取条件时,第一业务服务器向配置服务器发送文件获取请求。最后,第一业务服务器接收配置服务器发送的变化后的第一配置文件。
其中,文件获取条件可以根据需求任意设置,例如,达到预设的时间周期,或者,业务服务器正在启动本地业务程序,等等。
在实施中,配置服务器还可以对变化后的第一配置文件生成特征码(或称数字签名),特征码是基于预设编码规则对第一配置文件进行编码得到的唯一与第一配置文件对应的码字,例如MD5(Message Digest Algorithm 5,信息摘要算法5)码等。然后配置服务器将第一配置文件的特征码携带于更新通知中,基于更新通知中携带的特征码,触发第一业务服务器发送文件获取请求的处理可以如下:
首先,第一业务服务器生成本地存储的与第一文件标识对应的配置文件的特征码;然后,如果更新通知中携带的特征码与所述生成的特征码不同,第一业务服务器则向配置服务器发送文件获取请求。
在实施中,第一业务服务器可以提取更新通知中的第一文件标识和特征码,根据第一文件标识查找本地存储的对应的配置文件,并对查找到的特征文件生成特征码, 然后将生成的特征码与提取的特征码进行比较,如果不同,则说明本地存储的该配置文件需要更新,此时可以向配置服务器发送文件获取请求,如果相同(例如,本地保存的是版本1的第一配置文件,在更新版本2时第一业务服务器处于关闭状态没参加更新,当前需要更新版本3,而版本3和版本1的第一配置文件内容相同),则说明本地存储的该配置文件不需要更新,无需发送文件获取请求。
步骤305,第一业务服务器根据变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
其中,业务程序(或称业务系统)是业务服务器运行的用于承载网络业务的程序。
其中,本地的业务程序是指所述业务程序的至少一部分保存在所述业务服务器中或者保存在与所述业务服务器物理耦合的外设存储器件中。
在实施中,业务服务器对本地的业务程序中的参数值进行更新的方式有很多种,以下给出其中一种处理方式:
首先,第一业务服务器获取预先存储的与本地的业务程序对应的参数项。
在实施中,在业务服务器中可以安装配置服务器提供的用于参数配置的客户端,业务服务器的操作人员可以在客户端中注册本地业务程序需要进行参数配置的参数项,即上述本地的业务程序对应的参数项,客户端对这些参数项进行记录。
然后,第一业务服务器在变化后的第一配置文件中获取上述参数项对应的参数值。
最后,第一业务服务器根据获取的参数值,对参数项在本地的业务程序中的参数值进行更新。
在实施中,客户端可以向业务程序发送参数更新通知,在其中携带上述各参数项的参数值,以使业务程序替换这些参数项原有的参数值。这种更新方式,无需业务程序对本地存储的配置文件进行周期性的变更检测,可以减小业务服务器的开销,提高资源利用率。
本发明实施例中,配置服务器可以根据业务服务器的请求,对配置文件与业务服务器的对应关系进行设置,具体处理过程可以如下:
步骤一,配置服务器接收第二业务服务器发送的绑定请求,该绑定请求中携带有第二文件标识。
其中,第二业务服务器可以是任意业务服务器,可以与第一业务服务器是同一业务服务器或不同的业务服务器。绑定请求用于请求建立某业务服务器与某配置文件的对应关系,其中还可以携带本地业务服务器的服务器标识。
在实施中,业务服务器的操作人员可以通过上述的客户端浏览配置服务器提供的配置文件,在其中选择本地业务程序需要的配置文件,当操作人员点击绑定按钮时,则触发生成绑定请求,在绑定请求中携带操作人员选择的配置文件的文件标识(即第二文件标识)以及本地业务服务器(即第二业务服务器)的服务器标识,并向配置服务器发送。
步骤二,配置服务器在配置文件与业务服务器的对应关系中,添加第二文件标识对应的第二配置文件与第二业务服务器的对应关系。
如图4所示,为本发明实施例提供的更新参数值的方法在具体应用场景中的处理过程,包括如下步骤:
步骤401,管理人员对配置服务器中存储的第一配置文件进行修改。
步骤402,配置服务器根据预先存储的配置文件与业务服务器的对应关系,确定第一配置文件对应的业务服务器(其中包括第一业务服务器)。
步骤403,配置服务器向第一配置文件对应的业务服务器发送更新通知,更新通知中携带有第一配置文件的第一文件标识和变化后的第一配置文件的MD5码。
步骤404,第一业务服务器的客户端将更新通知中的MD5码与本地存储的第一配置文件的MD5码进行比较,如果不相同,则执行步骤405。
步骤405,第一业务服务器的客户端向配置服务器发送文件获取请求,文件获取请求中携带有第一文件标识。
步骤406,配置服务器向第一业务服务器的客户端发送变化后的第一配置文件。
步骤407,第一业务服务器的客户端根据变化后的第一配置文件对本地存储的第一配置文件进行更新。
步骤408,第一业务服务器的客户端通知本地的业务程序对预先注册的参数项的参数值进行更新。具体的处理可以参见本实施例上面的内容。
本发明实施例中,配置服务器检测到第一配置文件发生变化时,根据预先存储的配置文件与业务服务器的对应关系,确定第一配置文件对应的业务服务器,并向确定 出的业务服务器发送变化后的第一配置文件,以使确定出的业务服务器在接收到变化后的第一配置文件时,根据变化后的第一配置文件,对本地的业务程序中的参数值进行更新。这样,对于使用相同配置文件的多个业务服务器,可以集中控制配置文件的更新,无需在各业务服务器上重复操作,从而,可以提高更新业务服务器参数值的效率。
基于相同的技术构思,本发明实施例还提供了一种配置服务器,如图5所示,所述配置服务器包括:
检测模块510,用于检测到存储在所述配置服务器中的第一配置文件发生变化;
确定模块520,用于根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器;
发送模块530,用于向确定出的业务服务器发送变化后的第一配置文件,其中,所述确定出的业务服务器根据接收的所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
本实施例中,所述发送模块530,用于:
向所述确定出的业务服务器发送更新通知,所述更新通知中携带有所述第一配置文件的第一文件标识;
接收所述确定出的业务服务器发送的文件获取请求,所述文件获取请求中携带有所述第一文件标识;
向发送所述文件获取请求的业务服务器发送所述变化后的第一配置文件。
所述配置服务器还包括绑定模块(图中未示出),用于:
接收第二业务服务器发送的绑定请求,所述绑定请求中携带有第二文件标识;
在所述配置文件与业务服务器的对应关系中,添加所述第二文件标识对应的第二配置文件与所述第二业务服务器的对应关系。
基于相同的技术构思,本发明实施例还提供了一种第一业务服务器,如图6所示,所述第一业务服务器包括:
接收模块610,用于接收配置服务器发送的变化后的第一配置文件;所述变化后的第一配置文件由所述配置服务器在检测到存储在所述配置服务器中的所述第一配置文件发生变化时,根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配 置文件对应的业务服务器,并向确定出的业务服务器发送;所述确定出的业务服务器包括所述第一业务服务器;
更新模块620,用于根据所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
其中,所述接收模块610,用于:
接收所述配置服务器发送的更新通知,所述更新通知中携带有所述第一配置文件的第一文件标识;
当满足预设的文件获取条件时,向所述配置服务器发送文件获取请求,所述文件获取请求中携带有所述第一文件标识;
所述第一业务服务器接收所述配置服务器发送的变化后的第一配置文件。
所述更新通知中还携带有所述变化后的第一配置文件的特征码;
所述接收模块610,用于:
生成本地存储的与所述第一文件标识对应的配置文件的特征码;
如果所述更新通知中携带的特征码与所述生成的特征码不同,则向所述配置服务器发送文件获取请求。
所述更新模块620,用于:
获取预先存储的与本地的业务程序对应的参数项;
在所述变化后的第一配置文件中获取所述参数项对应的参数值;
根据获取的参数值,对所述参数项在本地的业务程序中的参数值进行更新。
本发明实施例中,配置服务器检测到存储在所述配置服务器中的第一配置文件发生变化时,根据预先存储的配置文件与业务服务器的对应关系,确定第一配置文件对应的业务服务器,并向确定出的业务服务器发送变化后的第一配置文件,以使确定出的业务服务器在接收到变化后的第一配置文件时,根据变化后的第一配置文件,对本地的业务程序中的参数值进行更新。这样,对于使用相同配置文件的多个业务服务器,可以集中控制配置文件的更新,无需在各业务服务器上重复操作,从而,可以提高更新业务服务器参数值的效率。
基于相同的技术构思,本发明实施例还提供了一种更新参数值的系统,所述系统包括配置服务器和业务服务器,其中:
所述配置服务器,用于检测到存储在所述配置服务器中的第一配置文件发生变化;根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器;向确定出的业务服务器发送变化后的第一配置文件;所述确定出的业务服务器包括第一业务服务器;
所述第一业务服务器,用于接收所述配置服务器发送的变化后的第一配置文件;根据所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
本发明实施例中,配置服务器检测到第一配置文件发生变化时,根据预先存储的配置文件与业务服务器的对应关系,确定第一配置文件对应的业务服务器,并向确定出的业务服务器发送变化后的第一配置文件,以使确定出的业务服务器在接收到变化后的第一配置文件时,根据变化后的第一配置文件,对本地的业务程序中的参数值进行更新。这样,对于使用相同配置文件的多个业务服务器,可以集中控制配置文件的更新,无需在各业务服务器上重复操作,从而,可以提高更新业务服务器参数值的效率。
图7是本发明实施例提供的配置服务器的结构示意图。该配置服务器1900可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)1922(例如,一个或一个以上处理器)和存储器1932,一个或一个以上存储应用程序1942或数据1944的存储介质1930(例如一个或一个以上海量存储设备)。其中,存储器1932和存储介质1930可以是短暂存储或持久存储。存储在存储介质1930的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器1922可以设置为与存储介质1930通信,在配置服务器1900上执行存储介质1930中的一系列指令操作。
配置服务器1900还可以包括一个或一个以上电源1926,一个或一个以上有线或无线网络接口1950,一个或一个以上输入输出接口1958,一个或一个以上键盘1956,和/或,一个或一个以上操作系统1941,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。
服务器1900可以包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:
配置服务器检测到存储在所述配置服务器中的第一配置文件发生变化;
所述配置服务器根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器;
所述配置服务器向确定出的业务服务器发送变化后的第一配置文件,其中,所述确定出的业务服务器根据接收的所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
所述配置服务器向确定出的业务服务器发送变化后的第一配置文件,包括:
所述配置服务器向所述确定出的业务服务器发送更新通知,所述更新通知中携带有所述第一配置文件的第一文件标识;
所述配置服务器接收所述确定出的业务服务器发送的文件获取请求,所述文件获取请求中携带有所述第一文件标识;
所述配置服务器向发送所述文件获取请求的业务服务器发送所述变化后的第一配置文件。
所述服务器1900中的一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:
所述配置服务器接收第二业务服务器发送的绑定请求,所述绑定请求中携带有第二文件标识;
所述配置服务器在所述配置文件与业务服务器的对应关系中,添加所述第二文件标识对应的第二配置文件与所述第二业务服务器的对应关系。
本发明实施例中,配置服务器检测到第一配置文件发生变化时,根据预先存储的配置文件与业务服务器的对应关系,确定第一配置文件对应的业务服务器,并向确定出的业务服务器发送变化后的第一配置文件,以使确定出的业务服务器在接收到变化后的第一配置文件时,根据变化后的第一配置文件,对本地的业务程序中的参数值进行更新。这样,对于使用相同配置文件的多个业务服务器,可以集中控制配置文件的更新,无需在各业务服务器上重复操作,从而,可以提高更新业务服务器参数值的效率。
本发明实施例提供的业务服务器可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)(例如,一个或一个以上处理器)和存储器,一个或一个以上存储应用程序或数据的存储介质(例如一个或一个以上海量存储设备)。其中,存储器和存储介质可以是短暂存储或持久存储。存储 在存储介质的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器可以设置为与存储介质通信,在服务器上执行存储介质中的一系列指令操作。
服务器还可以包括一个或一个以上电源,一个或一个以上有线或无线网络接口,一个或一个以上输入输出接口,一个或一个以上键盘,和/或,一个或一个以上操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。
服务器可以包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:
第一业务服务器接收配置服务器发送的变化后的第一配置文件;所述变化后的第一配置文件由所述配置服务器在检测到存储在所述配置服务器中的所述第一配置文件发生变化时,根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器,并向确定出的业务服务器发送;所述确定出的业务服务器包括所述第一业务服务器;
所述第一业务服务器根据所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
所述第一业务服务器接收配置服务器发送的变化后的第一配置文件,包括:
所述第一业务服务器接收所述配置服务器发送的更新通知,所述更新通知中携带有所述第一配置文件的第一文件标识;
当满足预设的文件获取条件时,所述第一业务服务器向所述配置服务器发送文件获取请求,所述文件获取请求中携带有所述第一文件标识;
所述第一业务服务器接收所述配置服务器发送的变化后的第一配置文件。
所述更新通知中还携带有所述变化后的第一配置文件的特征码;
所述当满足预设的文件获取条件时,所述第一业务服务器向所述配置服务器发送文件获取请求,包括:
所述第一业务服务器生成本地存储的与所述第一文件标识对应的配置文件的特征码;
如果所述更新通知中携带的特征码与所述生成的特征码不同,所述第一业务服务器则向所述配置服务器发送文件获取请求。
所述第一业务服务器根据所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新,包括:
所述第一业务服务器获取预先存储的与本地的业务程序对应的参数项;
所述第一业务服务器在所述变化后的第一配置文件中获取所述参数项对应的参数值;
所述第一业务服务器根据获取的参数值,对所述参数项在本地的业务程序中的参数值进行更新。
本发明实施例中,配置服务器检测到第一配置文件发生变化时,根据预先存储的配置文件与业务服务器的对应关系,确定第一配置文件对应的业务服务器,并向确定出的业务服务器发送变化后的第一配置文件,以使确定出的业务服务器在接收到变化后的第一配置文件时,根据变化后的第一配置文件,对本地的业务程序中的参数值进行更新。这样,对于使用相同配置文件的多个业务服务器,可以集中控制配置文件的更新,无需在各业务服务器上重复操作,从而,可以提高更新业务服务器参数值的效率。
需要说明的是:上述实施例提供的更新参数值的装置在更新参数值时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的更新参数值的装置与更新参数值的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。

Claims (15)

  1. 一种更新参数值的方法,包括:
    配置服务器检测到存储在所述配置服务器中的第一配置文件发生变化;
    所述配置服务器根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器;
    所述配置服务器向确定出的业务服务器发送变化后的第一配置文件,其中,所述确定出的业务服务器根据接收的所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
  2. 根据权利要求1所述的方法,其中,所述配置服务器向确定出的业务服务器发送变化后的第一配置文件,包括:
    所述配置服务器向所述确定出的业务服务器发送更新通知,所述更新通知中携带有所述第一配置文件的第一文件标识;
    所述配置服务器接收所述确定出的业务服务器发送的文件获取请求,所述文件获取请求中携带有所述第一文件标识;
    所述配置服务器向发送所述文件获取请求的业务服务器发送所述变化后的第一配置文件。
  3. 根据权利要求1所述的方法,还包括:
    所述配置服务器接收第二业务服务器发送的绑定请求,所述绑定请求中携带有第二文件标识;
    所述配置服务器在所述配置文件与业务服务器的对应关系中,添加所述第二文件标识对应的第二配置文件与所述第二业务服务器的对应关系。
  4. 一种更新参数值的方法,包括:
    第一业务服务器接收配置服务器发送的变化后的第一配置文件;所述变化后的第一配置文件由所述配置服务器在检测到存储在所述配置服务器中的所述第一配置文件发生变化时,根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器,并向确定出的业务服务器发送;所述确定出的业务服务器包括所述第一业务服务器;
    所述第一业务服务器根据所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
  5. 根据权利要求4所述的方法,其中,所述第一业务服务器接收配置服务器发送的变化后的第一配置文件,包括:
    所述第一业务服务器接收所述配置服务器发送的更新通知,所述更新通知中携带有所述第一配置文件的第一文件标识;
    当满足预设的文件获取条件时,所述第一业务服务器向所述配置服务器发送文件获取请求,所述文件获取请求中携带有所述第一文件标识;
    所述第一业务服务器接收所述配置服务器发送的变化后的第一配置文件。
  6. 根据权利要求5所述的方法,其中,所述更新通知中还携带有所述变化后的第一配置文件的特征码;
    所述当满足预设的文件获取条件时,所述第一业务服务器向所述配置服务器发送文件获取请求,包括:
    所述第一业务服务器生成本地存储的与所述第一文件标识对应的配置文件的特征码;
    如果所述更新通知中携带的特征码与所述生成的特征码不同,所述第一业务服务器则向所述配置服务器发送文件获取请求。
  7. 根据权利要求4所述的方法,其中,所述第一业务服务器根据所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新,包括:
    所述第一业务服务器获取预先存储的与本地的业务程序对应的参数项;
    所述第一业务服务器在所述变化后的第一配置文件中获取所述参数项对应的参数值;
    所述第一业务服务器根据获取的参数值,对所述参数项在本地的业务程序中的参数值进行更新。
  8. 一种配置服务器,包括:
    检测模块,用于检测到存储在所述配置服务器中的第一配置文件发生变化;
    确定模块,用于根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器;
    发送模块,用于向确定出的业务服务器发送变化后的第一配置文件,其中,所述确定出的业务服务器根据接收的所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
  9. 根据权利要求8所述的配置服务器,其中,所述发送模块,用于:
    向所述确定出的业务服务器发送更新通知,所述更新通知中携带有所述第一配置文件的第一文件标识;
    接收所述确定出的业务服务器发送的文件获取请求,所述文件获取请求中携带有所述第一文件标识;
    向发送所述文件获取请求的业务服务器发送所述变化后的第一配置文件。
  10. 根据权利要求8所述的配置服务器,还包括绑定模块,用于:
    接收第二业务服务器发送的绑定请求,所述绑定请求中携带有第二文件标识;
    在所述配置文件与业务服务器的对应关系中,添加所述第二文件标识对应的第二配置文件与所述第二业务服务器的对应关系。
  11. 一种第一业务服务器,包括:
    接收模块,用于接收配置服务器发送的变化后的第一配置文件;所述变化后的第一配置文件由所述配置服务器在检测到存储在所述配置服务器中的所述第一配置文件发生变化时,根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器,并向确定出的业务服务器发送;所述确定出的业务服务器包括所述第一业务服务器;
    更新模块,用于根据所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
  12. 根据权利要求11所述的第一业务服务器,其中,所述接收模块,用于:
    接收所述配置服务器发送的更新通知,所述更新通知中携带有所述第一配置文件的第一文件标识;
    当满足预设的文件获取条件时,向所述配置服务器发送文件获取请求,所述文件获取请求中携带有所述第一文件标识;
    所述第一业务服务器接收所述配置服务器发送的变化后的第一配置文件。
  13. 根据权利要求12所述的第一业务服务器,其中,所述更新通知中还携带有所述变化后的第一配置文件的特征码;
    所述接收模块,用于:
    生成本地存储的与所述第一文件标识对应的配置文件的特征码;
    如果所述更新通知中携带的特征码与所述生成的特征码不同,则向所述配置服务器 发送文件获取请求。
  14. 根据权利要求11所述的第一业务服务器,其中,所述更新模块,用于:
    获取预先存储的与本地的业务程序对应的参数项;
    在所述变化后的第一配置文件中获取所述参数项对应的参数值;
    根据获取的参数值,对所述参数项在本地的业务程序中的参数值进行更新。
  15. 一种更新参数值的系统,包括配置服务器和业务服务器,其中:
    所述配置服务器,用于检测到存储在所述配置服务器中的第一配置文件发生变化;根据预先存储的配置文件与业务服务器的对应关系,确定所述第一配置文件对应的业务服务器;向确定出的业务服务器发送变化后的第一配置文件;所述确定出的业务服务器包括第一业务服务器;
    所述第一业务服务器,用于接收所述配置服务器发送的变化后的第一配置文件;根据所述变化后的第一配置文件,对本地的业务程序中的参数值进行更新。
PCT/CN2015/072101 2013-12-04 2015-02-02 更新参数值的方法、装置和系统 WO2015081908A2 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310653383.8 2013-12-04
CN201310653383.8A CN104092555B (zh) 2013-12-04 2013-12-04 一种更新参数值的方法、装置和系统

Publications (2)

Publication Number Publication Date
WO2015081908A2 true WO2015081908A2 (zh) 2015-06-11
WO2015081908A3 WO2015081908A3 (zh) 2015-07-23

Family

ID=51640237

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/072101 WO2015081908A2 (zh) 2013-12-04 2015-02-02 更新参数值的方法、装置和系统

Country Status (2)

Country Link
CN (1) CN104092555B (zh)
WO (1) WO2015081908A2 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572173A (zh) * 2016-11-07 2017-04-19 网易无尾熊(杭州)科技有限公司 一种配置信息更新方法、装置和系统
CN108898230A (zh) * 2018-05-24 2018-11-27 华为技术有限公司 一种设备管理方法及管理服务器

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092555B (zh) * 2013-12-04 2017-09-12 腾讯数码(天津)有限公司 一种更新参数值的方法、装置和系统
CN105867837A (zh) * 2015-12-02 2016-08-17 乐视体育文化产业发展(北京)有限公司 一种分布式高速缓存系统中的客户端配置更新方法、设备及系统
CN107947971A (zh) * 2017-11-16 2018-04-20 北京恒华伟业科技股份有限公司 一种信息的配置方法、装置及服务器
TWI752813B (zh) * 2019-05-22 2022-01-11 華南商業銀行股份有限公司 基於觸發操作的伺服器組態檢核及修正系統及其方法
TWI746361B (zh) * 2019-05-22 2021-11-11 華南商業銀行股份有限公司 基於雜湊演算法的伺服器組態檢核及修正系統及其方法
TWI715047B (zh) * 2019-05-22 2021-01-01 華南商業銀行股份有限公司 伺服器組態檢核及修正系統與檢核及修正伺服器組態的方法
CN111082964B (zh) * 2019-10-18 2023-03-03 网宿科技股份有限公司 一种配置信息的分发方法和装置
CN112279027A (zh) * 2020-10-16 2021-01-29 苏州汇川技术有限公司 一种电梯配件的调试方法、电梯调试设备及存储介质

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102005010038B4 (de) * 2005-03-04 2007-10-18 Infineon Technologies Ag Verfahren zum Bereitstellen mehrerer Gruppen-Kommunikationsdienste, Gruppen-Kommunikationsdienst-System und Gruppen-Kommunikationsdienst-Server-Einheit
CN101902439B (zh) * 2009-05-26 2016-04-06 北京金山软件有限公司 更新客户端上业务服务器信息的方法、系统和装置
US9378007B2 (en) * 2010-12-01 2016-06-28 Apple Inc. Pre-heated software installation
CN102546796B (zh) * 2011-12-31 2014-08-06 重庆新媒农信科技有限公司 业务服务器数据更新处理系统及方法
CN103034512B (zh) * 2012-11-28 2016-10-05 北京奇虎科技有限公司 更新程序的方法和装置
CN104092555B (zh) * 2013-12-04 2017-09-12 腾讯数码(天津)有限公司 一种更新参数值的方法、装置和系统

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572173A (zh) * 2016-11-07 2017-04-19 网易无尾熊(杭州)科技有限公司 一种配置信息更新方法、装置和系统
CN106572173B (zh) * 2016-11-07 2020-06-09 阿里巴巴(中国)有限公司 一种配置信息更新方法、装置和系统
CN108898230A (zh) * 2018-05-24 2018-11-27 华为技术有限公司 一种设备管理方法及管理服务器

Also Published As

Publication number Publication date
CN104092555B (zh) 2017-09-12
CN104092555A (zh) 2014-10-08
WO2015081908A3 (zh) 2015-07-23

Similar Documents

Publication Publication Date Title
WO2015081908A2 (zh) 更新参数值的方法、装置和系统
US20220038353A1 (en) Technologies for annotating process and user information for network flows
US11082426B2 (en) Identifying accounts having shared credentials
KR102444106B1 (ko) 데이터 웨어하우스로부터 외부 함수를 호출하는 것
EP3602305B1 (en) Rule-based modifications in a data storage appliance monitor
AU2016346893C1 (en) Peer-to-peer synchronization protocol for multi-premises hosting of digital content items
TWI728036B (zh) 資訊處理方法、裝置和系統
US11777951B2 (en) Data and source validation for equipment output data or equipment failure prediction using blockchains
AU2016346892C1 (en) Synchronization protocol for multi-premises hosting of digital content items
US10097659B1 (en) High performance geographically distributed data storage, retrieval and update
EP3005611B1 (en) Virtual mobile phone interface system and method thereof
WO2019006808A1 (zh) 一种处理长连接建立请求的方法和装置
WO2021135257A1 (zh) 一种漏洞处理方法及相关设备
US20230327965A1 (en) Computer network architecture mapping using metadata
WO2019109922A1 (zh) 资源处理方法及系统、存储介质、电子设备
US10165088B2 (en) Providing unit of work continuity in the event initiating client fails over
US9467452B2 (en) Transferring services in a networked environment
CN113297158B (zh) 一种云安全产品管理方法、装置、设备及存储介质
US20120331531A1 (en) Custom data image building
WO2024136890A1 (en) Method and systems for improving computer network security

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15725966

Country of ref document: EP

Kind code of ref document: A2

NENP Non-entry into the national phase in:

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21.10.16)

122 Ep: pct application non-entry in european phase

Ref document number: 15725966

Country of ref document: EP

Kind code of ref document: A2