CN110597600A - Method for modifying application configuration parameters of distributed system and distributed system - Google Patents

Method for modifying application configuration parameters of distributed system and distributed system Download PDF

Info

Publication number
CN110597600A
CN110597600A CN201910890695.8A CN201910890695A CN110597600A CN 110597600 A CN110597600 A CN 110597600A CN 201910890695 A CN201910890695 A CN 201910890695A CN 110597600 A CN110597600 A CN 110597600A
Authority
CN
China
Prior art keywords
virtual machine
configuration
application
application identifier
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910890695.8A
Other languages
Chinese (zh)
Inventor
李涵
杨小芳
戈星晨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN201910890695.8A priority Critical patent/CN110597600A/en
Publication of CN110597600A publication Critical patent/CN110597600A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method for modifying application configuration parameters of a distributed system and the distributed system, wherein the method comprises the following steps: a designated virtual machine in the virtual machines receives a configuration update notification and a content download path sent by asynchronous middleware, wherein an application identifier of an application deployed in the designated virtual machine is the same as an application identifier included in the configuration update notification, and the application identifier is used for distinguishing applications realizing different functions; the appointed virtual machine acquires configuration updating content from a database according to a content downloading path; and the appointed virtual machine updates the application configuration parameters corresponding to the application identification according to the configuration updating content. The application can improve the operation and maintenance efficiency and accuracy of the application.

Description

Method for modifying application configuration parameters of distributed system and distributed system
Technical Field
The present application relates to the field of distributed system technologies, and in particular, to a method and an apparatus for modifying application configuration parameters of a distributed system.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
A distributed system is a system in which hardware or software components are distributed among different network computers, which communicate and coordinate with each other only via a network, and the individual network computers, including physical or virtual machines, in the distributed system are referred to as nodes. In the architectural design of a distributed system, the system is generally divided into a hierarchical structure in the horizontal direction and different nodes in the vertical direction. For a longitudinally sliced system, the nodes are similarly structured and configured, whereas for a system that is transversely sliced into different layers, the configurations applied for each layer typically have different structures.
The distributed system bears increasing access amount through the expansion nodes, realizes more complex system functions through the structural segmentation, and simultaneously reduces the coupling among all layers. When a cluster is expanded, reduced or upgraded, maintenance personnel need to log in a large number of virtual machine nodes one by one, and manually update and customize the parameter configuration of the application deployed on the nodes, which results in high operation and maintenance labor and time costs, and the accuracy of the configuration parameter item cannot be ensured. For distributed systems with increasingly complex structures and increasing node numbers, configuration management and maintenance of each node become a big problem of operation and maintenance of the distributed systems, and how to improve operation and maintenance efficiency and accuracy rate becomes a problem to be solved urgently at present.
Disclosure of Invention
In a first aspect, an embodiment of the present application provides a method for modifying application configuration parameters of a distributed system, so as to improve operation and maintenance efficiency and accuracy of an application, where the method is applied to a virtual machine in the distributed system, and the distributed system further includes an asynchronous middleware and a database, where the virtual machine is connected to the asynchronous middleware and the database, respectively. The method comprises the following steps:
a designated virtual machine in the virtual machines receives a configuration update notification and a content download path sent by asynchronous middleware, wherein an application identifier of an application deployed in the designated virtual machine is the same as an application identifier included in the configuration update notification, and the application identifier is used for distinguishing applications realizing different functions; the appointed virtual machine acquires configuration updating content from a database according to a content downloading path; and the appointed virtual machine updates the application configuration parameters corresponding to the application identification according to the configuration updating content.
In a second aspect, an embodiment of the present application further provides a method for modifying application configuration parameters of a distributed system, so as to improve operation and maintenance efficiency and accuracy of an application, where the method is applied to an asynchronous middleware in the distributed system, and the distributed system further includes a server and a virtual machine, where the asynchronous middleware is connected to the server and the virtual machine, respectively. The method comprises the following steps:
receiving a configuration updating notification and a content downloading path sent by a server, wherein the configuration updating notification comprises an application identifier matched with configuration, and the application identifier is used for distinguishing applications realizing different functions; judging whether the application identifier in the configuration updating notification is the same as the application identifier corresponding to the virtual machine identifier; and determining the virtual machine with the application identifier which is the same as the application identifier in the configuration updating notification as the designated virtual machine, and sending the configuration updating notification and the content downloading path to the designated virtual machine so that the designated virtual machine updates the application configuration parameters corresponding to the application identifier according to the configuration updating notification and the content downloading path.
In a third aspect, an embodiment of the present application further provides a method for modifying application configuration parameters of a distributed system, so as to improve operation and maintenance efficiency and accuracy of an application, where the method is applied to a server in the distributed system, the distributed system further includes an asynchronous middleware and a database, and the server is connected to the asynchronous middleware and the database, respectively. The method comprises the following steps:
receiving a configuration updating notification and configuration updating content submitted by a user, wherein the configuration updating notification comprises an application identifier adaptive to configuration, and the application identifier is used for distinguishing applications realizing different functions; storing the configuration updating content into a database, and generating a content downloading path according to the storage path; and sending a configuration updating notification and a content downloading path to the asynchronous middleware, so that the asynchronous middleware determines the appointed virtual machine according to the configuration updating notification, and further the appointed virtual machine acquires the application configuration parameters of the application corresponding to the configuration updating content updating application identifier from the database according to the content downloading path.
In a fourth aspect, an embodiment of the present application further provides a virtual machine, configured to improve operation and maintenance efficiency and accuracy of an application, where the virtual machine is included in a distributed system, the distributed system further includes an asynchronous middleware and a database, the virtual machine is connected to the asynchronous middleware and the database, respectively, the virtual machine includes a designated virtual machine, an application identifier of an application deployed in the designated virtual machine is the same as an application identifier included in a configuration update notification, the application identifier is used to distinguish applications that implement different functions, and the designated virtual machine includes:
the first receiving module is used for receiving a configuration updating notice and a content downloading path which are sent by the asynchronous middleware; the acquisition module is used for acquiring configuration updating content from the database according to the content download path received by the first receiving module; and the configuration parameter updating module is used for updating the application configuration parameters corresponding to the application identifiers according to the configuration updating contents acquired by the acquiring module.
In a fifth aspect, an embodiment of the present application further provides an asynchronous middleware, configured to improve operation and maintenance efficiency and accuracy of an application, where the asynchronous middleware is included in a distributed system, the distributed system further includes a server and a virtual machine, the asynchronous middleware is respectively connected to the server and the virtual machine, and the asynchronous middleware includes:
a second receiving module, configured to receive a configuration update notification and a content download path sent by a server, where the configuration update notification includes an application identifier adapted to a configuration, and the application identifier is used to distinguish applications that implement different functions; the judging module is used for judging whether the application identifier in the configuration updating notification received by the second receiving module is the same as the application identifier corresponding to the virtual machine identifier; and the determining module is used for determining the virtual machine which is judged by the judging module to have the application identifier which is the same as the application identifier in the configuration updating notification as the appointed virtual machine, and sending the configuration updating notification and the content downloading path to the appointed virtual machine so that the appointed virtual machine can update the application configuration parameters corresponding to the application identifier according to the configuration updating notification and the content downloading path.
In a sixth aspect, an embodiment of the present application further provides a server, configured to improve operation and maintenance efficiency and accuracy of an application, where the server is included in a distributed system, the distributed system further includes an asynchronous middleware and a database, the server is connected to the asynchronous middleware and the database, and the server includes:
a third receiving module, configured to receive a configuration update notification and configuration update content submitted by a user, where the configuration update notification includes an application identifier adapted to a configuration, and the application identifier is used to distinguish applications that implement different functions; the storage module is used for storing the configuration updating content received by the third receiving module to a database and generating a content downloading path according to the storage path; and the sending module is used for sending the configuration updating notification received by the third receiving module and the content downloading path determined by the storage module to the asynchronous middleware, so that the asynchronous middleware determines the appointed virtual machine according to the configuration updating notification, and the appointed virtual machine acquires the application configuration parameters of the application corresponding to the configuration updating content updating application identifier from the database according to the content downloading path.
In a seventh aspect, an embodiment of the present application further provides a distributed system to improve operation and maintenance efficiency and accuracy of an application, where the distributed system includes the virtual machine according to the fourth aspect, the asynchronous middleware according to the fifth aspect, and the server according to the sixth aspect.
In the embodiment of the application, the designated virtual machine in the virtual machine receives the configuration update notification and the content download path sent by the asynchronous middleware, then the configuration update content is obtained from the database according to the content download path, and the application configuration parameters corresponding to the application identifiers are updated by using the configuration update content.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
fig. 1 is a schematic structural diagram of a distributed system in an embodiment of the present application;
FIG. 2 is a flowchart of a method for modifying application configuration parameters of a distributed system according to an embodiment of the present application;
FIG. 3 is a flow chart of another method for modifying application configuration parameters of a distributed system in an embodiment of the present application;
FIG. 4 is a flow chart of another method for modifying application configuration parameters of a distributed system in an embodiment of the present application;
FIG. 5 is an interaction flow diagram of another method for modifying application configuration parameters of a distributed system according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a virtual machine in an embodiment of the present application;
FIG. 7 is a schematic structural diagram of an asynchronous middleware in an embodiment of the present application;
fig. 8 is a schematic structural diagram of a server in an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present application are provided herein to explain the present application and not to limit the present application.
The embodiment of the present application provides a method for modifying application configuration parameters of a distributed system, which is applied to a virtual machine 104 in the distributed system 100 shown in fig. 1, where the distributed system 100 further includes an asynchronous middleware 102, a database 103, and a server 101.
Wherein the server 101 and the asynchronous middleware 102 are connected. Each virtual machine 104 is connected to the asynchronous middleware 102 and the database 103, respectively, to obtain configuration update notifications from the asynchronous middleware 102 and configuration update content from the database 103.
The Server 101 serves as a service (Server) layer, and is used for connecting a front-end application and a background application, processing various requests submitted by users, receiving contents input by the users, and persisting the received contents to a database. In addition, the server 101 provides the user with functions of logging, querying, and the like.
The asynchronous middleware 102, as a communication medium between the server 101 and the virtual machine 104, may forward the configuration update notification sent by the server 101 to the specified virtual machine 104. Illustratively, the asynchronous middleware 102 may be a distributed middleware having message subscription and publication functions, such as zookeeper, redis, or MQ.
A database 103 for storing the latest configuration parameter information and the historical configuration parameter information, recording operation logs, and the like. Illustratively, the database 103 may be an Oracle database or a MySQL database, etc.
The virtual machine 104, acting as an Agent layer, listens to the asynchronous middleware 102 and gets the configuration update notification sent by the asynchronous middleware 102 in time. At least one application is set in each virtual machine 104, and all the applications in the virtual machines 104 respectively realize different functions. Fig. 1 shows only an example of a case where two applications are set in one virtual machine, "two" is not a limitation of the number of applications set in the virtual machine 104.
The connection modes between the virtual machine 104 and the asynchronous middleware 102, the database 103, and between the server 101 and the asynchronous middleware 102 may be wired connection or wireless connection, where the wireless connection modes include wireless fidelity (Wi-Fi) or Near Field Communication (NFC), and the like. The specific connection method is not limited herein.
As shown in fig. 2, the method for modifying the application configuration parameters of the distributed system includes steps 201 to 203:
step 201, a designated virtual machine in the virtual machines receives a configuration update notification and a content download path sent by asynchronous middleware.
The application identifier of the application deployed in the designated virtual machine is the same as the application identifier included in the configuration update notification, and the application identifier is used for distinguishing applications realizing different functions. The application identifier may be a number, a letter, or other symbols or a combination thereof, and all the symbols capable of achieving the distinguishing function may be the application identifier, and the specific form of the application identifier is not limited herein.
For example, for a distributed system based on a Model-View-control (MVC) structure, the distributed system may be divided into three types, i.e., a Model layer, a View layer, and a control layer, to allocate the same application identifier to an application that implements the function of the Model layer, allocate the same application identifier to an application that implements the function of the View layer, and allocate the same application identifier to an application that implements the function of the control layer, where the application identifiers of the three types of applications are different. If the applications of the control layer realize different functions, the applications of the control layer can be divided into different categories and distributed with different application identifications.
Taking the distributed system 100 shown in fig. 1 as an example, the distributed system 100 includes a virtual machine 1041, a virtual machine 1042, and a virtual machine 1043, and if the application included in the virtual machine 1041 and the virtual machine 1043 is the same as the application identifier in the configuration update notification, both the virtual machine 1041 and the virtual machine 1043 receive the configuration update notification sent by the asynchronous middleware 102. Then, the virtual machine 1041 and the virtual machine 1043 respectively obtain configuration update contents, and update application configuration parameters of the application corresponding to the application identifier.
It should be noted that, in the embodiment of the present application, the initial configuration parameters of the applications with the same function are the same.
In order to enable the asynchronous middleware to identify the designated virtual machine, before the designated virtual machine in the virtual machines receives the configuration update notification sent by the asynchronous middleware, the virtual machines send virtual machine identifications and application identifications to the asynchronous middleware, so that the asynchronous middleware can determine the designated virtual machine according to the configuration update notification, the virtual machine identifications and the application identifications.
Step 202, the designated virtual machine obtains configuration update content from the database according to the content download path.
And 203, the appointed virtual machine updates the application configuration parameters corresponding to the application identification according to the configuration updating content.
After the application configuration parameters are updated, the appointed virtual machine sends the corresponding relation between the virtual machine identification and the configuration parameter updating result to the database, so that a user can inquire the configuration parameter updating result applied to each virtual machine in the database through the server. And the configuration parameter updating result comprises successful configuration parameter updating and failed configuration parameter updating.
In the embodiment of the application, the designated virtual machine in the virtual machine receives the configuration update notification and the content download path sent by the asynchronous middleware, then the configuration update content is obtained from the database according to the content download path, and the application configuration parameters corresponding to the application identifiers are updated by using the configuration update content.
The embodiment of the present application further provides a method for modifying application configuration parameters of a distributed system, where the method is applied to an asynchronous middleware 102 in the distributed system 100 as shown in fig. 1, the distributed system 100 further includes a server 101 and a virtual machine 104, and the asynchronous middleware 102 is connected to the server 101 and the virtual machine 104, respectively.
As shown in fig. 3, the method includes steps 301 to 303:
step 301, receiving a configuration update notification and a content download path sent by a server.
The configuration update notification includes an application identifier adapted to the configuration, and the application identifier is used for distinguishing applications realizing different functions.
Step 302, determining whether the application identifier in the configuration update notification is the same as the application identifier corresponding to the virtual machine identifier.
And before judging whether the application identifier in the configuration updating notification is the same as the application identifier corresponding to the virtual machine identifier, receiving the virtual machine identifier and the application identifier sent by the virtual machine.
Step 303, determining the virtual machine with the application identifier being the same as the application identifier in the configuration update notification as the designated virtual machine, and sending the configuration update notification and the content download path to the designated virtual machine, so that the designated virtual machine updates the application configuration parameters corresponding to the application identifier according to the configuration update notification and the content download path.
In the embodiment of the application, the asynchronous middleware sends the configuration update notification and the content download path to the designated virtual machine, so that the designated virtual machine downloads the configuration update content according to the configuration update notification and the content download path, and the configuration parameters of the application corresponding to the application identifier are updated.
The embodiment of the application also provides a method for modifying the application configuration parameters of the distributed system, the method is applied to a server in the distributed system, the distributed system also comprises an asynchronous middleware and a database, and the server is respectively connected with the asynchronous middleware and the database.
As shown in fig. 4, the method includes steps 401 to 403:
step 401, receiving a configuration update notification and configuration update content submitted by a user.
The configuration update notification includes an application identifier adapted to the configuration, and the application identifier is used for distinguishing applications realizing different functions.
And 402, storing the configuration updating content into a database, and generating a content downloading path according to the storage path.
Step 403, sending a configuration update notification and a content download path to the asynchronous middleware, so that the asynchronous middleware determines the designated virtual machine according to the configuration update notification, and then the designated virtual machine obtains the application configuration parameters of the application corresponding to the configuration update content update application identifier from the database according to the content download path.
When receiving a request for querying an update result of the configuration parameter from a user, the server 101 obtains a corresponding relationship between the virtual machine identifier and the update result of the configuration parameter from the database, and provides the result to the user.
It should be noted that, a user may implement data interaction with the server through a World Wide Web (Web) page, where the data interaction includes submitting a configuration update notification, configuring update content, and querying a configuration parameter update result.
In the embodiment of the application, after receiving the configuration update notification and the configuration update content submitted by the user, the server stores the configuration update content into the database, generates the content download path, and then sends the configuration update notification and the content download path to the asynchronous middleware, so that the specified virtual machine determined by the asynchronous middleware updates the application configuration parameters corresponding to the application identifier by using the configuration update content downloaded according to the content download path, because the specified virtual machine is determined according to whether the specified virtual machine has the application with the same application identifier as the application identifier in the configuration update notification, and the application identifiers are used for distinguishing the applications realizing different functions, and the application identifiers of the applications with the same function are the same, the application configuration parameters of all the applications with the same function can be updated simultaneously, the operation and maintenance efficiency of the applications is greatly improved, and human participation is not needed, the updating accuracy of the application configuration parameters is improved.
An embodiment of the present application further provides a method for modifying an application configuration parameter of a distributed system, where the method is applied to the distributed system shown in fig. 1, and as shown in fig. 5, the method includes steps 501 to 509:
step 501, the virtual machine sends a virtual machine identifier and an application identifier to the asynchronous middleware.
Step 502, the server receives the configuration update notification and the configuration update content submitted by the user.
Step 503, the server stores the configuration updating content in the database, and generates a content downloading path according to the storage path.
Step 504, the server sends a configuration update notification and a content download path to the asynchronous middleware.
And 505, the asynchronous middleware determines the specified virtual machine according to the virtual machine identifier, the application identifier and the configuration update notification.
Step 506, the asynchronous middleware sends a configuration update notification and a content download path to the specified virtual machine.
And 507, the appointed virtual machine acquires configuration updating content from the database according to the content downloading path.
And step 508, the appointed virtual machine updates the application configuration parameters corresponding to the application identification according to the configuration updating content.
Step 509, the designated virtual machine sends the corresponding relationship between the virtual machine identifier and the configuration parameter update result to the database.
In the embodiment of the application, the designated virtual machine in the virtual machine receives the configuration update notification and the content download path sent by the asynchronous middleware, then the configuration update content is obtained from the database according to the content download path, and the application configuration parameters corresponding to the application identifiers are updated by using the configuration update content.
The embodiment of the present application further provides a virtual machine, where the virtual machine is included in the distributed system 100 shown in fig. 1, the distributed system 100 further includes asynchronous middleware 102 and a database 103, the virtual machine 104 is connected to the asynchronous middleware 102 and the database 103, respectively, the virtual machine 104 includes a designated virtual machine 104, an application identifier of an application deployed in the designated virtual machine 104 is the same as an application identifier included in the configuration update notification, and the application identifier is used to distinguish applications that implement different functions. As shown in fig. 6, the designated virtual machine 104 includes a first receiving module 601, an obtaining module 602, and a configuration parameter updating module 603:
the first receiving module 601 is configured to receive a configuration update notification and a content download path sent by the asynchronous middleware.
An obtaining module 602, configured to obtain the configuration update content from the database according to the content download path received by the first receiving module 601.
The configuration parameter updating module 603 is configured to update the application configuration parameter corresponding to the application identifier according to the configuration update content acquired by the acquiring module 602.
In an implementation manner of the embodiment of the present application, the designated virtual machine further includes an identifier sending module 604, configured to send a virtual machine identifier and an application identifier to the asynchronous middleware, so that the asynchronous middleware determines the designated virtual machine according to the configuration update notification, the virtual machine identifier, and the application identifier.
In an implementation manner of the embodiment of the present application, the identifier sending module 604 is further configured to send the corresponding relationship between the virtual machine identifier and the configuration parameter update result to the database.
In the embodiment of the application, the designated virtual machine in the virtual machine receives the configuration update notification and the content download path sent by the asynchronous middleware, then the configuration update content is obtained from the database according to the content download path, and the application configuration parameters corresponding to the application identifiers are updated by using the configuration update content.
The embodiment of the present application further provides an asynchronous middleware, where the asynchronous middleware is included in the distributed system 100 shown in fig. 1, the distributed system 100 further includes a server 101 and a virtual machine 104, and the asynchronous middleware 102 is connected to the server 101 and the virtual machine 104, respectively. As shown in fig. 7, the asynchronous middleware 102 includes a second receiving module 701, a determining module 702, and a determining module 703:
a second receiving module 701, configured to receive a configuration update notification and a content download path sent by a server, where the configuration update notification includes an application identifier adapted to a configuration, and the application identifier is used to distinguish applications that implement different functions.
A determining module 702, configured to determine whether the application identifier in the configuration update notification received by the second receiving module 701 is the same as the application identifier corresponding to the virtual machine identifier.
A determining module 703, configured to determine, by the determining module 702, that there is a virtual machine whose application identifier is the same as the application identifier in the configuration update notification, as an assigned virtual machine, and send the configuration update notification and the content download path to the assigned virtual machine, so that the assigned virtual machine updates the application configuration parameters corresponding to the application identifier according to the configuration update notification and the content download path.
In an implementation manner of the embodiment of the present application, the second receiving module 701 is further configured to receive a virtual machine identifier and an application identifier sent by a virtual machine.
In the embodiment of the application, the asynchronous middleware sends the configuration update notification and the content download path to the designated virtual machine, so that the designated virtual machine downloads the configuration update content according to the configuration update notification and the content download path, and the configuration parameters of the application corresponding to the application identifier are updated.
The embodiment of the present application further provides a server, where the server is included in the distributed system 100 shown in fig. 1, the distributed system 100 further includes an asynchronous middleware 102 and a database 103, and the server 101 is connected to the asynchronous middleware 102 and the database 103, respectively. As shown in fig. 8, the server 101 includes a third receiving module 801, a sending module 802, and a storage module 803:
a third receiving module 801, configured to receive a configuration update notification and configuration update content submitted by a user, where the configuration update notification includes an application identifier adapted to the configuration, and the application identifier is used to distinguish applications that implement different functions.
The storage module 803 is configured to store the configuration update content received by the third receiving module 801 in a database, and generate a content download path according to the storage path.
A sending module 802, configured to send the configuration update notification received by the third receiving module 801 and the content download path determined by the storage module 803 to the asynchronous middleware, so that the asynchronous middleware determines the designated virtual machine according to the configuration update notification, and the designated virtual machine obtains the application configuration parameter of the application corresponding to the configuration update content update application identifier from the database according to the content download path.
In an implementation manner of the embodiment of the present application, the third receiving module 801 is further configured to, when receiving a request for querying an update result of the configuration parameter from a user, obtain a corresponding relationship between a virtual machine identifier and the update result of the configuration parameter from a database.
In the embodiment of the application, after receiving the configuration update notification and the configuration update content submitted by the user, the server stores the configuration update content into the database, generates the content download path, and then sends the configuration update notification and the content download path to the asynchronous middleware, so that the specified virtual machine determined by the asynchronous middleware updates the application configuration parameters corresponding to the application identifier by using the configuration update content downloaded according to the content download path, because the specified virtual machine is determined according to whether the specified virtual machine has the application with the same application identifier as the application identifier in the configuration update notification, and the application identifiers are used for distinguishing the applications realizing different functions, and the application identifiers of the applications with the same function are the same, the application configuration parameters of all the applications with the same function can be updated simultaneously, the operation and maintenance efficiency of the applications is greatly improved, and human participation is not needed, the updating accuracy of the application configuration parameters is improved.
An embodiment of the present application further provides a distributed system, as shown in fig. 1, where the distributed system includes the virtual machine, the asynchronous middleware, and the server described above.
An embodiment of the present application further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method described in any one of steps 201 to 203, steps 301 to 303, or steps 401 to 403 is implemented.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program for executing the method in any one of steps 201 to 203, 301 to 303, or 401 to 403 is stored in the computer-readable storage medium.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are further described in detail for the purpose of illustrating the invention, and it should be understood that the above-mentioned embodiments are only illustrative of the present invention and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (13)

1. A method for modifying application configuration parameters of a distributed system, wherein the method is applied to a virtual machine in the distributed system, the distributed system further comprises an asynchronous middleware and a database, and the virtual machine is respectively connected with the asynchronous middleware and the database, and the method comprises the following steps:
a designated virtual machine in the virtual machines receives a configuration update notification and a content download path sent by asynchronous middleware, wherein an application identifier of an application deployed in the designated virtual machine is the same as an application identifier included in the configuration update notification, and the application identifier is used for distinguishing applications realizing different functions;
the appointed virtual machine acquires configuration updating content from a database according to a content downloading path;
and the appointed virtual machine updates the application configuration parameters corresponding to the application identification according to the configuration updating content.
2. The method of claim 1, wherein before a given one of the virtual machines receives a configuration update notification and a content download path sent by asynchronous middleware, the method comprises:
and the virtual machine sends a virtual machine identifier and an application identifier to the asynchronous middleware, so that the asynchronous middleware determines the designated virtual machine according to the configuration update notification, the virtual machine identifier and the application identifier.
3. The method according to claim 1 or 2, wherein after the specified virtual machine updates the application configuration parameters corresponding to the application identifier according to the configuration update content, the method further comprises:
and sending the corresponding relation between the virtual machine identification and the configuration parameter updating result to the database.
4. A method for modifying application configuration parameters of a distributed system, the method being applied to asynchronous middleware in the distributed system, the distributed system further comprising a server and a virtual machine, the asynchronous middleware being respectively connected with the server and the virtual machine, the method comprising:
receiving a configuration updating notification and a content downloading path sent by a server, wherein the configuration updating notification comprises an application identifier matched with configuration, and the application identifier is used for distinguishing applications realizing different functions;
judging whether the application identifier in the configuration updating notification is the same as the application identifier corresponding to the virtual machine identifier;
and determining the virtual machine with the application identifier which is the same as the application identifier in the configuration updating notification as the designated virtual machine, and sending the configuration updating notification and the content downloading path to the designated virtual machine so that the designated virtual machine updates the application configuration parameters corresponding to the application identifier according to the configuration updating notification and the content downloading path.
5. The method of claim 4, before determining whether the application identifier in the configuration update notification is the same as the application identifier corresponding to the virtual machine identifier, the method further comprising:
and receiving the virtual machine identification and the application identification sent by the virtual machine.
6. A method for modifying application configuration parameters of a distributed system, wherein the method is applied to a server in the distributed system, the distributed system further comprises an asynchronous middleware and a database, and the server is respectively connected with the asynchronous middleware and the database, and the method comprises the following steps:
receiving a configuration updating notification and configuration updating content submitted by a user, wherein the configuration updating notification comprises an application identifier adaptive to configuration, and the application identifier is used for distinguishing applications realizing different functions;
storing the configuration updating content into a database, and generating a content downloading path according to the storage path;
and sending a configuration updating notification and a content downloading path to the asynchronous middleware, so that the asynchronous middleware determines the appointed virtual machine according to the configuration updating notification, and further the appointed virtual machine acquires the application configuration parameters of the application corresponding to the configuration updating content updating application identifier from the database according to the content downloading path.
7. The method of claim 6, further comprising:
and when a request for inquiring the updating result of the configuration parameters by a user is received, acquiring the corresponding relation between the virtual machine identifier and the updating result of the configuration parameters from the database.
8. A virtual machine included in a distributed system, the distributed system further including an asynchronous middleware and a database, the virtual machine being connected to the asynchronous middleware and the database, respectively, the virtual machine including a designated virtual machine, an application identifier of an application deployed in the designated virtual machine being the same as an application identifier included in a configuration update notification, the application identifier being used to distinguish applications that implement different functions, the designated virtual machine including:
the first receiving module is used for receiving a configuration updating notice and a content downloading path which are sent by the asynchronous middleware;
the acquisition module is used for acquiring configuration updating content from the database according to the content download path received by the first receiving module;
and the configuration parameter updating module is used for updating the application configuration parameters corresponding to the application identifiers according to the configuration updating contents acquired by the acquiring module.
9. An asynchronous middleware, comprising a distributed system, the distributed system further comprising a server and a virtual machine, the asynchronous middleware being respectively connected to the server and the virtual machine, the asynchronous middleware comprising:
a second receiving module, configured to receive a configuration update notification and a content download path sent by a server, where the configuration update notification includes an application identifier adapted to a configuration, and the application identifier is used to distinguish applications that implement different functions;
the judging module is used for judging whether the application identifier in the configuration updating notification received by the second receiving module is the same as the application identifier corresponding to the virtual machine identifier;
and the determining module is used for determining the virtual machine which is judged by the judging module to have the application identifier which is the same as the application identifier in the configuration updating notification as the appointed virtual machine, and sending the configuration updating notification and the content downloading path to the appointed virtual machine so that the appointed virtual machine can update the application configuration parameters corresponding to the application identifier according to the configuration updating notification and the content downloading path.
10. A server, wherein the server is included in a distributed system, the distributed system further includes an asynchronous middleware and a database, the server is connected to the asynchronous middleware and the database, respectively, and the server includes:
a third receiving module, configured to receive a configuration update notification and configuration update content submitted by a user, where the configuration update notification includes an application identifier adapted to a configuration, and the application identifier is used to distinguish applications that implement different functions;
the storage module is used for storing the configuration updating content received by the third receiving module to a database and generating a content downloading path according to the storage path;
and the sending module is used for sending the configuration updating notification received by the third receiving module and the content downloading path determined by the storage module to the asynchronous middleware, so that the asynchronous middleware determines the appointed virtual machine according to the configuration updating notification, and the appointed virtual machine acquires the application configuration parameters of the application corresponding to the configuration updating content updating application identifier from the database according to the content downloading path.
11. A distributed system comprising the virtual machine of claim 8, the asynchronous middleware of claim 9, and the server of claim 10.
12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when executing the computer program.
13. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 7.
CN201910890695.8A 2019-09-20 2019-09-20 Method for modifying application configuration parameters of distributed system and distributed system Pending CN110597600A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910890695.8A CN110597600A (en) 2019-09-20 2019-09-20 Method for modifying application configuration parameters of distributed system and distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910890695.8A CN110597600A (en) 2019-09-20 2019-09-20 Method for modifying application configuration parameters of distributed system and distributed system

Publications (1)

Publication Number Publication Date
CN110597600A true CN110597600A (en) 2019-12-20

Family

ID=68861461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910890695.8A Pending CN110597600A (en) 2019-09-20 2019-09-20 Method for modifying application configuration parameters of distributed system and distributed system

Country Status (1)

Country Link
CN (1) CN110597600A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115309431A (en) * 2022-09-29 2022-11-08 荣耀终端有限公司 Parameter updating method, readable medium and electronic equipment
US20220357938A1 (en) * 2021-05-04 2022-11-10 Red Hat, Inc. Automatically configuring and deploying a software operator in a distributed computing environment from a package

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150089031A1 (en) * 2013-09-20 2015-03-26 Oracle International Corporation System and method for providing configuration modularity in an application server, cloud platform, or other environment
CN106878363A (en) * 2016-06-01 2017-06-20 阿里巴巴集团控股有限公司 A kind of information processing method, apparatus and system
CN108780405A (en) * 2016-03-25 2018-11-09 华为技术有限公司 The management method and device applied under network function virtualized environment
CN109710379A (en) * 2018-12-24 2019-05-03 广州供电局有限公司 Virtual operation management method, apparatus, system, computer equipment and storage medium
CN110190997A (en) * 2019-05-31 2019-08-30 深圳前海微众银行股份有限公司 Configuration information obtaining method, device, equipment and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150089031A1 (en) * 2013-09-20 2015-03-26 Oracle International Corporation System and method for providing configuration modularity in an application server, cloud platform, or other environment
CN108780405A (en) * 2016-03-25 2018-11-09 华为技术有限公司 The management method and device applied under network function virtualized environment
CN106878363A (en) * 2016-06-01 2017-06-20 阿里巴巴集团控股有限公司 A kind of information processing method, apparatus and system
CN109710379A (en) * 2018-12-24 2019-05-03 广州供电局有限公司 Virtual operation management method, apparatus, system, computer equipment and storage medium
CN110190997A (en) * 2019-05-31 2019-08-30 深圳前海微众银行股份有限公司 Configuration information obtaining method, device, equipment and computer readable storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220357938A1 (en) * 2021-05-04 2022-11-10 Red Hat, Inc. Automatically configuring and deploying a software operator in a distributed computing environment from a package
US11900089B2 (en) * 2021-05-04 2024-02-13 Red Hat, Inc. Automatically configuring and deploying a software operator in a distributed computing environment from a package
CN115309431A (en) * 2022-09-29 2022-11-08 荣耀终端有限公司 Parameter updating method, readable medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN111866191B (en) Message event distribution method, distribution platform, system and server
CN111666189B (en) Method and system for declaratively visually configuring Prometheus monitoring alarm
CN103237060B (en) A kind of data object acquisition, Apparatus and system
CN110011952B (en) Data transmission method, service cluster and client
CN107122252B (en) Intersystem interaction method and device
CN110062041B (en) Method and device for changing IOT (input/output) equipment based on block chain
CN104932941A (en) Distributed message processing system and device and method thereof
CN113778623A (en) Resource processing method and device, electronic equipment and storage medium
CN111431730B (en) Service processing method, system, computer equipment and readable medium
CN110597600A (en) Method for modifying application configuration parameters of distributed system and distributed system
CN111737023A (en) Vehicle-mounted event processing method, cloud server and computer-readable storage medium
CN112685175A (en) Method and device for constructing service topological graph and computer readable storage medium
CN105530323B (en) File upgrading method, related equipment and system
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN109828830B (en) Method and apparatus for managing containers
JP2010128597A (en) Information processor and method of operating the same
CN110661851A (en) Data exchange method and device
CN109117152B (en) Service generation system and method
CN109962914B (en) Firewall configuration method and device
CN104618414A (en) Implementation method of distributed service, service agent device and distributed system
CN110798358A (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN116303418A (en) Mass rule processing method, system and storage medium based on Internet of things platform
CN114866970A (en) Policy control method, system and related equipment
CN112631727A (en) Method and device for monitoring pod
CN113010377A (en) Method and device for collecting operation logs of operation

Legal Events

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

Application publication date: 20191220