CN108874503A - A kind of Configuration Agent update method of cloud platform application cluster - Google Patents

A kind of Configuration Agent update method of cloud platform application cluster Download PDF

Info

Publication number
CN108874503A
CN108874503A CN201810566566.9A CN201810566566A CN108874503A CN 108874503 A CN108874503 A CN 108874503A CN 201810566566 A CN201810566566 A CN 201810566566A CN 108874503 A CN108874503 A CN 108874503A
Authority
CN
China
Prior art keywords
configuration
configuration agent
file
agent file
virtual machine
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
CN201810566566.9A
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.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud 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 G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201810566566.9A priority Critical patent/CN108874503A/en
Publication of CN108874503A publication Critical patent/CN108874503A/en
Pending legal-status Critical Current

Links

Classifications

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

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 present invention relates to cloud platform application clustering technology field, especially a kind of Configuration Agent update method of cloud platform application cluster.The method of the present invention includes step:1, the Configuration Agent file metadata information of cluster role is configured in cluster configuration template;2, calculate node obtains the latest edition number of Configuration Agent file on host according to Configuration Agent file metadata information, and the version consistency of the virtual machine internal agents document is checked by serial ports tool;3, when version inconsistency, by latest configuration agents document on serial ports tool renewal host and version number to virtual machine internal, the filename with version number identifier is generated in virtual machine internal;It supports the piecemeal of agents document and merges update processing.The present invention solves the problems, such as that Configuration Agent needs to change inside application cluster in cloud platform, may be implemented the Configuration Agent that automaticly inspects and timely update on demand, meets the scenes such as the function change of application cluster in cloud platform.

Description

A kind of Configuration Agent update method of cloud platform application cluster
Technical field
The present invention relates to cloud platform application clustering technology field, especially a kind of Configuration Agent of cloud platform application cluster is more New method.
Background technique
It runs in cloud computing platform and is much answered as application service cluster, data-base cluster, backup cluster etc. are a variety of at present Use group system.The mode of application cluster is disposed in cloud platform generally by creation virtual machine, the mode then configured is real It is existing.Configuration usually requires presetting some wscript.exes, therefore wscript.exe plays critically important work in application cluster deployment With.But traditional by wscript.exe is deployed in system image template, when the function of application cluster needs to expand change With regard to relatively difficult;The case where especially deployed good application cluster system needs functions expanding.Serial communication is for transmission Be for big file it is unstable, therefore, realizing that the Configuration Agent of application cluster is updated using serial ports tool is also to compel to be essential It solves the problems, such as.
Summary of the invention
It, can be with present invention solves the technical problem that be to propose a kind of Configuration Agent update method of cloud platform application cluster The deployment and deployed good group system for facilitating application cluster carry out depth adjustment and extension, support Configuration Agent file The merging treatment of piecemeal and virtual machine internal on host.
The present invention solve above-mentioned technical problem technical solution be:
The method includes the following steps:
Step 1:The Configuration Agent file metadata information of cluster role is configured in cluster configuration template;
Step 2:Calculate node according to Configuration Agent file metadata information obtain host on Configuration Agent file most New version number checks the version consistency of the virtual machine internal agents document by serial ports tool;
Step 3:When version inconsistency, pass through the latest configuration agents document and version on serial ports tool renewal host This number, to virtual machine internal, the filename with version number identifier is generated in virtual machine internal;Support agents document piecemeal with And merge update processing.
The Configuration Agent file be cluster correspond to role's virtual machine internal deployment, modification configuration use execute text Part;Configuration Agent file metadata includes the title of Configuration Agent file and host, the virtual machine of Configuration Agent file Store path information;The metadata information is stored in cluster configuration template, and configuration template is by application cluster Template Manager.
The latest edition number of Configuration Agent file is the metadata according to Configuration Agent file on the acquisition host Information searches the Configuration Agent file in calculate node;Version number information of the parsing Configuration Agent file acquisition to file internal.
Version number's consistency of the inspection Configuration Agent file is to generate to have version number identifier on host File path, then check that the file path of the version number identifier in virtual machine internal whether there is by serial ports tool;If no In the presence of then illustrating that virtual machine internal Configuration Agent file is not newest;If it is present illustrating virtual machine internal Configuration Agent File is newest.
The present invention solves the problems, such as in cloud platform that Configuration Agent needs to change inside application cluster, may be implemented it is on-demand from Dynamic inspection and the Configuration Agent that timely updates meet the scenes such as the function change of application cluster in cloud platform.It can be convenient application The deployment of cluster and deployed good group system carry out depth adjustment and extension, support Configuration Agent file in host The merging treatment of upper piecemeal and virtual machine internal.
Detailed description of the invention
The following further describes the present invention with reference to the drawings:
Fig. 1 is flow chart of the present invention.
Specific embodiment
There are many embodiments of the present invention, illustrates one of implementation method here.Flow chart as shown in Figure 1, Specific implementation process is as follows:
1, the Configuration Agent file metadata information of cluster role is configured in cluster configuration template;
When the template of application cluster is configured according to role, the Configuration Agent file path of virtual machine internal is identified as Configuration Agent file identification on host is hostConfigPath by vmConfigPath
Information above is passed through into database table structure persistent storage
2, calculate node checks the version consistency of the virtual machine internal agents document
1) the Configuration Agent file member on cluster controller is obtained in calculate node by the communication of rabbitmq communication information Data information
2) according to metadata information, the file version information newVersion under the path hostConfigPath is read;
3) the filename versionFile of the version identifier is generated according to newVersion version information
4) check that versionFile whether there is in virtual machine internal by qemu-agent serial communication tool, if It is not present, then version is inconsistent;If it is present version is consistent.
3, in the case where version inconsistency, by serial communication update host on latest configuration agents document with And version number is to virtual machine internal.
According to step 2 as a result, if version is inconsistent, by versionFile and hostconfigPath file It is updated by serial communication into virtual machine internal, wherein the prefix path of the road vmConfigPath of versionFile is consistent; HostconfigPath will be updated to the path vmConfigPath of virtual machine internal.
Whole flow process terminates.

Claims (5)

1. a kind of Configuration Agent update method of cloud platform application cluster, which is characterized in that the method includes the following steps:
Step 1:The Configuration Agent file metadata information of cluster role is configured in cluster configuration template;
Step 2:Calculate node obtains the latest edition of Configuration Agent file on host according to Configuration Agent file metadata information This number, the version consistency of the virtual machine internal agents document is checked by serial ports tool;
Step 3:When version inconsistency, pass through latest configuration agents document on serial ports tool renewal host and version number To virtual machine internal, the filename with version number identifier is generated in virtual machine internal;Support piecemeal and the conjunction of agents document And update processing.
2. according to the method described in claim 1, it is characterized in that:The Configuration Agent file is that cluster corresponds to role fictitious The execution file that machine On-premise, modification configuration use;Configuration Agent file metadata include Configuration Agent file title with And the store path information of the host of Configuration Agent file, virtual machine;The metadata information is stored in cluster configuration template In, configuration template is by application cluster Template Manager.
3. according to the method described in claim 1, it is characterized in that:Configuration Agent file is newest on the acquisition host Version number is to search the Configuration Agent file in calculate node according to the metadata information of Configuration Agent file;Parsing configuration generation Version number information of the reason file acquisition to file internal.
4. according to the method described in claim 2, it is characterized in that:Configuration Agent file is newest on the acquisition host Version number is to search the Configuration Agent file in calculate node according to the metadata information of Configuration Agent file;Parsing configuration generation Version number information of the reason file acquisition to file internal.
5. method according to any one of claims 1 to 4, which is characterized in that the version of the inspection Configuration Agent file This number consistency is the file path with version number identifier to be generated on host, then check in virtual machine by serial ports tool The file path of the version number identifier whether there is in portion;If it does not exist, then illustrating virtual machine internal Configuration Agent file not It is newest;If it is present illustrating that virtual machine internal Configuration Agent file is newest.
CN201810566566.9A 2018-06-05 2018-06-05 A kind of Configuration Agent update method of cloud platform application cluster Pending CN108874503A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810566566.9A CN108874503A (en) 2018-06-05 2018-06-05 A kind of Configuration Agent update method of cloud platform application cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810566566.9A CN108874503A (en) 2018-06-05 2018-06-05 A kind of Configuration Agent update method of cloud platform application cluster

Publications (1)

Publication Number Publication Date
CN108874503A true CN108874503A (en) 2018-11-23

Family

ID=64336696

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810566566.9A Pending CN108874503A (en) 2018-06-05 2018-06-05 A kind of Configuration Agent update method of cloud platform application cluster

Country Status (1)

Country Link
CN (1) CN108874503A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515650A (en) * 2019-05-17 2019-11-29 国网辽宁省电力有限公司 A kind of semantization method for edition management based on statistical analysis handheld device detection file
CN111324417A (en) * 2020-01-19 2020-06-23 北京百度网讯科技有限公司 Kubernetes cluster component control method and device, electronic equipment and medium
CN116820526A (en) * 2023-08-25 2023-09-29 建信金融科技有限责任公司 Operating system upgrading method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160231998A1 (en) * 2014-09-24 2016-08-11 Oracle International Corporation System and method for supporting patching in a multitenant application server environment
CN106453616A (en) * 2016-11-15 2017-02-22 国云科技股份有限公司 File-based method for communication between virtual machine and host machine
CN107465714A (en) * 2017-01-23 2017-12-12 北京思特奇信息技术股份有限公司 A kind of configuration data dynamic update system and method based on application cluster
CN107506213A (en) * 2017-08-30 2017-12-22 深圳市小牛在线互联网信息咨询有限公司 Dynamic Configuration, device, storage medium and computer equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160231998A1 (en) * 2014-09-24 2016-08-11 Oracle International Corporation System and method for supporting patching in a multitenant application server environment
CN106453616A (en) * 2016-11-15 2017-02-22 国云科技股份有限公司 File-based method for communication between virtual machine and host machine
CN107465714A (en) * 2017-01-23 2017-12-12 北京思特奇信息技术股份有限公司 A kind of configuration data dynamic update system and method based on application cluster
CN107506213A (en) * 2017-08-30 2017-12-22 深圳市小牛在线互联网信息咨询有限公司 Dynamic Configuration, device, storage medium and computer equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110515650A (en) * 2019-05-17 2019-11-29 国网辽宁省电力有限公司 A kind of semantization method for edition management based on statistical analysis handheld device detection file
CN111324417A (en) * 2020-01-19 2020-06-23 北京百度网讯科技有限公司 Kubernetes cluster component control method and device, electronic equipment and medium
CN111324417B (en) * 2020-01-19 2024-03-08 北京百度网讯科技有限公司 Component control method and device of Kubernetes cluster, electronic equipment and medium
CN116820526A (en) * 2023-08-25 2023-09-29 建信金融科技有限责任公司 Operating system upgrading method, device, equipment and storage medium
CN116820526B (en) * 2023-08-25 2023-11-24 建信金融科技有限责任公司 Operating system upgrading method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
US9251163B2 (en) File sharing system and file sharing method
CN108874503A (en) A kind of Configuration Agent update method of cloud platform application cluster
CN103473277B (en) The Snapshot Method and device of file system
KR20010089309A (en) Method for determining differences between two or more models
US8959062B2 (en) Data storage device with duplicate elimination function and control device for creating search index for the data storage device
CN106484820B (en) Renaming method, access method and device
CN103294675A (en) Method and device for updating data in distributed storage system
CN103984582A (en) Method and device for hot updating
CN109118358A (en) The synchronization based on component of digital asset
CN104468734A (en) Virtual cluster expanding method based on cloning
CN106528071B (en) The choosing method and device of object code
CN106294776A (en) A kind of data processing method and device
CN106445643B (en) It clones, the method and apparatus of upgrading virtual machine
WO2021058020A1 (en) Instance creation method and apparatus for stateful application, device and medium
KR20070048638A (en) Creating volume images
CN104199750A (en) File recovery method and device of linux system
CN105630571A (en) Virtual machine creating method and device
CN107870954A (en) The extended method and device of a kind of distributed data base
JP2003296383A (en) Three-dimensional modeling system
US20160012070A1 (en) Methods for managing a request to list previous versions of an object and devices thereof
CN106777097B (en) Merging method for metadata layering extension
CN111782619A (en) Document increment synchronization method and device between servers and storage medium
CN113641686B (en) Data processing method, data processing apparatus, electronic device, storage medium, and program product
CN105653509A (en) Document processing method and device
JP2005316715A (en) Document management system, method and program

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 19 / F, Cloud Computing Center, Chinese Academy of Sciences, No.1 Kehui Road, Songshanhu high tech Industrial Development Zone, Dongguan City, Guangdong Province, 523000

Applicant after: G-CLOUD TECHNOLOGY Co.,Ltd.

Address before: 523808 No. 14 Building, Songke Garden, Songshan Lake Science and Technology Industrial Park, Dongguan City, Guangdong Province

Applicant before: G-CLOUD TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123