CN115622884A - Configuration data change processing method and device and computer equipment - Google Patents
Configuration data change processing method and device and computer equipment Download PDFInfo
- Publication number
- CN115622884A CN115622884A CN202211638250.9A CN202211638250A CN115622884A CN 115622884 A CN115622884 A CN 115622884A CN 202211638250 A CN202211638250 A CN 202211638250A CN 115622884 A CN115622884 A CN 115622884A
- Authority
- CN
- China
- Prior art keywords
- configuration
- configuration data
- service platform
- target
- data
- 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
Links
- 230000008859 change Effects 0.000 title claims abstract description 259
- 238000003672 processing method Methods 0.000 title description 13
- 238000000034 method Methods 0.000 claims abstract description 71
- 238000012545 processing Methods 0.000 claims abstract description 42
- 230000004044 response Effects 0.000 claims abstract description 34
- 238000007726 management method Methods 0.000 claims description 92
- 238000004590 computer program Methods 0.000 claims description 14
- 238000013500 data storage Methods 0.000 claims description 9
- 238000012544 monitoring process Methods 0.000 claims description 7
- 230000005540 biological transmission Effects 0.000 description 9
- 230000008569 process Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000008676 import Effects 0.000 description 4
- 238000004458 analytical method Methods 0.000 description 2
- 238000007405 data analysis Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application relates to a method and a device for processing change of configuration data, computer equipment, a service platform configuration system and a storage medium. The method is applied to a configuration center server in a service platform configuration system, and the service platform configuration system comprises the configuration center server and a service platform management server; the method comprises the following steps: responding to the change operation of the initial configuration data of the service platform configuration interface, determining target configuration data according to the result of the change operation, and storing the target configuration data; the target configuration data is the configuration data which is changed relative to the initial configuration data; and sending a configuration change notification to the service platform management server so that the service platform management server loads target configuration data stored in the configuration center server in response to receiving the configuration change notification, and performs configuration updating on the service platform according to the target configuration data. By adopting the method, the problem of reading and amplifying the configuration data can be avoided.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for changing and processing configuration data, a computer device, a service platform configuration system, and a storage medium.
Background
With the development of cloud technology, cloud services occupy more and more important positions in the internet market, and service platforms are generally used and popularized in enterprises. In the process of developing the service platform, parameters or variables and the like to be changed are usually separated from codes and independently managed, and exist in the form of independent configuration files, so that static system workpieces or deliverables are better adapted to the actual physical operating environment. The change operation of the configuration data is one of effective means for adjusting the operation behavior of the service platform.
However, in the conventional method for processing change of configuration data, when the configuration data is loaded, the whole configuration file that the business service platform provides the business service is usually loaded, and the problems of reading and amplifying the configuration data exist.
Disclosure of Invention
In view of the above, it is necessary to provide a method and an apparatus for changing and processing configuration data, a computer device, a service platform configuration system, and a storage medium, which can avoid the problem of reading and amplifying configuration data.
In a first aspect, a method for changing and processing configuration data is provided, where the method is applied to a configuration center server in a service platform configuration system, and the service platform configuration system includes the configuration center server and a service platform management server; the method comprises the following steps:
responding to the change operation of the initial configuration data of the service platform configuration interface, determining target configuration data according to the result of the change operation, and storing the target configuration data; the target configuration data is the configuration data which is changed relative to the initial configuration data;
and sending the configuration change notification to the service platform management server so that the service platform management server loads the target configuration data stored in the configuration center server in response to receiving the configuration change notification, and updates the configuration of the service platform according to the target configuration data.
In one embodiment, the method further includes: and in response to the condition that the sending state of the configuration change notification is monitored to be unsuccessfully sent, recording the sending state, returning to the step of sending the configuration change notification to the service platform management server after preset time, and performing iterative processing until the sending state is successfully sent.
In one embodiment, the method further includes: and recording the sending state in response to the condition that the sending state of the configuration change notification is successfully sent.
In one embodiment, determining the target configuration data based on the result of the change operation includes: determining the configuration data after the change operation according to the result of the change operation; and comparing and analyzing the configuration data after the change operation with the initial configuration data to obtain target configuration data.
In one embodiment, the configuration center server is configured with a configuration change history database; storing the target configuration data includes writing the target configuration data into a configuration change history database, and updating version information of the configuration data; the configuration change notification includes updated configuration data version information; the loading of the target configuration data stored in the configuration center server includes: determining configuration data version information according to the configuration change notification; and searching in a configuration change history database according to the configuration data version information to obtain target configuration data.
In one embodiment, the configuration center server is configured with a configuration change history database and a cache module; storing the target configuration data comprises writing the target configuration data into a configuration change history database and a cache module, and updating the version information of the configuration data; the configuration change notification includes updated configuration data version information; the loading of the target configuration data stored in the configuration center server includes: determining configuration data version information according to the configuration change notification; and retrieving in the cache module according to the version information of the configuration data to obtain the target configuration data.
In a second aspect, a method for changing and processing configuration data is provided, where the method is applied to a service platform management server in a service platform configuration system, and the service platform configuration system includes a configuration center server and a service platform management server; the method comprises the following steps: loading target configuration data stored in the configuration center server in response to receiving a configuration change notification sent by the configuration center server; the target configuration data is determined by the configuration center server according to the result of change operation in response to the change operation on the initial configuration data of the service platform configuration interface; the target configuration data is the configuration data which is changed relative to the initial configuration data; and updating the configuration of the service platform according to the target configuration data.
In one embodiment, the service platform management server is configured with a local cache module; the local cache module is used for storing initial configuration data; the configuration center server is also used for storing the configuration data after the change operation; the method further comprises the following steps: responding to the restarting operation of the service platform management server, and acquiring the configuration data after the change operation stored in the configuration center server and the initial configuration data stored in the local cache module; wherein the configuration data after the change operation is determined according to the result of the change operation; comparing and analyzing the configuration data after the change operation with the initial configuration data to obtain target configuration data; and updating the configuration of the service platform according to the target configuration data.
In one embodiment, the target configuration data includes one or more of a matching business type of the configuration item, a matching tenant of the configuration item, a matching zone of the configuration item, and a configuration value of the configuration item.
In a third aspect, a device for changing and processing configuration data is provided, where the device is applied to a configuration center server in a service platform configuration system, and the service platform configuration system includes the configuration center server and a service platform management server; the device comprises a data storage module and a notification sending module.
The data storage module is used for responding to change operation of initial configuration data of a service platform configuration interface, determining target configuration data according to the result of the change operation and storing the target configuration data; the target configuration data is the configuration data which is changed relative to the initial configuration data; the notification sending module is used for sending a configuration change notification to the service platform management server so that the service platform management server loads target configuration data stored in the configuration center server in response to receiving the configuration change notification, and configuration updating is carried out on the service platform according to the target configuration data.
The fourth aspect provides a configuration data change processing device, which is applied to a service platform management server in a service platform configuration system, wherein the service platform configuration system comprises a configuration center server and a service platform management server; the device comprises a data loading module and a configuration updating module.
The data loading module is used for loading target configuration data stored in the configuration center server in response to receiving a configuration change notification sent by the configuration center server; the target configuration data is determined by the configuration center server according to the result of change operation in response to the change operation on the initial configuration data of the service platform configuration interface; the target configuration data is the configuration data which is changed relative to the initial configuration data; and the configuration updating module is used for updating the configuration of the service platform according to the target configuration data.
In a fifth aspect, a computer device is provided, the computer device comprising a memory storing a computer program and a processor implementing the steps of any of the method embodiments of the first aspect and the method embodiments of the second aspect when the processor executes the computer program.
In a sixth aspect, a service platform configuration system is provided, where the service platform configuration system includes:
the configuration center server is configured to execute a step of implementing a change processing method of any configuration data in the method embodiment of the first aspect; and the service platform management server is in communication connection with the configuration center server and is used for executing the steps of implementing the change processing method of the configuration data in any one of the method embodiments of the second aspect.
In a seventh aspect, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of the method embodiments of the first aspect and the method embodiments of the second aspect.
Based on the configuration data change processing method, device, computer equipment, service platform configuration system and storage medium, the configuration center server in the service platform configuration system responds to the change operation of the initial configuration data of the service platform configuration interface, determines target configuration data according to the result of the change operation, and stores the target configuration data; the target configuration data is the configuration data which is changed relative to the initial configuration data; and then, sending a configuration change notification to the service platform management server, so that the service platform management server loads target configuration data stored in the configuration center server in response to receiving the configuration change notification, and performs configuration update on the service platform according to the target configuration data, so that the service platform management server does not need to load the whole configuration file on which the service platform provides service, the problem of reading and amplifying the configuration data of the service platform management server is avoided, meanwhile, the consumption of a large amount of data import and export of the configuration center server and the service platform management server and network transmission resources is reduced, and the efficiency and convenience of change processing of the configuration data are improved.
Drawings
FIG. 1 is a diagram of an application environment of a change processing method of configuration data in one embodiment;
FIG. 2 is a first flowchart of a method for processing a change in configuration data according to an embodiment;
FIG. 3 is a flowchart illustrating the steps of determining target configuration data based on the results of change operations in one embodiment;
FIG. 4 is a second flowchart of a method of processing a change in configuration data according to an embodiment;
FIG. 5 is a first flowchart illustrating the step of loading target configuration data stored in the configuration hub server in one embodiment;
FIG. 6 is a second flowchart illustrating the step of loading target configuration data stored in the configuration hub server according to one embodiment;
FIG. 7 is a third flowchart illustrating a method for processing a change of configuration data according to an embodiment;
FIG. 8 is a fourth flowchart illustrating a method for handling changes to configuration data according to an embodiment;
FIG. 9 is a first block diagram of an apparatus for processing a change in configuration data in one embodiment;
FIG. 10 is a second block diagram showing a configuration data change processing device according to an embodiment;
FIG. 11 is a diagram illustrating an internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Embodiments of the present application are set forth in the accompanying drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
It will be understood that, as used herein, the terms "first," "second," and the like may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first resistance may be referred to as a second resistance, and similarly, a second resistance may be referred to as a first resistance, without departing from the scope of the present application. The first resistance and the second resistance are both resistances, but they are not the same resistance.
It is to be understood that "connection" in the following embodiments is to be understood as "electrical connection", "communication connection", and the like if the connected circuits, modules, units, and the like have communication of electrical signals or data with each other.
As used herein, the singular forms "a", "an" and "the" may include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises/comprising," "includes" or "including," etc., specify the presence of stated features, integers, steps, operations, components, parts, or combinations thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, components, parts, or combinations thereof.
Next, an application environment of the change processing method of configuration data provided in the embodiment of the present application will be briefly described.
As shown in fig. 1, the application environment is a service platform configuration system, which may include a configuration center server 100 and a service platform management server 200. Wherein, the configuration center server 100 is in communication connection with the service platform management server 200.
In one particular example, the configuration center server 100 is a basic service component or device for uniformly managing various business platform configurations. The service platform management server 200 is a component or device for performing management services on each service platform. The configuration center server 100 may be, but is not limited to being, communicatively coupled to the service platform management server 200 via a notification bus. The service platform can be but is not limited to a network car booking service platform; for example, AA travel, XX travel, BB rental or ZZ ride. The service platform manager can update the configuration data in the configuration file through the configuration center server 100, and each service platform management server 200 can be notified of the configuration change of the configuration center server 100 in time to load the configuration data from the configuration center server 100. The above is only a specific example, and the actual application is flexibly set according to the user requirement, and is not limited herein.
In a first aspect, as shown in fig. 2, a method for changing configuration data is provided, which is described by taking an example that the method is applied to the configuration center server 100 of the service platform configuration system shown in fig. 1, and the method for changing configuration data includes the following steps 202 to 204.
And 202, responding to the change operation of the initial configuration data of the service platform configuration interface, determining target configuration data according to the result of the change operation, and storing the target configuration data.
The target configuration data is the configuration data which is changed relative to the initial configuration data. It can be understood that, when the configuration center server 100 recognizes the change operation of the initial configuration data of the service platform configuration interface, it may determine the target configuration data according to the result of the change operation of the initial configuration data, and store the target configuration data.
In one specific example, the service platform configuration interface is used for configuring each pair of service platforms. The service platform configuration interface can be configured on the configuration center platform and/or each service platform. The service platform can be but not limited to a network appointment service platform, and the display content of the service platform configuration interface comprises one or more of configuration item names, configuration module names to which the configuration items belong, matching service types of the configuration items, matching tenants of the configuration items, matching areas of the configuration items and configuration values of the configuration items. The initial configuration data may be, but is not limited to, service platform default configuration data and/or configuration data currently used by the service platform. The above are only specific examples, and the setting is flexible in practical application according to user requirements, and is not limited here.
In a specific example, the name of a configuration item in the display content of the service platform configuration interface is the dispatch radius, the name of a configuration module to which the configuration item belongs is order scheduling, the matching service type of the configuration item is network taxi appointment, the matching tenants of the configuration item are AA trip and XX trip, the matching area of the configuration item is beijing and changsha, and the configuration value of the configuration item is 3 kilometers. The above is only a specific example, and the actual application is flexibly set according to the user requirement, and is not limited herein.
In one embodiment, the initial configuration data and/or the target configuration data comprises one or more of a matching service type of the configuration item, a matching tenant of the configuration item, a matching area of the configuration item, and a configuration value of the configuration item.
In one embodiment, as shown in fig. 3, determining the target configuration data according to the result of the change operation includes steps 301 and 302.
And 302, comparing and analyzing the configuration data after the change operation with the initial configuration data to obtain target configuration data.
It can be understood that, when recognizing the change operation on the initial configuration data of the service platform configuration interface, the configuration center server 100 determines the configuration data after the change operation according to the result of the change operation, that is, all the configuration data in the configuration file after the change operation can be known through the configuration data after the change operation; then, the configuration center server 100 compares and analyzes the configuration data after the change operation with the initial configuration data to obtain target configuration data, so that the configuration data in which all the configuration data in the configuration file after the change operation is changed with respect to the initial configuration data can be known through the target configuration data.
In one specific example, the initial configuration data includes a configuration value of 3 kilometers for configuration items and matching cities for configuration items are Beijing and Changsha. The operation of changing the initial configuration data performed by the service platform manager on the service platform configuration interface is to change the configuration value of the configuration item in the initial configuration data from 3 kilometers to 5 kilometers, that is, the initial configuration data except the configuration value of the configuration item is not changed. At this time, the configuration center server 100 recognizes the change operation of the initial configuration data, and determines the configuration data after the change operation according to the result of the change operation, for example, the configuration value of the configuration item is 5 km and the matching city of the configuration item is beijing and changsha. And comparing and analyzing the configuration data after the change operation with the initial configuration data to obtain that the configuration value of the target configuration data as a configuration item is 5 kilometers, and storing the target configuration data. The above are only specific examples, and the setting is flexible in practical application according to user requirements, and is not limited here.
In the embodiment, the configuration data after the change operation is determined according to the result of the change operation; and then, comparing and analyzing the configuration data after the change operation with the initial configuration data to obtain target configuration data, so that the target configuration data can be quickly obtained from the change operation result, and the change processing efficiency and convenience of the configuration data are improved.
And 204, sending a configuration change notification to the service platform management server, so that the service platform management server loads target configuration data stored in the configuration center server in response to receiving the configuration change notification, and performs configuration updating on the service platform according to the target configuration data.
The configuration center server 100 sends a configuration change notification to the service platform management server 200, so that the service platform management server 200 is instructed to load target configuration data stored in the configuration center server 100 when receiving the configuration change notification by sending the configuration change notification, and perform configuration update on the service platform according to the target configuration data 100.
Based on this, the above change processing method of configuration data, through the configuration center server 100 in the service platform configuration system, responds to the change operation of the initial configuration data of the service platform configuration interface, determines the target configuration data according to the result of the change operation, and stores the target configuration data; the target configuration data is the configuration data which is changed relative to the initial configuration data; then, a configuration change notification is sent to the service platform management server 200, so that the service platform management server 200 loads the target configuration data stored in the configuration center server in response to receiving the configuration change notification, and performs configuration update on the service platform according to the target configuration data, so that the service platform management server 200 does not need to load the whole configuration file on which the service platform provides the service, the problem of reading and amplifying the configuration data of the service platform management server 200 is avoided, meanwhile, the consumption of a large amount of data import and export and network transmission resources of the configuration center server 100 and the service platform management server 200 is reduced, and the efficiency and convenience of change processing of the configuration data are improved.
In one embodiment, as shown in fig. 4, the method further includes step 401.
Step 401, in response to the fact that it is monitored that the sending state of the configuration change notification is unsuccessful, recording the sending state, and returning to the step of sending the configuration change notification to the service platform management server for iterative processing after a preset time until the sending state is successful.
The sending state of the configuration change notification refers to a state of sending the configuration change notification to the service platform management server 200; the transmission status of the configuration change notification includes unsuccessful transmission and successful transmission.
It can be understood that, when it is monitored that the sending state of the configuration change notification is unsuccessful, the configuration center server 100 needs to record the sending state, and returns to the step of sending the configuration change notification to the service platform management server for iterative processing after a preset time, so as to send the configuration change notification to the service platform management server 200 again until the sending state of the configuration change notification is successful. In addition, the size of the preset time is flexibly set according to the user requirement in practical application, and is not limited herein.
In this embodiment, in response to monitoring that the sending state of the configuration change notification is unsuccessful, the configuration center server 100 records the sending state, and returns to the step of sending the configuration change notification to the service platform management server after a preset time to perform iterative processing until the sending state is successful, so as to ensure that the service platform management server can receive the configuration change notification in real time when the change operation of the initial configuration data of the service platform configuration interface exists, so as to ensure that the configuration update can be performed on the service platform in time, and improve the fault tolerance and the operation accuracy of the change processing process of the configuration data.
In one embodiment, as shown in fig. 4, the method further comprises step 402.
When the configuration center server 100 monitors that the sending state of the configuration change notification is a successful sending state, it only needs to record the sending state of the configuration change notification, so as to perform record query in a subsequent operation.
In this embodiment, when the configuration center server 100 monitors that the sending state of the configuration change notification is a successful sending, the sending state of the configuration change notification can be recorded in time, so that a service platform manager can query the configuration change notification, and convenience in a change processing process of configuration data is improved.
In one embodiment, the configuration center server is configured with a configuration change history database. It will be appreciated that the change database is configured to store and record data associated with change operations to facilitate queries by service platform management personnel.
The step of storing the target configuration data comprises the steps of writing the target configuration data into a configuration change history database and updating the version information of the configuration data.
Specifically, the configuration center server 100 may write the target configuration data into the configuration change history database, and update the version information of the configuration data, so as to query and retrieve the corresponding target configuration data in subsequent operations.
Specifically, the configuration change notification includes updated configuration data version information. As shown in fig. 5, loading target configuration data stored in the configuration center server includes step 501 and step 502.
Step 501, determining configuration data version information according to the configuration change notification.
It is understood that, when receiving the configuration change notification including the updated configuration data version information sent by the configuration center server 100, the service platform management server 200 may determine the configuration data version information according to the configuration change notification; then, the configuration change history database on the configuration center server 100 is searched according to the version information of the configuration data, and the target configuration data is loaded.
In the present embodiment, the configuration change history database is configured in the configuration center server 100, and the target configuration data is written in the configuration change history database; meanwhile, the service platform management server 200 determines the configuration data version information according to the configuration change notification including the updated configuration data version information; then, the configuration change history database on the configuration center server 100 is searched according to the configuration data version information, so that the target configuration data is loaded, the loading efficiency of the configuration data is improved, and the change processing efficiency and convenience of the configuration data are improved.
In one embodiment, the configuration center server is configured with a configuration change history database and a cache module. It can be understood that the change database is configured to store and record data related to change operations, so as to facilitate query by service platform management personnel; the cache module is used for caching and recording data related to the change operation.
The step of storing the target configuration data comprises the steps of writing the target configuration data into a configuration change history database and a cache module, and updating the version information of the configuration data.
Specifically, the configuration center server 100 may write the target configuration data into the configuration change history database and the cache module, and update the version information of the configuration data, so as to query and retrieve the corresponding target configuration data in the subsequent operation.
Specifically, the configuration change notification includes updated configuration data version information; as shown in fig. 6, loading target configuration data stored in the configuration center server includes step 601 and step 602.
601, determining configuration data version information according to the configuration change notification;
It is understood that, when receiving the configuration change notification including the updated configuration data version information sent by the configuration center server 100, the service platform management server 200 may determine the configuration data version information according to the configuration change notification; then, the configuration data version information is retrieved from the cache module on the configuration center server 100, so as to load and obtain the target configuration data.
In the present embodiment, the configuration change history database is configured in the configuration center server 100, and the target configuration data is written in the configuration change history database; meanwhile, the service platform management server 200 determines the configuration data version information according to the configuration change notification including the updated configuration data version information; then, retrieving in a cache module on the configuration center server 100 according to the configuration data version information, thereby loading to obtain target configuration data; it can be understood that, compared with the target configuration data loaded from the configuration change history database, the loading efficiency of the configuration data is further improved, that is, the efficiency and convenience of the change processing of the configuration data are further improved.
In a second aspect, as shown in fig. 7, a method for changing configuration data is provided, which is described by taking as an example that the method is applied to the service platform management server 200 of the service platform configuration system shown in fig. 1, and the method for changing configuration data includes the following steps 702 to 704.
The target configuration data is determined by the configuration center server 100 according to the result of the change operation in response to the change operation on the initial configuration data of the service platform configuration interface. The target configuration data is configuration data that has been altered relative to the initial configuration data. It can be understood that, when the configuration center server 100 recognizes the change operation of the initial configuration data of the service platform configuration interface, it may determine the target configuration data according to the result of the change operation of the initial configuration data, and store the target configuration data.
Specifically, when receiving a configuration change notification sent from the configuration center server 100 to the service platform management server 200, the service platform management server 200 may load target configuration data stored in the configuration center server 100 according to an instruction to send the configuration change notification; and then, updating the configuration of the service platform according to the target configuration data.
In one embodiment, the target configuration data includes one or more of a matching business type of the configuration item, a matching tenant of the configuration item, a matching zone of the configuration item, and a configuration value of the configuration item.
Based on this, by the above change processing method of configuration data, the service platform management server 200 loads the target configuration data stored in the configuration center server in response to receiving the configuration change notification sent by the configuration center server 100; the target configuration data is determined by the configuration center server 100 in response to the change operation on the initial configuration data of the service platform configuration interface according to the result of the change operation. The target configuration data is the configuration data which is changed relative to the initial configuration data; and then, the service platform is configured and updated according to the target configuration data, so that the service platform management server does not need to load the whole configuration file which is relied by the service platform to provide the service, the problem of reading and amplifying the configuration data of the service platform management server is avoided, the consumption of a large amount of data import and export and network transmission resources of the configuration center server and the service platform management server is reduced, and the efficiency and the convenience of change processing of the configuration data are improved.
In one embodiment, the service platform management server 200 is configured with a local cache module for storing initial configuration data. It will be appreciated that the initial configuration data may be, but is not limited to, service platform default configuration data and/or service platform currently used configuration data. The configuration center server 100 is also used to store configuration data after the change operation.
As shown in fig. 8, the method further includes steps 705 to 707.
And step 707, updating the configuration of the service platform according to the target configuration data.
And determining the configuration data after the change operation according to the result of the change operation. It can be understood that, when recognizing the change operation on the initial configuration data of the service platform configuration interface, the configuration center server 100 determines the configuration data after the change operation according to the result of the change operation, that is, all the configuration data in the configuration file after the change operation can be known through the configuration data after the change operation.
Specifically, when the service platform management server 200 executes the restart operation of the service platform management server 200, the service platform management server 200 acquires configuration data after the change operation stored in the configuration center server 100 and initial configuration data stored in the local cache module; then, comparing and analyzing the configuration data after the change operation with the initial configuration data to obtain target configuration data, so that the configuration data of all the configuration data in the configuration file after the change operation, which is changed relative to the initial configuration data, can be known through the target configuration data; finally, the service platform is configured and updated according to the target configuration data, so that the problem that the service platform management server cannot receive the configuration change notification of the configuration center server 100 in the process of executing the restart operation and cannot timely perform configuration and update on the service platform is avoided, and the fault tolerance and the operation accuracy of the change processing process of the configuration data are improved.
In this embodiment, a local cache module is configured in the service platform management server 200, and the local cache module is used to store initial configuration data; meanwhile, when the service platform management server 200 executes the restart operation of the service platform management server 200, the configuration data after the change operation stored in the configuration center server 100 and the initial configuration data stored in the local cache module are acquired; then, comparing and analyzing the configuration data after the change operation with the initial configuration data to obtain target configuration data; and finally, the service platform is configured and updated according to the target configuration data, so that the fault tolerance and the operation accuracy of the change processing process of the configuration data are improved.
It should be understood that although the various steps in the flow charts of fig. 2-8 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-8 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In a third aspect, a device for changing and processing configuration data is provided, where the device is applied to a configuration center server 100 in a service platform configuration system, and the service platform configuration system includes the configuration center server 100 and a service platform management server 200; as shown in fig. 9, the apparatus includes a data storage module 910 and a notification transmission module 920.
The data storage module 910 is configured to, in response to a change operation on initial configuration data of a service platform configuration interface, determine target configuration data according to a result of the change operation, and store the target configuration data; the target configuration data is the configuration data which is changed relative to the initial configuration data; the notification sending module 920 is configured to send a configuration change notification to the service platform management server, so that the service platform management server loads target configuration data stored in the configuration center server in response to receiving the configuration change notification, and performs configuration update on the service platform according to the target configuration data.
In one embodiment, the apparatus further comprises a transmission status monitoring module.
The sending state monitoring module is used for responding to the condition that the sending state of the configuration change notification is monitored to be unsuccessfully sent, recording the sending state, returning to the step of sending the configuration change notification to the service platform management server after the preset time, and carrying out iterative processing until the sending state is successfully sent.
In one embodiment, the sending state monitoring module is further configured to record the sending state in response to monitoring that the sending state of the configuration change notification is a successful sending.
In one embodiment, the storage module 910 includes a data determination unit and a first ratio pair analysis unit.
The data determining unit is used for determining the configuration data after the change operation according to the result of the change operation; the first comparison and analysis unit is used for comparing and analyzing the configuration data after the change operation with the initial configuration data to obtain target configuration data.
In one embodiment, the configuration center server is configured with a configuration change history database; the storage module 910 includes a first data storage unit. The first data storage unit is used for writing target configuration data into the configuration change history database and updating version information of the configuration data.
Wherein the configuration change notification includes updated configuration data version information; loading target configuration data stored in a configuration center server, comprising: determining configuration data version information according to the configuration change notification; and searching in a configuration change history database according to the configuration data version information to obtain target configuration data.
In one embodiment, the configuration center server is configured with a configuration change history database and a cache module; the storage module 910 includes a second data storage unit. The second data storage unit is used for writing the target configuration data into the configuration database and the cache module and updating the version information of the configuration data; the configuration change notification includes updated configuration data version information.
The loading of the target configuration data stored in the configuration center server includes: determining configuration data version information according to the configuration change notification; and retrieving in the cache module according to the version information of the configuration data to obtain target configuration data.
For specific limitations of the configuration data change processing device, reference may be made to the above limitations on the configuration data change processing method, which is not described herein again. Each module in the above-described configuration data change processing device may be entirely or partially implemented by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In a fourth aspect, a device for changing and processing configuration data is provided, where the device is applied to a service platform management server 200 in a service platform configuration system, and the service platform configuration system includes a configuration center server 100 and the service platform management server 200; as shown in fig. 10, the apparatus includes a data loading module 1010 and a configuration updating module 1020.
The data loading module 1010 is configured to load target configuration data stored in the configuration center server in response to receiving a configuration change notification sent by the configuration center server; the target configuration data is determined by the configuration center server according to the result of change operation in response to the change operation on the initial configuration data of the service platform configuration interface; the target configuration data is the configuration data which is changed relative to the initial configuration data; the configuration update module 1020 is configured to update the configuration of the service platform according to the target configuration data.
In one embodiment, the service platform management server is configured with a local cache module; the local cache module is used for storing initial configuration data; the configuration center server is also used for storing the configuration data after the change operation; the device also comprises a data acquisition module and a data analysis unit.
The data acquisition module is used for responding to the restart operation of the service platform management server, and acquiring the configuration data after the change operation stored in the configuration center server and the initial configuration data stored in the local cache module; wherein the configuration data after the change operation is determined according to the result of the change operation; the data analysis unit is used for comparing and analyzing the configuration data after the change operation with the initial configuration data to obtain target configuration data; the configuration update module 1020 is configured to update the configuration of the service platform according to the target configuration data.
In one embodiment, the target configuration data includes one or more of a matching business type of the configuration item, a matching tenant of the configuration item, a matching zone of the configuration item, and a configuration value of the configuration item.
For specific limitations of the configuration data change processing device, reference may be made to the above limitations on the configuration data change processing method, which is not described herein again. Each module in the above-described configuration data change processing device may be entirely or partially implemented by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 11. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing target configuration data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of change processing of configuration data.
It will be appreciated by those skilled in the art that the configuration shown in fig. 11 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In a fifth aspect, a computer device is provided, the computer device comprising a memory storing a computer program and a processor implementing the steps of any of the method embodiments of the first aspect and the method embodiments of the second aspect when the processor executes the computer program.
In a sixth aspect, as shown in fig. 1, a service platform configuration system is provided, and the service platform configuration system includes a configuration center server 100 and a service platform management server 200. Wherein, the service platform management server 200 is communicatively connected to the configuration center server 100.
The configuration center server 100 is configured to execute a step of implementing a change processing method of configuration data in any one of the method embodiments of the first aspect; the service platform management server 200 is configured to execute the steps of implementing the change processing method for configuration data in any one of the above second aspect method embodiments.
In this embodiment, the configuration center server 100 in the service platform configuration system responds to the change operation on the initial configuration data of the service platform configuration interface, determines the target configuration data according to the result of the change operation, and stores the target configuration data; the target configuration data is the configuration data which is changed relative to the initial configuration data; then, a configuration change notification is sent to the service platform management server 200, so that the service platform management server 200 loads the target configuration data stored in the configuration center server in response to receiving the configuration change notification, and performs configuration update on the service platform according to the target configuration data, so that the service platform management server 200 does not need to load the whole configuration file on which the service platform provides the service, the problem of reading and amplifying the configuration data of the service platform management server 200 is avoided, consumption of a large amount of data import and export of the configuration center server 100 and the service platform management server 200 and consumption of network transmission resources are reduced, and efficiency and convenience of change processing of the configuration data are improved.
In a seventh aspect, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method of any one of the method embodiments of the first aspect and the method embodiments of the second aspect.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (14)
1. A method for processing change of configuration data is characterized in that the method is applied to a configuration center server in a service platform configuration system, and the service platform configuration system comprises the configuration center server and a service platform management server; the method comprises the following steps:
responding to the change operation of initial configuration data of a service platform configuration interface, determining target configuration data according to the result of the change operation, and storing the target configuration data; wherein the target configuration data is configuration data that has been changed relative to the initial configuration data;
and sending a configuration change notification to the service platform management server so that the service platform management server loads the target configuration data stored in the configuration center server in response to receiving the configuration change notification, and updates the configuration of the service platform according to the target configuration data.
2. The method of claim 1, further comprising:
and in response to the condition that the sending state of the configuration change notification is monitored to be unsuccessfully sent, recording the sending state, and returning to the step of sending the configuration change notification to the service platform management server after preset time for iterative processing until the sending state is successfully sent.
3. The method of claim 2, further comprising:
and recording the sending state in response to monitoring that the sending state of the configuration change notification is successful sending.
4. The method of claim 1, wherein determining target configuration data based on the result of the change operation comprises:
determining the configuration data after the change operation according to the result of the change operation;
and comparing and analyzing the configuration data after the change operation with the initial configuration data to obtain the target configuration data.
5. The method of claim 1, wherein the configuration center server is configured with a configuration change history database; the step of storing the target configuration data comprises writing the target configuration data into the configuration change history database and updating the version information of the configuration data; the configuration change notification includes updated configuration data version information;
wherein the loading the target configuration data stored in the configuration center server includes:
determining the configuration data version information according to the configuration change notification;
and retrieving in the configuration change history database according to the configuration data version information to obtain the target configuration data.
6. The method of claim 1, wherein the configuration center server is configured with a configuration change history database and a cache module; the step of storing the target configuration data comprises the steps of writing the target configuration data into the configuration change history database and the cache module and updating the version information of the configuration data; the configuration change notification includes updated configuration data version information;
wherein the loading the target configuration data stored in the configuration center server includes:
determining the configuration data version information according to the configuration change notification;
and retrieving in the cache module according to the configuration data version information to obtain the target configuration data.
7. A method for processing change of configuration data is characterized in that the method is applied to a service platform management server in a service platform configuration system, and the service platform configuration system comprises a configuration center server and the service platform management server; the method comprises the following steps:
loading target configuration data stored in the configuration center server in response to receiving a configuration change notification sent by the configuration center server; the target configuration data is determined by the configuration center server according to the result of change operation in response to the change operation on the initial configuration data of the service platform configuration interface; the target configuration data is the configuration data which is changed relative to the initial configuration data;
and updating the configuration of the service platform according to the target configuration data.
8. The method of claim 7, wherein the service platform management server is configured with a local cache module; the local cache module is used for storing the initial configuration data; the configuration center server is also used for storing the configuration data after the change operation; the method further comprises the following steps:
responding to the restart operation of the service platform management server, and acquiring the configuration data after the change operation stored in the configuration center server and the initial configuration data stored in the local cache module; determining the configuration data after the change operation according to the result of the change operation;
comparing and analyzing the configuration data after the change operation with the initial configuration data to obtain the target configuration data;
and updating the configuration of the service platform according to the target configuration data.
9. The method of claim 7, wherein the target configuration data comprises one or more of a matching business type of a configuration item, a matching tenant of a configuration item, a matching area of a configuration item, and a configuration value of a configuration item.
10. A change processing device of configuration data is characterized in that the device is applied to a configuration center server in a service platform configuration system, and the service platform configuration system comprises the configuration center server and a service platform management server; the device comprises:
the data storage module is used for responding to the change operation of initial configuration data of a service platform configuration interface, determining target configuration data according to the result of the change operation and storing the target configuration data; wherein the target configuration data is configuration data that has been changed relative to the initial configuration data;
and the notification sending module is used for sending a configuration change notification to the service platform management server so that the service platform management server loads the target configuration data stored in the configuration center server in response to receiving the configuration change notification, and updates the configuration of the service platform according to the target configuration data.
11. The device for processing the change of the configuration data is characterized in that the device is applied to a service platform management server in a service platform configuration system, and the service platform configuration system comprises a configuration center server and the service platform management server; the device comprises:
the data loading module is used for loading target configuration data stored in the configuration center server in response to receiving a configuration change notification sent by the configuration center server; the target configuration data is determined by the configuration center server according to the result of change operation in response to the change operation on the initial configuration data of the service platform configuration interface; the target configuration data is configuration data changed relative to the initial configuration data;
and the configuration updating module is used for updating the configuration of the service platform according to the target configuration data.
12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 9 are implemented when the computer program is executed by the processor.
13. A service platform configuration system, the system comprising:
-configuring a central server for performing the steps of the method according to any one of claims 1 to 6;
a service platform management server, communicatively connected to the configuration center server, for performing the steps of the method according to any one of claims 7 to 9.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211638250.9A CN115622884A (en) | 2022-12-20 | 2022-12-20 | Configuration data change processing method and device and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211638250.9A CN115622884A (en) | 2022-12-20 | 2022-12-20 | Configuration data change processing method and device and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115622884A true CN115622884A (en) | 2023-01-17 |
Family
ID=84880536
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211638250.9A Pending CN115622884A (en) | 2022-12-20 | 2022-12-20 | Configuration data change processing method and device and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115622884A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024169658A1 (en) * | 2023-02-13 | 2024-08-22 | 抖音视界有限公司 | Data processing method and apparatus, computer device, and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140280268A1 (en) * | 2013-03-15 | 2014-09-18 | Ca, Inc. | System and method for verifying configuration item changes |
CN108829459A (en) * | 2018-05-31 | 2018-11-16 | 康键信息技术(深圳)有限公司 | Configuration method, device, computer equipment and storage medium based on Nginx server |
CN109857747A (en) * | 2018-12-18 | 2019-06-07 | 百度在线网络技术(北京)有限公司 | Data synchronization updating method, system and computer equipment |
-
2022
- 2022-12-20 CN CN202211638250.9A patent/CN115622884A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140280268A1 (en) * | 2013-03-15 | 2014-09-18 | Ca, Inc. | System and method for verifying configuration item changes |
CN108829459A (en) * | 2018-05-31 | 2018-11-16 | 康键信息技术(深圳)有限公司 | Configuration method, device, computer equipment and storage medium based on Nginx server |
CN109857747A (en) * | 2018-12-18 | 2019-06-07 | 百度在线网络技术(北京)有限公司 | Data synchronization updating method, system and computer equipment |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024169658A1 (en) * | 2023-02-13 | 2024-08-22 | 抖音视界有限公司 | Data processing method and apparatus, computer device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112766907B (en) | Service data processing method, device and server | |
CN109032824B (en) | Database verification method, database verification device, computer equipment and storage medium | |
CN111507541B (en) | Goods quantity prediction model construction method, goods quantity measurement device and electronic equipment | |
CN107808306B (en) | Business object segmentation method based on tag library, electronic device and storage medium | |
CN112965936B (en) | Processing method, device, equipment and storage medium of heterogeneous distributed model | |
WO2019148657A1 (en) | Method for testing associated environments, electronic device and computer readable storage medium | |
CN118885336B (en) | Data recovery method, device and equipment | |
CN117151726A (en) | Fault repairing method, repairing device, electronic equipment and storage medium | |
CN115622884A (en) | Configuration data change processing method and device and computer equipment | |
CN112416957A (en) | Data increment updating method and device based on data model layer and computer equipment | |
CN119248524B (en) | Database storage space management method, device, equipment, medium and program product | |
US12105725B2 (en) | Automatic determination of alternative paths for a process flow using machine learning | |
CN106815223B (en) | Mass picture management method and device | |
CN112632083B (en) | Method, device and equipment for realizing index data updating | |
US7281165B2 (en) | System and method for performing product tests utilizing a single storage device | |
CN111400085B (en) | Method, device, computer equipment and storage medium for handling transaction rollback exception | |
CN115080429B (en) | Test report generation method and device | |
CN114625320B (en) | Hybrid cloud platform data management system based on characteristics | |
CN110704488B (en) | Method for managing data and corresponding system, computer device and medium | |
CN114416807A (en) | A method, device and system for data merging of customer accounts | |
CN113010614A (en) | Logistics data storage method and system | |
CN118363641B (en) | Upgrading method and device of battery equipment, computer equipment and storage medium | |
CN119782402A (en) | Device performance data management method, device, computer equipment and storage medium | |
CN109039691B (en) | Server, method for predicting system call amount and storage medium | |
CN120408450A (en) | Abnormal analysis method, system 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20230117 |
|
RJ01 | Rejection of invention patent application after publication |