CN104301355A - Cluster heat disposition method and system based on single machine complete disposition and new old node pool - Google Patents

Cluster heat disposition method and system based on single machine complete disposition and new old node pool Download PDF

Info

Publication number
CN104301355A
CN104301355A CN201310303769.6A CN201310303769A CN104301355A CN 104301355 A CN104301355 A CN 104301355A CN 201310303769 A CN201310303769 A CN 201310303769A CN 104301355 A CN104301355 A CN 104301355A
Authority
CN
China
Prior art keywords
node
cluster
new
file
nodes
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
CN201310303769.6A
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.)
Shanghai Baosight Software Co Ltd
Original Assignee
Shanghai Baosight Software 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 Shanghai Baosight Software Co Ltd filed Critical Shanghai Baosight Software Co Ltd
Priority to CN201310303769.6A priority Critical patent/CN104301355A/en
Publication of CN104301355A publication Critical patent/CN104301355A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The invention provides a cluster heat disposition method and a system based on single machine complete disposition and a new old node pool. According to the method, a single machine automatic update script operates on each node of a cluster, a server on an independent cluster node has a script updating all nodes in the cluster sequentially, after nodes in a new version file in the cluster are available, a reverse agent server is ordered to automatically forward a new request to nodes of the new version file. The invention further provides the corresponding system. Compared with the prior art, the method is advantaged in that: cluster heat disposition is realized through the method, the cluster can be in a constant available state in any time, an application in a unique version can be provided for service at any time, and only service in the new version takes effect once update success of a new application.

Description

Dispose completely and the cluster heat deploying method of new and old node pool and system based on unit
Technical field
The present invention relates to the hot deployment techniques of application server cluster, particularly, relate to and disposing completely and the cluster heat deploying method of new and old node pool and system based on unit.
Background technology
Reverse proxy (Reverse Proxy) mode refers to proxy server to accept the connection request on Internet, then by request forward to the server on internal network; And the result obtained from server is returned to the client of Internet request connection, now proxy server externally just shows as a server.Common proxy server, only for acting on behalf of the connection request of internal network to Internet, the necessary authorized agency's server of client computer, and will originally will the http request be directly sent on Web server be sent in proxy server.Can act on behalf of the main frame on external network when a proxy server, during access internal network, the mode of this agency service is called reverse proxy service.
Application server refer between application software and operating system, database, meet certain standard a series of software environments, service and instrument set.Application server cluster based on reverse proxy refer to by each independently application server externally show as single system by the transfer of Reverse Proxy.Cluster can reduce Single Point of Faliure quantity, and achieves the high availability of clustering resource.
Heat is disposed, and the upgrade software when application runs, does not but need to restart application exactly.
Present cluster heat deploying method, be all be based upon unit heat deploying method basis on, and unit heat is disposed inherently unstable, the disabled problem of presence service; Heat under cluster environment is disposed, and each node deployment deadline is probably inconsistent, will cause the inconsistency of service state like this.
Following pertinent literature is found through carrying out retrieval to prior art:
Pertinent literature 1:
Application number: 200710156703.3, title: a kind of Chinese patent literature of distributed heat dispositions method of cluster application server.This invention relates to a kind of distributed heat dispositions method of cluster application server, and when a new application server node joins in cluster, it can go to obtain all EJB files in cluster under each node particular category, then at local disposition automatically.When a local disposition EJB, first by this EJB at local disposition, then broadcast in the cluster, other nodes in notice cluster download this file.
Technical essential compares:
When this patent carries out the deployment of cluster heat, first heat is carried out to a node and disposes, then other nodes are carried out synchronously, there is following problem like this:
1, unit heat is disposed unstable, the disabled state of presence service.And the Intelligent hot dispositions method that the present invention proposes, unit redeploys completely, and therefore deployable state is reliable and stable, but for cluster, we have externally accomplished issuing process persistent service, thus achieve the deployment of cluster heat.
2, when first node heat has been disposed, and other nodes are carrying out, in the process that heat disposes, there is the problem of different editions, if now by the node of request forward to the node of hot deployment and hot deployment, then the state of serving is inconsistent.And Intelligent hot dispositions method of the present invention, maintain new and old node pool, and only request forward in new node pond, thus the consistency of service can be ensure that.
Summary of the invention
For defect of the prior art, the problem of the unsteadiness of disposing in order to avoid unit heat and the service inconsistency of usual cluster heat deploying method, the present invention proposes one and can dispose completely based on unit and safeguard new and old node pool, realizes application server cluster heat deploying method and the system of high efficient and reliable.
According to an aspect of the present invention, there is provided a kind of and dispose the cluster heat deploying method with new and old node pool completely based on unit, each node of cluster runs and has the automatic more new script of a unit, a script upgrading all nodes of cluster is successively had at the server of separate cluster node, when have in cluster new edition file node can with after, make Reverse Proxy new request be automatically forwarded on the node of new edition file.
Preferably, the automatic more new script of described unit, specifically comprises the steps:
Steps A 1: download latest edition file from application program source server assigned address;
Steps A 2: compare city edition presents and latest edition file, check whether it is latest edition; If not latest edition, then first delete local application file, then copy application program source server application file version to this locality.
Preferably, the described server at separate cluster node upgrades the script of all nodes of cluster successively, specifically comprises the steps:
Step B1: the list obtaining all nodes in cluster;
Step B2: obtain and do not upgrade application program address of node, long-range being connected to successively does not upgrade application program node and performs automatically more new script and carry out file version updating, until all nodes all upgrade complete in cluster.
Preferably, described when have in cluster new edition file node can with after, make Reverse Proxy new request be automatically forwarded on the node of new edition file, specifically comprise the steps:
Step C1: obtain the latest edition file in application program source;
Step C2: obtain all node listings in cluster;
Step C3: obtain the version file on node, and compare with latest edition file;
Step C4: if the version file of node is identical with latest edition file, then this node is added in new node pond, otherwise add in old node pool;
Step C5: repeated execution of steps C3, C4, until traveled through all nodes in cluster.
Preferably, described when have in cluster new edition file node can with after, make Reverse Proxy new request be automatically forwarded on the node of new edition file, also comprise the steps:
Reverse Proxy is when carrying out asking automatically to forward, and the number according to new node pond judges, when new node pool count is 0, then using old node pool as can for forward node pool; Otherwise, using new node pond as the node pool that can supply to forward.
According to another aspect of the present invention, also provide a kind of and dispose deployment system hot with the cluster of new and old node pool completely based on unit, comprise the server of separate cluster node, wherein, each node of cluster runs and has the automatic more new script of a unit, the server of described separate cluster node performs the script that upgrades all nodes of cluster successively, when have in cluster new edition file node can with after, new request is forwarded on the node of new edition file by Reverse Proxy automatically.
Preferably, the automatic more new script of described unit, specifically comprises the steps:
Steps A 1: download latest edition file from application program source server assigned address;
Steps A 2: compare city edition presents and latest edition file, check whether it is latest edition; If not latest edition, then first delete local application file, then copy application program source server application file version to this locality.
Preferably, the server of described separate cluster node upgrades the script of all nodes of cluster successively, specifically comprises the steps:
Step B1: the list obtaining all nodes in cluster;
Step B2: obtain and do not upgrade the address of script node, long-range being connected to successively does not upgrade script node and performs automatically more new script and carry out file version updating, until all nodes all upgrade complete in cluster.
Preferably, when have in cluster new edition file node can with after, described Reverse Proxy, as follows, is forwarded on the node of new edition file automatically by new request:
Step C1: obtain the latest edition file in application program source;
Step C2: obtain all node listings in cluster;
Step C3: obtain the version file on node, and compare with latest edition file;
Step C4: if the version file of node is identical with latest edition file, then this node is added in new node pond, otherwise add in old node pool;
Step C5: repeated execution of steps C3, C4, until traveled through all nodes in cluster.
Preferably, described Reverse Proxy is when carrying out asking automatically to forward, and the number according to new node pond judges, when new node pool count is 0, then using old node pool as can for forward node pool; Otherwise, using new node pond as the node pool that can supply to forward.
Compared with prior art, the present invention has following beneficial effect:
Realize cluster heat by above method to dispose, the present invention can accomplish that cluster all keeps upstate at any time, and any moment has the application of unique version to provide service, and just the service of redaction is only had to come into force after having new application to be updated successfully.
Accompanying drawing explanation
By reading the detailed description done non-limiting example with reference to the following drawings, other features, objects and advantages of the present invention will become more obvious:
Fig. 1 is the application server cluster deployment architecture figure based on Reverse Proxy;
Fig. 2 is application program source and cluster application server node relationships;
Fig. 3 is the flow chart of single application server node automatic updating application program;
Fig. 4 is the flow chart that cluster upgrades each node application server successively;
Fig. 5 is the flow chart that Reverse Proxy generates new and old node pool.
Embodiment
Below in conjunction with specific embodiment, the present invention is described in detail.Following examples will contribute to those skilled in the art and understand the present invention further, but not limit the present invention in any form.It should be pointed out that to those skilled in the art, without departing from the inventive concept of the premise, some distortion and improvement can also be made.These all belong to protection scope of the present invention.
First illustratively in cluster, how individual node carries out application program update.
Utilize an application program source to safeguard up-to-date application program, when needs upgrade cluster, only need to upgrade the program in application program source or configuration, the more new script so on clustered node will automatically detect and changes and automatically upgrade.
Automatically more the processing logic of new script is as follows:
1, latest edition file is downloaded from application program source server assigned address;
2, compare city edition presents and latest edition file, check whether it is latest edition;
3, if not latest edition, first delete local application file, then copy application program source server application file version to this locality.
If but under cluster environment, all nodes are upgraded, then simultaneously cluster service at no point in the update process can be made to be in down state, can not to accomplish that the heat of cluster is disposed.
Accomplish that the heat of cluster is disposed, can be realized by each node upgraded successively in cluster, can accomplish that the application of any moment cluster is all in upstate like this.
These needs realize at certain station server (can put together with application program source server) of separate cluster node the script that upgrades clustered node successively, and this script specific implementation step is as follows:
1, the list of all nodes in cluster is obtained, by the node in step 2 traversal of lists;
2, obtain node address, long-range be connected to this node and perform automatically more new script carry out version updating;
3, step 2 is repeated, until all nodes all upgrade complete in cluster.
By above method, the renewal of all nodes in cluster can be realized, and make this cluster in renewal process be in upstate all always.But at no point in the update process, the simultaneous situation of new early version can be there is, the service state that so this cluster will be made to provide is inconsistent, because reverse proxy service may be forwarded to request the node at redaction place for a moment, is forwarded to again the node at legacy version place for a moment.
Upgrade each node in cluster successively, but when have in cluster redaction node can with after, reverse proxy is understood and new request is automatically forwarded on new node.In this way, service is in upstate to profit always, and only has a version simultaneously and be that latest edition can be used.
These needs safeguard new node pond and old node pool on Reverse Proxy, and it is as follows that this script performs step:
1, the latest edition file in down load application program source;
2, all node listings of cluster are obtained, according to step 3,4 traversal of lists;
3, obtain the version file on node, and compare with latest edition file;
If the version file of 4 nodes is identical with latest edition file, then this node is added in new node pond, otherwise add in old node pool point pond;
5, step 3,4 is repeated, until traveled through all nodes in cluster.
Reverse Proxy, when carrying out request forward, can judge according to the number in new node pond, when new node pool count is 0, then can be old node pool point pond for the node pool forwarded; Otherwise, can be new node pond Dian Chi for the node pool forwarded.This ensures that there, once there be a node updates to complete, then new request just will all be forwarded on the application server of redaction.
Above specific embodiments of the invention are described.It is to be appreciated that the present invention is not limited to above-mentioned particular implementation, those skilled in the art can make various distortion or amendment within the scope of the claims, and this does not affect flesh and blood of the present invention.

Claims (10)

1. dispose the cluster heat deploying method with new and old node pool completely based on unit for one kind, it is characterized in that, each node of cluster runs and has the automatic more new script of a unit, a script upgrading all nodes of cluster is successively had at the server of separate cluster node, when have in cluster new edition file node can with after, make Reverse Proxy new request be automatically forwarded on the node of new edition file.
2. according to claim 1ly dispose the cluster heat deploying method with new and old node pool completely based on unit, it is characterized in that, described unit more new script automatically, specifically comprises the steps:
Steps A 1: download latest edition file from application program source server assigned address;
Steps A 2: compare city edition presents and latest edition file, check whether it is latest edition; If not latest edition, then first delete local application file, then copy application program source server application file version to this locality.
3. according to claim 1ly dispose the cluster heat deploying method with new and old node pool completely based on unit, it is characterized in that, the described server at separate cluster node upgrades the script of all nodes of cluster successively, specifically comprises the steps:
Step B1: the list obtaining all nodes in cluster;
Step B2: obtain and do not upgrade application program address of node, long-range being connected to successively does not upgrade application program node and performs automatically more new script and carry out file version updating, until all nodes all upgrade complete in cluster.
4. according to claim 1ly dispose the cluster heat deploying method with new and old node pool completely based on unit, it is characterized in that, described when have in cluster new edition file node can with after, make Reverse Proxy new request be automatically forwarded on the node of new edition file, specifically comprise the steps:
Step C1: obtain the latest edition file in application program source;
Step C2: obtain all node listings in cluster;
Step C3: obtain the version file on node, and compare with latest edition file;
Step C4: if the version file of node is identical with latest edition file, then this node is added in new node pond, otherwise add in old node pool;
Step C5: repeated execution of steps C3, C4, until traveled through all nodes in cluster.
5. according to claim 4ly dispose the cluster heat deploying method with new and old node pool completely based on unit, it is characterized in that, described when have in cluster new edition file node can with after, make Reverse Proxy new request be automatically forwarded on the node of new edition file, also comprise the steps:
Reverse Proxy is when carrying out asking automatically to forward, and the number according to new node pond judges, when new node pool count is 0, then using old node pool as can for forward node pool; Otherwise, using new node pond as the node pool that can supply to forward.
6. dispose deployment system hot with the cluster of new and old node pool completely based on unit for one kind, it is characterized in that, comprise the server of separate cluster node, wherein, each node of cluster runs and has the automatic more new script of a unit, the server of described separate cluster node performs the script that upgrades all nodes of cluster successively, when have in cluster new edition file node can with after, new request is forwarded on the node of new edition file by Reverse Proxy automatically.
7. according to claim 6ly dispose deployment system hot with the cluster of new and old node pool completely based on unit, it is characterized in that, described unit more new script automatically, specifically comprises the steps:
Steps A 1: download latest edition file from application program source server assigned address;
Steps A 2: compare city edition presents and latest edition file, check whether it is latest edition; If not latest edition, then first delete local application file, then copy application program source server application file version to this locality.
8. according to claim 6ly dispose deployment system hot with the cluster of new and old node pool completely based on unit, it is characterized in that, the server of described separate cluster node upgrades the script of all nodes of cluster successively, specifically comprises the steps:
Step B1: the list obtaining all nodes in cluster;
Step B2: obtain and do not upgrade the address of script node, long-range being connected to successively does not upgrade script node and performs automatically more new script and carry out file version updating, until all nodes all upgrade complete in cluster.
9. according to claim 6ly dispose deployment system hot with the cluster of new and old node pool completely based on unit, it is characterized in that, when have in cluster new edition file node can with after, described Reverse Proxy, as follows, new request is forwarded on the node of new edition file automatically:
Step C1: obtain the latest edition file in application program source;
Step C2: obtain all node listings in cluster;
Step C3: obtain the version file on node, and compare with latest edition file;
Step C4: if the version file of node is identical with latest edition file, then this node is added in new node pond, otherwise add in old node pool;
Step C5: repeated execution of steps C3, C4, until traveled through all nodes in cluster.
10. according to claim 6ly dispose deployment system hot with the cluster of new and old node pool completely based on unit, it is characterized in that, described Reverse Proxy is when carrying out asking automatically to forward, number according to new node pond judges, when new node pool count is 0, then using old node pool as can for forward node pool; Otherwise, using new node pond as the node pool that can supply to forward.
CN201310303769.6A 2013-07-18 2013-07-18 Cluster heat disposition method and system based on single machine complete disposition and new old node pool Pending CN104301355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310303769.6A CN104301355A (en) 2013-07-18 2013-07-18 Cluster heat disposition method and system based on single machine complete disposition and new old node pool

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310303769.6A CN104301355A (en) 2013-07-18 2013-07-18 Cluster heat disposition method and system based on single machine complete disposition and new old node pool

