CN103064717B - A kind of apparatus and method of parallel installation of software for cluster system - Google Patents

A kind of apparatus and method of parallel installation of software for cluster system Download PDF

Info

Publication number
CN103064717B
CN103064717B CN201310022786.2A CN201310022786A CN103064717B CN 103064717 B CN103064717 B CN 103064717B CN 201310022786 A CN201310022786 A CN 201310022786A CN 103064717 B CN103064717 B CN 103064717B
Authority
CN
China
Prior art keywords
software
computer node
installation
information
computer
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
CN201310022786.2A
Other languages
Chinese (zh)
Other versions
CN103064717A (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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201310022786.2A priority Critical patent/CN103064717B/en
Publication of CN103064717A publication Critical patent/CN103064717A/en
Application granted granted Critical
Publication of CN103064717B publication Critical patent/CN103064717B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

Apparatus and method for parallel installation of software for cluster system, relate to the program installing area of group system, described device comprises software sharing module, for storing the software information that whole computer node needs to install; And Configuration Manager, for software installation information and the computer-list information of the computer node according to each software to be installed, read the software information of the computer node needs installation of described software to be installed from described software sharing module, and the computer node controlling each software to be installed completes software installation.Described method comprises: the software installation information and the computer-list information that configure the computer node of each software to be installed; The computer node obtaining described software to be installed needs the software information installed; Software is installed on the computer node of each software to be installed.The software installation information that the present invention can ask configuration different for different computer node, improves the efficiency that a large amount of computer node installs different software.

Description

A kind of apparatus and method of parallel installation of software for cluster system
Technical field
The present invention relates to the program installing area of group system, particularly relate to the apparatus and method of parallel installation of software for cluster system.
Background technology
Current cluster system scale is increasing, and the application software that multiple computing machine is installed is sometimes different, sometimes the same, causes the environment more complicated of group system.The speed that large software installed by general computing machine is slow, and workload is also very large, notes carrying out software installation efficiency to the computing machine in group system low.Therefore occur the method for parallel installation of software in the market, but existing mode can only install identical software, different software can not be performed operation is installed, can not be real accomplish that each thread does each customed work.And the result display also hommization not that the parallel work-flow that market provides returns each thread, a larger defect is also had to be when performing parallel work-flow, must ensure that management server and each server are without communicating with code telegram, otherwise executed in parallel is unsuccessful.
Summary of the invention
In order to can in group system parallel installation of software, raise the efficiency, the present invention proposes a kind of apparatus and method of parallel installation of software for cluster system.
In order to solve the problems of the technologies described above, the invention provides a kind of device of parallel installation of software for cluster system, described device comprises software sharing module and Configuration Manager;
Described software sharing module, for storing the software information that whole computer node needs to install;
Described Configuration Manager, for software installation information and the computer-list information of the computer node according to each software to be installed, read the software information of the computer node needs installation of described software to be installed from described software sharing module, and the computer node controlling each software to be installed completes software installation.
Further, described Configuration Manager comprises configuration information memory module, thread generation module, software acquisition module, installs control module;
Described configuration information memory module, for configuring and store software installation information and the computer-list information of the computer node of each software to be installed;
Described thread generation module, the number for the computer node according to software to be installed creates the computer node of each software to be installed of multiple thread management;
Described software acquisition module, for software installation information and the computer-list information of the computer node of each software to be installed according to described configuration information memory module storage, read the software information of the computer node needs installation of described software to be installed from described software sharing module;
Described installation control module, for the thread created by described thread generation module, is read described software acquisition module the software obtained and is installed on the computer node of each software to be installed.
Further, computer-list information comprises IP address, the username and password of computer node; Software information comprises the performed authority that the title of software, file and described software have; Software installation information comprises dbase and the installation parameter of each software in mounting software catalogue and described catalogue.
Further, the number of described thread is identical with the number of the computer node of software to be installed, each thread management computer node.
Further, described Configuration Manager also comprises recycling module;
Described recycling module, the installation results that the computer node for receiving each software to be installed returns, according to installation results releasing resource, and reclaims described thread.
Further, described Configuration Manager also comprises log management module;
Described log management module, for the installation results of the computer node of each software to be installed received according to recycling module, generates journal file.
In order to solve the problems of the technologies described above, present invention also offers a kind of method of parallel installation of software for cluster system, comprising:
Configure software installation information and the computer-list information of the computer node of each software to be installed;
The computer node obtaining described software to be installed needs the software information installed;
Software is installed on the computer node of each software to be installed.
Further, after the software installation information configuring the computer node of each software to be installed and computer-list information, the computer node of each software to be installed of multiple thread management is created according to the number of the computer node of software to be installed.
Further, time on computer node software being installed to each software to be installed, by described thread, software is installed on the computer node of each software to be installed.
Further, described method also comprises, after the computer node software installation of each software to be installed terminates, according to installation results releasing resource.
Further, the number of described thread is identical with the number of the computer node of software to be installed, each thread management computer node.
Compared with prior art, the apparatus and method of parallel installation of software for cluster system of the present invention can in group system parallel installation of software, raise the efficiency, and software installation information configuration can being asked different for different computer node, realize each computer node to walk abreast different software is installed, improve the efficiency that a large amount of computer node installs different software.
Accompanying drawing explanation
Fig. 1 is the structural representation of the device of the parallel installation of software for cluster system of the embodiment of the present invention;
Fig. 2 is the process flow diagram of the method for the parallel installation of software for cluster system of the embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly understand, hereinafter will be described in detail to embodiments of the invention by reference to the accompanying drawings.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
The embodiment of the present invention proposes a kind of apparatus and method of parallel installation of software for cluster system, is applied to group system, and described group system comprises n computer node, n >=2; As shown in Figure 1.
Described device comprises software sharing module and Configuration Manager;
Described software sharing module, for storing the software information that whole computer node needs to install;
Described Configuration Manager, for software installation information and the computer-list information of the computer node according to each software to be installed, read the software information of the computer node needs installation of described software to be installed from described software sharing module, and the computer node controlling each software to be installed completes software installation.
Described Configuration Manager comprises configuration information memory module, thread generation module, software acquisition module, installs control module;
Described configuration information memory module, for configuring and store software installation information and the computer-list information of the computer node of each software to be installed;
Described thread generation module, the number for the computer node according to software to be installed creates the computer node of each software to be installed of multiple thread management;
Described software acquisition module, for software installation information and the computer-list information of the computer node of each software to be installed according to described configuration information memory module storage, read the software information of the computer node needs installation of described software to be installed from described software sharing module;
Described installation control module, for the thread created by described thread generation module, is read described software acquisition module the software obtained and is installed on the computer node of each software to be installed.
Some situation can utilize a several computer node of thread management, such as use the computer node that a thread management software to be installed is identical, the different computer node of mounting software utilizes different thread management, or the computer node that each thread management number is certain, but the several computer node efficiency of thread management can be affected.Preferably the number of thread can be identical with the number of the computer node of software to be installed, each thread management computer node.
Described thread generation module can produce the thread of fixed number in advance, and adaptive mode also can be adopted to create thread.
Computer-list information comprises IP address, the username and password of computer node; Software information comprises the performed authority that the title of software, file and described software have; Software installation information comprises dbase and the installation parameter of each software in mounting software catalogue and described catalogue.Authority can be performed and refer to that software has operation authority in systems in which.
Described Configuration Manager also comprises recycling module;
Described recycling module, the installation results that the computer node for receiving each software to be installed returns, according to installation results releasing resource, and reclaims described thread.
After each computer node reading information, the installation of software is carried out according to the software installation information configured and computer-list information, successful installation or failure after, result can be returned to Configuration Manager, if computer node is after software installation, automatically thread is terminated by recycling module, releasing resource.
Described Configuration Manager also comprises log management module;
Described log management module, for the installation results of the computer node of each software to be installed received according to recycling module, generates journal file.Whether described journal file is record concrete installation successfully to indicate.
The method of parallel installation of software for cluster system, utilizes the device of the parallel installation of software in the embodiment of the present invention to realize, as shown in Figure 2, comprising:
Configure software installation information and the computer-list information of the computer node of each software to be installed;
The computer node obtaining described software to be installed needs the software information installed;
Software is installed on the computer node of each software to be installed.
Described configuration comprises increase, deletes and amendment.
The computer node configuring each software to be installed needs the software installation information of installing, and configures the computer-list information that will install.Whole computer node needs the software information unification of installing to be stored in share directory, and dbase is consistent with the dbase of specifying in software installation information, and arranges the performed authority of all software.
After the software installation information configuring the computer node of each software to be installed and computer-list information, create the computer node of each software to be installed of multiple thread management according to the number of the computer node of software to be installed;
Time on computer node software being installed to each software to be installed, by described thread, software is installed on the computer node of each software to be installed.
The computer node of each software to be installed of multiple thread management is created according to the number of the computer node of software to be installed; Thread automatically loads computer-list information and the software installation information of each computer node, automatically can share relevant software according to software installation information simultaneously after starting.Because the software that each computer node may be installed is different, and the quantity of mounting software also has difference, so software installation information must follow configuration format definition.After each thread reading information, carry out the installation of software according to configuration information.
Described method also comprises, after the computer node software installation of each software to be installed terminates, according to installation results releasing resource.
After successful installation or failure, result can be returned to Configuration Manager, if computer node is after software installation, automatically thread is terminated by recycling module, releasing resource.
The number of described thread is identical with the number of the computer node of software to be installed, each thread management computer node.
Embodiment 1
That configure in the embodiment of the present invention is NFS(NetworkFileSystem, i.e. network file system(NFS)), the configuration information of software sharing module is as follows :/mnt/hda/share* (rw, sync, no_root_squash)
Software catalogue can be configured in the project of share, under this catalogue, be configured with all shareware that will install.And the title of this software is all consistent with the title of the software installation information of computer node.
Embodiment 2
Computer-list information comprises IP address, the username and password of computer node; Software installation information comprises dbase and the installation parameter of each software in mounting software catalogue and described catalogue.
As follows:
1node110.152.11.1rootadmintsmm:./startNmagent_node1_10.152.11.1_nm;ha:./startHA
2node210.152.11.2rootadmintsjm:./startjmagent_node1_10.152.11.2_nm;ha:./startHA
3node310.152.11.3rootadmintsdm:./startDM
4node410.152.11.4rootadmintsmm:./startNmagent_node1_10.152.11.4_nm;ha:./startHA
5node510.152.11.5rootadmintsmm:./startNmagent_node1_10.152.11.5_nm;ha:./startHA
6node610.152.11.6rootadmintsmm:./startNmagent_node1_10.152.11.6_nm;ha:./startHA
7node710.152.11.7rootadminha:./startHA
8node810.152.11.8rootadmintsjm:./startjmagent_node1_10.152.11.8_nm;ha:./startHA
9node910.152.11.9rootadmintsdm:./startDM;ha:./startHA
10node1010.152.11.1rootadmintsmm:./startNmagent_node1_10.152.11.1_nm;ha:./startHA
If installing multiple software after computer-list information is separate with branch, if software and software parameter separate with colon.The same software can be configured and also can configure different software.
The present invention carrys out mounting software according to configuration automatically.
Embodiment 3
Described Configuration Manager, the software information that the computer node needs that can read described software to be installed from described software sharing module are installed, and check the correctness of software installation information.Then whether can exist by automatic decision software information, if there is the automatic resolution file content of meeting, start multiple thread and start different software is installed, start multithreading as follows:
The number starting thread determines according to computer node number, then starts respectively, can automatically import dbase and installation parameter into, be finished when all during startup, represents successful installation.
Above embodiment only in order to technical scheme of the present invention and unrestricted to be described, only with reference to preferred embodiment to invention has been detailed description.Those of ordinary skill in the art should be appreciated that and can modify to technical scheme of the present invention or equivalent replacement, and does not depart from the spirit and scope of technical solution of the present invention, all should be encompassed in the middle of right of the present invention.

Claims (7)

1. a device for parallel installation of software for cluster system, is characterized in that: described device comprises software sharing module and Configuration Manager;
Described software sharing module, for storing the software information that whole computer node needs to install;
Described Configuration Manager, for software installation information and the computer-list information of the computer node according to each software to be installed, read the software information of the computer node needs installation of described software to be installed from described software sharing module, and the computer node controlling each software to be installed completes software installation;
Wherein, each software to be installed is different software;
Described Configuration Manager comprises thread generation module;
The number of described thread is identical with the number of the computer node of software to be installed, each thread management computer node;
Described Configuration Manager also comprises recycling module;
Described recycling module, the installation results that the computer node for receiving each software to be installed returns, according to installation results releasing resource, and reclaims described thread.
2. device as claimed in claim 1, is characterized in that: described Configuration Manager also comprises configuration information memory module, software acquisition module, installs control module;
Described configuration information memory module, for configuring and store software installation information and the computer-list information of the computer node of each software to be installed;
Described software acquisition module, for software installation information and the computer-list information of the computer node of each software to be installed according to described configuration information memory module storage, read the software information of the computer node needs installation of described software to be installed from described software sharing module;
Described installation control module, for the thread created by described thread generation module, is read described software acquisition module the software obtained and is installed on the computer node of each software to be installed.
3. device as claimed in claim 1, is characterized in that: computer-list information comprises IP address, the username and password of computer node; Software information comprises the performed authority that the title of software, file and described software have; Software installation information comprises dbase and the installation parameter of each software in mounting software catalogue and described catalogue.
4. device as claimed in claim 1, is characterized in that: described Configuration Manager also comprises log management module;
Described log management module, for the installation results of the computer node of each software to be installed received according to recycling module, generates journal file.
5. a method for parallel installation of software for cluster system, is characterized in that: comprising:
Configure software installation information and the computer-list information of the computer node of each software to be installed;
The computer node obtaining described software to be installed needs the software information installed;
Software is installed on the computer node of each software to be installed;
Wherein, each software to be installed is different software;
The computer node of each software to be installed of multiple thread management is created according to the number of the computer node of software to be installed;
The number of described thread is identical with the number of the computer node of software to be installed, each thread management computer node;
After the computer node software installation of each software to be installed terminates, according to installation results releasing resource.
6. method as claimed in claim 5, is characterized in that: also comprised before the number of the described computer node according to software to be installed creates the computer node of each software to be installed of multiple thread management: the software installation information and the computer-list information that configure the computer node of each software to be installed.
7. method as claimed in claim 6, is characterized in that: time on computer node software being installed to each software to be installed, by described thread, be installed to by software on the computer node of each software to be installed.
CN201310022786.2A 2013-01-22 2013-01-22 A kind of apparatus and method of parallel installation of software for cluster system Active CN103064717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310022786.2A CN103064717B (en) 2013-01-22 2013-01-22 A kind of apparatus and method of parallel installation of software for cluster system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310022786.2A CN103064717B (en) 2013-01-22 2013-01-22 A kind of apparatus and method of parallel installation of software for cluster system

Publications (2)

Publication Number Publication Date
CN103064717A CN103064717A (en) 2013-04-24
CN103064717B true CN103064717B (en) 2016-01-27

Family

ID=48107354

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310022786.2A Active CN103064717B (en) 2013-01-22 2013-01-22 A kind of apparatus and method of parallel installation of software for cluster system

Country Status (1)

Country Link
CN (1) CN103064717B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516744A (en) * 2013-09-27 2015-04-15 无锡华润微电子有限公司 Software updating method and system
CN103631623A (en) * 2013-11-29 2014-03-12 浪潮(北京)电子信息产业有限公司 Method and device for allocating application software in trunking system
CN103888550A (en) * 2014-04-22 2014-06-25 北京搜狐新媒体信息技术有限公司 Plug-in deployment method, device and system based on server cluster system
CN104503797A (en) * 2014-12-29 2015-04-08 浪潮电子信息产业股份有限公司 Module and method for parallel installation of operation system based on wave Tissot K1
WO2016120885A1 (en) * 2015-01-30 2016-08-04 Hewlett Packard Enterprise Development Lp Deploying software products
CN107172143A (en) * 2017-05-12 2017-09-15 郑州云海信息技术有限公司 Software synchronizing method and device in a kind of server cluster
CN107547519B (en) * 2017-07-31 2020-03-06 新华三大数据技术有限公司 Wireless big data deployment method and device
CN110224869B (en) * 2019-06-13 2020-04-17 北京航空航天大学 Automatic deployment method of micro-service website

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018152A (en) * 2006-02-11 2007-08-15 鸿富锦精密工业(深圳)有限公司 Software installation system and method
CN101957771A (en) * 2010-10-18 2011-01-26 彭扬 Method and device for installing mobile software for multiple mobile phones simultaneously

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7206817B2 (en) * 2002-01-18 2007-04-17 Bea Systems, Inc. Systems and methods for application management and deployment
CN1266596C (en) * 2002-07-02 2006-07-26 联想(北京)有限公司 Antomatic initialization and antomatic kernel upgrading system for clauster system
US7814126B2 (en) * 2003-06-25 2010-10-12 Microsoft Corporation Using task sequences to manage devices
CN1848787A (en) * 2006-04-30 2006-10-18 西安交通大学 Automatic fast dispositioning method for aggregated server system node
CN101453367B (en) * 2007-11-30 2011-12-28 华为技术有限公司 Software deployment method and system, software deployment server and user server
US8266260B2 (en) * 2007-12-11 2012-09-11 Sharp Laboratories Of America, Inc. Method and system for updating the software of multiple network nodes
CN101510793A (en) * 2009-01-12 2009-08-19 北京翰龙潮网络科技有限公司 Method for implementing a plurality of Bluetooth device networking through Bluetooth server, software program and server
CN101902352A (en) * 2009-05-31 2010-12-01 国际商业机器公司 Method and system for deploying computer programs remotely
CN102455925B (en) * 2010-11-02 2014-01-08 金蝶软件(中国)有限公司 Method, device and terminal for software automatic deployment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018152A (en) * 2006-02-11 2007-08-15 鸿富锦精密工业(深圳)有限公司 Software installation system and method
CN101957771A (en) * 2010-10-18 2011-01-26 彭扬 Method and device for installing mobile software for multiple mobile phones simultaneously

Also Published As

Publication number Publication date
CN103064717A (en) 2013-04-24

Similar Documents

Publication Publication Date Title
CN103064717B (en) A kind of apparatus and method of parallel installation of software for cluster system
US20150113531A1 (en) System for migrating virtual machine and method thereof
CN105630488A (en) Docker container technology-based continuous integration realizing method
CN103167041A (en) System and method for supporting cloud environment application cluster automation deployment
CN104461744A (en) Resource allocation method and device
CN108052374B (en) Method and device for deploying container microservice
CN107632937B (en) Method and device for testing virtual machine cluster and readable storage medium
CN107451147B (en) Method and device for dynamically switching kafka clusters
CN104113576A (en) Method and device for updating client
US9535754B1 (en) Dynamic provisioning of computing resources
CN105704188A (en) Deployment method and apparatus of applications and services
CN105095103A (en) Storage device management method and device used for cloud environment
CN103777969A (en) Server parameter deploying method and device with no need for restarting
CN109240846A (en) A kind of power failure diagnosing method, apparatus and server
CN104391697A (en) System and method for managing cloud resources of application program
CN104423961A (en) Method and system for generating testing script
CN103631623A (en) Method and device for allocating application software in trunking system
CN103077034B (en) hybrid virtualization platform JAVA application migration method and system
CN105450759A (en) System mirror image management method and device
CN102262562A (en) Task processing method and system
CN109379223A (en) A kind of method and apparatus for realizing network interface card automated setting
CN107566518B (en) Method and device for managing equipment information in file installation process
CN106209445A (en) A kind of Visualized data centre by network design
CN105162833A (en) Client computer management system and method applied to diskless workstation
US20130247037A1 (en) Control computer and method for integrating available computing resources of physical machines

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model