WO2013075586A1 - 一种分布式系统的部署方法及系统 - Google Patents
一种分布式系统的部署方法及系统 Download PDFInfo
- Publication number
- WO2013075586A1 WO2013075586A1 PCT/CN2012/084331 CN2012084331W WO2013075586A1 WO 2013075586 A1 WO2013075586 A1 WO 2013075586A1 CN 2012084331 W CN2012084331 W CN 2012084331W WO 2013075586 A1 WO2013075586 A1 WO 2013075586A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- distributed system
- server
- control device
- client
- system program
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Definitions
- the present invention belongs to the field of network technologies, and in particular, to a method and system for deploying a distributed system. Background technique
- the present invention provides a method and system for deploying a distributed system to solve the above problems.
- the invention provides a method for deploying a distributed system.
- the foregoing method includes the following steps:
- the client generates a configuration file corresponding to a different type of distributed system program of the server to be configured according to the configuration index table and the service invocation relationship table of the distributed system, and binds different types of distributed systems.
- a program and its corresponding configuration file the control device obtains the distributed system program and its corresponding configuration file from the client;
- the control device parses the network address of the server to be deployed after receiving the deployment instruction from the client;
- the server receives the control device After uploading the distributed system program instructions, the distributed system programs of different categories of the corresponding server and their corresponding configuration files are downloaded from the control device.
- the invention also provides a deployment system of a distributed system, comprising a client, a control device and a server.
- the client connects to the control device, and the control device connects to the server.
- the client is configured to generate a configuration file corresponding to different types of distributed system programs of the server to be configured according to the configuration index table and the service call relationship table of the distributed system, and bind different types of distributed system programs and Its corresponding configuration file.
- the control device is used to obtain the distributed system program and its corresponding configuration file from the client.
- the control device is configured to parse the network address of the server to be deployed after receiving the deployment instruction from the client. After receiving the uploading distributed system program command sent by the control device, the server downloads the different types of distributed system programs of the corresponding server and their corresponding configuration files from the control device.
- the client Compared with the prior art, according to the deployment method and system of the distributed system provided by the present invention, the client generates different types of distributed system programs of the server to be configured according to the configuration index table and the service invocation relationship table of the distributed system, respectively. Corresponding configuration files, and bind different types of distributed system programs and their corresponding configuration files.
- the configuration file is automatically generated by the client, which saves labor costs and improves efficiency.
- the deployment of the distributed system is automatically realized by the control device, which not only saves labor costs but also improves deployment efficiency.
- the distributed system is prevented from being paralyzed due to operator error, thereby improving the correctness of the distributed system deployment.
- FIG. 1 is a flow chart showing a method for deploying a distributed system according to a preferred embodiment of the present invention
- FIG. 2 is a schematic diagram of a deployment system for a distributed system provided in accordance with a preferred embodiment of the present invention. detailed description
- FIG. 1 is a flow chart showing a method of deploying a distributed system according to a preferred embodiment of the present invention. As shown in FIG. 1, the method for deploying a distributed system provided by the preferred embodiment of the present invention includes step 101104.
- the client In step 101, the client generates configuration files corresponding to different types of distributed system programs of the server to be configured according to the configuration index table and the service call relationship table of the distributed system, and binds different types of distributed system programs and Its corresponding configuration file.
- the operator first sets which distributed system programs are deployed on which servers. For example, the operator sets up a network layer (1), a business logic layer (Business) 1, a regional session layer (RegionSessiom) 1 and a database layer (Database) 1 on a server with an IP address of 10.1.49.5.
- the configuration index table can be generated according to the service provided by the distributed system program.
- the client can generate a configuration index table of the distributed system as shown in the following table.
- the invention is not limited to this. In practical applications, a corresponding configuration index table can be generated according to different settings.
- the numbers of the network layer, the service logic layer, and the regional session layer in the above table may indicate different areas.
- the network layer numbered 1, the business logic layer, and the regional session layer serve the Suzhou area
- the network layer numbered 2, the business logic layer, and the regional session layer serve the Shanghai area.
- the number of the global session layer represents the number of global session layers. For example, when the number of the global session layer has 1 and 2, the activation number is 1
- the global session layer, and the global session layer numbered 2 is used as a backup.
- the client presets the service call relationship table, as shown in the following table.
- the client generates configuration files corresponding to different types of distributed system programs of the server to be configured according to the configuration index table and the service call relationship table of the distributed system.
- the call between the network layer, the business logic layer, the database layer and the regional session layer only calls other layers of the same number.
- the service provided by network layer 1 on the server with IP address 10.1.49.5 is NetworkMessageService
- network layer 1 also calls the service business message of number 1 of the business logic layer for the network layer and service of each server to be deployed.
- the logical layer, the regional session layer, the database layer, or the global session layer respectively generate corresponding configuration files.
- the configuration file is, for example, a text file that includes configuration information.
- the client after the client obtains different types of distributed system programs and their corresponding configuration files, the client binds different types of distributed system programs and their corresponding configuration files. Specifically, the client stores different categories of distributed system programs and their corresponding configuration files in the same folder.
- the control device obtains the distributed system program and its corresponding configuration file from the client. Specifically, after the client binds different types of distributed system programs and their corresponding configuration files, the client The client merges the distributed system programs of different categories deployed on the same server and their corresponding configuration files into the same folder, and the client uploads the folder to the control device.
- the control device may also actively obtain the folder from the client.
- the folder is named after the IP address of the server to be deployed. For example, the distributed system program corresponding to the network layer, the business logic layer, the regional session layer, and the database layer deployed on the server with the IP address 10.1.49.5 and the configuration file corresponding to the distributed system program are combined and stored in the file. Under the folder named 10.1.49.5.
- step 103 after receiving the deployment instruction from the client, the control device parses the network address of the server to be deployed. Specifically, after the control device downloads the distributed system program and its corresponding configuration file from the client, the client sends a deployment instruction to the control device. After the control device receives the deployment instruction from the client, it parses the network address of the server to be deployed. Wherein, since the distributed system program deployed on the same server and its corresponding configuration file are stored in a folder named after the IP address of the server to be deployed, the control device can obtain the to-be-deployed by reading the folder name. The IP address of the server. Further, after the control device resolves the network address of the server to be deployed, the control device checks whether the server is available.
- the control device sends a communication request to the server to be deployed in sequence, and determines whether the server is available according to the feedback information. If the server to be deployed is unavailable, the control device notifies the client that the deployment has failed. If the server to be deployed is available, the control device continues the subsequent deployment process.
- step 104 after receiving the uploading distributed system program command sent by the control device, the server downloads the distributed system program corresponding to the different types of the server and the corresponding configuration file from the control device.
- the control device before the control device sends the uploading distributed system program instruction to the server, the control device sequentially sends the server to close the old version distributed system program instruction, back up the old version distributed system program instruction, and delete the old version distributed system program instruction. .
- the control device first sends a command to close the distributed version of the distributed system program to the server.
- the server scans all the processes of the local machine. If there is an old version of the distributed system process, the process is closed. If there is no old distributed system process, the server does not deal with.
- the control device sends a backup old version distributed system program instruction to the server.
- the server After the server receives the backup old version distributed system program command from the control device, the server checks whether there is an old version of the distributed system program in the local specified directory, and if so, copies it to the backup directory of the server, if If not, it will not be processed. After that, the control device sends the server to delete the old version.
- the server After the server receives the command to delete the old distributed system program from the control device, the server checks whether there is an old version of the distributed system program in the local specified directory, and if so, deletes it, and if not, does not process it.
- the server downloads the corresponding distributed system program and its corresponding configuration file from the control device.
- the control device transmits an upload distributed system program instruction to the server. For example, if the control device wants to upload the distributed system program to the server with the IP address 10.1.49.5, the control device first finds the folder named 10.1.49.5 in the local specified directory, and then uploads the folder. All distributed system programs and corresponding configuration files are sent to the server with IP address 10.1.49.5.
- the server installs the distributed system program.
- control device also sends a program to open the distributed system, and the server starts the downloaded distributed system program according to the above instructions, thereby implementing the deployment operation.
- the final deployment results can be fed back to the client through the control device and the deployment results are displayed through the client, for example, the results are successful for deployment.
- the deployment system of the distributed system provided by the preferred embodiment of the present invention includes a client 20, a control device 21, and servers 22a-22c.
- the three servers to be deployed 22a-22c are taken as an example for description. However, the invention does not limit the number of servers to be deployed.
- the client 20 is connected to the control device 21, and the control device 21 is connected to the servers 22a-22c.
- the client 20 is configured to generate configuration files corresponding to different types of distributed system programs of the server to be configured according to the configuration index table and the service call relationship table of the distributed system, and bind different types of distributed system programs. And its corresponding configuration file.
- the control device 21 is adapted to obtain the distributed system program and its corresponding configuration file from the client 20.
- the control device 21 is configured to parse the network address of the server to be deployed after receiving the deployment instruction from the client 20.
- the servers 22a-22c are configured to receive the distributed distributed system program commands sent by the control device 21, and then download the different types of distributed system programs of the corresponding servers and their corresponding configuration files from the control device 21.
- the specific operational flow of the system is the same as that described above, and therefore will not be described again.
- the client generates different classes of the server to be configured according to the configuration index table and the service call relationship table of the distributed system.
- Other configuration files corresponding to the distributed system program and bind different types of distributed system programs and their corresponding configuration files.
- the configuration file is automatically generated by the client, which saves labor costs and improves efficiency.
- the deployment of the distributed system is automatically realized by the control device, which not only saves labor costs but also improves deployment efficiency.
- the distributed system is prevented from being paralyzed due to operator error, thereby improving the correctness of distributed system deployment.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multi Processors (AREA)
- Information Transfer Between Computers (AREA)
Abstract
Description
Claims
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2011103706658A CN102394939A (zh) | 2011-11-21 | 2011-11-21 | 一种分布式系统的部署方法及系统 |
CN201110370665.8 | 2011-11-21 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2013075586A1 true WO2013075586A1 (zh) | 2013-05-30 |
Family
ID=45862143
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2012/084331 WO2013075586A1 (zh) | 2011-11-21 | 2012-11-08 | 一种分布式系统的部署方法及系统 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN102394939A (zh) |
WO (1) | WO2013075586A1 (zh) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102394939A (zh) * | 2011-11-21 | 2012-03-28 | 苏州阔地网络科技有限公司 | 一种分布式系统的部署方法及系统 |
CN104780058A (zh) * | 2014-01-13 | 2015-07-15 | 联想(北京)有限公司 | 一种电子设备配置的方法及系统 |
CN104843031B (zh) * | 2015-04-20 | 2016-08-17 | 上海自仪泰雷兹交通自动化系统有限公司 | 一种轨旁以及车载无线单元的配置方法 |
CN105610987B (zh) * | 2016-03-18 | 2018-11-23 | 车智互联(北京)科技有限公司 | 管理服务器集群的方法、应用及系统 |
CN107229646A (zh) * | 2016-03-24 | 2017-10-03 | 中兴通讯股份有限公司 | 数据集群的部署方法、装置及系统 |
CN106204229A (zh) * | 2016-07-18 | 2016-12-07 | 广西家之宝网络科技有限公司 | 一种基于分布式部署系统的装修管理云系统 |
CN106228290A (zh) * | 2016-07-18 | 2016-12-14 | 广西家之宝网络科技有限公司 | 一种基于消息缓冲装置的装修管理云系统 |
CN106204231A (zh) * | 2016-07-18 | 2016-12-07 | 广西家之宝网络科技有限公司 | 一种基于数据同步系统的装修管理云系统 |
CN106127420A (zh) * | 2016-07-18 | 2016-11-16 | 广西家之宝网络科技有限公司 | 一种基于分布式部署系统的装修管理云系统 |
CN106203961A (zh) * | 2016-07-18 | 2016-12-07 | 广西家之宝网络科技有限公司 | 一种基于分布式部署系统的装修管理云系统 |
CN106203860A (zh) * | 2016-07-18 | 2016-12-07 | 广西家之宝网络科技有限公司 | 一种基于分布式部署系统的装修管理云系统 |
CN106228337A (zh) * | 2016-07-18 | 2016-12-14 | 广西家之宝网络科技有限公司 | 一种基于数据同步系统的装修管理云系统 |
CN106228289A (zh) * | 2016-07-18 | 2016-12-14 | 广西家之宝网络科技有限公司 | 一种基于消息缓冲装置的装修管理云系统 |
CN107832107A (zh) * | 2017-11-24 | 2018-03-23 | 泰康保险集团股份有限公司 | 系统部署方法、装置、电子设备及存储介质 |
CN108681777B (zh) * | 2018-05-07 | 2021-07-20 | 北京京东尚科信息技术有限公司 | 一种基于分布式系统的机器学习程序运行的方法和装置 |
CN109088774A (zh) * | 2018-08-28 | 2018-12-25 | 郑州云海信息技术有限公司 | 一种分布式系统部署的方法及装置 |
CN112114939A (zh) * | 2020-09-04 | 2020-12-22 | 青岛海信网络科技股份有限公司 | 一种分布式系统部署设备和方法 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1168509A (zh) * | 1996-02-29 | 1997-12-24 | 太阳微系统有限公司 | 用于自动构成家庭网络计算机的系统和方法 |
CN101789886A (zh) * | 2009-01-23 | 2010-07-28 | 中兴通讯股份有限公司 | 一种分布式环境的环境搭建自动化系统及方法 |
US7849178B2 (en) * | 2008-04-11 | 2010-12-07 | International Business Machines Corporation | Grid computing implementation |
CN102156685A (zh) * | 2010-12-22 | 2011-08-17 | 青岛海信传媒网络技术有限公司 | 一种分布式网络系统脚本自动配置的方法及装置 |
CN102394939A (zh) * | 2011-11-21 | 2012-03-28 | 苏州阔地网络科技有限公司 | 一种分布式系统的部署方法及系统 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101345644B (zh) * | 2007-07-13 | 2011-05-04 | 盛大计算机(上海)有限公司 | 服务器部署系统和方法 |
CN102195978A (zh) * | 2011-04-26 | 2011-09-21 | 深圳市共济科技有限公司 | 一种软件分布部署方法及系统 |
-
2011
- 2011-11-21 CN CN2011103706658A patent/CN102394939A/zh active Pending
-
2012
- 2012-11-08 WO PCT/CN2012/084331 patent/WO2013075586A1/zh active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1168509A (zh) * | 1996-02-29 | 1997-12-24 | 太阳微系统有限公司 | 用于自动构成家庭网络计算机的系统和方法 |
US7849178B2 (en) * | 2008-04-11 | 2010-12-07 | International Business Machines Corporation | Grid computing implementation |
CN101789886A (zh) * | 2009-01-23 | 2010-07-28 | 中兴通讯股份有限公司 | 一种分布式环境的环境搭建自动化系统及方法 |
CN102156685A (zh) * | 2010-12-22 | 2011-08-17 | 青岛海信传媒网络技术有限公司 | 一种分布式网络系统脚本自动配置的方法及装置 |
CN102394939A (zh) * | 2011-11-21 | 2012-03-28 | 苏州阔地网络科技有限公司 | 一种分布式系统的部署方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN102394939A (zh) | 2012-03-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2013075586A1 (zh) | 一种分布式系统的部署方法及系统 | |
US10177977B1 (en) | Deployment and upgrade of network devices in a network environment | |
US20160112252A1 (en) | Deployment and upgrade of network devices in a network environment | |
US8484637B2 (en) | Parallel installation | |
WO2016078417A1 (zh) | 一种虚拟化网络功能管理升级方法、装置及服务器 | |
US20160179495A1 (en) | Device and method for packaging application | |
EP2582089A1 (en) | System and method for implementing automatic configuration for equipments | |
US10635572B2 (en) | System and method for microservice validator | |
CN106603725A (zh) | 一种企业云服务虚拟镜像管理服务的实现方法 | |
CN113760311A (zh) | 一种微服务部署方法、设备及介质 | |
CN105426208A (zh) | 一种云计算系统OpenStack离线自动安装方法 | |
CN106020896A (zh) | 一种基于私有云的自动化程序发布方法 | |
US20220326940A1 (en) | Service Upgrade Method, Apparatus, and System | |
CN111949276B (zh) | 一种基于容器方式自动部署应用程序的系统及方法 | |
EP2542976B1 (en) | Method and apparatus of backing-up subversion repository | |
CN114553693A (zh) | 网关升级方法及装置 | |
WO2017133246A1 (zh) | 数据的处理方法、服务器及系统 | |
CN115309457B (zh) | 应用实例的重启方法、装置、电子设备及可读存储介质 | |
CN110119279B (zh) | 一种应用及其升级的方法和装置 | |
JP2007280415A (ja) | 管理装置及びバージョン管理システム及びプログラムバージョン管理方法 | |
JP5403447B2 (ja) | 仮想マシン管理装置、仮想マシン管理システム、仮想マシン管理方法、及びプログラム | |
CN111158773B (zh) | 一种ks引导自动化批量装机的方法及系统 | |
CN113190627A (zh) | 基于nginx和Mycat的信息系统架构及其配置方法 | |
JP6102441B2 (ja) | 仮想マシン管理方法及び装置 | |
KR101571801B1 (ko) | 관리 장비의 설정을 제어하는 통합 관리 장치 및 그것의 제어 방법 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 12852296 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12852296 Country of ref document: EP Kind code of ref document: A1 |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24/11/2014) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 12852296 Country of ref document: EP Kind code of ref document: A1 |