CN103019776B - A kind of method concurrently installing different software in server cluster - Google Patents
A kind of method concurrently installing different software in server cluster Download PDFInfo
- Publication number
- CN103019776B CN103019776B CN201210498883.4A CN201210498883A CN103019776B CN 103019776 B CN103019776 B CN 103019776B CN 201210498883 A CN201210498883 A CN 201210498883A CN 103019776 B CN103019776 B CN 103019776B
- Authority
- CN
- China
- Prior art keywords
- server
- software
- thread
- server end
- cluster
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 238000004891 communication Methods 0.000 claims abstract description 7
- 210000001072 colon Anatomy 0.000 claims description 3
- 238000009434 installation Methods 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 description 2
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of method concurrently installing different software in server cluster, belong to server cluster technical field, arranging one of them server in server cluster is server end, and in server end management server cluster, the software of all the other servers is installed;Share service and configuration share directory in server end configuration, carry out the Thread Communication of each server software installation at server end configuration service device list information, server end and control and thread con current control。A kind of server cluster of the present invention is concurrently installed the method for different software compared to the prior art, solve server cluster and identical software is being installed or the problem that different software efficiencies is low is installed。
Description
Technical field
The present invention relates to a kind of server cluster technical field, a kind of method specifically concurrently installing different software in server cluster。
Background technology
Server cluster refers to get up a lot of server centered and carries out same service together, just likes only one of which server in client。Server cluster can utilize multiple computer to carry out parallel computation thus obtaining significantly high calculating speed, it is also possible to backups with multiple computers so that any one machine be broken whole system still can be properly functioning。Once install on the server and having run Cluster Service, this server can add cluster。Clustered operation can reduce Single Point of Faliure quantity, and achieves the high availability of clustered resource。
Current server cluster scale is increasing, and the application software installed have different, what have is the same, and environment is more complicated, and the speed installing large software is also slow, and workload is also very big, and efficiency is also low。What provide in the market also has the software being mounted in parallel, but identical software can only be installed, the software that different execution are different, and once can only perform once mounting operation, that is they can only be carried out order parallel, it is impossible to real accomplishes that each thread does each customed work。And the result that each thread returns is shown also hommization not by the parallel work-flow provided on market, one is also had relatively larger to have the drawback that performing when parallel work-flow, must assure that management server and each server are without communicating with code telegram, otherwise general executed in parallel is unsuccessful。
Summary of the invention
The technical assignment of the present invention is to provide and a kind of solves the method that server cluster concurrently installs different software in installing identical software or installing a kind of server cluster of the low problem of different software efficiencies。
The technical assignment of the present invention realizes in the following manner, and arranging one of them server in server cluster is server end, and in server end management server cluster, the software of all the other servers is installed;Share service and configuration share directory in server end configuration, carry out the Thread Communication of each server software installation at server end configuration service device list information, server end and control and thread con current control;Concretely comprise the following steps:
(1), service and configuration share directory are shared in server end configuration: share service in server end configuration, start the service of sharing and configure share directory;Starting the service of sharing, automatically software to be installed all in server cluster are placed in share directory, the dbase of unified amendment software has reached concordance simultaneously, completes share directory configuration;
(2), at server end configuration service device list information, include in server list information: the attribute information of the attribute information of Servers-all and Servers-all software to be installed in server cluster, this server list information configures according to form, supports a software to install and multiple softwares are installed;
(3), server end carries out Thread Communication control and the thread con current control of each server software installation: the thread that software is installed includes main thread and multiple sub-line journey, main thread is the startup thread of server end, and the thread that the software of each server is installed is a sub-thread;Server end controls execution process and the result of each sub-line journey, and server end performs the sub-thread process strategy after all software installations。
In step (3), server end controls execution process and the result of each sub-line journey, server end performs the sub-thread process strategy after all software installations, method particularly includes: server end starts installs main thread, first main thread can start the shared service of server end, and checks the correctness of share directory;Then can whether exist by automatic decision server list message file, if there is the automatic resolution server list. information file content of meeting, according to server list message file content, it is respectively started multiple sub-line journey and starts the server in server cluster is installed different software;Server end automatically logs on server, and server carries out the installation of software according to server list information, after success or failure installed by software, result can be returned to main thread, and main thread exports after receiving information in the daily record of server end;If each sub-line journey is, after software installation, notifying main thread, main thread can terminate by automatic bundle thread, has discharged resource;After all sub-line journeys are carried out, main thread exits, and mark is finished。
The attribute information of server includes the encrypted message of the IP information of server, the username information of server, server。
The attribute information of server software to be installed is dbase and software installation parameter, and wherein dbase is consistent with the dbase of the software in step (1) share directory。
In server list information, dbase and the software installation parameter colon of server software to be installed separate, and server software to be installed is multiple, then multiple dbases are to separate with branch。
The method concurrently installing different software in a kind of server cluster of the present invention, solves server cluster and is installing identical software or installing the problem that different software efficiencies is low;There is reasonable in design, easy to use, efficiency high, thus, have good value for applications。
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is further described。
Accompanying drawing 1 is the FB(flow block) of a kind of method concurrently installing different software in server cluster。
Detailed description of the invention
The method concurrently installing different software with reference to Figure of description and specific embodiment in a kind of server cluster to the present invention is described in detail below。
Embodiment:
The method concurrently installing different software in a kind of server cluster of the present invention, arranging one of them server in server cluster is server end, and in server end management server cluster, the software of all the other servers is installed;Share service and configuration share directory in server end configuration, carry out the Thread Communication of each server software installation at server end configuration service device list information, server end and control and thread con current control;Concretely comprise the following steps:
(1), service and configuration share directory are shared in server end configuration: share service in server end configuration, start the service of sharing and configure share directory;Starting the service of sharing, automatically software to be installed all in server cluster are placed in share directory, the dbase of unified amendment software has reached concordance simultaneously, completes share directory configuration;
What configure in the present embodiment is that the NFS configuration information sharing service concrete is as follows:
/mnt/hda/share*(rw,sync,no_root_squash)
The work project of share can configure software catalogue, under this catalogue, be configured with all shareware to be mounted。And the title of this software is all consistent with the title of the software mentioned in server list information。
(2), at server end configuration service device list information, include in server list information: the attribute information of the attribute information of Servers-all and Servers-all software to be installed in server cluster, this server list information configures according to form, supports a software to install and multiple softwares are installed;
Server list information is 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
(3), server end carries out Thread Communication control and the thread con current control of each server software installation: the thread that software is installed includes main thread and multiple sub-line journey, main thread is the startup thread of server end, and the thread that the software of each server is installed is a sub-thread;Server end controls execution process and the result of each sub-line journey, and server end performs the sub-thread process strategy after all software installations。
In step (3), server end controls execution process and the result of each sub-line journey, server end performs the sub-thread process strategy after all software installations, method particularly includes: server end starts installs main thread, first main thread can start the shared service of server end, and checks the correctness of share directory;Then can whether exist by automatic decision server list message file, if there is the automatic resolution server list. information file content of meeting, according to server list message file content, it is respectively started multiple sub-line journey and starts the server in server cluster is installed different software;Server end automatically logs on server, and server carries out the installation of software according to server list information, after success or failure installed by software, result can be returned to main thread, and main thread exports after receiving information in the daily record of server end;If each sub-line journey is, after software installation, notifying main thread, main thread can terminate by automatic bundle thread, has discharged resource;After all sub-line journeys are carried out, main thread exits, and mark is finished。
Start multithreading as follows:
classinstall(threading.Thread):
def__init__(self,nminfo):
threading.Thread.__init__(self)
self.nminfo=nminfo
print'threadstartedNM:',self.nminfo
defrun(self):
say=os.popen(self.nminfo).read()
#say=os.popen("ifconfig").read()
printsay
file_object=open("nodelist.dup")
#file_line=file_object.readlines()
#printfile_line
nfsip=os.getenv("mysql_server");
share_dir=os.getenv("share_dir")
nfsinfo=nfsip+":"+share_dir
#print"nfsinfo==========================",nfsinfo
forlineinfile_object:
strlist=line.split('')
temp=strlist[1]+""+strlist[2]+""+strlist[3]+""+nfsinfo+""+strlist[4]
#strnm="./installAgent"+temp
strnm="./installNFS_NM"+temp
strnm=strnm.replace('\r','')
nm=install(strnm)
nm.start()
file_object.close()。
The attribute information of server includes the encrypted message of the IP information of server, the username information of server, server。
The attribute information of server software to be installed is dbase and software installation parameter, and wherein dbase is consistent with the dbase of the software in step (1) share directory。
In server list information, dbase and the software installation parameter colon of server software to be installed separate, and server software to be installed is multiple, then multiple dbases are to separate with branch。
The method concurrently installing different software in a kind of server cluster of the present invention, except the technical characteristic described in description, is the known technology of those skilled in the art。
Claims (4)
1. the method concurrently installing different software in a server cluster, it is characterised in that arranging one of them server in server cluster is server end, in server end management server cluster, the software of all the other servers is installed;Share service and configuration share directory in server end configuration, carry out the Thread Communication of each server software installation at server end configuration service device list information, server end and control and thread con current control;Concretely comprise the following steps:
(1), service and configuration share directory are shared in server end configuration: share service in server end configuration, start the service of sharing and configure share directory;Starting the service of sharing, automatically software to be installed all in server cluster are placed in share directory, the dbase of unified amendment software has reached concordance simultaneously, completes share directory configuration;
(2), at server end configuration service device list information, include in server list information: the attribute information of the attribute information of Servers-all and Servers-all software to be installed in server cluster, this server list information configures according to form, supports a software to install and multiple softwares are installed;
(3), server end carries out Thread Communication control and the thread con current control of each server software installation: the thread that software is installed includes main thread and multiple sub-line journey, main thread is the startup thread of server end, and the thread that the software of each server is installed is a sub-thread;Server end controls execution process and the result of each sub-line journey, and server end performs the sub-thread process strategy after all software installations;Method particularly includes: server end starts installs main thread, and first main thread starts the shared service of server end, and checks the correctness of share directory;Then whether automatic decision server list message file exists, if there is automatic resolution server list. information file content, according to server list message file content, it is respectively started multiple sub-line journey and starts the server in server cluster is installed different software;Server end automatically logs on server, and server carries out the installation of software according to server list information, and software returns to main thread result after installing success or failure, and main thread exports after receiving information in the daily record of server end;If each sub-line journey is, after software installation, notifying main thread, the automatic bundle thread of main thread terminates, and discharges resource;After all sub-line journeys are carried out, main thread exits, and mark is finished。
2. the method concurrently installing different software in a kind of server cluster according to claim 1, it is characterised in that the attribute information of server includes the encrypted message of the IP information of server, the username information of server, server。
3. the method concurrently installing different software in a kind of server cluster according to claim 1, it is characterized in that the attribute information of server software to be installed is dbase and software installation parameter, wherein dbase is consistent with the dbase of the software in step (1) share directory。
4. the method concurrently installing different software in a kind of server cluster according to claim 3, it is characterized in that in server list information, dbase and the software installation parameter colon of server software to be installed separate, server software to be installed is multiple, then multiple dbases are to separate with branch。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210498883.4A CN103019776B (en) | 2012-11-30 | 2012-11-30 | A kind of method concurrently installing different software in server cluster |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210498883.4A CN103019776B (en) | 2012-11-30 | 2012-11-30 | A kind of method concurrently installing different software in server cluster |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103019776A CN103019776A (en) | 2013-04-03 |
CN103019776B true CN103019776B (en) | 2016-06-22 |
Family
ID=47968410
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210498883.4A Active CN103019776B (en) | 2012-11-30 | 2012-11-30 | A kind of method concurrently installing different software in server cluster |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103019776B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103279374A (en) * | 2013-06-09 | 2013-09-04 | 浪潮电子信息产业股份有限公司 | Operating system distributing technology based on MAC addresses |
CN104516744A (en) * | 2013-09-27 | 2015-04-15 | 无锡华润微电子有限公司 | Software updating method and system |
CN104714835A (en) * | 2013-12-16 | 2015-06-17 | 中国移动通信集团公司 | Data access processing method and device |
CN104410511B (en) * | 2014-10-27 | 2018-07-06 | 浪潮(北京)电子信息产业有限公司 | A kind of server management method and system |
CN104361107A (en) * | 2014-11-28 | 2015-02-18 | 浪潮电子信息产业股份有限公司 | Script tool implementation method for rapidly detecting consistency of files on multiple nodes |
WO2016120885A1 (en) * | 2015-01-30 | 2016-08-04 | Hewlett Packard Enterprise Development Lp | Deploying software products |
CN104866338A (en) * | 2015-04-27 | 2015-08-26 | 努比亚技术有限公司 | Method and device for remotely deploying software |
CN105487891A (en) * | 2015-11-26 | 2016-04-13 | 航天恒星科技有限公司 | Distributed cluster deploying method and system |
CN106951290A (en) * | 2017-03-27 | 2017-07-14 | 深圳市金立通信设备有限公司 | A kind of application management method and terminal |
CN108521342B (en) * | 2018-03-26 | 2021-08-13 | 北京奇艺世纪科技有限公司 | Cluster management method and device |
CN110795113B (en) * | 2019-10-15 | 2023-08-22 | 平安科技(深圳)有限公司 | Redis cluster service installation method, server and medium |
CN111562871A (en) * | 2020-04-22 | 2020-08-21 | 深圳震有科技股份有限公司 | Multi-server deployment processing method and device based on software warehousing |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101014034A (en) * | 2006-12-31 | 2007-08-08 | 武汉蓝星科技股份有限公司 | U disk server-based cluster solving method |
CN101048998A (en) * | 2004-08-25 | 2007-10-03 | 莱维·拉塞尔 | Method of and system for connecting to a network via a wireless local area network |
CN101615126A (en) * | 2009-07-23 | 2009-12-30 | 浪潮电子信息产业股份有限公司 | A kind of system installation method that is applied to blade server |
CN101788917A (en) * | 2010-02-26 | 2010-07-28 | 浪潮(北京)电子信息产业有限公司 | Deployment method of utility software and the system thereof |
CN101957771A (en) * | 2010-10-18 | 2011-01-26 | 彭扬 | Method and device for installing mobile software for multiple mobile phones simultaneously |
-
2012
- 2012-11-30 CN CN201210498883.4A patent/CN103019776B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101048998A (en) * | 2004-08-25 | 2007-10-03 | 莱维·拉塞尔 | Method of and system for connecting to a network via a wireless local area network |
CN101014034A (en) * | 2006-12-31 | 2007-08-08 | 武汉蓝星科技股份有限公司 | U disk server-based cluster solving method |
CN101615126A (en) * | 2009-07-23 | 2009-12-30 | 浪潮电子信息产业股份有限公司 | A kind of system installation method that is applied to blade server |
CN101788917A (en) * | 2010-02-26 | 2010-07-28 | 浪潮(北京)电子信息产业有限公司 | Deployment method of utility software and the system thereof |
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 |
---|---|
CN103019776A (en) | 2013-04-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103019776B (en) | A kind of method concurrently installing different software in server cluster | |
CN103207794B (en) | The sharing method of application program between mobile terminal in LAN | |
US9038068B2 (en) | Capacity reclamation and resource adjustment | |
CN111124277B (en) | Deep learning data set caching method, system, terminal and storage medium | |
CN102437938B (en) | Large-scale network monitoring oriented virtual deployment system and method | |
CN104182288A (en) | Method for automatically testing power consumption of server cluster system | |
CN103024022B (en) | A kind of managing and control system of virtual machine application service and method | |
CN103064717B (en) | A kind of apparatus and method of parallel installation of software for cluster system | |
CN105187512A (en) | Method and system for load balancing of virtual machine clusters | |
CN107797767A (en) | One kind is based on container technique deployment distributed memory system and its storage method | |
WO2015062217A1 (en) | Connection processing method and device for peripheral in virtual desktop system | |
US20110258620A1 (en) | Method and Apparatus for Making a BPM Application Available to Multiple Tenants | |
CN113127150A (en) | Rapid deployment method and device of cloud native system, electronic equipment and storage medium | |
CN105704188A (en) | Deployment method and apparatus of applications and services | |
WO2018099406A1 (en) | Method for realizing mobile cloud-computing intermediate platform and method for realizing distribution | |
CN105119732A (en) | Device and method for distributing hosts in cluster environment | |
CN100451970C (en) | Method for realizing dynamic layout of high-performance server based on group structure | |
CN113438107A (en) | Cluster node expansion method, device, equipment and storage medium | |
CN101650666B (en) | A kind of computer management system and method | |
CN103618634A (en) | Method for automatically finding nodes in cluster | |
CN106911741A (en) | A kind of method and NM server for virtualizing webmaster file download load balancing | |
CN203301532U (en) | Cloud desktop system | |
CN107203639A (en) | Parallel file system based on High Performance Computing | |
CN111193622A (en) | Asymmetric configuration management method, device and equipment and readable storage medium | |
WO2016029774A1 (en) | Virtualization based application storage method and execution method, device and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |