CN103455346B - Application program deployment method, deployment main control computer, deployment client side and cluster - Google Patents

Application program deployment method, deployment main control computer, deployment client side and cluster Download PDF

Info

Publication number
CN103455346B
CN103455346B CN201310362420.XA CN201310362420A CN103455346B CN 103455346 B CN103455346 B CN 103455346B CN 201310362420 A CN201310362420 A CN 201310362420A CN 103455346 B CN103455346 B CN 103455346B
Authority
CN
China
Prior art keywords
deployment
order
cluster
main control
application program
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
CN201310362420.XA
Other languages
Chinese (zh)
Other versions
CN103455346A (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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201310362420.XA priority Critical patent/CN103455346B/en
Publication of CN103455346A publication Critical patent/CN103455346A/en
Application granted granted Critical
Publication of CN103455346B publication Critical patent/CN103455346B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses an application program deployment method, a deployment main control computer, a deployment client side and a cluster. The application program deployment method comprises the following steps that a deployment main control computer construction in a cluster and an application program deploy a relevant deployment command; the deployment command is also related with an application program upgrade package; the deployment command is sent to each deployment client side in the cluster to enable the deployment client side to update the application program corresponding to the application program upgrade package according to the deployment command. According to the application program deployment method disclosed by the invention, the efficiency and the reliability can be improved when the application program is deployed in the cluster environment.

Description

APD arranging method, deployment main control computer, deploying client and cluster
Technical field
The present invention relates to computer technology, more particularly to a kind of APD arranging method, deployment main control computer, deployment client End and cluster.
Background technology
With the continuous development of computer technology, some compute-intensive applications, such as:Weather forecast, nuclear test simulation Deng, computer cluster technology is typically all used, concentrate tens the even operational capability of up to a hundred computers to meet requirement.Its In, cluster is the parallel or distributed system that the computer being mutually connected to each other by some is constituted.Calculating in cluster Machine works together and runs a series of common application programs, meanwhile, provide single system mapping for user and application program. Externally, cluster is only a system, externally provides unified service, and the computer in cluster is physically through electricity Cable connects, then by clustered software connection in program.Similar, cluster just refers to and many server centereds to get up enter together The same service of row.
In prior art, in cluster environment during disposing application program, its general process is:Application program updating bag is same Walk on each server, execution identical is unpacked on every server, backup stops, and updates, the step such as startup, and Manual editing needs each configuration file of configuration.
But, in realization efficiency is very low for above-mentioned disposing application program method, especially manual operation when easily malfunction.
The content of the invention
In view of this, the purpose of the embodiment of the present invention is to propose a kind of APD arranging method, deployment main control computer, portion Administration's client and cluster so that in cluster environment during disposing application program, it is possible to increase its efficiency and reliability.
In a first aspect, embodiments providing a kind of APD arranging method, methods described includes:
Deployment main control computer in cluster constructs the deployment order related to the deployment of the application program, the deployment order Also it is associated with application program updating bag;
The deployment order is sent to each deploying client in the cluster, so that the deploying client is according to institute State deployment order to be updated the corresponding application program of the application program updating bag.
Second aspect, embodiments provides a kind of APD arranging method, and methods described includes:
Deploying client in cluster receives the deployment order that the deployment main control computer in the cluster sends, the deployment life Order is also associated with application program updating bag;
The corresponding application program of the application program updating bag is updated according to the deployment order, after the renewal Obtain disposing object information.
The third aspect, the embodiment of the present invention provides a kind of deployment main control computer, and the deployment main control computer includes:
Structural unit, for constructing the deployment order related to the deployment of the application program, the deployment order is also closed It is associated with application program updating bag;
Transmitting element, for sending the deployment order to each deploying client in the cluster, so that the portion Administration's client is updated according to the deployment order to the corresponding application program of the application program updating bag.
Fourth aspect, the embodiment of the present invention provides a kind of deploying client, and the deploying client includes:
Receiving unit, for receiving the cluster in deployment main control computer send deployment order, the deployment order is also It is associated with application program updating bag;
Processing unit, for being carried out more to the corresponding application program of the application program updating bag according to the deployment order Newly, obtain disposing object information after the renewal.
5th aspect, the embodiment of the present invention provides a kind of cluster, and the cluster includes:In the deployment master that the third aspect is provided Control machine and at least one deploying client provided in fourth aspect.
The embodiment of the present invention deployment order related to the deployment of the application program by disposing main control computer construction, and to Each deploying client in the cluster sends the deployment order, when deploying client receives the portion that deployment main control computer sends Administration's order, is updated, after the renewal according to the deployment order to the corresponding application program of the application program updating bag Obtain disposing object information so that in cluster environment during disposing application program, it is possible to increase its efficiency and reliability.
Description of the drawings
Fig. 1 is the Organization Chart of the cluster of first embodiment of the invention;
Fig. 2 is the flow chart of the APD arranging method of second embodiment of the invention;
Fig. 3 is the flow chart of the APD arranging method of third embodiment of the invention;
Fig. 4 is the schematic diagram of the deployment main control computer of fourth embodiment of the invention;
Fig. 5 is the schematic diagram of the deploying client of fifth embodiment of the invention.
Specific embodiment
Further illustrate technical scheme below in conjunction with the accompanying drawings and by specific embodiment.
Fig. 1 is the Organization Chart of the cluster of first embodiment of the invention.As shown in figure 1, the cluster 10 includes:Deployment master control Machine 11 and deploying client 12.Wherein, the quantity of deploying client 12 can be one, or it is multiple.Wherein, visitor is disposed Family end 12 can also be located on application server.I.e. in cluster in addition to including deployment main control computer 11, also including one or many On individual application server, each application server includes a deploying client 12.In addition, the cluster 10 uses cluster (cluster)Technology.At present, Clustering is a kind of newer technology, by Clustering, can pay lower cost In the case of obtain of a relatively high income in terms of performance, reliability, motility.
Fig. 2 is the flow chart of the APD arranging method of second embodiment of the invention.The APD arranging method should For the deployment main control computer in the cluster shown in Fig. 1.As shown in Fig. 2 methods described includes:
Deployment main control computer in step 210, cluster constructs the deployment order related to the deployment of the application program, described Deployment order is also associated with application program updating bag.
Step 220, deployment main control computer to each deploying client in the cluster sends the deployment order, so that institute State deploying client to be updated the corresponding application program of the application program updating bag according to the deployment order.
Above-mentioned steps 210 and step 220 are deployment main control computer construction deployment orders, and the deployment order is sent to into each The process of deploying client.In the process, because each deployment order is all generated by deployment main control computer, change when there is deployment logic Only need to be changed on deployment main control computer during change, and or need not reduce and the deploying client under whole cluster is upgraded more Newly.In embodiments of the present invention, it is to be constructed deployment order by deployment main control computer under a linux operating system, and deployment is ordered Order is sent to deploying client execution.Wherein, (SuSE) Linux OS is a kind of class Unix operation system of free and open source code System.
In one embodiment, in step 210 dispose main control mechanism make deployment order process it is specific as follows:
The all script shell-commands related to the application deployment are placed in advance in program file by deployment main control computer In, and the chained address of described program file is added in the deployment order, also include in the deployment order with it is described The related application configuration address of application deployment.Wherein, shell-command includes synchronous documents, and environment measuring stops, starting, The order such as detection after startup.
In another embodiment, the APD arranging method that the present invention is provided is except including step 210 and step 220, also include:
Step 230, the deployment main control computer in cluster receives the deployment knot that each deploying client in the cluster sends Fruit information, and the deployment scenario of all deploying clients is counted according to the deployment object information;Wherein, the deployment result letter Breath includes:Complete to update or fail to complete to update.
Specifically, the deploying client in cluster is received after deployment order, application program can be entered according to deployment order Row updates.When being updated successfully, the deployment object information for obtaining is to have completed to update.When failure is updated, the deployment for obtaining Object information is to fail to complete to update.Deployment main control computer is received after the deployment object information that all deploying clients send, energy Access the deployable state of whole cluster.
Therefore, APD arranging method provided in an embodiment of the present invention, in cluster deployment main control computer construction with it is described The deployment order of the deployment correlation of application program, and described deployment order is sent to each deploying client in the cluster, So that the deploying client is updated according to the deployment order to the corresponding application program of the application program updating bag, It is achieved thereby that every time deployment order is all generated by deployment main control computer, only need to when deployment order changes on deployment main control computer Modification, and need not or reduce carries out upgrading renewal to the deploying client under whole cluster, and then reduce the cost of maintenance.
Fig. 3 is the flow chart of the APD arranging method of third embodiment of the invention.The APD arranging method should For the deploying client in the cluster shown in Fig. 1.As shown in figure 3, methods described includes:
Deploying client in step 310, cluster receives the deployment order that the deployment main control computer in the cluster sends, institute State deployment order and be also associated with application program updating bag;
Deploying client in step 320 cluster according to the deployment order it is corresponding to the application program updating bag should It is updated with program, obtains disposing object information after the renewal.
Above-mentioned steps 310 and step 320 are that the deploying client in cluster receives deployment order, and perform deployment order Process.In the process, deploying client is that a deployment performs agency, is responsible for performing the deployment life that deployment main control computer sends Order.When there is deployment logic to need to change, only need to modify in deployment main control computer, and without the need for or change deployment as few as possible The code of client, always reduces the cost of maintenance.
In one embodiment, the deployment order of step 310 includes the program file related to the application deployment Chained address and application configuration address, described program file includes related to the application deployment all shell lives Order.Wherein, shell-command includes synchronous documents, and environment measuring stops, starting, the order such as detection after startup.
In another embodiment, the APD arranging method that the present invention is provided is except including step 310 and step 320, also include:
Step 330, the deploying client in cluster to the deployment main control computer in the cluster sends deployment object information, with Make the deployment main control computer that the deployment scenario of all deploying clients is counted according to the deployment object information;Wherein, the portion Administration's object information includes having completed to update or fail to complete to update.
Specifically, the deploying client in cluster is received after deployment order, application program can be entered according to deployment order Row updates.When being updated successfully, the deployment object information for obtaining is to have completed to update.When failure is updated, the deployment for obtaining Object information is to fail to complete to update.
Therefore, APD arranging method provided in an embodiment of the present invention, the deploying client in cluster receives the collection Group in deployment main control computer send deployment order, and according to the deployment order it is corresponding to the application program updating bag should It is updated with program, obtains disposing object information after the renewal, it is achieved thereby that deploying client is a deployment holding Row agency, is responsible for performing the order that deployment main control computer sends, when deployment order changes, it is only necessary to modification deployment master control Machine, and without the need for or change client code as few as possible, and then reduce the cost of maintenance.
Fig. 4 is the schematic diagram of the deployment main control computer of fourth embodiment of the invention.The deployment main control computer is used to perform the present invention The APD arranging method of second embodiment.As shown in figure 4, the deployment main control computer 40 includes:Structural unit 41 and transmission Unit 42.
Structural unit 41 is used for the construction deployment order related to the deployment of the application program, and the deployment order is also closed It is associated with application program updating bag;Transmitting element 42 is used to send the deployment life to each deploying client in the cluster Order, so that the deploying client is carried out more according to the deployment order to the corresponding application program of the application program updating bag Newly.
In one embodiment, the structural unit 41 is additionally operable to all scripts related to the application deployment Shell-command is placed in advance in program file, and the chained address of described program file is added in the deployment order, institute Stating also includes the application configuration address related to the application deployment in deployment order.
In further embodiment, the deployment main control computer 40 also includes:Receiving unit 43.
Receiving unit 43 is used to receiving the deployment object information that each deploying client in the cluster sends, and according to The deployment object information counts the deployment scenario of all deploying clients;Wherein, the deployment object information includes:It is complete Into updating or fail to complete to update.
Therefore, deployment main control computer provided in an embodiment of the present invention is related to the deployment of the application program by constructing Deployment order, and the deployment order is sent to each deploying client in the cluster, so that the deploying client root The corresponding application program of the application program updating bag is updated according to the deployment order, it is achieved thereby that deployment life every time Order is all generated by deployment main control computer, only needs to be changed on deployment main control computer when deployment order changes, and need not or be reduced Upgrading renewal is carried out to the deploying client under whole cluster, and then reduces the cost of maintenance.
Fig. 5 is the schematic diagram of the deploying client of fifth embodiment of the invention.The deploying client is used to perform the present invention The APD arranging method of 3rd embodiment.As shown in figure 5, the deployment main control computer 50 includes:Receiving unit 51 and process Unit 52.
Receiving unit 51 is used to receive the deployment order that the deployment main control computer in the cluster sends, and the deployment order is also It is associated with application program updating bag;Processing unit 52 is used for corresponding to the application program updating bag according to the deployment order Application program is updated, and obtains disposing object information after the renewal.
In one embodiment, the deployment order that receiving unit 51 is received includes related to the application deployment The chained address and application configuration address of program file, described program file includes related to the application deployment all Shell-command.
In further embodiment, the deploying client 50 also includes:Transmitting element 53.
Transmitting element 53 be used for it is described deployment main control computer send deployment object information so that it is described deployment main control computer according to The deployment object information counts the deployment scenario of all deploying clients;Wherein, the deployment object information includes complete Into updating or fail to complete to update.
Therefore, deploying client provided in an embodiment of the present invention, is sent by the deployment main control computer in the reception cluster Deployment order, and the corresponding application program of the application program updating bag is updated according to the deployment order, it is described Obtain disposing object information after renewal, it is achieved thereby that deploying client is a deployment performs agency, be responsible for performing deployment Main control computer send order, when deployment order changes, it is only necessary to modification deployment main control computer, and need not or it is as few as possible Change client code, and then reduce the cost of maintenance.
The embodiment of the present invention additionally provides a kind of cluster, the deployment main control computer of the cluster including fourth embodiment of the invention, And at least one fifth embodiment of the invention deploying client.
Obviously, it will be understood by those skilled in the art that above-mentioned each module of the invention or each step can be by as above Described communication terminal is implemented.Alternatively, the embodiment of the present invention can realize with the executable program of computer installation, so as to Can be stored in being performed by processor in storage device, described program can be stored in a kind of computer-readable and deposit In storage media, storage medium mentioned above can be read only memory, disk or CD etc.;Or be respectively fabricated to them Each integrated circuit modules, or the multiple modules or step in them are fabricated to single integrated circuit module to realize.This Sample, the present invention is not restricted to the combination of any specific hardware and software.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for those skilled in the art For, the present invention can have various changes and change.All any modification, equivalents made within spirit and principles of the present invention Replace, improve etc., should be included within the scope of the present invention.

Claims (9)

1. a kind of APD arranging method, it is characterised in that methods described includes:
Deployment main control computer in cluster constructs the deployment order related to the deployment of the application program, and the deployment order is also closed Application program updating bag is associated with, specifically, all script shell-commands related to the application deployment is placed in advance in In program file, and the chained address of described program file is added in the deployment order, is also wrapped in the deployment order The application configuration address related to the application deployment is included, the script shell-command includes that synchronous documents, environment are examined Sense command after surveying, stop, starting and starting;
The deployment order is sent to each deploying client in the cluster, so that the deploying client is according to the portion Administration's order is updated to the corresponding application program of the application program updating bag.
2. APD arranging method according to claim 1, it is characterised in that described each portion in the cluster Administration's client is sent after the deployment order, is also included:
The deployment object information that each deploying client in the cluster sends is received, and according to the deployment object information system Count the deployment scenario of all deploying clients;Wherein, the deployment object information includes:Complete to update or failed Into renewal.
3. a kind of APD arranging method, it is characterised in that methods described includes:
Deploying client in cluster receives the deployment order that the deployment main control computer in the cluster sends, and the deployment order is also Application program updating bag is associated with, specifically, the deployment order includes the program file related to the application deployment With application configuration file, described program file includes all shell-commands related to the application deployment, described Shell-command includes sense command after synchronous documents, environment measuring, stopping, startup and startup;
The corresponding application program of the application program updating bag is updated according to the deployment order, is obtained after the renewal Deployment object information.
4. APD arranging method according to claim 3, it is characterised in that the deployment in the reception cluster After the deployment order that main control computer sends, also include:
Deployment object information is sent to the deployment main control computer in the cluster, so that the deployment main control computer is according to the deployment knot The deployment scenario of all deploying clients of fruit Information Statistics;Wherein, it is described deployment object information include completed update or Fail to complete to update.
5. it is a kind of to dispose main control computer, it is characterised in that the deployment main control computer includes:
Structural unit, for constructing the deployment order related to the deployment of application program, the deployment order is also associated with application Program AKU, wherein, the structural unit is additionally operable to all script shell-commands related to the application deployment In being placed in advance in program file, and the chained address of described program file is added in the deployment order, the deployment life Also include the application configuration address related to the application deployment in order, the script shell-command include synchronous documents, Sense command after environment measuring, stopping, startup and startup;
Transmitting element, for sending the deployment order to each deploying client in cluster, so that the deploying client The corresponding application program of the application program updating bag is updated according to the deployment order.
6. according to the deployment main control computer described in claim 5, it is characterised in that the deployment main control computer also includes:
Receiving unit, for receiving the cluster in the deployment object information that sends of each deploying client, and according to described Deployment object information counts the deployment scenario of all deploying clients;Wherein, the deployment object information includes:Complete more It is new or fail to complete to update.
7. a kind of deploying client, it is characterised in that the deploying client includes:
Receiving unit, for receiving cluster in deployment main control computer send deployment order, the deployment order be also associated with should Program AKU is used, wherein, the deployment order includes the chained address of the program file related to application deployment and answers With configuration address, described program file includes all shell-commands related to the application deployment, the shell lives Order includes sense command after synchronous documents, environment measuring, stopping, startup and startup;
Processing unit, for being updated to the corresponding application program of the application program updating bag according to the deployment order, Obtain disposing object information after the renewal.
8. deploying client according to claim 7, it is characterised in that the deploying client also includes:
Transmitting element, for sending deployment object information to the deployment main control computer, so that the deployment main control computer is according to described Deployment object information counts the deployment scenario of all deploying clients;Wherein, the deployment object information includes having completed more It is new or fail to complete to update.
9. a kind of cluster, it is characterised in that include deployment main control computer according to any one of claim 5 to 6 and at least One deploying client according to any one of claim 7 to 8.
CN201310362420.XA 2013-08-19 2013-08-19 Application program deployment method, deployment main control computer, deployment client side and cluster Active CN103455346B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310362420.XA CN103455346B (en) 2013-08-19 2013-08-19 Application program deployment method, deployment main control computer, deployment client side and cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310362420.XA CN103455346B (en) 2013-08-19 2013-08-19 Application program deployment method, deployment main control computer, deployment client side and cluster

Publications (2)

Publication Number Publication Date
CN103455346A CN103455346A (en) 2013-12-18
CN103455346B true CN103455346B (en) 2017-05-03

Family

ID=49737753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310362420.XA Active CN103455346B (en) 2013-08-19 2013-08-19 Application program deployment method, deployment main control computer, deployment client side and cluster

Country Status (1)

Country Link
CN (1) CN103455346B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103984884A (en) * 2014-05-30 2014-08-13 广东轩辕网络科技股份有限公司 Method and system for licensing software
CN105204898A (en) * 2015-09-16 2015-12-30 浪潮通用软件有限公司 Application deployment system and method and control server
CN105490860B (en) * 2015-12-24 2019-03-05 北京奇虎科技有限公司 The method, apparatus and system of disposing application program running environment
CN106953746A (en) * 2017-02-28 2017-07-14 努比亚技术有限公司 Clustered node upgrade-system and method
CN107370626A (en) * 2017-07-28 2017-11-21 郑州云海信息技术有限公司 A kind of group system upgrade method and device
CN107276835A (en) * 2017-08-11 2017-10-20 郑州云海信息技术有限公司 A kind of clustered deploy(ment) collocation method and system
CN112732273A (en) * 2017-09-19 2021-04-30 华为技术有限公司 Application deployment method, device and system
CN109213494A (en) * 2018-08-03 2019-01-15 北京奇安信科技有限公司 A kind of processing method and processing device of automatic deployment cluster test host

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345644A (en) * 2007-07-13 2009-01-14 盛大计算机(上海)有限公司 Server disposition system and method
CN101465757A (en) * 2009-01-15 2009-06-24 武汉烽火网络有限责任公司 Method for batch upgrade in cluster network

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050010634A1 (en) * 2003-06-19 2005-01-13 Henderson Roderick C. Methods, systems, and computer program products for portlet aggregation by client applications on a client side of client/server environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345644A (en) * 2007-07-13 2009-01-14 盛大计算机(上海)有限公司 Server disposition system and method
CN101465757A (en) * 2009-01-15 2009-06-24 武汉烽火网络有限责任公司 Method for batch upgrade in cluster network

Also Published As

Publication number Publication date
CN103455346A (en) 2013-12-18

Similar Documents

Publication Publication Date Title
CN103455346B (en) Application program deployment method, deployment main control computer, deployment client side and cluster
CN109245931B (en) Log management and monitoring alarm realization method of container cloud platform based on kubernets
Carena et al. The ALICE data acquisition system
US10956143B2 (en) Server updates
US8868601B2 (en) Distributed file system logging
CN102609281B (en) Distributed software patch update method and system
CA2991150C (en) Multi-stage network discovery
US10776360B2 (en) Techniques for data extraction
US9342390B2 (en) Cluster management in a shared nothing cluster
CN104781791A (en) Universal pluggable cloud disaster recovery system
US10892961B2 (en) Application- and infrastructure-aware orchestration for cloud monitoring applications
CN109672722B (en) Data deployment method and device, computer storage medium and electronic equipment
US10261877B2 (en) Systems and methods for testing mobile devices
US20130111018A1 (en) Passive monitoring of virtual systems using agent-less, offline indexing
CN111221831A (en) Computing system for real-time processing of advertisement effect data
Wilson et al. CSP hybrid space computing for STP-H5/ISEM on ISS
CN103077034A (en) JAVA application migration method and system for hybrid virtualization platform
Cejka et al. Java embedded storage for time series and meta data in Smart Grids
US9201897B1 (en) Global data storage combining multiple back-end storage devices
CN117032889A (en) New cloud database containerized deployment method, system, electronic equipment and medium
Koller et al. Unified monitoring and analytics in the cloud
CN117724803A (en) Cloud service deployment method, device and platform
CN109257230A (en) A kind of Log Administration System and method of semiconductor memory burn-in test
US10713014B2 (en) Multi-platform interface framework
US8566279B1 (en) Enhanced data collection techniques

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant