CN111082964B - Distribution method and device of configuration information - Google Patents

Distribution method and device of configuration information Download PDF

Info

Publication number
CN111082964B
CN111082964B CN201910992490.0A CN201910992490A CN111082964B CN 111082964 B CN111082964 B CN 111082964B CN 201910992490 A CN201910992490 A CN 201910992490A CN 111082964 B CN111082964 B CN 111082964B
Authority
CN
China
Prior art keywords
target configuration
target
configuration information
task
executing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910992490.0A
Other languages
Chinese (zh)
Other versions
CN111082964A (en
Inventor
黄春生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201910992490.0A priority Critical patent/CN111082964B/en
Publication of CN111082964A publication Critical patent/CN111082964A/en
Application granted granted Critical
Publication of CN111082964B publication Critical patent/CN111082964B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/042Network management architectures or arrangements comprising distributed management centres cooperatively managing the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method and a device for distributing configuration information, and belongs to the technical field of computers. The method comprises the following steps: executing a target data acquisition task, and acquiring target configuration information corresponding to the target data acquisition task from a configuration information system; judging whether the target configuration information is the same as historical configuration information acquired by executing the target data acquisition task last time; if not, executing a target configuration generation task corresponding to the target configuration information to generate a target configuration file; and executing a target configuration distribution task corresponding to the target configuration file, and distributing the target configuration file to a service server corresponding to the target configuration distribution task. The invention can improve the resource utilization rate of the service server.

Description

Distribution method and device of configuration information
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for distributing configuration information.
Background
With the popularization and development of distributed technologies, more and more service providers adopt the distributed technologies to develop services, such as configuration information distribution services of CDN (Content Delivery Network) service providers.
The configuration information is typically generated by a configuration information system, used by the service servers of the CDN system. Taking the configuration information as the charging parameters (such as charging mode, charging period, price, and the like) in the CDN charging package as an example, a description is given to a distribution flow of the existing configuration information. The service server can obtain the charging parameters from the configuration information system by calling a service interface provided by the configuration information system. When the charging parameter is changed, the service server can obtain the changed charging parameter from the configuration information system through the obtaining mode, and then the service server can charge the CDN service used by the user based on the changed charging parameter.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
when the configuration information is obtained from the configuration information system according to the obtaining manner, each service server consumes a certain amount of machine resources, and for a CDN service provider who deploys many service servers, the service server is used to obtain configuration information on the whole, which consumes many machine resources, and the overall cost is high.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for distributing configuration information. The technical scheme is as follows:
in a first aspect, a method for distributing configuration information is provided, where the method includes:
executing a target data acquisition task, and acquiring target configuration information corresponding to the target data acquisition task from a configuration information system;
judging whether the target configuration information is the same as historical configuration information acquired by executing the target data acquisition task last time;
if not, executing a target configuration generation task corresponding to the target configuration information to generate a target configuration file;
and executing a target configuration distribution task corresponding to the target configuration file, and distributing the target configuration file to a service server corresponding to the target configuration distribution task.
In a second aspect, an apparatus for distributing configuration information is provided, the apparatus including:
the acquisition module is used for executing a target data acquisition task and acquiring target configuration information corresponding to the target data acquisition task from a configuration information system;
the first judgment module is used for judging whether the target configuration information is the same as the historical configuration information acquired by executing the target data acquisition task last time;
the generating module is used for executing a target configuration generating task corresponding to the target configuration information and generating a target configuration file;
and the distribution module is used for executing a target configuration distribution task corresponding to the target configuration file and distributing the target configuration file to a service server corresponding to the target configuration distribution task.
In a third aspect, a distribution apparatus is provided, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the distribution method of configuration information according to the first aspect.
In a fourth aspect, there is provided a computer readable storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by a processor to implement the method of distributing configuration information according to the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in this embodiment, a target data acquisition task is executed, and target configuration information corresponding to the target data acquisition task is acquired from a configuration information system; judging whether the target configuration information is the same as historical configuration information acquired by executing the target data acquisition task last time; if not, executing a target configuration generation task corresponding to the target configuration information to generate a target configuration file; and executing a target configuration distribution task corresponding to the target configuration file, and distributing the target configuration file to a service server corresponding to the target configuration distribution task. Therefore, the distribution equipment can directly distribute the configuration file to the service server, so that the service server does not need to acquire the configuration information from the configuration information system by calling a service interface provided by the configuration information system, machine resources consumed by the service server for acquiring the configuration information are saved, and the access pressure of the configuration information system when facing a large number of service servers to acquire the configuration information is reduced. In addition, the distribution equipment is used as a middleware between each service server and each configuration information system, coupling between the service server and the configuration information system is removed, and when the configuration information system is upgraded or strategy is changed, the service server side has no perception in the whole process, so that a large number of service servers are not required to be upgraded, the configuration information system and the distribution equipment are only required to be upgraded, upgrading cost is reduced, and upgrading is more flexible. In addition, the service server does not integrate the configuration information any more, and the integration capability of the service server can be released, so that the resource utilization rate of the service server is further improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for distributing configuration information according to an embodiment of the present invention;
FIG. 2 is a diagram of a distribution facility architecture according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a distribution apparatus for configuration information according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a distribution apparatus for configuration information according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a distribution apparatus for configuration information according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a method for distributing configuration information, wherein an execution main body of the method can be a distribution device in a CDN system, the distribution device can be a single server or can be composed of a plurality of servers, and the servers can be pre-installed with running environments such as JDKs (Java SE Development Kit), mysql databases, redis, zookeeper and the like. The distribution equipment can acquire the configuration information from each configuration information system, integrate the configuration information, and then distribute the integrated configuration information to the corresponding service server. The distribution device may include a processor, a memory, and a transceiver, wherein the processor may be configured to perform distribution processing on the configuration information in the following procedures, the memory may be configured to store data required in the processing procedure and data generated in the processing procedure, and the transceiver may be configured to receive and transmit relevant data in the processing procedure.
The following describes a processing flow of a distribution method of configuration information shown in fig. 1 in detail with reference to specific embodiments, and the content may be as follows:
step 101, executing a target data acquisition task, and acquiring target configuration information corresponding to the target data acquisition task from a configuration information system.
In implementation, the distribution device may distribute the configuration information in a task queue manner, where the task queue may include a data acquisition task queue, a configuration generation task queue, a configuration distribution task queue, and other task queues, and each task queue may include a plurality of tasks. The operation and maintenance personnel of the CDN system may configure the task queue and the tasks in the queue, and the task execution condition of each task in the distribution device in advance. The distribution equipment can take out the tasks from the task queue in turn according to the arrangement sequence of the tasks in the task queue, and if the task execution condition is met, the distribution equipment can execute the tasks; if the task execution condition is not met, the distribution device may place the task back into the task queue. Specifically, the distribution device may use a multi-thread processing mode, and when a certain thread takes out a task from the task queue, the thread may lock the task, for example, a distributed lock is used, so as to prevent other threads from processing the same task; when the task is executed completely or the task execution condition is not met, the thread can unlock the task and then put the task back to the task queue.
Taking a certain data collection task (which may be referred to as a target data collection task) as an example, when the distribution device takes out the target data collection task from the data collection task queue and meets the execution condition, the distribution device may execute the target data collection task and collect configuration information (which may be referred to as target configuration information) corresponding to the target data collection task from the configuration information system.
Optionally, the execution condition of the data acquisition task may be periodic execution, and accordingly, the processing for executing the target data acquisition task may be as follows: acquiring a difference value between the current moment and the execution moment of the last execution target data acquisition task; and if the difference value is larger than or equal to the preset execution period, executing the target data acquisition task.
In implementation, after the distribution device takes out the target data acquisition task from the data acquisition task queue, it may determine whether the target data acquisition task meets the task execution condition, so as to determine whether to execute the target data acquisition task. Specifically, the distribution device may perform difference processing on the current time and the execution time of the last execution of the target data acquisition task, and obtain a difference between the current time and the execution time of the last execution of the target data acquisition task. Then, the distribution apparatus may compare the difference with a magnitude relation of a preset execution period. If the difference value is larger than or equal to the preset execution period, the target data acquisition task is indicated to be not executed in the current period, so that the condition that the task execution is met is judged, and the distribution equipment can execute the target data acquisition task; if the difference value is smaller than the preset execution period, the target data acquisition task is executed in the current period, and therefore the target data acquisition task is judged not to be in accordance with the task execution condition, and the distribution equipment can put the target data acquisition task back to the data acquisition task queue.
And 102, judging whether the target configuration information is the same as the historical configuration information acquired by executing the target data acquisition task last time.
In an implementation, the distribution device may process its class of tasks in parallel. When the distribution device takes out a configuration generation task (which may be referred to as a target configuration generation task) corresponding to the target configuration information from the data acquisition task queue, the distribution device may determine whether the target configuration generation task meets a task execution condition to determine whether to execute the target configuration generation task. It will be readily appreciated that processing will not be repeated for the processed configuration information, and thus the configuration generation task corresponding to the processed configuration information will not be performed. Specifically, the distribution device may determine whether the target configuration generation task meets the task execution condition by comparing whether the target configuration information is the same as the historical configuration information acquired by executing the target data acquisition task last time.
Optionally, whether the target configuration information is the same as the historical configuration information acquired by executing the target data acquisition task last time may be determined according to an MD5 (Message Digest 5, fifth version of Message Digest algorithm), and the corresponding processing may be as follows: acquiring an MD5 value of target configuration information; and if the MD5 value of the target configuration information is the same as the MD5 value of the historical configuration information, judging that the target configuration information is the same as the historical configuration information, otherwise, judging that the target configuration information is not the same as the historical configuration information.
In implementation, the distribution device may archive the collected configuration information after performing the data collection task. In this way, the distribution device may obtain the MD5 value of the target configuration information and the MD5 value of the historical configuration information acquired by the distribution device when the target data acquisition task was executed last time, respectively. After that, the distribution apparatus can determine whether the target configuration information is the same as the history configuration information by the MD5 value. Specifically, if the MD5 value of the target configuration information is the same as the MD5 value of the historical configuration information, the distribution device may determine that the target configuration information is the same as the historical configuration information; if the MD5 value of the target configuration information and the MD5 value of the historical configuration information are different, the distribution apparatus may determine that the target configuration information is not the same as the historical configuration information.
And 103, if not, executing a target configuration generation task corresponding to the target configuration information to generate a target configuration file.
In implementation, if the target configuration information is not the same as the historical configuration information, the distribution device may determine that the target configuration generation task meets the task execution condition, so that the distribution device may execute the target configuration generation task corresponding to the target configuration information to generate the target configuration file. Further, in order to facilitate the determination of whether the subsequent configuration generation task is executed, the distribution device may update the recorded historical configuration information to the target configuration information, and record the MD5 value and the collection time of the target configuration information as a determination basis.
Optionally, the processing of executing the target configuration generation task corresponding to the target configuration information and generating the target configuration file in step 103 may specifically be as follows: and if the target configuration generation task is accompanied by a data integration rule, integrating the target configuration information according to the data integration rule, packaging the integrated target configuration information to generate a target configuration file, and otherwise, packaging the target configuration information to generate the target configuration file.
In an implementation, the configuration information may include a first type of configuration information collected by the distribution device from the configuration information system, and a second type of configuration information uploaded manually. The operation and maintenance personnel can respectively configure the configuration generating tasks corresponding to the two types of configuration information, and for the first type of configuration information, the configuration generating task corresponding to the first type of configuration information can be accompanied by data integration rules, such as perl, shell, python and other script files; for the second type of configuration information, because manual integration processing is performed, the corresponding configuration generation task does not need to be accompanied by a data integration rule. In this way, the distribution device can execute the target configuration generation task according to whether the target configuration generation task is accompanied by the data integration rule. Specifically, if the target configuration generation task is accompanied by a data integration rule, the distribution device may integrate the target configuration information according to the data integration rule attached thereto, and after the integration is completed, the distribution device may package the integrated target configuration information to generate the target configuration file. If the target configuration generation task is not accompanied by the data integration rule, the distribution equipment can directly pack the target configuration information to generate a target configuration file.
Optionally, after generating the target configuration file, the distribution device may perform the following processing: and judging whether the target configuration file is the same as a historical configuration file generated by executing the target configuration generation task last time.
In implementation, after the target configuration file is generated, or after the verification process flow exists and the verification of the target configuration file is successful, the distribution device may determine whether the target configuration file is the same as a historical configuration file generated by the last execution of the target configuration generation task, so as to determine whether to perform distribution processing on the target configuration file generated this time. It will be readily appreciated that for a repeatedly generated configuration file, the distribution device will not perform distribution processing on it. Specifically, the distribution device may determine whether the target configuration file is the same as the historical configuration file generated by executing the target configuration generation task last time by using the MD5 value comparison method. If the target configuration file is different from the historical configuration file generated by executing the target configuration generation task last time, the distribution equipment can execute the target configuration distribution task corresponding to the target configuration file, and simultaneously can record the version information of the target configuration file, so that operation and maintenance personnel can conveniently check the version history of each configuration file, track the historical configuration condition and perform problem troubleshooting. And if the target configuration file is the same as the historical configuration file generated by executing the target configuration generation task last time, the distribution equipment does not distribute the target configuration file any more.
Optionally, the distribution device may check the generated target configuration file, and the corresponding processing may be as follows: checking a target configuration file; if the verification is successful, judging whether the target configuration file is the same as the historical configuration file generated by executing the target configuration generation task last time; if the verification fails, the target configuration file is intercepted, and warning information is sent out.
In implementation, in order to ensure the integrity of the configuration file, the distribution device may check the target configuration file after generating the target configuration file. Specifically, the distribution device may check the content of the target configuration file according to a check rule, such as checking a script file. If the verification is successful, the distribution equipment can perform the next processing, namely, judge whether the target configuration file is the same as the historical configuration file generated by executing the target configuration generation task last time. If the verification fails, the distribution equipment can intercept the target configuration file and send out alarm information, such as an e-mail of an addressee for operation and maintenance personnel.
And 104, executing a target configuration distribution task corresponding to the target configuration file, and distributing the target configuration file to a service server corresponding to the target configuration distribution task.
In implementation, after determining that the target configuration file is different from the historical configuration file generated by executing the target configuration generation task last time, the distribution device may execute the target configuration distribution task corresponding to the target configuration file, and distribute the target configuration file to the service server corresponding to the target configuration distribution task, so as to implement distribution processing of the configuration information. Further, in order to facilitate determination of whether a subsequent configuration distribution task is executed, the distribution device may update the recorded historical configuration file to the target configuration file, and record the MD5 value of the target configuration file as a determination basis. Therefore, the distribution equipment can be used as a middleware between each service server and each configuration information system, the coupling between the service server and the configuration information system is removed, and when the configuration information system is upgraded or strategy is changed, the service server side can have no perception, so that a large number of service servers do not need to be upgraded, the configuration information system and the distribution equipment only need to be upgraded, the upgrading cost is reduced, and the upgrading is more flexible. In addition, the service server can acquire the configuration information from the configuration information system without calling a service interface provided by the configuration information system, so that not only are machine resources consumed by the service server for acquiring the configuration information saved, but also the access pressure of the configuration information system to a large number of service servers for acquiring the configuration information is reduced. Furthermore, the configuration information is not integrated by the service server any more, so that the integration capability of the part can be released, and the resource utilization rate of the service server is effectively improved.
Optionally, the processing of executing the target configuration distribution task corresponding to the target configuration file and distributing the target configuration file to the service server corresponding to the target configuration distribution task in step 104 may specifically be as follows: acquiring respective server lists of all groups to be distributed corresponding to the target configuration distribution task; and distributing the target configuration file to all the service servers recorded in the server list.
In implementation, operation and maintenance personnel can divide service servers into groups in advance, for example, the service servers are divided according to service categories, so that distribution equipment can uniformly push configuration files to the service servers corresponding to certain types of services in the same time period, the service servers can be ensured to process the services according to the latest configuration files in time, and the uniformity and accuracy of service processing are ensured. Specifically, the distribution device may maintain a server list of each group, and a communication identifier of a corresponding service server, such as an IP (Internet Protocol ) address, a MAC (Media Access Control) address, and the like, may be recorded in the list. In this way, when executing the target configuration distribution task corresponding to the target configuration file, the distribution device may distribute the target configuration file to the service servers recorded in all the server lists according to the respective server lists of all the groups to be distributed corresponding to the obtained target configuration distribution task. Further, if there is a group with failed distribution, such as a service server with failed distribution or a newly added service server in the group, the distribution device may periodically distribute the target configuration file to the group with failed distribution again, that is, distribute the target configuration file to the service server with failed distribution or the newly added service server until the target configuration file is successfully distributed to all the groups.
An architecture diagram of a distribution device is given below, and as shown in fig. 2, the distribution device may include a management platform, a task scheduling module, a data acquisition module, a configuration integration module, a configuration distribution module, a task information channel, a database, and other operating environments.
The management platform can be web application, and operation and maintenance personnel can log in the management platform to perform online management and configuration, such as group configuration, acquisition strategy management, gray level test, configuration and integration strategy and the like, so as to provide a one-stop management site. It is worth mentioning that the operation and maintenance personnel can more conveniently perform the on-line gray scale test because the distribution equipment adopts a mode of distributing the configuration files.
And the task scheduling module can schedule and maintain various tasks.
And the data acquisition module can acquire configuration data in a distributed operation mode according to preset acquisition parameters and store the configuration data in a server disk.
And the configuration integration module can generate a configuration file according to the configuration parameters which are effective on the management platform in a distributed operation mode and store the configuration file in a server disk.
And the configuration distribution module can distribute the generated configuration file to the corresponding service server in a distributed operation mode according to the distribution strategy maintained on the management platform.
The task information channel can be built based on redis and zookeeper and is used for transmitting various data required during task execution, such as configuration information, configuration files and the like. It is worth mentioning that the task scheduling module, the data acquisition module, the configuration integration module and the configuration distribution module can run in parallel, the running sequence is not sequential, and each module can independently perform data interaction with the task information channel.
In the embodiment, a target data acquisition task is executed, and target configuration information corresponding to the target data acquisition task is acquired from a configuration information system; judging whether the target configuration information is the same as historical configuration information acquired by executing the target data acquisition task last time; if not, executing a target configuration generation task corresponding to the target configuration information to generate a target configuration file; and executing a target configuration distribution task corresponding to the target configuration file, and distributing the target configuration file to a service server corresponding to the target configuration distribution task. Therefore, the distribution equipment can directly distribute the configuration file to the service server, so that the service server does not need to acquire the configuration information from the configuration information system by calling a service interface provided by the configuration information system, machine resources consumed by the service server for acquiring the configuration information are saved, and the access pressure of the configuration information system when facing a large number of service servers to acquire the configuration information is reduced. In addition, the distribution equipment is used as a middleware between each service server and each configuration information system, coupling between the service server and the configuration information system is removed, and when the configuration information system is upgraded or strategy is changed, the service server side does not sense, so that a large number of service servers do not need to be upgraded, the configuration information system and the distribution equipment only need to be upgraded, upgrading cost is reduced, and upgrading is more flexible. In addition, the service server does not integrate the configuration information any more, and the integration capability of the service server can be released, so that the resource utilization rate of the service server is further improved.
Based on the same technical concept, an embodiment of the present invention further provides a device for distributing configuration information, as shown in fig. 3, where the device includes:
the acquisition module 301 is configured to execute a target data acquisition task and acquire target configuration information corresponding to the target data acquisition task from a configuration information system;
a first determining module 302, configured to determine whether the target configuration information is the same as historical configuration information acquired by executing the target data acquisition task last time;
a generating module 303, configured to execute a target configuration generating task corresponding to the target configuration information, and generate a target configuration file;
the distributing module 304 is configured to execute a target configuration distribution task corresponding to the target configuration file, and distribute the target configuration file to a service server corresponding to the target configuration distribution task.
Optionally, the acquisition module 301 is further configured to:
acquiring a difference value between the current moment and the execution moment of executing the target data acquisition task last time;
and if the difference value is larger than or equal to a preset execution period, executing the target data acquisition task.
Optionally, the first determining module 302 is further configured to:
acquiring an MD5 value of the target configuration information;
if the MD5 value of the target configuration information is the same as the MD5 value of the historical configuration information, judging that the target configuration information is the same as the historical configuration information, and otherwise, judging that the target configuration information is not the same as the historical configuration information.
Optionally, the generating module 303 is further configured to:
and if the target configuration generation task is accompanied by a data integration rule, integrating the target configuration information according to the data integration rule, packaging the integrated target configuration information to generate the target configuration file, otherwise, packaging the target configuration information to generate the target configuration file.
Optionally, as shown in fig. 4, the apparatus further includes a second determining module 305, configured to:
after generating the target configuration file, judging whether the target configuration file is the same as a historical configuration file generated by executing the target configuration generation task last time.
Optionally, as shown in fig. 5, the apparatus further includes a checking module 306, configured to:
after generating a target configuration file, verifying the target configuration file;
if the verification is successful, the second determining module 305 determines whether the target configuration file is the same as the historical configuration file generated by the last execution of the target configuration generation task;
and if the verification fails, intercepting the target configuration file and sending out alarm information.
Optionally, the distributing module 304 is further configured to:
acquiring respective server lists of all groups to be distributed corresponding to the target configuration distribution task;
and distributing the target configuration file to all the service servers recorded in the server list.
It should be noted that: the distribution device of configuration information provided in the above embodiment is only illustrated by the division of each functional module when performing distribution processing of configuration information, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the distribution apparatus of configuration information and the distribution method of configuration information provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
Based on the same technical concept, the embodiment of the invention also provides a distribution device which can generate larger difference due to different configurations or performances, and comprises one or more memories and processors, wherein the memories can be transient storage or permanent storage. The memory may store at least one instruction, at least one program, a set of codes, or a set of instructions that are loaded and executed by the processor to implement the distribution processing of the configuration information in steps 101-104 described above.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (9)

1. A method for distributing configuration information, wherein the method is applied to a distribution device, and the method comprises the following steps:
executing a target data acquisition task, and acquiring target configuration information corresponding to the target data acquisition task from a configuration information system;
judging whether the target configuration information is the same as historical configuration information acquired by executing the target data acquisition task last time;
if not, executing a target configuration generation task corresponding to the target configuration information, and generating a target configuration file, wherein the target configuration generation task comprises the following steps: if the target configuration generation task is accompanied by a data integration rule, integrating the target configuration information according to the data integration rule, packaging the integrated target configuration information to generate a target configuration file, and otherwise, packaging the target configuration information to generate a target configuration file;
and executing a target configuration distribution task corresponding to the target configuration file, and distributing the target configuration file to a service server corresponding to the target configuration distribution task.
2. The method of claim 1, wherein performing a target data collection task comprises:
acquiring a difference value between the current moment and the execution moment of executing the target data acquisition task last time;
and if the difference value is larger than or equal to a preset execution period, executing the target data acquisition task.
3. The method according to claim 1, wherein after the executing the target configuration generation task corresponding to the target configuration information and generating the target configuration file, the method further comprises:
and judging whether the target configuration file is the same as a historical configuration file generated by executing the target configuration generation task last time.
4. The method according to claim 1, wherein after the executing the target configuration generation task corresponding to the target configuration information generates the target configuration file, the method further comprises:
verifying the target configuration file;
if the verification is successful, judging whether the target configuration file is the same as a historical configuration file generated by executing the target configuration generation task last time;
and if the verification fails, intercepting the target configuration file and sending out alarm information.
5. The method according to claim 1, wherein the executing a target configuration distribution task corresponding to the target configuration file and distributing the target configuration file to a service server corresponding to the target configuration distribution task includes:
acquiring respective server lists of all groups to be distributed corresponding to the target configuration distribution task;
and distributing the target configuration file to all the service servers recorded in the server list.
6. An apparatus for distributing configuration information, the apparatus being applied to a distribution device, the apparatus comprising:
the acquisition module is used for executing a target data acquisition task and acquiring target configuration information corresponding to the target data acquisition task from a configuration information system;
the first judgment module is used for judging whether the target configuration information is the same as the historical configuration information acquired by executing the target data acquisition task last time;
a generating module, configured to execute a target configuration generating task corresponding to the target configuration information, and generate a target configuration file, where the generating module includes: if the target configuration generation task is accompanied by a data integration rule, integrating the target configuration information according to the data integration rule, packaging the integrated target configuration information to generate a target configuration file, otherwise, packaging the target configuration information to generate the target configuration file;
and the distribution module is used for executing a target configuration distribution task corresponding to the target configuration file and distributing the target configuration file to a service server corresponding to the target configuration distribution task.
7. The apparatus of claim 6, wherein the acquisition module is further configured to:
acquiring a difference value between the current moment and the execution moment of executing the target data acquisition task last time;
and if the difference value is larger than or equal to a preset execution period, executing the target data acquisition task.
8. A distribution device, characterized in that the distribution device comprises a processor and a memory, in which at least one instruction, at least one program, set of codes or set of instructions is stored, which is loaded and executed by the processor to implement the distribution method of configuration information according to any one of claims 1 to 5.
9. A computer-readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the method of distributing configuration information according to any one of claims 1 to 5.
CN201910992490.0A 2019-10-18 2019-10-18 Distribution method and device of configuration information Active CN111082964B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910992490.0A CN111082964B (en) 2019-10-18 2019-10-18 Distribution method and device of configuration information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910992490.0A CN111082964B (en) 2019-10-18 2019-10-18 Distribution method and device of configuration information

Publications (2)

Publication Number Publication Date
CN111082964A CN111082964A (en) 2020-04-28
CN111082964B true CN111082964B (en) 2023-03-03

Family

ID=70310502

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910992490.0A Active CN111082964B (en) 2019-10-18 2019-10-18 Distribution method and device of configuration information

Country Status (1)

Country Link
CN (1) CN111082964B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860343B (en) * 2021-02-10 2024-04-23 北京百度网讯科技有限公司 Configuration changing method, system, device, electronic equipment and storage medium
CN114389942B (en) * 2022-01-11 2024-06-04 北京金山云网络技术有限公司 CDN configuration method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014090070A1 (en) * 2012-12-13 2014-06-19 Tencent Technology (Shenzhen) Company Limited Method and system for managing servers
CN104092555A (en) * 2013-12-04 2014-10-08 腾讯数码(天津)有限公司 Parameter value updating method, device and system
CN105162667A (en) * 2015-09-10 2015-12-16 华为技术有限公司 Method and device for configuration of virtual machine

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014090070A1 (en) * 2012-12-13 2014-06-19 Tencent Technology (Shenzhen) Company Limited Method and system for managing servers
CN104092555A (en) * 2013-12-04 2014-10-08 腾讯数码(天津)有限公司 Parameter value updating method, device and system
CN105162667A (en) * 2015-09-10 2015-12-16 华为技术有限公司 Method and device for configuration of virtual machine

Also Published As

Publication number Publication date
CN111082964A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
CN107844343B (en) Upgrading system and method for complex server application system
EP2510653B1 (en) Cloud computing monitoring and management system
US8301935B2 (en) Distributed batch runner
CN110611707B (en) Task scheduling method and device
CN111400011B (en) Real-time task scheduling method, system, equipment and readable storage medium
CN110895488B (en) Task scheduling method and device
CN111082964B (en) Distribution method and device of configuration information
CN109614227A (en) Task resource concocting method, device, electronic equipment and computer-readable medium
CN103577251A (en) Event based Internet computing processing system and method
WO2023197453A1 (en) Fault diagnosis method and apparatus, device, and storage medium
CN115812298A (en) Block chain management of supply failure
CN111654411A (en) Inspection method and related device
CN112925648B (en) Business strategy issuing method and device
CN111722917A (en) Resource scheduling method, device and equipment for performance test task
CN114422386B (en) Monitoring method and device for micro-service gateway
CN112737896B (en) Bandwidth data checking method, device, medium and electronic equipment
CN115373886A (en) Service group container shutdown method, device, computer equipment and storage medium
CN113590178A (en) API (application program interface) instance management method and device, storage medium and electronic equipment
WO2021096346A1 (en) A computer-implemented system for management of container logs and its method thereof
CN111708604A (en) Intelligent operation and maintenance supporting method
CN110647440A (en) Big data task processing method and system based on state machine
CN112558991B (en) Mirror image management method and system, cloud management platform and storage medium
CN112532450B (en) Dynamic updating method and system for data stream distribution process configuration
CN112269672B (en) File downloading exception handling method and device and electronic equipment
CN118585297A (en) Task execution method and related equipment

Legal Events

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