CN103109515A - Business deploy method and device - Google Patents
Business deploy method and device Download PDFInfo
- Publication number
- CN103109515A CN103109515A CN2012800017872A CN201280001787A CN103109515A CN 103109515 A CN103109515 A CN 103109515A CN 2012800017872 A CN2012800017872 A CN 2012800017872A CN 201280001787 A CN201280001787 A CN 201280001787A CN 103109515 A CN103109515 A CN 103109515A
- Authority
- CN
- China
- Prior art keywords
- application
- infrastructure
- script
- management node
- application image
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明公开一种业务部署的方法及装置,涉及信息技术领域,可以提高业务部署的速度,降低业务部署所用的时间。本发明实施例提供的方案,通过根据用户选择的应用和选择的所述应用的配置,配置运行所述应用所需的基础架构,并生成参数配置脚本和编译脚本;根据所述应用确定应用镜像,并将所述应用镜像配置到所述基础架构中的服务器节点上;启动所述应用,并在所述服务器节点上运行所述编译脚本,以及应用所述参数配置脚本。本发明实施例提供的方案适于在FBCI架构下进行业务部署时采用。
The invention discloses a method and device for service deployment, relates to the field of information technology, can increase the speed of service deployment, and reduce the time used for service deployment. The solution provided by the embodiment of the present invention configures the infrastructure required to run the application according to the application selected by the user and the configuration of the application selected, and generates parameter configuration scripts and compilation scripts; determines the application image according to the application , and configure the application image on a server node in the infrastructure; start the application, run the compilation script on the server node, and apply the parameter configuration script. The solutions provided by the embodiments of the present invention are suitable for use when deploying services under the FBCI framework.
Description
技术领域technical field
本发明涉及信息技术领域,尤其涉及一种业务部署的方法及装置。The present invention relates to the field of information technology, in particular to a method and device for service deployment.
背景技术Background technique
目前,可以采用传统方式在服务器上进行业务部署:首先将购买的服务器、存储设备以及网络设备等硬件设备进行安装调试,然后将服务器连接存储设备和网络设备等基础设施;安装操作系统(Operating System,OS)并划分存储空间;安装相关的数据库和实施前期数据;安装中间件,部署业务应用;为了保障业务运行性能高和可靠性高,还可以进行优化业务应用。但是采用这种方式分层实施,需要不同的独立软件开发商(Independent Software Vendors,ISV)提供服务或者需要精通各个组件的人来进行安装,进行业务部署需要的时间较长。At present, services can be deployed on servers in the traditional way: first, install and debug purchased hardware devices such as servers, storage devices, and network devices, and then connect the servers to infrastructure such as storage devices and network devices; , OS) and divide the storage space; install relevant databases and implement pre-data; install middleware and deploy business applications; in order to ensure high performance and high reliability of business operations, business applications can also be optimized. However, using this method of layered implementation requires different independent software vendors (Independent Software Vendors, ISVs) to provide services or requires people who are proficient in each component to install, and it takes a long time for business deployment.
在云计算环境中,推出了Matrix自动部署系统进行业务部署:采用预启动运行环境(preboot execute environment,PXE)自动安装技术部署基础架构,基础架构指在将服务器连接存储设备和网络设备的基础上,再安装操作系统,即包括服务器、存储设备、网络设备等基础设施,以及操作系统。然后采用虚拟机部署业务,即根据业务特点选择应用模板,再导入应用模板,启动应用完成业务部署,但仍然无法缩短操作系统的安装以及软件安装的过程,因此业务部署需要的时间仍然较长。In the cloud computing environment, the Matrix automatic deployment system is launched for business deployment: using the preboot execute environment (PXE) automatic installation technology to deploy the infrastructure, the infrastructure refers to the server connected to the storage device and network device , and then install the operating system, which includes infrastructure such as servers, storage devices, and network devices, as well as the operating system. Then use virtual machines to deploy services, that is, select application templates according to service characteristics, then import application templates, start applications to complete service deployment, but still cannot shorten the process of operating system installation and software installation, so service deployment still takes a long time.
然而,采用现有技术进行业务部署时,业务部署速度较慢,需要的时间较长。However, when using the existing technology for service deployment, the service deployment speed is slow and takes a long time.
发明内容Contents of the invention
本发明的实施例提供一种业务部署的方法及装置,可以提高业务部署的速度,降低业务部署需要的时间。Embodiments of the present invention provide a method and device for service deployment, which can increase the speed of service deployment and reduce the time required for service deployment.
第一方面,本发明的实施例提供一种业务部署的方法,包括:In the first aspect, an embodiment of the present invention provides a method for service deployment, including:
根据用户选择的应用和选择的所述应用的配置,配置运行所述应用所需的基础架构,并生成参数配置脚本和编译脚本;According to the application selected by the user and the selected configuration of the application, configure the infrastructure required to run the application, and generate a parameter configuration script and a compilation script;
根据所述应用确定应用镜像,并将所述应用镜像配置到所述基础架构中的服务器节点上;determining an application image according to the application, and configuring the application image on a server node in the infrastructure;
启动所述应用,并在所述服务器节点上运行所述编译脚本,以及应用所述参数配置脚本。Start the application, run the compilation script on the server node, and apply the parameter configuration script.
在第一方面的第一种可能的实现方式中,所述配置运行所述应用所需的基础架构包括根据∑α·β≈{a,b,c,d,…}对运行所述应用所需的基础架构性能值进行评估,并确定所需的所述基础架构;其中,∑α表示所述应用要求的性能值;β表示冗余系数;a,b,c,d分别表示一组基础架构的性能值,{a,b,c,d,…}表示基础架构性能值的集合。In a first possible implementation manner of the first aspect, the configuration of the infrastructure required for running the application includes: evaluate the required infrastructure performance value, and determine the required infrastructure; where, ∑α represents the performance value required by the application; β represents the redundancy coefficient; a, b, c, d represent a set of basic Architecture performance values, {a, b, c, d, ...} represent the set of infrastructure performance values.
结合第一方面或第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述生成参数配置脚本和编译脚本之后还包括:将所述参数配置脚本和所述编译脚本下发到所述基础架构上,并保存在所述基础架构中的外部存储。With reference to the first aspect or the first possible implementation of the first aspect, in the second possible implementation, after generating the parameter configuration script and the compilation script, it further includes: combining the parameter configuration script and the compilation The script is delivered to the infrastructure and stored in an external storage in the infrastructure.
结合第一方面或第一方面的第一种或第二种可能的实现方式,在第三种可能的实现方式中,,根据所述应用确定应用镜像,并将所述应用镜像配置到所述基础架构中的服务器节点上,包括:With reference to the first aspect or the first or second possible implementation manner of the first aspect, in a third possible implementation manner, an application image is determined according to the application, and the application image is configured in the On the server nodes in the infrastructure, including:
根据所述应用,在基于结构的基础设施与计算机FBCI架构的管理节点管理的硬盘驱动器HDD库确定所述应用镜像,并通过HDD快照的方式将所述应用镜像配置到所述基础架构中的服务器节点上;或者,According to the application, the hard disk drive HDD library managed by the management node of the structure-based infrastructure and computer FBCI architecture determines the application image, and configures the application image to the server in the infrastructure by way of HDD snapshot on the node; or,
根据所述应用,在FBCI架构的管理节点管理的模板库中确定所述应用镜像,并通过硬盘拷贝的方式将所述应用镜像配置到所述基础架构中的服务器节点上。According to the application, the application image is determined in the template library managed by the management node of the FBCI architecture, and the application image is configured on the server node in the infrastructure by means of hard disk copy.
第二方面,本发明的实施例提供一种业务部署的装置,包括:In the second aspect, an embodiment of the present invention provides a device for service deployment, including:
管理节点,用于根据用户选择的应用和选择的所述应用的配置,配置运行所述应用所需的基础架构,并生成参数配置脚本和编译脚本;以及根据所述应用确定应用镜像,并将所述应用镜像配置到所述基础架构中的服务器节点上;The management node is configured to configure the infrastructure required to run the application according to the application selected by the user and the selected configuration of the application, and generate a parameter configuration script and a compilation script; and determine an application image according to the application, and The application image is configured on the server nodes in the infrastructure;
所述管理节点还用于,启动所述应用;The management node is further configured to start the application;
所述服务器节点,用于运行所述编译脚本,以及应用所述参数配置脚本。The server node is configured to run the compilation script and apply the parameter configuration script.
在第二方面的第一种可能的实现方式中,所述管理节点还包括:评估单元,用于根据∑α·β≈{a,b,c,d,…}对运行所述应用所需的基础架构性能值进行评估,并确定所需的所述基础架构;其中,∑α表示所述应用要求的性能值;β表示冗余系数;a,b,c,d分别表示一组基础架构的性能值,{a,b,c,d,…}表示基础架构性能值的集合。In a first possible implementation manner of the second aspect, the management node further includes: an evaluation unit, configured to evaluate the Evaluate the performance value of the infrastructure, and determine the required infrastructure; where, ∑α represents the performance value required by the application; β represents the redundancy coefficient; a, b, c, d represent a group of infrastructure The performance values of , {a, b, c, d, ...} represent the collection of infrastructure performance values.
结合第二方面或第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述管理节点还包括:With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner, the management node further includes:
下发单元,用于将所述参数配置脚本和所述编译脚本下发到所述基础架构上,并保存在所述基础架构中的外部存储。A delivery unit, configured to deliver the parameter configuration script and the compilation script to the infrastructure, and store them in an external storage in the infrastructure.
结合第二方面或第二方面的第一种或第二种可能的实现方式,在第三种可能的实现方式中,所述管理节点用于:根据所述应用,在基于结构的基础设施与计算机FBCI架构的管理节点管理的硬盘驱动器HDD库确定应用镜像,并通过HDD快照的方式将所述应用镜像配置到所述基础架构中的服务器节点上;或者,用于根据所述应用,在FBCI架构的管理节点管理的模板库中确定所述应用镜像,并通过硬盘拷贝的方式将所述应用镜像配置到所述基础架构中的服务器节点上。With reference to the second aspect or the first or second possible implementation of the second aspect, in a third possible implementation, the management node is configured to: according to the application, between the structure-based infrastructure and The hard disk drive HDD library managed by the management node of the computer FBCI architecture determines the application image, and configures the application image on the server node in the infrastructure through the HDD snapshot; or, according to the application, in the FBCI The application image is determined in the template library managed by the management node of the architecture, and the application image is configured on the server nodes in the infrastructure by means of hard disk copy.
本发明实施例提供一种业务部署的方法及装置,通过根据用户选择的应用和选择的所述应用的配置,配置运行所述应用所需的基础架构,并生成参数配置脚本和编译脚本;根据所述应用确定应用镜像,并将所述应用镜像配置到所述基础架构中的服务器节点上;启动所述应用,并在所述服务器节点上运行所述编译脚本,以及应用所述参数配置脚本。与采用现有技术进行业务部署时,业务部署速度较慢,采用的时间较长相比,本发明实施例提供的方案能够根据用户选择的应用自动配置基础架构以及生成参数配置脚本和编译脚本,使得可以提高业务部署的速度,降低业务部署需要的时间。Embodiments of the present invention provide a method and device for service deployment. According to the application selected by the user and the configuration of the application selected, the infrastructure required for running the application is configured, and a parameter configuration script and a compilation script are generated; The application determines an application image, and configures the application image on a server node in the infrastructure; starts the application, runs the compilation script on the server node, and applies the parameter configuration script . Compared with the business deployment using the existing technology, the business deployment speed is slow and the adoption time is long, the solution provided by the embodiment of the present invention can automatically configure the infrastructure and generate parameter configuration scripts and compilation scripts according to the application selected by the user, so that It can increase the speed of service deployment and reduce the time required for service deployment.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.
图1为本发明实施例1提供的一种业务部署的方法的流程图;FIG. 1 is a flowchart of a service deployment method provided in
图2为本发明实施例1提供的一种业务部署的装置的框图;FIG. 2 is a block diagram of a service deployment device provided in
图3为本发明实施例2提供的一种业务部署的方法的流程图;FIG. 3 is a flow chart of a service deployment method provided in Embodiment 2 of the present invention;
图4为本发明实施例2提供的FBCI架构示意图;FIG. 4 is a schematic diagram of the FBCI architecture provided by Embodiment 2 of the present invention;
图5为本发明实施例2提供的一种业务部署的装置的框图。FIG. 5 is a block diagram of an apparatus for service deployment provided by Embodiment 2 of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
实施例1Example 1
本发明实施例提供一种业务部署的方法,本发明实施例提供的方法可以在基于结构的基础设施与计算机(Fabric-based infrastructure and computers,FBCI)架构下实施,FBCI架构一般由独立的模块组装而成,通过一个转换底板相互连接。如图1所示,该方法包括以下步骤:The embodiment of the present invention provides a method for service deployment. The method provided by the embodiment of the present invention can be implemented under a Fabric-based infrastructure and computers (FBCI) architecture, and the FBCI architecture is generally assembled by independent modules. are formed and connected to each other through a conversion backplane. As shown in Figure 1, the method includes the following steps:
步骤101,根据用户选择的应用和选择的所述应用的配置,配置运行所述应用所需的基础架构,并生成参数配置脚本和编译脚本;
基础架构指在将服务器连接存储设备和网络设备的基础上,再安装操作系统。The infrastructure refers to the installation of the operating system on the basis of connecting the server to storage devices and network devices.
可选的,根据用户选择的应用和选择的所述应用的配置,在配置引擎配置后得到硬件配置信息。这里,业务系统指用于满足企业或者组织业务需要的IT系统,通常包括数据库中间件和应用,数据库中间件指用于访问数据库的第三方软件或者服务,中间件是一种独立的系统软件或者服务程序,可以连接两个独立应用程序或独立系统,用于两个独立应用程序或独立系统之间的信息传递。应用(application,APP)指为企业或者组织业务提供服务的技术、系统、软件或者产品。Optionally, according to the application selected by the user and the selected configuration of the application, the hardware configuration information is obtained after the configuration engine is configured. Here, the business system refers to the IT system used to meet the business needs of enterprises or organizations, usually including database middleware and applications. Database middleware refers to third-party software or services used to access databases. Middleware is an independent system software or A service program can connect two independent applications or independent systems for information transfer between two independent applications or independent systems. Application (Application, APP) refers to technologies, systems, software or products that provide services for enterprises or organizations.
需要说明的是,不同的应用有不同的配置,这里配置指硬件配置和软件配置。例如,业务选择为数据库服务器,应用指支撑此业务的具体软件,例如,应用可以为Oracle、Mysql等不同类型的软件。然后选择数据库服务器的相关配置,相关配置可以为业务场景、用户数、具体产品、服务水平协议(ServiceLevel Agreement,SLA)以及其他网络互联协议(Internet Protocol,IP)域名服务器(Domain Name Server,DNS)相关性能参数等。将选择的相关配置存放于为应用配置的固态缓冲盘(Solid State Disk,SSD)中,以便加快业务部署的速度。SSD采用电子存储介质进行数据存储和读取的一种技术,突破了传统机械硬盘的性能瓶颈,拥有极高的存储性能,比传统硬盘的处理速度快和高效。It should be noted that different applications have different configurations, and the configurations here refer to hardware configurations and software configurations. For example, the business choice is a database server, and the application refers to the specific software that supports this business. For example, the application can be different types of software such as Oracle and Mysql. Then select the relevant configuration of the database server, which can be business scenarios, number of users, specific products, Service Level Agreement (ServiceLevel Agreement, SLA) and other network interconnection protocols (Internet Protocol, IP) domain name server (Domain Name Server, DNS) Related performance parameters, etc. Store the selected relevant configuration in the solid state buffer disk (Solid State Disk, SSD) configured for the application, so as to speed up the speed of business deployment. SSD is a technology that uses electronic storage media for data storage and reading, which breaks through the performance bottleneck of traditional mechanical hard disks, has extremely high storage performance, and is faster and more efficient than traditional hard disks.
本实施例中的业务部署即将业务系统在新的服务器上进行部署,使得在新的服务器上可以应用此业务系统。The service deployment in this embodiment is to deploy the service system on a new server, so that the service system can be applied on the new server.
进一步的,所述配置运行所述应用所需的基础架构包括:Further, the infrastructure required for the configuration to run the application includes:
根据∑α·β≈{a,b,c,d,…}对运行所述应用所需的基础架构性能值进行评估,并确定所需的所述基础架构。即,根据业务系统要求的性能值与相应的运行所述应用的基础架构的性能值集合进行比较,获得最接近业务系统要求的性能值的配置模型。According to Σα·β≈{a, b, c, d, . . . }, the performance value of the infrastructure required to run the application is evaluated, and the required infrastructure is determined. That is, the configuration model closest to the performance value required by the business system is obtained by comparing the performance value required by the business system with the corresponding set of performance values of the infrastructure running the application.
其中,∑α表示所述应用要求的性能值;例如某个实时帐务系统要求300W的在线事务处理基准程序(Transaction Processing Performance Council,TPCC)。TPCC为FBCI架构下评价性能的参数之一,TPCC可以为服务器和客户端构筑的整体系统的性能。Among them, Σα represents the performance value required by the application; for example, a real-time accounting system requires a 300W online transaction processing benchmark program (Transaction Processing Performance Council, TPCC). TPCC is one of the parameters for evaluating performance under the FBCI framework, and TPCC can provide the performance of the overall system constructed by the server and the client.
β表示冗余系数,例如,β可以为1.3,则∑α·β就需要TPCC的性能值为390w。β represents the redundancy coefficient, for example, β can be 1.3, then Σα·β requires the performance value of TPCC to be 390w.
a,b,c,d分别表示一组基础架构的性能值,{a,b,c,d,…}表示基础架构性能值的集合,可以取最接近要求的上轨,即最接近390w的上轨。a, b, c, d respectively represent a set of performance values of the infrastructure, {a, b, c, d, ...} represent the set of performance values of the infrastructure, you can take the upper track closest to the requirement, that is, the closest to 390w on track.
例如,a为150w TPCC的配置,CPU:4个10核CPU,CPU可以为至强XeonE7500;内存:16G;外部存储:SSD 10T存储空间。d为400W TPCC的配置,8个10核CPU,CPU可以为至强Xeon E7500;内存:512G;外部存储:SSD 10T存储空间。For example, a is the configuration of 150w TPCC, CPU: 4 10-core CPUs, the CPU can be Xeon E7500; memory: 16G; external storage: SSD 10T storage space. d is the configuration of 400W TPCC, eight 10-core CPUs, the CPU can be Xeon E7500; memory: 512G; external storage: SSD 10T storage space.
根据评估的规则:取最接近要求的上轨。因此,这里可以取性能值为400W。然后业务根据400w的配置模型,开始分配CPU、内存、外部存储等硬件资源进行构建。According to the evaluation rule: take the upper track closest to the requirement. Therefore, the performance value here can be taken as 400W. Then the business begins to allocate hardware resources such as CPU, memory, and external storage for construction based on the 400w configuration model.
进一步的,所述生成参数配置脚本和编译脚本之后还包括:Further, after the generating parameter configuration script and compiling script, it also includes:
将所述参数配置脚本和所述编译脚本下发到所述基础架构上,并保存在所述基础架构中的外部存储。Sending the parameter configuration script and the compiling script to the infrastructure and storing them in an external storage in the infrastructure.
步骤102,根据所述应用确定应用镜像,并将所述应用镜像配置到所述基础架构中的服务器节点上;
可选的,根据所述应用,在FBCI架构的管理节点管理的硬盘驱动器(HardDisk Drive,HDD)库确定所述应用镜像,并通过HDD快照的方式将所述应用镜像配置到所述基础架构中的服务器节点上;或者,Optionally, according to the application, the hard disk drive (HardDisk Drive, HDD) library managed by the management node of the FBCI architecture determines the application image, and configures the application image into the infrastructure by means of a HDD snapshot on the server node of the ; or,
根据所述应用,在FBCI架构的管理节点管理的模板库中确定所述应用镜像,并通过硬盘拷贝的方式将所述应用镜像配置到所述基础架构中的服务器节点上。According to the application, the application image is determined in the template library managed by the management node of the FBCI architecture, and the application image is configured on the server node in the infrastructure by means of hard disk copy.
步骤103,启动所述应用,并在所述服务器节点上运行所述编译脚本,以及应用所述参数配置脚本。
本发明实施例提供一种业务部署的方法,通过根据用户选择的应用自动配置基础架构以及生成参数配置脚本和编译脚本,使得可以提高业务部署的速度,降低业务部署需要的时间。The embodiment of the present invention provides a service deployment method, which can increase the speed of service deployment and reduce the time required for service deployment by automatically configuring the infrastructure according to the application selected by the user and generating parameter configuration scripts and compilation scripts.
本发明实施例提供一种业务部署的装置,该装置可以为FBCI,其中,FBCI架构由独立的模块组装而成,通过一个结构或者转换底板相互连接。如图2所示,该装置包括:管理节点201,服务器节点202;An embodiment of the present invention provides a device for service deployment, which may be an FBCI, wherein the FBCI architecture is assembled from independent modules and connected to each other through a structure or a conversion backplane. As shown in Figure 2, the device includes: a
管理节点201,用于根据用户选择的应用和选择的所述应用的相关配置,配置运行所述应用所需的基础架构,并生成参数配置脚本和编译脚本;以及根据所述应用确定应用镜像,并将所述应用镜像配置到所述基础架构中的服务器节点202上;The
进一步的,所述管理节点201包括:评估单元,用于根据∑α·β≈{a,b,c,d,…}对运行所述应用所需的基础架构性质值进行评估,并确定所需的所述基础架构;其中,∑α表示所述应用要求的性能值;β表示冗余系数;a,b,c,d分别表示一组基础架构的性能值,{a,b,c,d,…}表示基础架构性能值的集合,这些基础架构性能值的集合可以来源于根据业务模型,将相关知识和数据综合得出的配置库。Further, the
所述管理节点201还包括:下发单元,用于将所述参数配置脚本和所述编译脚本下发到所述基础架构上,并保存在所述基础架构中的外部存储。The
所述管理节点201用于:根据所述应用,在基于结构的基础设施与计算机FBCI架构的管理节点管理的硬盘驱动器HDD库确定所述应用镜像,并通过HDD快照的方式将所述应用镜像配置到所述基础架构中的服务器节点上;或者,根据所述应用,在FBCI架构的管理节点管理的模板库中确定所述应用镜像,并通过硬盘拷贝的方式将所述应用镜像配置到所述基础架构中的服务器节点上。The
所述管理节点201还用于,启动所述应用;所述服务器节点202,用于运行所述编译脚本,以及应用所述参数配置脚本。The
本发明实施例提供一种业务部署的装置,通过管理节点根据用户选择的应用自动配置基础架构以及生成参数配置脚本和编译脚本,管理节点确定应用镜像并配置应用镜像至基础架构的服务器节点上,启动应用,并由服务器节点运行所述编译脚本,并应用所述参数配置脚本,使得可以提高业务部署的速度,降低业务部署所需的时间。An embodiment of the present invention provides a device for service deployment. The management node automatically configures the infrastructure according to the application selected by the user and generates parameter configuration scripts and compilation scripts. The management node determines the application image and configures the application image on the server node of the infrastructure. Start the application, run the compilation script by the server node, and apply the parameter configuration script, so that the speed of service deployment can be improved and the time required for service deployment can be reduced.
实施例2Example 2
本发明实施例提供一种业务部署的方法,如图3所示,该方法包括:An embodiment of the present invention provides a method for service deployment, as shown in FIG. 3 , the method includes:
步骤301,根据用户选择的应用和选择的所述应用的配置,配置运行所述应用所需的基础架构;
用户根据自己的业务需求选择应用,并根据选择的应用选择配置。需要说明的是,不同的应用有不同的配置,这里的配置指硬件配置和软件配置。例如,业务选择为数据库服务器,然后选择数据库服务器的相关配置,相关配置可以为业务场景、用户数、具体产品、服务水平协议(Service Level Agreement,SLA)以及其他网络互联协议(Internet Protocol,IP)域名服务器(Domain NameServer,DNS)相关性能参数等,将选择的相关配置存放于为应用配置的固态缓冲盘(Solid State Disk,SSD)中,以便加快业务部署的速度。SSD采用电子存储介质进行数据存储和读取的一种技术,突破了传统机械硬盘的性能瓶颈,拥有极高的存储性能,比传统硬盘的处理速度快和高效。这里,业务系统指用于满足企业或者组织业务需要的I T系统,通常包括数据库中间件和应用,数据库中间件指用于访问数据库的第三方软件或者服务,中间件是一种独立的系统软件或者服务程序,可以连接两个独立应用程序或独立系统,用于两个独立应用程序或独立系统之间的信息传递。应用(application,APP)指为企业或者组织业务提供服务的技术、系统、软件或者产品。Users select applications according to their business needs, and select configurations based on the selected applications. It should be noted that different applications have different configurations, and the configurations here refer to hardware configurations and software configurations. For example, select the database server for the business, and then select the relevant configuration of the database server. The relevant configuration can be business scenarios, number of users, specific products, service level agreements (Service Level Agreement, SLA) and other Internet Protocols (Internet Protocol, IP) Domain Name Server (Domain NameServer, DNS) related performance parameters, etc., store the selected related configuration in the solid state buffer disk (Solid State Disk, SSD) configured for the application, so as to speed up the speed of business deployment. SSD is a technology that uses electronic storage media for data storage and reading, which breaks through the performance bottleneck of traditional mechanical hard disks, has extremely high storage performance, and is faster and more efficient than traditional hard disks. Here, the business system refers to the IT system used to meet the business needs of enterprises or organizations, usually including database middleware and applications, database middleware refers to third-party software or services used to access databases, middleware is an independent system software Or a service program that can connect two independent applications or independent systems for information transfer between two independent applications or independent systems. Application (Application, APP) refers to technologies, systems, software or products that provide services for enterprises or organizations.
需要说明的是,如图4所示为FBCI架构,其中,FBCI架构由独立的模块组装而成,通过一个转换底板相互连接。FBCI架构中包括:管理节点、中央处理器(Central Processing Unit,CPU)池、内存池以及存储池,管理节点管理FBCI架构中的CPU、内存以及外部存储,根据不同的应用分配不同的资源。需要说明的是,CPU池、内存池以及存储池都对应物理实体。本步骤中配置运行所述应用所需的基础架构即为对物理资源的分配,基础架构指在将服务器连接存储设备和网络设备的基础上,再安装操作系统,即指可以提供计算、存储和网络的架构系统。It should be noted that the FBCI architecture is shown in FIG. 4 , wherein the FBCI architecture is assembled from independent modules and connected to each other through a conversion backplane. The FBCI architecture includes: management node, central processing unit (Central Processing Unit, CPU) pool, memory pool, and storage pool. The management node manages the CPU, memory, and external storage in the FBCI architecture, and allocates different resources according to different applications. It should be noted that the CPU pool, the memory pool, and the storage pool all correspond to physical entities. In this step, configuring the infrastructure required to run the application is the allocation of physical resources. The infrastructure refers to the installation of the operating system on the basis of connecting the server to storage devices and network devices, which means that it can provide computing, storage and Network architecture system.
FBCI接收用户的选择应用和相关配置,在快速部署功能区的配置引擎配置后得到硬件配置信息,即在新服务器上配置需要的CPU、内存,外部存储空间,网络带宽等,即将硬件组合起来形成一台可以提供存储、网络的服务器。FBCI receives the user's selected application and related configuration, and obtains the hardware configuration information after configuring the configuration engine in the rapid deployment function area, that is, configures the required CPU, memory, external storage space, network bandwidth, etc. on the new server, and combines the hardware to form A server that can provide storage and network.
需要说明的是,步骤301,为根据用户选择的应用和选择的所述应用的相关配置,配置运行所述应用所需的硬件资源。It should be noted that, in
步骤302,根据∑α·β≈{a,b,c,d,…}对运行所述应用所需的基础架构性能值进行评估,并确定所需的所述基础架构;即,根据业务系统要求的性能值与相应的运行所述应用的基础架构的性能值集合进行比较,获得最接近业务系统要求的性能值的配置模型。
其中,∑α表示所述应用要求的性能值,例如,比如某个实时帐务系统要求300W的在线事务处理基准程序TPCC。TPCC为FBCI架构下评价性能的参数之一,TPCC可以为服务器和客户端构筑的整体系统的性能。Wherein, Σα represents the performance value required by the application, for example, a real-time accounting system requires a 300W online transaction processing benchmark program TPCC. TPCC is one of the parameters for evaluating performance under the FBCI framework, and TPCC can provide the performance of the overall system constructed by the server and the client.
β表示冗余系数,例如,β可以为1.3,则∑α·β就需要TPCC的性能值为390w。β represents the redundancy coefficient, for example, β can be 1.3, then Σα·β requires the performance value of TPCC to be 390w.
{a,b,c,d,…}表示基础架构性能值的集合,可以取最接近要求的上轨,即最接近390w的上轨。{a, b, c, d, ...} represent a collection of infrastructure performance values, and the upper track closest to the requirement can be taken, that is, the upper track closest to 390w.
例如,a为150w TPCC的配置,CPU:4个10核CPU,CPU可以为至强XeonE7500;内存:16G;外部存储:SSD 10T存储空间。d为400W TPCC的配置,8个10核CPU,CPU可以为至强Xeon E7500;内存:512G;外部存储:SSD 10T存储空间。其中,这些基础架构性能值的集合可以来源于根据业务模型,将相关知识和数据综合得出的配置库。For example, a is the configuration of 150w TPCC, CPU: 4 10-core CPUs, the CPU can be Xeon E7500; memory: 16G; external storage: SSD 10T storage space. d is the configuration of 400W TPCC, eight 10-core CPUs, the CPU can be Xeon E7500; memory: 512G; external storage: SSD 10T storage space. Wherein, the collection of these infrastructure performance values may be derived from a configuration library obtained by synthesizing relevant knowledge and data according to a business model.
根据评估的规则:取最接近要求的上轨。因此,这里可以取性能值为400W。然后业务根据400w的配置模型,开始分配CPU、内存、外部存储等资源进行构建。According to the evaluation rule: take the upper track closest to the requirement. Therefore, the performance value here can be taken as 400W. Then the business starts to allocate CPU, memory, external storage and other resources for construction according to the 400w configuration model.
步骤303,根据用户选择的应用和选择的所述应用的配置,生成参数配置脚本和编译脚本;
例如,部署数据库应用时,可以生成参数配置脚本,例如操作系统参数和配置脚本;数据库参数脚本;相关性能处理脚本等;还可以生成编译脚本,例如数据库编译脚本。For example, when deploying a database application, parameter configuration scripts can be generated, such as operating system parameters and configuration scripts; database parameter scripts; related performance processing scripts, etc.; compilation scripts can also be generated, such as database compilation scripts.
需要说明的是,将生成的参数配置脚本和编译脚本由FBC I架构中的管理节点直接下发到分配好的基础架构上,并保存在所述基础架构中的外部存储中。It should be noted that the generated parameter configuration script and compilation script are directly sent to the allocated infrastructure by the management node in the FBC I architecture, and stored in the external storage in the infrastructure.
步骤304,根据所述应用确定应用镜像,并将所述应用镜像配置到所述基础架构中的服务器节点上;
可选的,根据用户选择的应用,在FBCI架构的管理节点的硬盘驱动器HDD库或者模板库中确定应用镜像。如图4所示,HDD库或者模板库位于快速部署功能区中,由管理节点进行管理。HDD库或者模板库中保存着各项业务应用的应用镜像。Optionally, according to the application selected by the user, the application image is determined in the hard disk drive HDD library or the template library of the management node of the FBCI architecture. As shown in Figure 4, the HDD library or template library is located in the rapid deployment functional area and is managed by the management node. Application images of various business applications are stored in the HDD library or template library.
需要说明的是,本实施例支持两种方法将应用镜像配置到运行所述应用对应的服务器节点上:一种为HDD镜像,另一种为传统虚拟机。采用HDD镜像时,在FBCI架构的管理节点中保存的HDD库中选择应用镜像,并通过HDD快照的方式将应用镜像配置到所述基础架构中的服务器节点上;采用传统虚拟机时,在FBCI架构的管理节点中保存的模板库中选择应用镜像,并通过硬盘拷贝的方式将应用镜像配置到所述基础架构中的服务器节点上。It should be noted that this embodiment supports two methods for configuring the application image on the corresponding server node running the application: one is an HDD image, and the other is a traditional virtual machine. When using HDD mirroring, select the application mirroring from the HDD library stored in the management node of the FBCI architecture, and configure the application mirroring on the server nodes in the infrastructure through HDD snapshots; when using traditional virtual machines, the FBCI Select the application image from the template library stored in the management node of the architecture, and configure the application image to the server nodes in the infrastructure by means of hard disk copy.
步骤305,启动所述应用,并在所述服务器节点上运行所述编译脚本,以及应用所述参数配置脚本。Step 305, start the application, run the compilation script on the server node, and apply the parameter configuration script.
将应用镜像配置到运行所述应用对应的服务器节点上之后,启动应用。在应用启动过程中,基础架构中的服务器节点运行所述编译脚本,并应用所述参数配置脚本,即将IP DNS数据库参数、应用参数等配置通过参数配置脚本自动运用。After the application image is configured on the corresponding server node running the application, the application is started. During the application start-up process, the server nodes in the infrastructure run the compiled script, and apply the parameter configuration script, that is, the IP DNS database parameters, application parameters and other configurations are automatically applied through the parameter configuration script.
本发明实施例提供一种业务部署的方法,通过采用FBCI架构,根据用户选择的应用自动配置基础架构以及生成参数配置脚本和编译脚本,根据所述应用确定应用镜像,并将所述应用镜像配置到所述基础架构中的服务器节点上,启动所述应用,并在所述服务器节点上运行所述编译脚本,以及应用所述参数配置脚本。采用本发明实施例提供的业务部署方法进行业务部署时,能在很短时间内,例如10分钟内完成,使得可以提高业务部署的速度,降低业务部署所需的时间。The embodiment of the present invention provides a method for service deployment. By adopting the FBCI framework, the infrastructure is automatically configured according to the application selected by the user, and the parameter configuration script and the compilation script are generated, the application image is determined according to the application, and the application image is configured. Go to the server node in the infrastructure, start the application, run the compilation script on the server node, and apply the parameter configuration script. When the service deployment method provided by the embodiment of the present invention is used for service deployment, it can be completed within a short period of time, for example, within 10 minutes, so that the speed of service deployment can be increased and the time required for service deployment can be reduced.
本发明实施例提供一种业务部署的装置,该装置可以为FBCI,如图5所示,该装置包括:管理节点501,评估单元5011,下发单元5012,服务器节点502;An embodiment of the present invention provides a device for service deployment. The device may be FBCI. As shown in FIG. 5 , the device includes: a
管理节点501,用于根据用户选择的应用和选择的所述应用的配置,配置运行所述应用所需的基础架构,并生成参数配置脚本和编译脚本;The
进一步的,基础架构包括服务器节点、内存、外部存储等。进一步的,所述管理节点501中的评估单元5011,用于根据∑α·β≈{a,b,c,d,…}对运行所述应用所需的基础架构性能值进行评估,并确定所需的所述基础架构;其中,∑α表示所述应用要求的性能值;β表示冗余系数;{a,b,c,d,…}表示基础架构性能值的集合。这些基础架构性能值的集合可以来源于根据业务模型,将相关知识和数据综合得出的配置库。Further, the infrastructure includes server nodes, memory, external storage, etc. Further, the
例如某个实时帐务系统要求300W的TPCC。TPCC为FBCI架构下评价性能的参数之一,TPCC可以为服务器和客户端构筑的整体系统的性能。For example, a real-time accounting system requires a 300W TPCC. TPCC is one of the parameters for evaluating performance under the FBCI framework, and TPCC can provide the performance of the overall system constructed by the server and the client.
β表示冗余系数,例如,β可以为1.3,则∑α·β就需要TPCC的性能值为390w。β represents the redundancy coefficient, for example, β can be 1.3, then Σα·β requires the performance value of TPCC to be 390w.
a,b,c,d分别表示一组基础架构的性能值,{a,b,c,d,…}表示基础架构性能值的集合,可以取最接近要求的上轨,即最接近390w的上轨。a, b, c, d respectively represent a set of performance values of the infrastructure, {a, b, c, d, ...} represent the set of performance values of the infrastructure, you can take the upper track closest to the requirement, that is, the closest to 390w on track.
例如,a为150w TPCC的配置,CPU:4个10核CPU,CPU可以为至强XeonE7500;内存:16G;外部存储:SSD 10T存储空间。d为400W TPCC的配置,8个10核CPU,CPU可以为至强Xeon E7500;内存:512G;外部存储:SSD 10T存储空间。For example, a is the configuration of 150w TPCC, CPU: 4 10-core CPUs, the CPU can be Xeon E7500; memory: 16G; external storage: SSD 10T storage space. d is the configuration of 400W TPCC, eight 10-core CPUs, the CPU can be Xeon E7500; memory: 512G; external storage: SSD 10T storage space.
根据评估的规则:取最接近要求的上轨。因此,这里可以取性能值为400W。然后业务根据400w的配置模型,开始分配CPU、内存、外部存储等硬件资源进行构建。According to the evaluation rule: take the upper track closest to the requirement. Therefore, the performance value here can be taken as 400W. Then the business begins to allocate hardware resources such as CPU, memory, and external storage for construction based on the 400w configuration model.
进一步的,所述管理节点501中的下发单元5012,用于将所述参数配置脚本和所述编译脚本下发到所述基础架构上,并保存在所述基础架构中的外部存储。Further, the
所述管理节点501,还用于根据所述应用确定应用镜像,并将所述应用镜像配置到所述基础架构中的服务器节点上;The
进一步的,所述管理节点501具体用于:根据所述应用,在基于结构的基础设施与计算机FBCI架构的管理节点管理的硬盘驱动器HDD库确定应用镜像,并通过HDD快照的方式将所述应用镜像配置到所述基础架构中的服务器节点上;或者,用于根据所述应用,在FBCI架构的管理节点管理的模板库中确定所述应用镜像,并通过硬盘拷贝的方式将所述应用镜像配置到所述基础架构中的服务器节点上。Further, the
所述管理节点501还用于,启动所述应用,然后由所述服务器节点502运行所述编译脚本,以及应用所述参数配置脚本。The
本发明实施例提供一种业务部署的装置,通过管理节点根据用户选择的应用自动配置基础架构以及生成参数配置脚本和编译脚本,并确定应用镜像并配置应用镜像至服务器节点上;启动应用,服务器节点运行所述编译脚本,并应用所述参数配置脚本,使得可以提高业务部署的速度,降低业务部署需要的时间。The embodiment of the present invention provides a device for service deployment. The management node automatically configures the infrastructure according to the application selected by the user, generates parameter configuration scripts and compilation scripts, determines the application image and configures the application image to the server node; starts the application, the server The node runs the compilation script and applies the parameter configuration script, so that the speed of service deployment can be increased and the time required for service deployment can be reduced.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (8)
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2012/080992 WO2014036693A1 (en) | 2012-09-05 | 2012-09-05 | Service deployment method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103109515A true CN103109515A (en) | 2013-05-15 |
CN103109515B CN103109515B (en) | 2016-03-09 |
Family
ID=48316011
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201280001787.2A Active CN103109515B (en) | 2012-09-05 | 2012-09-05 | A kind of method of service deployment and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103109515B (en) |
WO (1) | WO2014036693A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105450607A (en) * | 2014-08-27 | 2016-03-30 | 华为技术有限公司 | Service deployment method, service deployment device and service deployment system |
CN105677356A (en) * | 2016-01-11 | 2016-06-15 | 上海雷腾软件股份有限公司 | Operation and maintenance method and device |
CN107665181A (en) * | 2016-07-27 | 2018-02-06 | 中兴通讯股份有限公司 | A kind of method and system of centralized configuration equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113900670B (en) * | 2021-12-08 | 2022-03-18 | 深圳市名竹科技有限公司 | Cluster server application deployment system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060253490A1 (en) * | 2005-05-05 | 2006-11-09 | International Business Machines Corporation | System and method for defining and generating document management applications for model-driven document management |
CN101232400A (en) * | 2008-02-25 | 2008-07-30 | 浪潮电子信息产业股份有限公司 | A method of operating system deployment via network boot |
CN101384995A (en) * | 2006-02-13 | 2009-03-11 | 国际商业机器公司 | Administration automation in application servers |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100583926C (en) * | 2007-01-18 | 2010-01-20 | 北京邮电大学 | Telecommunication traffic forming method and system facing position service |
-
2012
- 2012-09-05 CN CN201280001787.2A patent/CN103109515B/en active Active
- 2012-09-05 WO PCT/CN2012/080992 patent/WO2014036693A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060253490A1 (en) * | 2005-05-05 | 2006-11-09 | International Business Machines Corporation | System and method for defining and generating document management applications for model-driven document management |
CN101384995A (en) * | 2006-02-13 | 2009-03-11 | 国际商业机器公司 | Administration automation in application servers |
CN101232400A (en) * | 2008-02-25 | 2008-07-30 | 浪潮电子信息产业股份有限公司 | A method of operating system deployment via network boot |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105450607A (en) * | 2014-08-27 | 2016-03-30 | 华为技术有限公司 | Service deployment method, service deployment device and service deployment system |
CN105450607B (en) * | 2014-08-27 | 2018-08-14 | 华为技术有限公司 | A kind of method, apparatus and system of service deployment |
CN105677356A (en) * | 2016-01-11 | 2016-06-15 | 上海雷腾软件股份有限公司 | Operation and maintenance method and device |
CN107665181A (en) * | 2016-07-27 | 2018-02-06 | 中兴通讯股份有限公司 | A kind of method and system of centralized configuration equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2014036693A1 (en) | 2014-03-13 |
CN103109515B (en) | 2016-03-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11467755B2 (en) | Method and system for enabling agentless backup and restore operations on a container orchestration platform | |
JP6564050B2 (en) | Execute commands in a virtual machine instance | |
CN104601622B (en) | A kind of method and system for disposing cluster | |
JP6005706B2 (en) | Virtual machine morphing for heterogeneous mobile environments | |
CN112162927B (en) | Testing method, medium, device and computing equipment of cloud computing platform | |
US9218231B2 (en) | Diagnosing a problem of a software product running in a cloud environment | |
JP2018517189A5 (en) | ||
CN110661647A (en) | Life cycle management method and device | |
CN103077034B (en) | hybrid virtualization platform JAVA application migration method and system | |
CN107590075A (en) | A kind of method for testing software and device | |
CN113127133B (en) | Cross-platform virtual machine hot migration method, device, equipment and medium | |
US20210263676A1 (en) | Queue management in multi-site storage systems | |
US10552306B2 (en) | Automated test generation for multi-interface and multi-platform enterprise virtualization management environment | |
Koslovski et al. | Reliability support in virtual infrastructures | |
CN104468791A (en) | Private cloud IaaS platform construction method | |
CN114816676A (en) | System and method for realizing multi-tenant deployment of low code development platform | |
CN103118073A (en) | Virtual machine data persistence storage system and method in cloud environment | |
CN113297133B (en) | Service migration quality guarantee method and system | |
CN103109515B (en) | A kind of method of service deployment and device | |
CN106648838B (en) | Resource pool management configuration method and device | |
CN106126419A (en) | The adjustment method of a kind of application program and device | |
CN103713952B (en) | Virtual disk distributed-memory method based on UFS (Universal Flash Storage) | |
WO2021135326A1 (en) | Data backup method, apparatus and device, and medium | |
JP7465045B2 (en) | Increased virtual machine processing power for abnormal events | |
CN104796304A (en) | Cloud platform test method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |