CN110865835A - Configuration file updating method and device, computer equipment and storage medium - Google Patents

Configuration file updating method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110865835A
CN110865835A CN201910977706.6A CN201910977706A CN110865835A CN 110865835 A CN110865835 A CN 110865835A CN 201910977706 A CN201910977706 A CN 201910977706A CN 110865835 A CN110865835 A CN 110865835A
Authority
CN
China
Prior art keywords
configuration file
target
updated
updating
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910977706.6A
Other languages
Chinese (zh)
Inventor
韦鹏程
董俊峰
强群力
刘超千
赵彤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NetsUnion Clearing Corp
Original Assignee
NetsUnion Clearing Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NetsUnion Clearing Corp filed Critical NetsUnion Clearing Corp
Priority to CN201910977706.6A priority Critical patent/CN110865835A/en
Publication of CN110865835A publication Critical patent/CN110865835A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a configuration file updating method, a configuration file updating device, computer equipment and a storage medium, wherein the method comprises the following steps: monitoring the state of a preset database according to a preset period through preset monitoring software; if the state of the preset database is monitored for updating, acquiring a target configuration file to be updated from the preset database; and sending the target configuration file to be updated to the target equipment so as to enable the target equipment to perform backup processing on the current configuration file, and performing replacement updating on the current configuration file according to the target configuration file to be updated. Therefore, the technical problems that the misoperation probability is high and the efficiency is low in the manual configuration file modification and updating mode in the prior art are solved, the configuration file to be updated can be automatically obtained and sent to the target device to be quickly updated, the automatic updating of the configuration file is realized, the configuration file updating efficiency is improved, and the stability of the clearing platform device is further improved.

Description

Configuration file updating method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for updating a configuration file, a computer device, and a storage medium.
Background
At present, the clearing platform has a large number of clusters, high change frequency and fast update, so that the configuration file corresponding to the equipment in the high-availability software of the current database needs to be updated.
In the related art, the configuration files of each device need to be modified and updated manually, however, the configuration files are multiple, the modification is complex, and the technical problems of misoperation and low efficiency exist.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
The application provides a configuration file updating method and device, computer equipment and a storage medium, which are used for solving the technical problems that the misoperation probability is high and the efficiency is low when the configuration file is manually modified and updated in the prior art, and can automatically acquire the configuration file to be updated and send the configuration file to target equipment for quick updating, so that the automatic updating of the configuration file is realized, the updating efficiency of the configuration file is improved, and the stability of clearing platform equipment is further improved.
An embodiment of a first aspect of the present application provides a method for updating a configuration file, where the method includes the following steps:
monitoring the state of the preset database according to a preset period through preset monitoring software;
if the state of the preset database is monitored to be updated, acquiring a target configuration file to be updated from the preset database;
and sending the target configuration file to be updated to target equipment so as to enable the target equipment to perform backup processing on the current configuration file, and performing replacement updating on the current configuration file according to the target configuration file to be updated.
As a first possible implementation manner in this embodiment of the present application, after performing replacement update on the current configuration file according to the target configuration file to be updated, the method further includes:
judging whether the target equipment is a main arbitration server or not;
and if the target equipment is the main arbitration server, controlling the target equipment to restart.
As a second possible implementation manner in this embodiment of the present application, the method further includes:
generating the target configuration file to be updated corresponding to the target equipment through a preset deployment tool;
and storing the target configuration file to be updated in the preset database.
As a third possible implementation manner in this embodiment of the application, the target device is a service primary device and a service standby device;
the generating the target to-be-updated configuration file corresponding to the target device through a preset deployment tool includes:
acquiring a first configuration file to be updated corresponding to the service main equipment and a second configuration file to be updated corresponding to the service standby equipment through the preset deployment tool;
sending the first configuration file to be updated to the service main equipment so that the service main equipment performs backup processing on a first current configuration file and performs replacement updating on the first current configuration file according to the first configuration file to be updated;
and sending the second configuration file to be updated to the service standby equipment so that the service standby equipment performs backup processing on a second current configuration file, and performs replacement updating on the second current configuration file according to the second configuration file to be updated.
As a fourth possible implementation manner in this embodiment of the present application, the method further includes:
detecting whether the target equipment meets a configuration file updating condition;
and if the target equipment meets the updating condition of the configuration file, calling the preset deployment tool through preset calling software.
According to the configuration file updating method, the state of the preset database is monitored according to the preset period through the preset monitoring software; if the state of the preset database is monitored for updating, acquiring a target configuration file to be updated from the preset database; and sending the target configuration file to be updated to the target equipment so as to enable the target equipment to perform backup processing on the current configuration file, and performing replacement updating on the current configuration file according to the target configuration file to be updated. Therefore, the technical problems that the misoperation probability is high and the efficiency is low in the manual configuration file modification and updating mode in the prior art are solved, the configuration file to be updated can be automatically obtained and sent to the target device to be quickly updated, the automatic updating of the configuration file is realized, the configuration file updating efficiency is improved, and the stability of the clearing platform device is further improved.
An embodiment of a second aspect of the present application provides a device for updating a configuration file, including:
the monitoring module is used for monitoring the state of the preset database according to a preset period through preset monitoring software;
the acquisition module is used for acquiring a target configuration file to be updated from the preset database if the state of the preset database is monitored for updating;
and the sending module is used for sending the target configuration file to be updated to the target equipment so as to enable the target equipment to perform backup processing on the current configuration file, and performing replacement updating on the current configuration file according to the target configuration file to be updated.
As a first possible implementation manner in this embodiment of the application, the apparatus further includes:
the judging module is used for judging whether the target equipment is a main arbitration server or not;
and the restarting module is used for controlling the target equipment to restart if the target equipment is the main arbitration server.
As a third possible implementation manner in this embodiment of the present application, the apparatus further includes:
the generating module is used for generating the target to-be-updated configuration file corresponding to the target equipment through a preset deployment tool;
and the storage module is used for storing the target configuration file to be updated in the preset database.
As a fourth possible implementation manner in this embodiment of the present application, the apparatus further includes:
the target equipment is service main equipment and service standby equipment;
the generation module is specifically configured to:
acquiring a first configuration file to be updated corresponding to the service main equipment and a second configuration file to be updated corresponding to the service standby equipment through the preset deployment tool;
the sending module is further configured to send the first configuration file to be updated to the service main device, so that the service main device performs backup processing on a first current configuration file, and performs replacement updating on the first current configuration file according to the first configuration file to be updated;
the sending module is further configured to send the second configuration file to be updated to the service standby device, so that the service standby device performs backup processing on a second current configuration file, and performs replacement updating on the second current configuration file according to the second configuration file to be updated.
As a sixth possible implementation manner in this embodiment of the present application, the apparatus further includes:
the detection module is used for detecting whether the target equipment meets the updating condition of the configuration file;
and the calling module is used for calling the preset deployment tool through preset calling software if the target equipment meets the update condition of the configuration file.
The configuration file updating device provided by the embodiment of the application monitors the state of the preset database according to a preset period through preset monitoring software; if the state of the preset database is monitored for updating, acquiring a target configuration file to be updated from the preset database; and sending the target configuration file to be updated to the target equipment so as to enable the target equipment to perform backup processing on the current configuration file, and performing replacement updating on the current configuration file according to the target configuration file to be updated. Therefore, the technical problems that the misoperation probability is high and the efficiency is low in the manual configuration file modification and updating mode in the prior art are solved, the configuration file to be updated can be automatically obtained and sent to the target device to be quickly updated, the automatic updating of the configuration file is realized, the configuration file updating efficiency is improved, and the stability of the clearing platform device is further improved.
An embodiment of the third aspect of the present application provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor executes the computer program to implement the configuration file updating method as described in the foregoing embodiments.
A fourth aspect of the present application is directed to a non-transitory computer-readable storage medium, on which a computer program is stored, and the program, when executed by a processor, implements the configuration file updating method as described in the foregoing embodiments.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
Fig. 1 is a schematic flowchart of a configuration file updating method according to an embodiment of the present application;
FIG. 2 is a diagram of an exemplary device architecture provided by one embodiment of the present application;
FIG. 3 is a flowchart illustrating a method for updating a configuration file according to another embodiment of the present application;
FIG. 4 is a flowchart illustrating a method for updating a configuration file according to another embodiment of the present application;
FIG. 5 is a diagram illustrating an exemplary method for updating a configuration file according to an embodiment of the present application;
FIG. 6 is a block diagram of a device for updating configuration files according to an embodiment of the present application;
FIG. 7 is a block diagram of a device for updating configuration files according to another embodiment of the present application;
FIG. 8 is a block diagram of a device for updating configuration files according to another embodiment of the present application;
FIG. 9 is a block diagram of a device for updating configuration files according to another embodiment of the present application;
FIG. 10 illustrates a block diagram of an exemplary computer device suitable for use to implement embodiments of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A configuration file update method, apparatus, computer device, and storage medium proposed according to an embodiment of the present application are described below with reference to the accompanying drawings.
Fig. 1 is a schematic flowchart of a configuration file updating method according to an embodiment of the present application.
As shown in fig. 1, the configuration file updating method includes the following steps:
step 101, monitoring the state of a preset database according to a preset period through preset monitoring software.
In practical applications, the current database high-availability software architecture of the clearing platform is shown in fig. 1 and includes: a service master (the host shown in fig. 2), a service standby (the standby shown in fig. 2), a master mediation server, and a standby mediation server (the mediation service shown in fig. 2).
It can be understood that the configuration files such as config.rc, keepalive.sql, timer _ sys.conf and the like on the service main device and the service standby device and the configuration files such as db.xml and the like on the mediation server need to be updated, restarted and the like.
Specifically, the present application may monitor the state of the preset database according to a preset period through preset monitoring software, such as confd software, where the preset period may be selectively set as needed, such as every day or every 2 hours.
The preset database state refers to whether stored data in the database changes, that is, whether a new configuration file is stored.
As a possible implementation manner of the present application, a target configuration file to be updated corresponding to a target device is generated by a preset deployment tool, and the target configuration file to be updated is stored in a preset database to indicate a preset database state for updating.
The preset deployment tool can be an ansable automatic deployment tool, a saltstack or a puppette and the like, and can be selected according to needs; the preset database may be an etcd database or the like, and may be selected according to needs.
It can also be understood that the target to-be-updated profiles corresponding to different target devices are different, and therefore the target to-be-updated profiles in the data carry corresponding identifiers to determine the target devices.
Step 102, if the state of the preset database is monitored for updating, acquiring a target configuration file to be updated from the preset database.
And 103, sending the target configuration file to be updated to the target equipment so that the target equipment performs backup processing on the current configuration file, and performing replacement updating on the current configuration file according to the target configuration file to be updated.
Specifically, when the state of the preset database is monitored for updating, the target configuration file to be updated is obtained from the preset database, the target device can be determined according to the identifier in the target configuration file to be updated, so that the target configuration file to be updated is sent to the target device, the target device performs backup processing on the current configuration file, and the current configuration file is replaced and updated according to the target configuration file to be updated.
According to the configuration file updating method, the state of the preset database is monitored according to the preset period through the preset monitoring software; if the state of the preset database is monitored for updating, acquiring a target configuration file to be updated from the preset database; and sending the target configuration file to be updated to the target equipment so as to enable the target equipment to perform backup processing on the current configuration file, and performing replacement updating on the current configuration file according to the target configuration file to be updated. Therefore, the technical problems that the misoperation probability is high and the efficiency is low in the manual configuration file modification and updating mode in the prior art are solved, the configuration file to be updated can be automatically obtained and sent to the target device to be quickly updated, the automatic updating of the configuration file is realized, the configuration file updating efficiency is improved, and the stability of the clearing platform device is further improved.
Based on the above description of the embodiments, it can be understood that some target devices need to perform a restart operation after performing a profile update, which is described in detail with reference to fig. 3.
Fig. 3 is a schematic flowchart of a configuration file updating method according to another embodiment of the present application.
As shown in fig. 2, the configuration file updating method includes the following steps:
step 201, determine whether the target device is the main arbitration server.
Step 202, if the target device is the main arbitration server, controlling the target device to perform a restart operation.
Specifically, the target device may be analyzed to determine whether the target device is the master arbitration server, and if the target device is the master arbitration server, the target device is controlled to perform a restart operation.
It should be noted that, if the target device is not the main arbitration server, no processing is performed, thereby further improving the efficiency of updating the configuration file.
Based on the description of the above embodiment, it can be further understood that after the target configuration file to be updated corresponding to the target device is generated by the preset deployment tool, the generated target configuration file to be updated may be directly sent to the target device for updating, and does not need to be stored by the preset database, that is, the target configuration file to be updated corresponding to the target device may be generated by the preset deployment tool according to the preset period and sent to the target device for updating, which is described in detail with reference to fig. 4.
Fig. 4 is a flowchart illustrating a method for updating a configuration file according to another embodiment of the present application.
As shown in fig. 4, the target devices in the configuration file updating method are the service primary device and the service standby device, and further include:
step 301, a first configuration file to be updated corresponding to the service main device and a second configuration file to be updated corresponding to the service standby device are obtained through a preset deployment tool.
Step 302, sending the first configuration file to be updated to the service master device, so that the service master device performs backup processing on the first current configuration file, and performs replacement updating on the first current configuration file according to the first configuration file to be updated.
Step 303, sending the second configuration file to be updated to the service standby device, so that the service standby device performs backup processing on the second current configuration file, and performs replacement updating on the second current configuration file according to the second configuration file to be updated.
Specifically, when the target device is a service main device and a service standby device, a first configuration file to be updated corresponding to the service main device and a second configuration file to be updated corresponding to the service standby device may be directly obtained by a preset deployment tool and then respectively sent to the service main device and the service standby device, the service main device performs backup processing on the first current configuration file, performs backup processing on the first current configuration file according to the first configuration file to be updated, and performs replacement updating on the second current configuration file according to the second configuration file to be updated.
Therefore, the individual target equipment is directly sent to be updated after the configuration file to be updated is generated, and the updating efficiency of the configuration file is further improved.
It can also be understood that, in order to ensure the ordered accuracy of the configuration file update, each target device may also be detected, that is, whether the target device needs to perform the configuration file update, including the current working state, the storage state, or whether the update instruction detection is received, and if the target device meets the configuration file update condition, a preset deployment tool is called by preset calling software to generate an update file to be configured for the corresponding target device.
In order to make the processes of the above embodiments more clear to those skilled in the art, the following is described in detail by way of example with reference to fig. 5.
As shown in fig. 5, different configuration files are formed for service main devices and service standby devices with different roles by an ansable automated deployment tool, the configuration file to be updated is distributed to the main device and the standby device with corresponding roles, the etcd database is further updated, the update state of the etcd database is monitored by confd software, the configuration file to be updated is obtained, after the configuration file of the arbitration server is updated, whether the configuration file is the main arbitration server is judged, if the configuration file is the main arbitration server, the main arbitration server is controlled to restart, and the standby arbitration server only updates the configuration file.
Therefore, the whole configuration starting process is decomposed into a plurality of steps through the infrastructure, different roles are subjected to operations such as configuration modification, service registration, software starting and the like according to the steps, and the whole process is subjected to automatic operation through a program.
Moreover, as in fig. 5, web management is realized by using jenkins to call the ansable, and the configuration of ha can be changed without logging in a server, thereby simplifying the operation.
From this, through web management, the simplified operation process reduces the maloperation rate, improves and deploys efficiency, only needs to input several simple parameters, and the people can operate, only needs 1 minute can not arrive and deploy the completion, and the maloperation can not appear, is about to original manual operation automation, and the platformization, web management are succinct more convenient, and efficiency rises, and the maloperation rate reduces.
In order to implement the above embodiments, the present application further provides a device for updating a configuration file.
As shown in fig. 6, the profile updating apparatus includes: a monitoring module 601, an obtaining module 602 and a sending module 603.
The monitoring module 601 is configured to monitor the state of the preset database according to a preset period through preset monitoring software.
An obtaining module 602, configured to obtain a target configuration file to be updated from the preset database if the state of the preset database is monitored for updating.
A sending module 603, configured to send the target to-be-updated configuration file to a target device, so that the target device performs backup processing on a current configuration file, and performs replacement updating on the current configuration file according to the target to-be-updated configuration file.
As a possible implementation manner, as shown in fig. 7, on the basis of fig. 6, the configuration file updating apparatus further includes: a decision block 604 and a restart block 605.
The determining module 604 is configured to determine whether the target device is a master arbitration server;
and a restart module 605, configured to control the target device to perform a restart operation if the target device is a master arbitration server.
As a possible implementation manner, as shown in fig. 8, on the basis of fig. 6, the configuration file updating apparatus further includes: a generation module 606 and a storage module 607.
The generating module 606 is configured to generate the target to-be-updated configuration file corresponding to the target device through a preset deployment tool.
The storage module 607 is configured to store the target configuration file to be updated in the preset database.
As another possible implementation manner, the target device is a service main device and a service standby device;
the generating module 606 is specifically configured to: and acquiring a first configuration file to be updated corresponding to the service main equipment and a second configuration file to be updated corresponding to the service standby equipment through the preset deployment tool.
The sending module 603 is further configured to send the first configuration file to be updated to the service master device, so that the service master device performs backup processing on the first current configuration file, and performs replacement updating on the first current configuration file according to the first configuration file to be updated.
The sending module 603 is further configured to send the second configuration file to be updated to the service standby device, so that the service standby device performs backup processing on a second current configuration file, and performs replacement updating on the second current configuration file according to the second configuration file to be updated.
As another possible implementation manner, as shown in fig. 9, on the basis of fig. 8, the configuration file updating apparatus further includes: a detection module 608 and a calling module 609.
A detecting module 608, configured to detect whether the target device meets a profile update condition.
A calling module 609, configured to call the preset deployment tool through preset calling software if the target device meets a configuration file update condition.
It should be noted that the foregoing explanation on the embodiment of the configuration file updating method is also applicable to the apparatus of this embodiment, and is not repeated here.
The configuration file updating device provided by the embodiment of the application monitors the state of the preset database according to a preset period through preset monitoring software; if the state of the preset database is monitored for updating, acquiring a target configuration file to be updated from the preset database; and sending the target configuration file to be updated to the target equipment so as to enable the target equipment to perform backup processing on the current configuration file, and performing replacement updating on the current configuration file according to the target configuration file to be updated. Therefore, the technical problems that the misoperation probability is high and the efficiency is low in the manual configuration file modification and updating mode in the prior art are solved, the configuration file to be updated can be automatically obtained and sent to the target device to be quickly updated, the automatic updating of the configuration file is realized, the configuration file updating efficiency is improved, and the stability of the clearing platform device is further improved.
In order to implement the foregoing embodiments, the present application also proposes a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the computer device implements the configuration file updating method as described in the foregoing embodiments.
In order to implement the above embodiments, the present application also proposes a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the profile updating method as described in the above embodiments.
FIG. 10 illustrates a block diagram of an exemplary computer device suitable for use to implement embodiments of the present application. The computer device 12 shown in fig. 10 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present application.
As shown in FIG. 10, computer device 12 is embodied in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. These architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 10, and commonly referred to as a "hard drive"). Although not shown in FIG. 10, a disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read Only memory (CD-ROM), a Digital versatile disk Read Only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally perform the functions and/or methodologies of the embodiments described herein.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Moreover, computer device 12 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network such as the Internet) via Network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, for example, implementing the profile update method mentioned in the foregoing embodiments, by executing a program stored in the system memory 28.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (10)

1. A method for updating a configuration file, comprising the steps of:
monitoring the state of the preset database according to a preset period through preset monitoring software;
if the state of the preset database is monitored to be updated, acquiring a target configuration file to be updated from the preset database;
and sending the target configuration file to be updated to target equipment so as to enable the target equipment to perform backup processing on the current configuration file, and performing replacement updating on the current configuration file according to the target configuration file to be updated.
2. The method of claim 1, wherein after the replacement updating of the current profile according to the target to-be-updated profile, further comprising:
judging whether the target equipment is a main arbitration server or not;
and if the target equipment is the main arbitration server, controlling the target equipment to restart.
3. The method of claim 1, further comprising:
generating the target configuration file to be updated corresponding to the target equipment through a preset deployment tool;
and storing the target configuration file to be updated in the preset database.
4. The method of claim 3, wherein the target device is a service primary device and a service standby device;
the generating the target to-be-updated configuration file corresponding to the target device through a preset deployment tool includes:
acquiring a first configuration file to be updated corresponding to the service main equipment and a second configuration file to be updated corresponding to the service standby equipment through the preset deployment tool;
sending the first configuration file to be updated to the service main equipment so that the service main equipment performs backup processing on a first current configuration file and performs replacement updating on the first current configuration file according to the first configuration file to be updated;
and sending the second configuration file to be updated to the service standby equipment so that the service standby equipment performs backup processing on a second current configuration file, and performs replacement updating on the second current configuration file according to the second configuration file to be updated.
5. The method of claim 1, further comprising:
detecting whether the target equipment meets a configuration file updating condition;
and if the target equipment meets the updating condition of the configuration file, calling the preset deployment tool through preset calling software.
6. A profile update apparatus, comprising:
the monitoring module is used for monitoring the state of the preset database according to a preset period through preset monitoring software;
the acquisition module is used for acquiring a target configuration file to be updated from the preset database if the state of the preset database is monitored for updating;
and the sending module is used for sending the target configuration file to be updated to the target equipment so as to enable the target equipment to perform backup processing on the current configuration file, and performing replacement updating on the current configuration file according to the target configuration file to be updated.
7. The apparatus of claim 6, further comprising:
the judging module is used for judging whether the target equipment is a main arbitration server or not;
and the restarting module is used for controlling the target equipment to restart if the target equipment is the main arbitration server.
8. The apparatus of claim 6, further comprising:
the generating module is used for generating the target to-be-updated configuration file corresponding to the target equipment through a preset deployment tool;
and the storage module is used for storing the target configuration file to be updated in the preset database.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the profile updating method as claimed in any one of claims 1 to 5 when executing the program.
10. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the profile updating method according to any one of claims 1 to 5.
CN201910977706.6A 2019-10-15 2019-10-15 Configuration file updating method and device, computer equipment and storage medium Pending CN110865835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910977706.6A CN110865835A (en) 2019-10-15 2019-10-15 Configuration file updating method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910977706.6A CN110865835A (en) 2019-10-15 2019-10-15 Configuration file updating method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110865835A true CN110865835A (en) 2020-03-06

Family

ID=69652599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910977706.6A Pending CN110865835A (en) 2019-10-15 2019-10-15 Configuration file updating method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110865835A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475190A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Information updating method and device, electronic equipment and readable storage medium
CN111506337A (en) * 2020-04-15 2020-08-07 中国银行股份有限公司 Application software updating method and device
CN112486540A (en) * 2020-12-07 2021-03-12 中国民航信息网络股份有限公司 Method and device for updating counter software of airport, storage medium and electronic equipment
CN112507267A (en) * 2020-12-03 2021-03-16 上海哔哩哔哩科技有限公司 User preference setting synchronization method, system, device and readable storage medium
CN113220703A (en) * 2021-05-31 2021-08-06 普瑞纯证医疗科技(广州)有限公司 Method, server and system for updating medical data based on big data platform
CN113656359A (en) * 2021-08-03 2021-11-16 煤炭科学研究总院 Method and device for lightening three-dimensional model, computer equipment and storage medium
CN113778494A (en) * 2021-09-28 2021-12-10 度小满科技(北京)有限公司 Method, device and equipment for updating packaging architecture and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871649A (en) * 2016-06-21 2016-08-17 上海帝联信息科技股份有限公司 Node server, service side and configuration file updating method thereof and updating control method
CN108600029A (en) * 2018-05-09 2018-09-28 深圳壹账通智能科技有限公司 A kind of configuration file update method, device, terminal device and storage medium
CN109976774A (en) * 2019-04-11 2019-07-05 北京启迪区块链科技发展有限公司 Block chain node deployment method, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105871649A (en) * 2016-06-21 2016-08-17 上海帝联信息科技股份有限公司 Node server, service side and configuration file updating method thereof and updating control method
CN108600029A (en) * 2018-05-09 2018-09-28 深圳壹账通智能科技有限公司 A kind of configuration file update method, device, terminal device and storage medium
CN109976774A (en) * 2019-04-11 2019-07-05 北京启迪区块链科技发展有限公司 Block chain node deployment method, device, equipment and storage medium

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475190A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Information updating method and device, electronic equipment and readable storage medium
CN111506337A (en) * 2020-04-15 2020-08-07 中国银行股份有限公司 Application software updating method and device
CN112507267A (en) * 2020-12-03 2021-03-16 上海哔哩哔哩科技有限公司 User preference setting synchronization method, system, device and readable storage medium
CN112507267B (en) * 2020-12-03 2023-01-20 上海哔哩哔哩科技有限公司 User preference setting synchronization method, system, device and readable storage medium
CN112486540A (en) * 2020-12-07 2021-03-12 中国民航信息网络股份有限公司 Method and device for updating counter software of airport, storage medium and electronic equipment
CN113220703A (en) * 2021-05-31 2021-08-06 普瑞纯证医疗科技(广州)有限公司 Method, server and system for updating medical data based on big data platform
CN113656359A (en) * 2021-08-03 2021-11-16 煤炭科学研究总院 Method and device for lightening three-dimensional model, computer equipment and storage medium
CN113778494A (en) * 2021-09-28 2021-12-10 度小满科技(北京)有限公司 Method, device and equipment for updating packaging architecture and storage medium

Similar Documents

Publication Publication Date Title
CN110865835A (en) Configuration file updating method and device, computer equipment and storage medium
CN110191018B (en) Abnormity monitoring method and device for vehicle CAN bus and computer equipment
CN103377094B (en) Method for monitoring abnormality and device
CN108763038B (en) Alarm data management method and device, computer equipment and storage medium
US10491671B2 (en) Method and apparatus for switching between servers in server cluster
CN111756574A (en) Method and device for remotely updating firmware in batch mode and computer readable storage medium
CN112486629B (en) Micro-service state detection method, micro-service state detection device, electronic equipment and storage medium
CN110489306A (en) A kind of alarm threshold value determines method, apparatus, computer equipment and storage medium
US8489941B2 (en) Automatic documentation of ticket execution
CN107453932B (en) Distributed storage system management method and device
CN113312153B (en) Cluster deployment method and device, electronic equipment and storage medium
US9697067B2 (en) Monitoring system and monitoring method
CN110888776A (en) Database health state detection method, device and equipment
CN111342986B (en) Distributed node management method and device, distributed system and storage medium
CN110874311A (en) Database detection method and device, computer equipment and storage medium
CN111611124B (en) Monitoring equipment analysis method, device, computer device and storage medium
US20090083747A1 (en) Method for managing application programs by utilizing redundancy and load balance
CN115221092A (en) Method, device and equipment for determining distributable bus of PCI-E card and storage medium
CN109144788B (en) Method, device and system for reconstructing OSD
CN113810457A (en) Method and device for reporting service access exception, readable storage medium and electronic equipment
CN111625193A (en) Configuration method, device, equipment and medium of multipath alias
CN110752950A (en) Update detection method and device for cloud resource pool and terminal equipment
CN112579247A (en) Method and device for determining task state
CN113655964B (en) Data volume processing method, device, electronic equipment, medium and program product
CN110430093B (en) Data processing method and device and computer readable 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: 20200306

RJ01 Rejection of invention patent application after publication