Publications (1)

Publication Number Publication Date
CN104301355A true CN104301355A (en) 2015-01-21

Family

ID=52320923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310303769.6A Pending CN104301355A (en) 2013-07-18 2013-07-18 Cluster heat disposition method and system based on single machine complete disposition and new old node pool

Country Status (1)

Country Link
CN (1) CN104301355A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789291A (en) * 2016-12-29 2017-05-31 郑州云海信息技术有限公司 A kind of cluster member control method and device
CN109445825A (en) * 2018-11-09 2019-03-08 郑州云海信息技术有限公司 The method and apparatus that a kind of server cluster system updates upgrading
CN109634638A (en) * 2018-12-17 2019-04-16 郑州云海信息技术有限公司 A kind of clustered software upgrade method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101183975A (en) * 2007-12-04 2008-05-21 浙江大学 Distributed heat dispositions method of cluster application server
US7617257B2 (en) * 2004-12-03 2009-11-10 Oracle International Corporation System for persistent caching of LDAP metadata in a cluster LDAP server topology
US20120005164A1 (en) * 2010-06-30 2012-01-05 Symantec Corporation Cluster configuration systems and methods
CN102455936A (en) * 2010-11-25 2012-05-16 中标软件有限公司 Trunk quick allocation method
CN103051469A (en) * 2012-09-13 2013-04-17 曙光信息产业(北京)有限公司 Centralized configuration management method under cloud environment
CN103167041A (en) * 2013-03-28 2013-06-19 广州中国科学院软件应用技术研究所 System and method for supporting cloud environment application cluster automation deployment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7617257B2 (en) * 2004-12-03 2009-11-10 Oracle International Corporation System for persistent caching of LDAP metadata in a cluster LDAP server topology
CN101183975A (en) * 2007-12-04 2008-05-21 浙江大学 Distributed heat dispositions method of cluster application server
US20120005164A1 (en) * 2010-06-30 2012-01-05 Symantec Corporation Cluster configuration systems and methods
CN102455936A (en) * 2010-11-25 2012-05-16 中标软件有限公司 Trunk quick allocation method
CN103051469A (en) * 2012-09-13 2013-04-17 曙光信息产业(北京)有限公司 Centralized configuration management method under cloud environment
CN103167041A (en) * 2013-03-28 2013-06-19 广州中国科学院软件应用技术研究所 System and method for supporting cloud environment application cluster automation deployment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
许兆新,等: "Linux 集群节点自动化部署方法与实现", 《应用科技》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789291A (en) * 2016-12-29 2017-05-31 郑州云海信息技术有限公司 A kind of cluster member control method and device
CN109445825A (en) * 2018-11-09 2019-03-08 郑州云海信息技术有限公司 The method and apparatus that a kind of server cluster system updates upgrading
CN109634638A (en) * 2018-12-17 2019-04-16 郑州云海信息技术有限公司 A kind of clustered software upgrade method, device, equipment and medium
CN109634638B (en) * 2018-12-17 2021-10-29 郑州云海信息技术有限公司 Cluster software upgrading method, device, equipment and medium

Similar Documents

Publication Publication Date Title
US10713034B2 (en) Updating web resources
CN102622241B (en) A kind of method for upgrading software and device
CN101719073B (en) Intelligent client-based on-demand downloading realization method
US7440971B2 (en) Context based access of files by file system to a client based on detection of related files opened by the client
US20070143379A1 (en) Metadata driven deployment of applications
US20130311985A1 (en) Updating Web Resources
US20070118572A1 (en) Detecting changes in data
CN105657191A (en) Application increment upgrading method and system based on Android system
CN1668010A (en) Tag-based schema for distributing update metadata in an update distribution system
EP2021937A2 (en) Techniques to perform gradual upgrades
US10140350B2 (en) Bi-directional synchronization of data between a product lifecycle management (PLM) system and a source code management (SCM) system
CN101694625A (en) Method and device for upgrading client software based on encryption sever management
CN107291481B (en) Component updating method, device and system
US10621524B2 (en) Exporting hierarchical data from a source code management (SCM) system to a product lifecycle management (PLM) system
EP4050850A1 (en) Service upgrading method, device and system
CN111782235A (en) Data upgrading and querying method and device
US8996484B2 (en) Recursive lock-and-propagate operation
CN104301355A (en) Cluster heat disposition method and system based on single machine complete disposition and new old node pool
CN114996337A (en) Multi-cluster database management system and method
CN106484458A (en) A kind of open software warehouse management system and its management method
CN109145054A (en) A kind of method of managing customer end data
CN115129348A (en) Resource updating method, device and equipment of application program and readable storage medium
CN115344644A (en) Data synchronization method and device, electronic equipment and computer readable storage medium
US10621526B2 (en) Exporting hierarchical data from a product lifecycle management (PLM) system to a source code management (SCM) system
CN106357777A (en) Method for automatically and synchronously updating program and data based on Web server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150121