CN106790131B - Parameter modification method and device and distributed platform - Google Patents

Parameter modification method and device and distributed platform Download PDF

Info

Publication number
CN106790131B
CN106790131B CN201611229562.9A CN201611229562A CN106790131B CN 106790131 B CN106790131 B CN 106790131B CN 201611229562 A CN201611229562 A CN 201611229562A CN 106790131 B CN106790131 B CN 106790131B
Authority
CN
China
Prior art keywords
parameter
server
modified
application server
modification
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.)
Active
Application number
CN201611229562.9A
Other languages
Chinese (zh)
Other versions
CN106790131A (en
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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201611229562.9A priority Critical patent/CN106790131B/en
Publication of CN106790131A publication Critical patent/CN106790131A/en
Application granted granted Critical
Publication of CN106790131B publication Critical patent/CN106790131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

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

Abstract

The application discloses a parameter modification method, a parameter modification device and a distributed platform, the parameter modification method disclosed by the embodiment of the application realizes parameter management and modification of all application servers through a configuration server, and the parameters can be modified on the corresponding application server only by modifying the parameters at the configuration server side. Therefore, parameter adjustment is not needed to be carried out on each server, the parameter modification process is simplified, and the working efficiency is improved. Besides, the server corresponding to the parameter also comprises the application server related to the parameter except the application server operated by the server, and the modification process simultaneously comprises the two conditions, so that the synchronization of the data among different application servers is realized, and the consistency of the data is ensured. The working accuracy and effectiveness of the whole distributed platform are further improved.

Description

Parameter modification method and device and distributed platform
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a parameter modification method, apparatus, and system.
Background
With the increasing of the traffic and the data processing amount, more and more servers are needed to work together in the banking system, some servers are used as a rule engine, some servers are used as a calculation engine, and some servers are used as a global route. And the respective work is respectively completed, so that the ordered business processing of the whole bank system is realized.
In order to better coordinate and manage the work among the servers, a plurality of servers are generally constructed as a distributed platform, and data storage, data analysis, calculation and the like are constructed on a software platform consisting of a plurality of servers, so that the resource sharing among the plurality of servers is realized, and each server can be flexibly scheduled, so that the system has high flexibility.
However, each server in the distributed platform needs to be configured with operation parameters respectively before it can work normally. Moreover, in actual operation, it is also possible to adjust and modify the operation parameters in real time. Due to the fact that the number of the servers in the distributed platform is large and the types of the servers are various, the parameter modification process is very complicated.
Disclosure of Invention
In view of this, the present application provides a parameter modification method, apparatus and system, so as to solve the problem in the prior art that the parameter modification process for a server in a distributed platform is complicated.
A parameter modification method is applied to a distributed platform established according to zookeeper, the distributed platform comprises a configuration server and at least one application server, the application server is connected with the configuration server through tcp long connection, and all parameter information of each application server is stored in the configuration server, and the method comprises the following steps:
when the configuration server detects a parameter modification instruction, the parameter modification instruction comprises: determining a parameter to be modified corresponding to the parameter identifier to be modified, and modifying the parameter to be modified according to the modification type;
sending a parameter modification message to an application server corresponding to the parameter identifier to be modified, wherein the parameter modification message comprises: the parameter modification message is a basis for the application server to modify the parameter corresponding to the parameter identifier to be modified according to the modification type.
Preferably, the application server corresponding to the parameter identifier to be modified includes: and the application server is provided with the parameters to be modified.
Preferably, the application server corresponding to the parameter identifier to be modified further includes: and the preset associated application server is associated with the parameters to be modified.
Preferably, the detecting, by the configuration server, the parameter modification instruction includes:
and detecting whether a parameter modification instruction sent through a java or C interface is received.
Preferably, the detected parameter modification instruction includes:
whether a parameter modification instruction sent by a client arranged on an application server is received or not is detected.
Preferably, the distributed platform further includes a configuration client, and the detected parameter modification instruction includes:
and detecting whether a parameter modification instruction sent by a configuration client is received.
Preferably, when the application server is a service processing server, the detecting, by the configuration server, the parameter modification instruction includes:
detecting whether a parameter modification instruction sent by the service processing server through a client is received, wherein the parameter modification instruction comprises: a parameter identifier to be modified and a modification type, wherein the parameter identifier to be modified: the address of the service processing server, the modification type is: increasing;
the modifying the parameter corresponding to the parameter identifier to be modified according to the modification type includes:
adding the address of the service processing server to a preset application server address list;
the sending of the parameter modification message to the application server corresponding to the parameter identifier to be modified includes:
determining a correlation application server corresponding to the service processing server according to a preset correlation relationship;
and sending a parameter modification message to the associated application server.
Preferably, the method further comprises:
detecting the link state with a service processing server in real time;
when the link state is detected to be an interrupt, the detecting parameter modification instruction comprises:
detecting whether a parameter modification instruction is generated, wherein the parameter modification instruction comprises: the method comprises the following steps of identifying a parameter to be modified and a modification type, wherein the parameter to be modified is identified as: the modification type of the address of the service processing server with the broken link is as follows: deleting;
the modifying the parameter corresponding to the parameter identifier to be modified according to the modification type includes:
deleting the address of the service processing server disconnected from the link from a preset application server address list;
the sending of the parameter modification message to the application server corresponding to the parameter identifier to be modified includes:
determining a correlation application server corresponding to the service processing server according to a preset correlation relationship;
and sending the parameter modification message to the associated application server.
Preferably, the application server associated with the service processing server is a global route.
A parameter modifying device is applied to a distributed platform established according to zookeeper, the distributed platform comprises a configuration server and at least one application server, the application server is connected with the configuration server through tcp long connection, all parameter information of each application server is stored in the configuration server, and the device comprises:
a parameter modification module, configured to, when the configuration server detects a parameter modification instruction, the parameter modification instruction including: determining a parameter to be modified corresponding to the parameter identifier to be modified, and modifying the parameter to be modified according to the modification type;
a parameter modification message sending module, configured to send a parameter modification message to an application server corresponding to the parameter identifier to be modified, where the parameter modification message includes: the parameter modification message is a basis for the application server to modify the parameter corresponding to the parameter identifier to be modified according to the modification type.
A distributed platform, built pursuant to zookeeper, comprising: the system comprises a configuration server and at least one application server, wherein the application server is connected with the configuration server through tcp long connection, and all parameter information of each application server is stored in the configuration server;
when detecting a parameter modification instruction, the configuration server modifies the parameter corresponding to the parameter identifier to be modified according to the modification type, where the parameter modification instruction includes: sending a parameter modification message to an application server corresponding to the parameter identifier to be modified, wherein the parameter modification message comprises: the parameter identification and the modification type to be modified;
and the application server receives the parameter modification message and modifies the parameter identification to be modified according to the parameter modification type.
According to the technical scheme, the parameter modification method disclosed by the embodiment of the application realizes the parameter management and modification of all the application servers through the configuration server, and the parameters can be modified on the corresponding application server only by modifying the parameters at the configuration server. Therefore, parameter adjustment is not needed to be carried out on each server, the parameter modification process is simplified, and the working efficiency is improved. Besides, the server corresponding to the parameter also comprises the application server related to the parameter except the application server operated by the server, and the modification process simultaneously comprises the two conditions, so that the synchronization of the data among different application servers is realized, and the consistency of the data is ensured. The working accuracy and effectiveness of the whole distributed platform are further improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a distributed platform disclosed in an embodiment of the present application;
FIG. 2 is a schematic diagram of a tree structure of storage parameters disclosed in an embodiment of the present application;
FIG. 3 is a flowchart of a parameter modification method disclosed in an embodiment of the present application;
FIG. 4 is a flow chart of yet another parameter modification method disclosed in an embodiment of the present application;
FIG. 5 is a flow chart of yet another parameter modification method disclosed in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a parameter modification apparatus disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application discloses a parameter modification method applied to a distributed platform. The distributed platform is established according to a distributed application program coordination service zookeeper of a distributed and open source code, and the structure of the distributed platform is shown in fig. 1 and comprises the following steps: a configuration server 101 and at least one application server 102. The configuration server 101 and the application server 102 are connected by tcp (Transmission Control Protocol) long connection. The memory in the configuration server 101 stores all parameter information for all application servers.
The application server includes: the background servers, such as global routing, rule engine, etc., also include business processing servers, such as comprehensive point account server, comprehensive point exchange server, comprehensive point report server, etc. The service processing server is a server for providing service, and can receive a service request of a user, and respond to the request to complete the service. The background server is a server for assisting the service processing service to realize the service, and can share specific operations such as processing tasks, calculation, searching and the like for the service processing server, but the background server does not need to directly face the user.
The staff can send parameter modification instructions to the configuration server through a java or C interface of the distributed platform. The parameter modification instruction sent by the java or C interface can be directed to the parameters of the program currently running or the parameters of the program which is not running.
In addition, the staff member can also send a parameter modification instruction through the client terminal running on each application server, and the parameter modification instruction can only make modification, namely static modification, on the parameters of the programs which are not running. In addition, each client can also automatically trigger the operation of sending the modification instruction at a certain time or when a certain event occurs through a rule preset by the application server. For example, in a holiday or other situation, a service under a module of a component needs to make a calculation rule adjustment like point accumulation or exchange for the holiday, and when the holiday is reached, a client on an application server issuing the service may send a parameter modification instruction to a configuration server to change the rule.
In addition to sending the modification instruction through the java or C interface or sending the modification instruction through the client configured on the application server, the parameter modification instruction may also be sent through configuring the client. As shown in fig. 1, the configuration client 103 is a tool independent of the application server and the configuration server, and is packaged by code and script commands, and is deployed and operated independently, and is dedicated to sending parameter modification instructions. To ease the task load of the interface or client. And the implementation of this operation is no longer limited to interfaces and clients.
The configuration server is used as a modification interface of all parameter information, and can receive a parameter modification instruction sent from the outside, when the parameter modification instruction is received, obtain a parameter identifier to be modified and a modification type in the instruction, then determine a parameter to be modified corresponding to the parameter identifier, for example, search a parameter corresponding to the parameter identifier to be modified in all locally stored parameter information, and modify the parameter according to the modification type. The modification types include: deleted, updated or added.
And if the modification type is deletion, directly deleting the parameter corresponding to the parameter identifier to be modified.
If the modification type is updating, the parameter modification instruction also comprises the updated parameter value, so that the original parameter value is updated to the updated parameter value.
If the modification type is newly added, if the parameter corresponding to the parameter identifier to be modified is already stored in the original server, the newly added service means that the same parameter is set again, the parameter is directly searched, and one more record of the parameter is added. If the parameter does not exist, the name and the parameter value of the newly-added parameter are actually contained in the parameter modification instruction, and at this time, the contents are used as the identification of the parameter to be modified. Or the parameter modification instruction may include a parameter corresponding to the identifier, or communicate with the client sending the parameter modification instruction again, prompt to input a specific parameter, and the like.
The above operations are all performed locally by the configuration server, i.e. the parameters on the configuration server are present instead of the parameters on the actual application server. In order to modify the parameters of the application server, the configuration server sends a parameter modification message to the application server corresponding to the parameter identifier to be modified, wherein the message contains the parameter identifier to be modified and the modification type so as to inform the application server of which parameter is modified, and then the application server modifies the corresponding parameter according to the parameter modification message, thereby completing the modification of the parameter.
In this embodiment, the application server corresponding to the parameter identifier to be modified is, in fact, the application server provided with the parameter corresponding to the parameter identifier to be modified.
In addition to the above examples, the application server corresponding to the parameter identifier to be modified further includes: and the preset associated application server is associated with the parameters to be modified. The introduction to the association server is as follows.
In this embodiment, all the parameter information is stored in the configuration server, specifically, the parameter information may be stored in a tree structure by combining the relationship between the parameters, and all the parameter information may construct one or more trees. Fig. 2 is an example of a tree. The parameter at the root node of the component can be applied to the component a and simultaneously applied to the component B, so when the parameter at the node changes, the corresponding component a and component B also change. If the component A is applied to a module root node, the module root node is changed. And the component B is applied to another module root node, the root node is also changed, meanwhile, the module A and the module B constructed by the root node are also changed in parameters, and further, the application server A and the application server B constructed by the module B are also changed. It can be seen that if this parameter changes at the root node of the component, both application server a and application server B will change.
Based on the relationship among the parameters, each application server monitors the node corresponding to the parameter that needs to be concerned or the node corresponding to the parameter contained in the application server, and once the parameters of the nodes change, the application server means that the application server needs to modify the parameters, and the application server that monitors a certain node is the associated application server related to the parameter corresponding to the node. Since an application server may contain multiple parameters, a parameter may be monitored by multiple application servers. A certain parameter may correspond to multiple associated application servers.
The service A and the service B are nodes corresponding to parameters of application programs running on the application server A and the application server B respectively. Take a rule engine server as an example. After the rule engine server C is started, it is first connected to the configuration server via a long TCP connection. Then, the information needed by the configuration server itself is downloaded to the local cache, as shown in fig. 1, and the nodes to be monitored, such as service a and server B, are set. If the configuration server receives a modification instruction for the configuration parameters of the service B, the configuration parameters are modified according to the procedure shown in step S101, and after modification, a parameter modification message is sent to the server corresponding to the parameter through a tcp instruction, that is, to the application server B and the rule engine server C monitoring the node. And the application server B modifies the local configuration parameters by using the parameter modification message. And the rule engine server C downloads the modified parameters corresponding to the node from the configuration server by utilizing function callback, replaces the original parameters and stores the original parameters in a local cache.
Therefore, after a certain parameter is modified on the configuration server, in addition to modifying the application server provided with the parameter, the application server related to the parameter needs to be modified.
As mentioned in the foregoing embodiments, the application server includes a background server and a service processing server. In this embodiment, the service processing server needs to dynamically register its own address information to the configuration server in addition to being connected to the configuration server through the long TCP connection, as shown in fig. 1, the address information is stored by the configuration server and synchronized to other application servers that need to store the address information. That is, the parameter information stored in the configuration server also includes address information of the server. The configuration server can detect the link state with the service processing server in real time, if the service processing server goes down, the TCP connection is disconnected, and correspondingly, the configuration server can delete the address information of the service processing server. Once the connection is established again, registration is performed again, and the address information is sent to the configuration server for storage. The whole process is essentially a process of modifying the address information of the server as a parameter, the registration is equivalent to adding the address, and when the server is disconnected, the address needs to be deleted.
Similarly, after the address information is modified by adding or deleting, the modified information needs to be sent to the corresponding associated server, that is, the global route. Therefore, the address information acquired from the configuration server through the global routing is ensured to be accurate, and the service request sent by the user can be accurately sent to the corresponding application server. In this embodiment, the address information may be stored in a preset application server address list.
In the above situation, in the process of adding a new address of the service processing server, it is not necessary to send a parameter modification message indicating the addition of the address to the service processing server, so that the message is only required to be sent to the associated application server corresponding to the parameter, that is, the global routing. Similarly, when the configuration server finds that the link with a certain service processing application server is disconnected, the address corresponding to the service processing application server is deleted, but the service processing application server does not need to be notified any more, and only the global route needs to be notified.
Therefore, the modification process of each parameter does not need to change the application server where the parameter is located, and only the application server associated with the parameter may be modified.
In the distributed platform disclosed in the above embodiment, parameter management and modification of all application servers are realized by the configuration server, and the parameters can be modified on the corresponding application server only by modifying the parameters at the configuration server side. Therefore, parameter adjustment is not needed to be carried out on each server, the parameter modification process is simplified, and the working efficiency is improved.
In addition, in the embodiment, because the server corresponding to the parameter includes the application server related to the parameter in addition to the application server operated by the server, and the modification process includes both of the two cases, synchronization of data among different application servers is realized, and consistency of the data is ensured. The working accuracy and effectiveness of the whole distributed platform are further improved.
The above embodiments are descriptions of the schemes from the perspective of a distributed platform. To better explain the workflow of the configuration server, the scheme will be explained again from the perspective of the configuration server.
The flow for completing parameter modification by configuring a server disclosed in the embodiment of the present application is shown in fig. 3, and includes:
step S301: the configuration server judges whether a parameter modification instruction is detected.
The parameter modification instruction includes an identification of a parameter to be modified and a type of modification to be performed on the parameter.
The modification instructions detected by the configuration server may be sent by the staff member via a configuration client or an interface, such as a java or C interface. Of course, the configuration server may also automatically generate the configuration command after detecting some trigger condition or receiving a trigger command. Such as set forth in the embodiments above, the automatically generated parameter modification instructions upon detection of a long connection disconnection with the application server.
Step S302: and when a parameter modification instruction is detected, determining a parameter to be modified corresponding to the parameter identifier to be modified, and modifying the parameter to be modified according to the modification type.
Step S303: and sending the parameter modification message to an application server corresponding to the parameter identifier to be modified.
After receiving the parameter modification message, the application server determines to find the parameter corresponding to the parameter identifier to be modified, and then modifies the parameter according to the modification type. And finally, finishing the modification process of the parameters.
In this embodiment, the application server corresponding to the identifier of the parameter to be modified includes an application server to which the parameter to be modified is set, and in addition, the method may further include: and the preset associated application server is associated with the parameter to be modified.
For the associated server in this embodiment, if the application server 1 includes the parameter a and the application server 2 monitors the parameter a through the watchdog program, and if the application server 1 includes the parameter B and the application server 3 monitors the parameter B through the watchdog program, it can be determined that, when the parameter a is modified, the application server corresponding to the identifier of the parameter to be modified includes the server 1 and the server 2, and the server 2 is the associated application server that is preset and associated with the parameter to be modified. When the parameter B is modified, the application server corresponding to the parameter identifier to be modified includes the server 1 and the server 3, and the server 3 is a preset associated application server associated with the parameter to be modified.
Because the types of the parameters are various, the format and modification mode of each parameter are different, and therefore, the specific modification process is different. The parameter modification method is further described below by taking one of the cases as an example.
In a distributed platform, application servers are typically included as global routes. The server has the function of receiving an external service processing request and forwarding the service processing request to a corresponding service processing server through the address of the service processing server stored in the server. In this embodiment, the address of the service processing server stored in the configuration server is also stored as a parameter of the application server. If the addresses are changed, the addresses are correspondingly modified through the configuration server, and finally the addresses are correspondingly modified to the application server serving as the global route.
The modification modes include two types, addition and deletion, and on the basis, the specific modification process of the addition parameter is shown in fig. 4 and includes:
step S401: and detecting whether a parameter modification instruction sent by the service processing server through the client is received.
The parameter modification instruction comprises the following steps: the method comprises the following steps of identifying a parameter to be modified and a modification type, wherein the parameter to be modified is identified as: the address of the service processing server, the modification type is: increase of
In this embodiment, when the service processor establishes a connection with the configuration server, the service processor sends the parameter modification instruction to the configuration server. Each business processing server is provided with a client end which is in communication connection with the configuration server, and the client end is connected with the configuration server to send a request to the configuration server or receive an instruction or a message of the configuration server.
Step S402: and adding the address of the service processing server to a preset application server address list.
And adding the address of the service server as a parameter into a preset application server address list.
Step S403: and determining the associated application server corresponding to the parameters to be modified according to the preset association relation.
Step S404: and sending the parameter modification message to the associated application server.
The associated application server in this embodiment is a global route.
Through the flow shown in fig. 4, the new addition of the parameters is completed. In correspondence therewith, deletion of the parameters is shown in fig. 5. The method comprises the following steps:
step S501: and detecting the link state with the service processing server in real time.
Step S502: and when detecting that the link state with a certain service processing server is disconnected, detecting whether a parameter modification instruction is generated.
In this embodiment, since the link state detection is performed by configuring the server itself, it can know in time whether there is a normal connection with the service processing server, and once the connection is disconnected, trigger an operation of generating a parameter modification instruction. Therefore, whether the parameter modification process is to be executed can be determined only by detecting whether the parameter modification instruction is generated.
Step S503: and when a parameter modification instruction is detected, determining the identifier and the modification type of the parameter to be modified.
Step S504: and deleting the address of the service processing server disconnected from the link from a preset application server address list.
Step S505: and determining a related application server corresponding to the service processing server according to a preset related relation.
Step S506: and sending the parameter modification message to the associated application server.
The associated application server in this embodiment is a global route.
It can be seen from the above embodiments that the parameter modification method implements parameter management and modification of all application servers through the configuration server, and only the parameter modification at the configuration server side is required, so that the parameter can be modified on the corresponding application server. Therefore, parameter adjustment is not needed to be carried out on each server, the parameter modification process is simplified, and the working efficiency is improved.
Besides, the server corresponding to the parameter also comprises the application server related to the parameter except the application server operated by the server, and the modification process simultaneously comprises the two conditions, so that the synchronization of the data among different application servers is realized, and the consistency of the data is ensured. The working accuracy and effectiveness of the whole distributed platform are further improved.
The embodiment of the present application also discloses a parameter modification device corresponding to the above parameter modification method, the structure of which is shown in fig. 6, and the device includes:
a parameter modification module 601, configured to modify, when a parameter modification instruction is detected, a parameter corresponding to the parameter identifier to be modified according to the modification type, where the parameter modification instruction includes: the parameter identification and the modification type to be modified;
a parameter modification message sending module 602, configured to send a parameter modification message to an application server corresponding to the parameter identifier to be modified, where the parameter modification message includes: the parameter modification message is a basis for the application server to modify the parameter corresponding to the parameter identifier to be modified according to the modification type.
The specific working process of the device can refer to the method embodiments corresponding to fig. 3-5. And will not be described in detail herein.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that it is obvious to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and these modifications and improvements should also be considered as the protection scope of the present invention.

Claims (9)

1. A parameter modification method is applied to a distributed platform established according to zookeeper, the distributed platform comprises a configuration server and at least one application server, the application server is connected with the configuration server through tcp long connection, and all parameter information of each application server is stored in the configuration server, and the method comprises the following steps:
when the configuration server detects a parameter modification instruction, the parameter modification instruction comprises: determining a parameter to be modified corresponding to the parameter identifier to be modified, and modifying the parameter to be modified according to the modification type;
sending a parameter modification message to an application server corresponding to the parameter identifier to be modified, wherein the parameter modification message comprises: the parameter modification message is a basis for the application server to modify the parameter corresponding to the parameter identifier to be modified according to the modification type;
the application server corresponding to the parameter identifier to be modified comprises: the application server is provided with the parameters to be modified;
the application server corresponding to the parameter identifier to be modified further includes: the preset associated application server associated with the parameter to be modified is as follows: and the server monitors the parameters to be modified.
2. The method of claim 1, wherein the configuration server detecting a parameter modification instruction comprises:
and detecting whether a parameter modification instruction sent through a java or C interface is received.
3. The method of claim 1, wherein the detected parameter modification instruction comprises:
whether a parameter modification instruction sent by a client arranged on an application server is received or not is detected.
4. The method of claim 1, wherein the distributed platform further comprises a configuration client, and wherein the detected parameter modification instruction comprises:
and detecting whether a parameter modification instruction sent by a configuration client is received.
5. The method according to any one of claims 1 to 4, wherein when the application server is a service processing server, the detecting, by the configuration server, a parameter modification instruction comprises:
detecting whether a parameter modification instruction sent by the service processing server through a client is received, wherein the parameter modification instruction comprises: a parameter identifier to be modified and a modification type, wherein the parameter identifier to be modified: the address of the service processing server, the modification type is: increasing;
the modifying the parameter corresponding to the parameter identifier to be modified according to the modification type includes:
adding the address of the service processing server to a preset application server address list;
the sending of the parameter modification message to the application server corresponding to the parameter identifier to be modified includes:
determining a correlation application server corresponding to the service processing server according to a preset correlation relationship;
and sending a parameter modification message to the associated application server.
6. The method of claim 5, further comprising:
detecting the link state with a service processing server in real time;
when the link state is detected to be an interrupt, the detecting parameter modification instruction comprises:
detecting whether a parameter modification instruction is generated, wherein the parameter modification instruction comprises: the method comprises the following steps of identifying a parameter to be modified and a modification type, wherein the parameter to be modified is identified as: the modification type of the address of the service processing server with the broken link is as follows: deleting;
deleting the address of the service processing server disconnected from the link from a preset application server address list;
determining a correlation application server corresponding to the service processing server according to a preset correlation relationship;
and sending the parameter modification message to the associated application server.
7. The method of claim 6, wherein the application server associated with the traffic processing server is a global route.
8. A parameter modification device is applied to a distributed platform established according to zookeeper, the distributed platform comprises a configuration server and at least one application server, the application server is connected with the configuration server through tcp long connection, and all parameter information of each application server is stored in the configuration server, and the device comprises:
a parameter modification module, configured to, when the configuration server detects a parameter modification instruction, the parameter modification instruction including: determining a parameter to be modified corresponding to the parameter identifier to be modified, and modifying the parameter to be modified according to the modification type;
a parameter modification message sending module, configured to send a parameter modification message to an application server corresponding to the parameter identifier to be modified, where the parameter modification message includes: the parameter modification message is a basis for the application server to modify the parameter corresponding to the parameter identifier to be modified according to the modification type;
the application server corresponding to the parameter identifier to be modified comprises: the application server is provided with the parameters to be modified;
the application server corresponding to the parameter identifier to be modified further includes: the preset associated application server associated with the parameter to be modified is as follows: and the server monitors the parameters to be modified.
9. A distributed platform, built in accordance with zookeeper, comprising: the system comprises a configuration server and at least one application server, wherein the application server is connected with the configuration server through tcp long connection, and all parameter information of each application server is stored in the configuration server;
when the configuration server detects a parameter modification instruction, modifying the parameter corresponding to the parameter identifier to be modified according to the modification type, wherein the parameter modification instruction comprises: the parameter identification and the modification type to be modified send a parameter modification message to an application server corresponding to the parameter identification to be modified, wherein the parameter modification message comprises: the parameter identification and the modification type to be modified;
the application server receives the parameter modification message and modifies the parameter identification to be modified according to the parameter modification type;
the application server corresponding to the parameter identifier to be modified comprises: the application server is provided with the parameters to be modified;
the application server corresponding to the parameter identifier to be modified further includes: the preset associated application server associated with the parameter to be modified is as follows: and the server monitors the parameters to be modified.
CN201611229562.9A 2016-12-27 2016-12-27 Parameter modification method and device and distributed platform Active CN106790131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611229562.9A CN106790131B (en) 2016-12-27 2016-12-27 Parameter modification method and device and distributed platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611229562.9A CN106790131B (en) 2016-12-27 2016-12-27 Parameter modification method and device and distributed platform

Publications (2)

Publication Number Publication Date
CN106790131A CN106790131A (en) 2017-05-31
CN106790131B true CN106790131B (en) 2020-08-28

Family

ID=58922241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611229562.9A Active CN106790131B (en) 2016-12-27 2016-12-27 Parameter modification method and device and distributed platform

Country Status (1)

Country Link
CN (1) CN106790131B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536484A (en) * 2018-03-26 2018-09-14 平安普惠企业管理有限公司 Parameter amending method, device, terminal device and storage medium
CN111414348A (en) * 2019-01-08 2020-07-14 顺丰科技有限公司 Method and device for modifying database instance parameters
CN111478812B (en) * 2020-04-07 2023-10-24 中国建设银行股份有限公司 Configuration center server, application method and distributed platform system
CN112328275A (en) * 2020-10-10 2021-02-05 岭东核电有限公司 Data updating method and device for nuclear power plant, terminal equipment and storage medium
CN114036171B (en) * 2021-11-27 2024-04-12 企查查科技股份有限公司 Application data management method, device, computer equipment and storage medium
CN114500270B (en) * 2022-01-25 2024-07-16 重庆智铸华信科技有限公司 Processing method, device, equipment and storage medium for remote configuration parameters

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255752A (en) * 2011-06-30 2011-11-23 北京新媒传信科技有限公司 Configuration management system and method of server cluster
CN103516538A (en) * 2012-06-28 2014-01-15 中兴通讯股份有限公司 Method and device for uniform configuration of carrier-class clustered applications
CN104410511A (en) * 2014-10-27 2015-03-11 浪潮(北京)电子信息产业有限公司 Server management method and system
CN105681258A (en) * 2014-11-19 2016-06-15 腾讯科技(武汉)有限公司 Session method and session device based on third-party server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10200240B2 (en) * 2014-01-22 2019-02-05 Nec Corporation Method for configuring an M2M system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255752A (en) * 2011-06-30 2011-11-23 北京新媒传信科技有限公司 Configuration management system and method of server cluster
CN103516538A (en) * 2012-06-28 2014-01-15 中兴通讯股份有限公司 Method and device for uniform configuration of carrier-class clustered applications
CN104410511A (en) * 2014-10-27 2015-03-11 浪潮(北京)电子信息产业有限公司 Server management method and system
CN105681258A (en) * 2014-11-19 2016-06-15 腾讯科技(武汉)有限公司 Session method and session device based on third-party server

Also Published As

Publication number Publication date
CN106790131A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106790131B (en) Parameter modification method and device and distributed platform
CN108418862B (en) Micro-service management method and system based on artificial intelligence service cloud platform
US11181382B2 (en) Generating maps of private spaces using mobile computing device sensors
WO2017140131A1 (en) Data writing and reading method and apparatus, and cloud storage system
WO2019195121A1 (en) Digital worker management system
CN107992537B (en) Service attribute transmission method, device, computer equipment and storage medium
US20080263082A1 (en) Recovery segment identification in a computing infrastructure
KR20180038539A (en) A method and system for implementing data tracking with a software development kit
CN107656695B (en) Data storage and deletion method and device and distributed storage system
CN110602234B (en) Block chain network node management method, device, equipment and storage medium
CN112015696B (en) Data access method, data relationship setting method, data access device, data relationship setting device and storage medium
JP5268589B2 (en) Information processing apparatus and information processing apparatus operating method
US10025646B2 (en) Naming of nodes in NET framework
KR100489849B1 (en) Resource management system and resource management method
CN109962914B (en) Firewall configuration method and device
CN112631727A (en) Method and device for monitoring pod
CN112019362A (en) Data transmission method, device, server, terminal, system and storage medium
US12061921B2 (en) Management apparatus, management system, management method and management program
CN110933184B (en) Resource publishing platform and resource publishing method
JP5761345B2 (en) Communication network system, communication method, and information processing apparatus
CN112787868A (en) Information synchronization method and device
KR101146742B1 (en) METHOD OF DISTRIBUTED SESSION MANAGEMENT IN SaaS AND SESSION MANAGEMENT SYSTEM THEROF
CN112910675A (en) Equipment management method, device and system
JP6299374B2 (en) Processing cooperation method, processing cooperation program, and processing cooperation system
CN113312592B (en) Scheduling method, device and equipment of software license and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant