CN109408123B - Method and device for reloading configuration file - Google Patents

Method and device for reloading configuration file Download PDF

Info

Publication number
CN109408123B
CN109408123B CN201811178698.0A CN201811178698A CN109408123B CN 109408123 B CN109408123 B CN 109408123B CN 201811178698 A CN201811178698 A CN 201811178698A CN 109408123 B CN109408123 B CN 109408123B
Authority
CN
China
Prior art keywords
configuration file
read
initialized
successfully
new configuration
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
CN201811178698.0A
Other languages
Chinese (zh)
Other versions
CN109408123A (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.)
Qingdao Hisense Media Network Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network 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 Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201811178698.0A priority Critical patent/CN109408123B/en
Publication of CN109408123A publication Critical patent/CN109408123A/en
Application granted granted Critical
Publication of CN109408123B publication Critical patent/CN109408123B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • 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/4401Bootstrapping

Landscapes

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

Abstract

The present invention relates to the field of computers, and in particular, to a method and an apparatus for reloading a configuration file. The method is used for realizing the reloading of the new configuration file, and comprises the following steps: the method comprises the steps that Mycat loads new configuration files which are respectively set corresponding to a read-write back-end database, various parameters contained in the configuration files are initialized, whether the parameters which are not successfully initialized are negligible items is judged when the parameters which are not successfully initialized exist, and the new configuration files are adopted to replace old configuration files when the parameters which are not successfully initialized are negligible items, so that the successful loading of the new configuration files is realized by setting the negligible items of the parameters in the configuration files, the loading efficiency of the configuration files is effectively improved, the influence of the unavailable read-write back-end database on reloading of the configuration files is reduced, the fault-tolerant loading function of the Mycat on the read-write back-end database is enhanced, and the service connection of the read-write back-end database is effectively ensured not to be interrupted.

Description

Method and device for reloading configuration file
Technical Field
The present invention relates to the field of computers, and in particular, to a method and an apparatus for reloading a configuration file.
Background
Currently, the Mycat is used as a middleware of a read-write backend database sub-table and is an agent of the read-write backend database, and the Mycat needs to configure a related configuration file which is connected with the read-write backend database and provides an agent service. When the configuration file needs to be reloaded by the Mycat, the Mycat can check the legality of the association between the related configuration files, and can also detect the accessibility and the availability of all read-write back-end databases of the configuration files, so that the complete availability of the read-write back-end databases is ensured.
In the prior art, a cloud database platform comprises a plurality of service scenes, when a configuration file is reloaded by a Mycat, if an unavailable read-write back-end database exists in the cloud database, the configuration file can be reloaded only by adopting a Mycat restarting mode, but the Mycat restarting can cause interruption of service connection in the cloud database for a certain time, and the requirement of service connection uninterrupted is difficult to meet.
And after the related service is started, the Mycat only supports reloading the configuration file under the condition that all read-write back-end databases are completely available, and the condition that the read-write back-end databases are unavailable or unreachable under a reasonable scene cannot be supported no matter the reloading of the configuration file is automatically triggered through a management port or through zookeeper data change.
Therefore, it is desirable to design a method and apparatus for reloading configuration files to solve the above problems.
Disclosure of Invention
The invention aims to provide a method and a device for reloading a configuration file, which are used for ensuring that fault-tolerant wrong configuration items cannot cause reloading process failure when a new configuration file is loaded.
A method of configuration file reloading, comprising:
loading new configuration files respectively set corresponding to the read-write back-end database;
initializing various parameters contained in the configuration file;
when determining that the parameters which are not initialized successfully exist, judging whether the parameters which are not initialized successfully are negligible items;
and when the parameters which are not initialized successfully are determined to be the negligible items, replacing the old configuration files used by the read-write back-end database by using the new configuration files.
Optionally, after loading new configuration files respectively set in the corresponding read-write back-end databases, before initializing various parameters included in the configuration files, the method further includes:
performing self-check on the new configuration file, specifically including: and detecting the association legality between related configuration items contained in the new configuration file, and detecting whether the format, the grammar and the data in the new configuration file are correct.
Optionally, after loading new configuration files respectively set in the corresponding read-write back-end databases, before initializing various parameters included in the configuration files, the method further includes:
and determining that no wrong configuration information exists in the read-write back-end database.
Optionally, further comprising:
if the read-write back end database is determined to be in the wrong configuration information, outputting a corresponding wrong configuration information log to warn, wherein the wrong configuration information comprises: user name error, password error, service access read-write backend database permission error, and protocol IP error or domain name address error interconnected between read-write backend database networks.
Optionally, when determining that there is a parameter that has not been initialized successfully, determining whether the parameter that has not been initialized successfully is a negligible item, specifically including:
and if the parameter which is not successfully initialized is one item or any combination of the negligible items of the setting parameters in the new configuration file, determining that the parameter which is not successfully initialized is a negligible item.
An apparatus for reloading a configuration file, optionally comprising:
the loading unit is used for loading new configuration files respectively set corresponding to the read-write back-end database;
the initialization unit is used for initializing various parameters contained in the configuration file by a user;
the device comprises a judging unit, a judging unit and a judging unit, wherein the judging unit is used for judging whether the parameters which are not initialized successfully are negligible items when determining that the parameters which are not initialized successfully exist;
and the replacing unit is used for replacing the old configuration file used by the read-write back-end database by adopting a new configuration file when the parameter which is not successfully initialized is determined to be a negligible item.
Optionally, after loading new configuration files respectively set in the corresponding read-write back-end databases and before initializing various parameters included in the configuration files, the loading unit is further configured to:
performing self-check on the new configuration file, specifically including: and detecting the association legality between related configuration items contained in the new configuration file, and detecting whether the format, the grammar and the data in the new configuration file are correct.
Optionally, after loading new configuration files respectively set in the corresponding read-write back-end databases and before initializing various parameters included in the configuration files, the loading unit is further configured to:
and determining that no wrong configuration information exists in the read-write back-end database.
Optionally, the loading unit is further configured to:
if the read-write back end database is determined to be in the wrong configuration information, outputting a corresponding wrong configuration information log to warn, wherein the wrong configuration information comprises: user name error, password error, service access read-write backend database permission error, and protocol IP error or domain name address error interconnected between read-write backend database networks.
Optionally, when determining that there is a parameter that has not been successfully initialized, determining whether the parameter that has not been successfully initialized is a negligible item, where the determining unit is specifically configured to:
and if the parameter which is not successfully initialized is one item or any combination of the negligible items of the setting parameters in the new configuration file, determining that the parameter which is not successfully initialized is a negligible item.
A storage medium, optionally storing a program for implementing the method for configuration file reloading, which program, when executed by a processor, performs the steps of:
loading new configuration files respectively set corresponding to the read-write back-end database;
initializing various parameters contained in the configuration file;
when determining that the parameters which are not initialized successfully exist, judging whether the parameters which are not initialized successfully are negligible items;
and when the parameters which are not initialized successfully are determined to be the negligible items, replacing the old configuration files used by the read-write back-end database by using the new configuration files.
A computer apparatus, optionally, comprising one or more processors; and one or more computer-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the method of any of the above.
In summary, in the embodiment of the present invention, the Mycat loads the new configuration files respectively set in the corresponding read-write back-end database, and then initializes various parameters included in the configuration files, and further determines whether the parameters that are not successfully initialized exist, determines whether the parameters that are not successfully initialized are negligible items, and when determining that the parameters that are not successfully initialized are negligible items, replaces the old configuration files with the new configuration files, so that the negligible items of the parameters in the configuration files are set, thereby implementing smooth loading of the new configuration files, effectively improving loading efficiency of the configuration files, reducing the influence of the unavailable read-write back-end database on reloading of the configuration files, enhancing the loading function of the Mycat on the read-write back-end database, and effectively ensuring that the service connection of the read-write back-end database is not interrupted.
Drawings
FIG. 1 is a schematic diagram illustrating a configuration file reloading process according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a Mycat functional structure in an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the embodiment of the invention, in the preprocessing stage, a manager sets the negligible items of the parameters in the Mycat for the configuration file of the readable back-end database. For example, the administrator sets a _ DataHost, b _ DataHost, and c _ DataHost in the configuration file as the negligible items.
Then, a parameter is set in the Mycat and recorded as isforcereoadlalenabled to indicate whether a fault-tolerant loading function is started or not, the parameter is used for starting or closing a fault-tolerant real-time configuration file reloading process, when a manager calls a reloading command by using a management port or triggers the reloading command through zookeeper, if the isforcereoadlalenabled is 1, the fault-tolerant configuration file reloading process is started, the Mycat processes a new configuration file according to the current real-time configuration file reloading process, that is, the Mycat adopts the fault-tolerant real-time configuration file reloading process to reload the new configuration file, if the isforcereoadlalenabled is 0, the Mycat indicates closing the fault-tolerant real-time configuration file reloading process, and the Mycat processes the new configuration file according to the real-time configuration file reloading process under the existing technology.
Referring to fig. 1, in the embodiment of the present invention, a detailed flow for reloading the configuration file is as follows:
step 100: mycat opens a fault tolerant configuration file reload flow.
Specifically, in the embodiment of the present invention, when an administrator calls a reload command using a management port or triggers the reload command through zookeeper, and isForceReloadAllEnabled is 1, the Mycat opens a fault-tolerant configuration file reload flow.
Step 110: and the Mycat loads a new configuration file corresponding to the read-write back-end database setting.
Specifically, in the embodiment of the present invention, after the Mycat starts the fault-tolerant configuration file reload process, the Mycat loads each configuration item in the new configuration file set in each read-write backend database, that is, the Mycat reloads each configuration item in the new configuration file by using the fault-tolerant real-time configuration file reload process.
Further, in practical application, there may be multiple read-write backend databases, and in this case, the Mycat may load configuration items in corresponding configuration files to the multiple read-write backend databases at the same time.
On the other hand, after loading the new configuration file, before executing step 120, the Mycat needs to perform self-check on the new configuration file, which specifically includes: mycat detects the validity of the association between the related configuration items contained in the new configuration file and detects whether the format, syntax, data, etc. in the new configuration file are correct.
Step 120: and the Mycat performs availability detection on the read-write back-end database to obtain a detection result.
The usability detection means that the Mycat detects whether the Mycat can be correctly connected with the corresponding read-write back-end database, that is, whether the related service can work normally.
Step 130: and the Mycat judges whether the read-write back-end database is available or not based on the detection result, if so, the step 140 is executed, and if not, the step 150 is executed.
Specifically, in the embodiment of the present invention, when step 130 is executed, the Mycat may determine availability of the read-write back-end database based on the detection result.
For example, when the Mycat determines that the read-write back-end database has wrong configuration information, it may determine that the read-write back-end database is unavailable, specifically, it may determine that the read-write back-end database is configured with a wrong user name or password, it may determine that a service does not have permission to access the read-write back-end database, or it may determine that an interconnection Protocol (Internet Protocol, IP) between read-write back-end database networks is unavailable.
Step 140: and the Mycat initializes various parameters contained in a new configuration file corresponding to the read-write back-end database.
Specifically, in the embodiment of the present invention, when it is determined that the read-write backend database is available, the Mycat may directly initialize various parameters included in the new configuration file.
Step 150: mycat compares the new configuration file with the old configuration file currently used by the read-write back-end database, and outputs an alarm log based on the comparison result.
Specifically, in the embodiment of the present invention, when it is determined that the read-write backend database is unavailable, the Mycat compares a new configuration file corresponding to the read-write backend database with an old configuration file, finds out a difference between the new configuration file and the old configuration file, records the difference in a log, and outputs a corresponding warning log.
In addition, if there are multiple read-write backend databases, the Mycat needs to perform usability detection in steps 120 to 150 for each read-write backend database, and if part of the read-write backend databases in the multiple read-write backend databases are unavailable, then the Mycat continues to perform subsequent operations for the available read-write backend databases, and compares the corresponding new configuration file with the old configuration file for the unavailable read-write backend database, finds out the difference between the new configuration file and the old configuration file, records the difference in the log, outputs the corresponding warning log, and then continues to perform the subsequent operations.
Step 160: and the Mycat judges whether the parameters which are not initialized successfully exist in various parameters contained in the new configuration file corresponding to the read-write back-end database, if so, the step 180 is executed, and if not, the step 170 is executed.
Step 170: the new configuration file is used by the Mycat to replace the old configuration file used by the read-write back-end database, and then step 200 is executed.
Specifically, in the embodiment of the present invention, when it is determined that all the various parameters included in the new configuration file corresponding to the read-write backend database are initialized successfully, the macat may directly replace the old configuration file used by the read-write backend database with the new configuration file.
Step 180: mycat determines whether the uninitialized parameter is a negligible item, if yes, step 170 is performed, otherwise, step 190 is performed.
Specifically, in the embodiment of the present invention, when it is determined that there are successfully uninitialized parameters in the various parameters included in the new configuration file corresponding to the read-write backend database, and it is determined that the successfully uninitialized parameters are negligible items, step 170 is executed, that is, the Mycat may directly replace the old configuration file used by the read-write backend database with the new configuration file.
For example, in the preprocessing phase, the administrator sets a _ DataHost, b _ DataHost, and c _ DataHost in the configuration file as the negligible items. If it is determined that there are successfully uninitialized parameters in the various types of parameters included in the new configuration file corresponding to the read-write back-end database, and the successfully uninitialized parameters are one or any combination of a _ DataHost, b _ DataHost, and c _ DataHost, step 170 is performed, and if it is determined that there are successfully uninitialized parameters in the various types of parameters included in the new configuration file corresponding to the read-write back-end database, and the successfully uninitialized parameters are d _ DataHost, step 190 is performed. Step 190: mycat determines that it has failed to open a fault-tolerant configuration file reload flow.
Specifically, in the embodiment of the present invention, when it is determined that the parameter that is not successfully initialized is not an ignorable item, the Mycat determines that the process of opening the reloading of the fault-tolerant configuration file fails.
Step 200: mycat determines that the reloading process of the configuration file which can be fault-tolerant is started successfully.
Specifically, in the embodiment of the present invention, after the new configuration file is used to replace the old configuration file used by the read-write back-end database, the Mycat determines that the reloading process of starting the fault-tolerant configuration file is successful.
Based on the above embodiments, referring to fig. 2, in the embodiment of the present invention, the Mycat at least includes: a loading unit 101, an initial unit 102, a judgment unit 103, and a replacement unit 104, wherein,
a loading unit 101, configured to load new configuration files respectively set in the corresponding read-write back-end databases;
an initialization unit 102, which is used for initializing various parameters contained in the configuration file by a user;
a judging unit 103, configured to, when determining that there is a parameter that is not successfully initialized, judge whether the parameter that is successfully initialized is an ignorable item;
a replacing unit 104, configured to replace, when it is determined that the parameter that is not successfully initialized is a negligible item, an old configuration file used by the read-write back-end database with a new configuration file.
Optionally, after loading new configuration files respectively set in the corresponding read-write back-end databases and before initializing various parameters included in the configuration files, the loading unit 101 is further configured to:
performing self-check on the new configuration file, specifically including: and detecting the association legality between related configuration items contained in the new configuration file, and detecting whether the format, the grammar and the data in the new configuration file are correct.
Optionally, after loading new configuration files respectively set in the corresponding read-write back-end databases and before initializing various parameters included in the configuration files, the loading unit 101 is further configured to:
and determining that no wrong configuration information exists in the read-write back-end database.
Optionally, the loading unit 101 is further configured to:
if the read-write back end database is determined to be in the wrong configuration information, outputting a corresponding wrong configuration information log to warn, wherein the wrong configuration information comprises: user name error, password error, service access read-write backend database permission error, and read-write backend database network interconnection protocol IP error.
Optionally, when determining that there is a parameter that has not been initialized successfully, determining whether the parameter that has not been initialized successfully is an ignorable item, where the determining unit 103 is specifically configured to:
and if the parameter which is not successfully initialized is one item or any combination of the negligible items of the setting parameters in the new configuration file, determining that the parameter which is not successfully initialized is a negligible item.
Based on the same inventive concept, an embodiment of the present invention provides a storage medium storing a program for implementing a method for reloading a configuration file, where the program, when executed by a processor, performs the following steps:
loading new configuration files respectively set corresponding to the read-write back-end database;
initializing various parameters contained in the configuration file;
when determining that the parameters which are not initialized successfully exist, judging whether the parameters which are not initialized successfully are negligible items;
and when the parameters which are not initialized successfully are determined to be the negligible items, replacing the old configuration files used by the read-write back-end database by using the new configuration files.
Based on the same inventive concept, the embodiment of the invention provides a computer device, which comprises one or more processors; and one or more computer-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the method of any of the above.
To sum up, in the embodiments of the present invention, first, the Mycat loads new configuration files respectively set in the corresponding read-write back-end database, and then initializes various parameters contained in the configuration files, and further, when determining that there is a parameter that is not successfully initialized, determines whether the parameter that is not successfully initialized is a negligible item, and when determining that the parameter that is not successfully initialized is a negligible item, replaces an old configuration file used by the read-write back-end database with the new configuration file, so that, by setting the negligible item of the parameter in the configuration file, the replacement of the new configuration file and the old configuration file can be smoothly implemented, thereby implementing the smooth loading of the new configuration file, effectively improving the loading efficiency of the configuration file, reducing the influence of the read-write back-end database on the reloading of the configuration file, and enhancing the fault-tolerant loading function of the read-write back-end database by the Mycat, the frequent restart of the Mycat is avoided, and the uninterrupted service connection of the read-write back-end database is effectively ensured.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (10)

1. A method for configuration file reloading, comprising:
loading new configuration files which are respectively set corresponding to the read-write back-end database by the database middleware Mycat;
the Mycat initializes various parameters contained in the configuration file;
when determining that the parameter which is not initialized successfully exists, the Mycat judges whether the parameter which is not initialized successfully is a negligible item;
and when the Mycat determines that the parameter which is not initialized successfully is a negligible item, replacing the old configuration file used by the read-write back-end database by using a new configuration file.
2. The method as claimed in claim 1, wherein after loading the new configuration files respectively set in the corresponding read-write backend database, before initializing various parameters included in the configuration files, further comprising:
performing self-check on the new configuration file, specifically including: and detecting the association legality between related configuration items contained in the new configuration file, and detecting whether the format, the grammar and the data in the new configuration file are correct.
3. The method as claimed in claim 1, wherein after loading the new configuration files respectively set in the corresponding read-write backend database, before initializing various parameters included in the configuration files, further comprising:
and determining that no wrong configuration information exists in the read-write back-end database.
4. The method of claim 3, further comprising:
if the read-write back end database is determined to be in the wrong configuration information, outputting a corresponding wrong configuration information log to warn, wherein the wrong configuration information comprises: user name error, password error, service access read-write backend database permission error, and protocol IP error or domain name address error interconnected between read-write backend database networks.
5. The method of claim 1, wherein determining whether the parameters that are not successfully initialized are negligible when determining that the parameters that are not successfully initialized exist comprises:
and if the parameter which is not successfully initialized is one item or any combination of the negligible items of the setting parameters in the new configuration file, determining that the parameter which is not successfully initialized is a negligible item.
6. An apparatus for configuration file reloading, comprising:
the loading unit is used for loading new configuration files respectively set corresponding to the read-write back-end database;
the initialization unit is used for initializing various parameters contained in the configuration file by a user;
the device comprises a judging unit, a judging unit and a judging unit, wherein the judging unit is used for judging whether the parameters which are not initialized successfully are negligible items when determining that the parameters which are not initialized successfully exist;
and the replacing unit is used for replacing the old configuration file used by the read-write back-end database by adopting a new configuration file when the parameter which is not successfully initialized is determined to be a negligible item.
7. The apparatus as claimed in claim 6, wherein after loading the new configuration files respectively set in the corresponding read-write backend database, and before initializing various types of parameters included in the configuration files, the loading unit is further configured to:
performing self-check on the new configuration file, specifically including: and detecting the association legality between related configuration items contained in the new configuration file, and detecting whether the format, the grammar and the data in the new configuration file are correct.
8. The apparatus according to claim 6, wherein when determining that there is a parameter that has not been successfully initialized, determining whether the parameter that has not been successfully initialized is a negligible item, and the determining unit is specifically configured to:
and if the parameter which is not successfully initialized is one item or any combination of the negligible items of the setting parameters in the new configuration file, determining that the parameter which is not successfully initialized is a negligible item.
9. A storage medium storing a program for implementing a method for reloading a configuration file, the program, when executed by a processor, performing the steps of:
loading new configuration files which are respectively set corresponding to the read-write back-end database by the database middleware Mycat;
the Mycat initializes various parameters contained in the configuration file;
when determining that the parameter which is not initialized successfully exists, the Mycat judges whether the parameter which is not initialized successfully is a negligible item;
and when the Mycat determines that the parameter which is not initialized successfully is a negligible item, replacing the old configuration file used by the read-write back-end database by using a new configuration file.
10. A computer apparatus comprising one or more processors; and one or more computer-readable media having instructions stored thereon, which when executed by the one or more processors, cause the apparatus to perform the method of any of claims 1-5.
CN201811178698.0A 2018-10-10 2018-10-10 Method and device for reloading configuration file Active CN109408123B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811178698.0A CN109408123B (en) 2018-10-10 2018-10-10 Method and device for reloading configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811178698.0A CN109408123B (en) 2018-10-10 2018-10-10 Method and device for reloading configuration file

Publications (2)

Publication Number Publication Date
CN109408123A CN109408123A (en) 2019-03-01
CN109408123B true CN109408123B (en) 2021-08-24

Family

ID=65466926

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811178698.0A Active CN109408123B (en) 2018-10-10 2018-10-10 Method and device for reloading configuration file

Country Status (1)

Country Link
CN (1) CN109408123B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900729B (en) * 2021-09-23 2024-04-12 深圳市瑞立视多媒体科技有限公司 Tracking equipment parameter configuration method and device of SteamVR system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188520A (en) * 2007-11-06 2008-05-28 北京航空航天大学 Integration tool for telecommunication area inheritance system based on configuration policy
CN101465758A (en) * 2009-01-14 2009-06-24 华为技术有限公司 Method for managing equipment, system and network management server
US8418139B2 (en) * 2008-04-18 2013-04-09 International Business Machines Corporation System and method for updating initialization parameters for application software from within a software development environment
CN104915238A (en) * 2015-06-29 2015-09-16 中国科学院软件研究所 Method for determining configuration parameter association of Web application
CN106407302A (en) * 2016-08-30 2017-02-15 东华大学 Method for supporting function of calling specific functions of middleware database through simple SQL
CN106980669A (en) * 2017-03-23 2017-07-25 珠海格力电器股份有限公司 A kind of storage of data, acquisition methods and device
CN107707671A (en) * 2017-10-30 2018-02-16 郑州云海信息技术有限公司 A kind of method of the unified configuration of MyCat clusters

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188520A (en) * 2007-11-06 2008-05-28 北京航空航天大学 Integration tool for telecommunication area inheritance system based on configuration policy
US8418139B2 (en) * 2008-04-18 2013-04-09 International Business Machines Corporation System and method for updating initialization parameters for application software from within a software development environment
CN101465758A (en) * 2009-01-14 2009-06-24 华为技术有限公司 Method for managing equipment, system and network management server
CN104915238A (en) * 2015-06-29 2015-09-16 中国科学院软件研究所 Method for determining configuration parameter association of Web application
CN106407302A (en) * 2016-08-30 2017-02-15 东华大学 Method for supporting function of calling specific functions of middleware database through simple SQL
CN106980669A (en) * 2017-03-23 2017-07-25 珠海格力电器股份有限公司 A kind of storage of data, acquisition methods and device
CN107707671A (en) * 2017-10-30 2018-02-16 郑州云海信息技术有限公司 A kind of method of the unified configuration of MyCat clusters

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
mycat配置文件reload;小伙子_china;《https://blog.csdn.net/chinale_wenhua/article/details/81228625?utm_source=blogxgwz0》;20180726;第1页 *
利用开源数据库中间件构建高性能Sakai系统;王炳举;《计算机产品与流通》;20180415;第229+245页 *
基于Mycat的分布式数据库在运营商IT系统转型中的实现与探索;周智;《电脑知识与技术》;20180525;第25-27页 *

Also Published As

Publication number Publication date
CN109408123A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN108683516B (en) Application instance upgrading method, device and system
US9146839B2 (en) Method for pre-testing software compatibility and system thereof
US9582373B2 (en) Methods and systems to hot-swap a virtual machine
US20140376362A1 (en) Dynamic client fail-over during a rolling patch installation based on temporal server conditions
CN107480014B (en) High-availability equipment switching method and device
WO2018095414A1 (en) Method and apparatus for detecting and recovering fault of virtual machine
CN109788068B (en) Heartbeat state information reporting method, device and equipment and computer storage medium
CN113032085A (en) Management method, device, server, management system and medium of cloud operating system
CN105024879A (en) Virtual machine fault detection and recovery system and virtual machine detection, recovery and starting method
EP3522449B1 (en) Service state transition method and device
CN111880906A (en) Virtual machine high-availability management method, system and storage medium
CN110088744A (en) A kind of database maintenance method and its system
CN106130763A (en) Server cluster and be applicable to the database resource group method for handover control of this cluster
CN111181780A (en) HA cluster-based host pool switching method, system, terminal and storage medium
CN109408123B (en) Method and device for reloading configuration file
CN112732412B (en) Service configuration file processing method and device, storage medium and electronic equipment
CN113986450A (en) Virtual machine backup method and device
US8788877B2 (en) Acquiring a storage system into copy services management software
CN111966520A (en) Database high-availability switching method, device and system
CN113377702A (en) Method and device for starting two-node cluster, electronic equipment and storage medium
CN105573867A (en) Method and system for realizing high availability of MySQL
CN112698979A (en) Method and device for processing zookeeper double nodes, storage medium and processor
CN111090537A (en) Cluster starting method and device, electronic equipment and readable storage medium
CN113688021B (en) Load balancing service processing method, device, equipment and readable storage medium
CN116192885A (en) High-availability cluster architecture artificial intelligent experiment cloud platform data processing method and system

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