CN108616397A - Deployment determination method and device - Google Patents

Deployment determination method and device Download PDF

Info

Publication number
CN108616397A
CN108616397A CN201810412104.1A CN201810412104A CN108616397A CN 108616397 A CN108616397 A CN 108616397A CN 201810412104 A CN201810412104 A CN 201810412104A CN 108616397 A CN108616397 A CN 108616397A
Authority
CN
China
Prior art keywords
configuration
deployed
server cluster
condition
deployment
Prior art date
Application number
CN201810412104.1A
Other languages
Chinese (zh)
Other versions
CN108616397B (en
Inventor
许广彬
张银滨
郭晓
鲍国栋
王建和
杨凯
Original Assignee
无锡华云数据技术服务有限公司
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 无锡华云数据技术服务有限公司 filed Critical 无锡华云数据技术服务有限公司
Priority to CN201810412104.1A priority Critical patent/CN108616397B/en
Publication of CN108616397A publication Critical patent/CN108616397A/en
Application granted granted Critical
Publication of CN108616397B publication Critical patent/CN108616397B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance or administration or management of packet switching networks
    • H04L41/08Configuration management of network or network elements
    • H04L41/0803Configuration setting of network or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance or administration or management of packet switching networks
    • H04L41/08Configuration management of network or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/10Network-specific arrangements or communication protocols supporting networked applications in which an application is distributed across nodes in the network

Abstract

The embodiment of the invention provides a deployment determination method and device and relates to the technical field of cloud calculation. The method comprises steps of judging whether working states a connected configuration server cluster meet a first configuration condition and judging whether parameters of a to-be-deployed physical machine connected with the configuration server cluster meet a second configuration condition; if all are yes, detecting whether configuration services of the configuration server cluster are normal; and if yes, determining that the configuration server cluster configures the to-be-deployed physical machine. According to the first configuration condition and the second configuration condition, the to-be-deployed physical machines are chosen, so corresponding to-be-deployed physical machines can be intelligent chosen according to difference requirements of different clients. Through automatic detection of a deployment environment, when detecting thatthe configuration services of the configuration server cluster are normal, the to-be-deployed physical machines are automatically deployed, so time consumption and labor consumption in manual practical operation are avoided, poor reliability of the deployment is avoided and success rate of the actual deployment of the to-be-deployed physical machines is greatly improved.

Description

部署确定方法及装置 Method and apparatus for determining deployment

技术领域 FIELD

[0001]本申请涉及云计算技术领域,具体而言,涉及一种部署确定方法及装置。 [0001] The present application relates to the field of cloud computing technology, particularly, to a method and apparatus for determining deployment.

背景技术 Background technique

[0002]以云计算为核心的技术近年来发展十分迅速,随着云计算领域的业务量不断的增力口,用于云计算的物理机(物理服务器)的数量也会随之不断的增加。 [0002] as the core of cloud computing technology developed rapidly in recent years, the volume of business with cloud computing continues to increase power port for the number of physical machine (physical server) cloud computing will also continue to increase .

[0003]随着物理机的使用数量攀升,对物理机的有效管理已经是一个非常重要的工作, 其中,实现物理机的有效部署己经成为了在物理机有效管理中非常重要的一项工作。 [0003] With the rise in the number of physical machines, the effective management of physical machines is already a very important job, which, effectively deployed to achieve the physical machine has become a physical machine to effectively manage a very important job .

发明内容 SUMMARY

[0004]本申请的目的在于提供一种部署确定方法及装置。 [0004] The object of the present application is to provide a method and apparatus for determining deployment.

[0005]本申请的实施例通过如下方式实现: Embodiment [0005] of the present application achieved by:

[0006]第一方面,本申请实施例提供了一种部署确定方法,应用于一调度器。 [0006] In a first aspect, the present application provides a method for determining deployment, applied to a scheduler. 所述方法包括:判断是否有所连接的一配置服务器集群的工作状态满足第一配置条件,且判断所述配置服务器集群连接的一待部署物理机的参数是否满足第二配置条件;在均为是时,检测所述配置服务器集群的配置服务是否正常;在为是时,确定由所述配置服务器集群配置所述待部署物理机。 The method comprising: determining whether the operation state has a configuration server connected to the cluster configuration satisfies a first condition, and determines whether the configuration parameters of the second configuration to deploy the physical condition of a machine connected to the server cluster to be met; in both is, detecting the configuration server cluster configuration service is normal; when is is determined by the configuration of the server cluster configuration to be deployed physical machine.

[0007] 结合上述第一方面提供的技术方案,在一些可能的实现方式中,所述判断是否有所连接的一配置服务器集群的工作状态满足第一配置条件,且判断所述配置服务器集群连接的一待部署物理机的参数是否满足第二配置条件。 [0007] combination with the above first aspect of the technical solution, possible in some implementations, the determining whether the cluster has a configuration server connected to a first configuration of the operation state satisfies the condition, and determines the configuration server cluster is connected the second condition is the configuration parameters of a physical machine to be deployed to meet. 包括:判断是否有m个配置服务器集群的工作状态满足所述第一配置条件,且判断是否有n个待部署物理机的参数满足所述第二配置条件,n和m均为正整数;在为是时,判断所述m个配置服务器集群中是否有一配置服务器集群的权重值为所有适配所述第一配置条件的权重值中的最高值,且判断所述n个待部署物理机中是否有一所述配置服务器集群连接一待部署物理机的权重值为所有适配所述第二配置条件的权重值中的最高值。 Comprising: determining whether there are m configuration server cluster configuration satisfies the first operational state condition, and determines whether the n-th physical machine to be deployed parameter meets the second configuration condition, n and m are both positive integers; at is, the highest weight value if there is a weight of all the first configuration adapted to condition a right cluster configuration server determines the weight of the m servers in a cluster configuration, and said n is determined to be deployed physical machine whether there is a configuration of the server cluster to be deployed a physical connection weights machine weight is the highest weight values ​​of all the second configuration adapted to the conditions.

[0008] 结合上述第一方面提供的技术方案,在一些可能的实现方式中,所述判断所述m个配置服务器集群中是否有一配置服务器集群的权重值为所有适配所述第一配置条件的权重值中的最高值,且判断所述n个待部署物理机中是否有一所述配置服务器集群连接一待部署物理机的权重值为所有适配所述第二配置条件的权重值中的最高值。 [0008] In combination with the above first aspect of the technical solution, possible in some implementations, the judging whether the m-configuration server cluster configuration server cluster weight a weight value of the first configuration adapted to all conditions the highest value of the weight values, and determines whether the right to a configuration server connected to a cluster of physical machines to be deployed all adaptations weight is the weight value of the second arrangement condition of the n physical machine to be deployed the highest value. 包括:获得满足所述第一配置条件的m个配置服务器集群中的x个配置服务器集群,以及获得在所述n个待部署物理机中所述x个配置服务器集群所连接的满足所述第二配置条件的y个待部署物理机,x为不大于m为正整数,y为不大于n为正整数;判断所述x个配置服务器集群中是否有一配置服务器集群的权重值为所有适配所述第一配置条件的权重值中的最高值,且判断所述y个待部署物理机中是否有一所述配置服务器集群连接一待部署物理机的权重值为所有适配所述第二配置条件的权重值中的最高值。 Comprising: obtaining a first configuration satisfying the condition of m x arranged in a server cluster configuration server clusters, and in the n physical machine to be deployed in the x satisfies the configuration server cluster is connected to the first y pending deployment of two physical machine arrangement condition, x is a positive integer not greater than m, y is a positive integer no greater than n; determining whether a server cluster configuration of the x weights a cluster configuration server is all adaptations weight the maximum value of the first weight values ​​in the layout condition, and determines whether the y a physical machine to be deployed in a configuration of the server cluster is connected to a physical machine to be deployed all weights is adapted to the second configuration the highest weight value condition in.

[0009] 结合上述第一方面提供的技术方案,在一些可能的实现方式中,所述检测所述配置服务器集群的配置服务是否正常之后,所述在为是时,确定由所述配置服务器集群配置所述待部署物理机之前。 [0009] In combination with the above first aspect of the technical solution, possible in some implementations, after the detection of the configuration server cluster configuration service is normal, as is described in, is determined by the configuration server cluster before configuring the physical machine to be deployed. 所述方法包括:在确定所述配置服务器集群的配置服务正常时,检测所述待部署物理机的部署状态是否正常,所述部署状态包括所述待部署物理机的:网络状态、电源状态和设备状态。 The method comprising: determining when the configuration server cluster configuration service normally detecting the physical machine to be deployed deployment status is normal, the state includes the deployment of a physical machine to be deployed: network status, power status, and equipment status.

[0010]结合上述第一方面提供的技术方案,在一些可能的实现方式中,所述配置服务包括:镜像服务和动态获取IP服务,所述检测所述配置服务器集群的配置服务是否正常。 [0010] combination with the above first aspect of the technical solution, possible in some implementations, the service configuration comprises: mirroring service and dynamic IP services, the detection of the configuration server cluster configuration service is normal. 包括:检测所述配置服务器集群的所述镜像服务是否正常,且检测所述配置服务器集群的所述动态获取IP服务是否正常,其中,在所述镜像服务正常,且所述动态获取IP服务正常时, 所述配置服务器集群的配置服务正常。 Comprising: detecting the configuration of the image of the service server cluster is normal, and detects the configuration of the server cluster dynamic IP service is normal, wherein the mirror service in the normal, and the normal service Dynamic IP when the configuration server cluster configuration services to normal.

[0011]第二方面,本申请实施例提供了一种部署确定装置,其特征在于,应用于一调度器。 [0011] In a second aspect, the present application provides a deployment determining means, characterized in that, applied to a scheduler. 所述装置包括:条件判断模块,用于判断是否有所连接的一配置服务器集群的工作状态满足第一配置条件,且判断所述配置服务器集群连接的一待部署物理机的参数是否满足第二配置条件。 Said apparatus comprising: a condition judging means for judging whether the operation state has a configuration server connected to the cluster configuration satisfies a first condition, and determines the configuration parameters of a physical machine to be deployed server cluster meets a second connection configuration conditions. 服务检测模块,用于在均为是时,检测所述配置服务器集群的配置服务是否正常。 Detection service module, is used for both the detection of the configuration server cluster configuration service is normal. 确定部署模块,用于在为是时,确定由所述配置服务器集群配置所述待部署物理机。 Determining the deployment module is configured to, when that is determined by the configuration of the server cluster configuration to be deployed physical machine. [0012]结合上述第二方面提供的技术方案,在一些可能的实现方式中,所述条件判断模块包括:第一条件判断单元,用于判断是否有m个配置服务器集群的工作状态满足所述第一配置条件,且判断是否有n个待部署物理机的参数满足所述第二配置条件,n和m均为正整数。 [0012] In combination with the above aspect of the second aspect is provided, in some possible implementations, the condition determining module comprises: a first condition judging means for judging whether the m-th operation state satisfies the configuration server cluster a first arrangement condition, and determines whether or not there are n parameters physical machine to be deployed configuration satisfies the second condition, n and m are both positive integers. 第二条件判断单元,用于在为是时,判断所述m个配置服务器集群中是否有一配置服务器集群的权重值为所有适配所述第一配置条件的权重值中的最高值,且判断所述n个待部署物理机中是否有一所述配置服务器集群连接一待部署物理机的权重值为所有适配所述第二配置条件的权重值中的最高值。 The second condition determination unit is configured to, if the value of the highest weight value is a weight value of the first configuration adapted to all conditions of the right right in a cluster configuration server determines the m servers in a cluster configuration, and determines to be deployed if the n highest weight value is a weight value of all the second configuration adapted to right right condition to be deployed a physical machine is connected to the server cluster configuration in a physical machine.

[0013]结合上述第二方面提供的技术方案,在一些可能的实现方式中,所述第二条件判断单元包括:获得子单元,用于获得满足所述第一配置条件的m个配置服务器集群中的x个配置服务器集群,以及获得在所述n个待部署物理机中所述x个配置服务器集群所连接的满足所述第二配置条件的y个待部署物理机,x为不大于m为正整数,y为不大于n为正整数。 [0013] In combination with the above aspect of the second aspect is provided, in some possible implementations, the second condition determination unit comprises: obtaining sub-unit, for obtaining satisfying the condition of m first configuration server cluster configuration x of the configuration server clusters, and in the n physical machine to be deployed in the x-th cluster configuration server connected to said y satisfies a condition to be configured to deploy a second physical machine, x is not larger than m is a positive integer, y is a positive integer no greater than n. 判断子单元,用于判断所述x个配置服务器集群中是否有一配置服务器集群的权重值为所有适配所述第一配置条件的权重值中的最高值,且判断所述y个待部署物理机中是否有一所述配置服务器集群连接一待部署物理机的权重值为所有适配所述第二配置条件的权重值中的最高值。 Determining sub-unit, for determining whether there is a maximum value of the right cluster configuration server adapting the weight of all the weight values ​​of the first condition is disposed in the determination of the x configuration server cluster, and determining the physical deployment pending y whether there is a configuration of the server cluster to be deployed a physical connection weights machine weight is the highest weight values ​​of all the second configuration adapted to the conditions in the machine.

[0014]结合上述第二方面提供的技术方案,在一些可能的实现方式中,所述装置包括:状态检测模块,用于在确定所述配置服务器集群的配置服务正常时,检测所述待部署物理机的部署状态是否正常,所述部署状态包括所述待部署物理机的:网络状态、电源状态和设备状态。 [0014] combination with the above aspect of the second aspect is provided, in some possible implementations, the apparatus comprising: state detecting means for determining when the configuration server cluster configuration normal service, detecting said to be deployed whether to deploy the normal state of the physical machine, including the deployment state of the physical machine to be deployed: network status, power status and device status.

[0015] 结合上述第二方面提供的技术方案,在一些可能的实现方式中,所述配置服务包括:镜像服务和动态获取IP服务。 [0015] In combination with the above aspect of the second aspect is provided, in some possible implementations, the service configuration comprises: mirroring service and dynamic IP service. 所述服务检测模块,具体用于检测所述配置服务器集群的所述镜像服务是否正常,且检测所述配置服务器集群的所述动态获取IP服务是否正常,其中,在所述镜像服务正常,且所述动态获取IP服务正常时,所述配置服务器集群的配置服务正常。 Said mirror service the service detection module is used to detect the configuration server cluster is normal, and detects the configuration of the server cluster dynamic IP service is normal, wherein the mirror service in normal and the dynamic access to IP services when a normal, configure the server to configure a cluster service normally.

[0016] 第三方面,本申请实施例提供了一种调度器,所述调度器包括:存储器、处理器和通信接口。 [0016] a third aspect, the present application provides a scheduler, the scheduler comprising: a memory, a processor and a communication interface. 所述处理器分别与所述存储器和所述通信接口连接,所述通信接口用于与配置服务器集群连接,所述存储器用于存储程序,所述处理器,用于通过调用存储在所述存储器中的程序,执行所述的部署确定方法。 Each said processor, said communications interface for connection with the memory and in communication with said interface server cluster configuration, a memory for storing a program, the processor for storing in the memory by invoking the program, executing the deployment determination method.

[0017] 第四方面,本申请实施例提供了一种具有处理器可执行的非易失的程序代码的计算机可读介质,所述程序代码使所述处理器执行所述的部署确定方法。 [0017] a fourth aspect, the present application provides a computer program code executable by a processor having a non-readable medium, the program code causes the processor to perform the method of determining deployment.

[0018] 本申请实施例的有益效果是: [0018] Advantageous effects of the embodiments of the present application is:

[0019] 通过根据第一配置条件和二配置条件来选择待部署物理机,实现了可以按照不同客户的不同个性化需求来自动智能选择对应的待部署物理机。 [0019] According to a first arrangement condition selected arrangement condition and II to be deployed through the physical machine may be automatically achieved in a different smart individual needs of different customer selects a corresponding physical machine to be deployed. 又通过对部署环境的自动检测,即在检测到配置服务器集群的配置服务正常时才自动去部署该待部署物理机,不仅避免人工实操的费时费力,还避免了部署的可靠性差,以及极大的提高了待部署物理机实际部署的成功率。 By automatically detecting and deployment environment, i.e., the detected service configuration server cluster configuration when normal automatic time-consuming to deploy the physical machine to be deployed, not only avoid manual practical operation, also to avoid the poor reliability of the deployment, and the electrode big increase the success rate of deployment of physical machine to be actually deployed.

[0020] 为使本申请的上述目的、特征和优点能更明显易懂,下文特举较佳实施例,并配合所附附图,作详细说明如下。 [0020] The above object of the present application, features and advantages can be more fully understood by reading the following preferred embodiments, and accompanied with figures are described in detail below.

附图说明 BRIEF DESCRIPTION

[0021] 为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。 [0021] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following figures will be used as required in the embodiments are introduced briefly in the embodiment, it should be understood that the drawings illustrate only certain embodiments of the present disclosure therefore not to be considered as limiting the scope of those of ordinary skill in the art is concerned, without creative efforts may still obtain other drawings according to these drawings.

[0022] 图1示出了本申请第一实施例提供的一种部署系统的结构框图; [0022] FIG. 1 shows a block diagram of a configuration of the present application deployment system according to a first embodiment;

[0023] 图2示出了本申请第二实施例提供的一种部署确定方法的流程图; [0023] FIG. 2 shows a flow diagram of a deployment embodiment of the present application provides a method for determining a second embodiment;

[0024]图3示出了本申请第三实施例提供的一种部署确定装置的结构框图; [0024] FIG. 3 shows a block diagram of a configuration of the present application deployment determining means provided in a third embodiment;

[0025]图4示出了本申请第三实施例提供的一种部署确定装置中条件判断模块的结构框图; [0025] FIG. 4 shows the present application provides for deploying the condition determining means determines a block diagram showing a third embodiment of the module;

[0026]图5示出了本申请第三实施例提供的一种部署确定装置中第二条件判断单元的结构框图。 [0026] FIG. 5 illustrates the present application provides for deploying the second condition determining means determines a block diagram showing a third embodiment of the unit.

具体实施方式 Detailed ways

[0027] 对待部署物理机的有效部署已经成为了在物理机有效管理中非常重要的一项工作。 [0027] treat the effective deployment of the deployment has become a physical machine physical machine to effectively manage a very important job. 在目前,对待部署物理机的部署大多可以采用两种方式,一种方式是,操作人员首先去到机房来选择实际需要部署的该待部署物理机,在对机房中线路进行检测并确定正常后, 则可通过将部署所需的光盘放入该待部署物理机中进行读取,从而通过读取光盘并配合人工手动操作的方式来实现待部署物理机的部署;另一种方式是,操作人员基于远程终端的控制来选择出需要部署的各待部署物理机,以及配合上PXE方式(preboot execute environment,预启动执行环境),可远程操控并同时部署大量的待部署物理机。 In the present, physical treatment Deploying machine can mostly be used in two ways, one way is, to the engine room to the operator first selects the actual need to deploy the physical machine to be deployed, in the machine room to detect and determine the normal line , may be deployed by the disc placed in the desired physical machine read to be deployed, so as to enable deployment of the physical machine to be deployed by reading an optical disc and a fitting manner manually; another way, the operation person based on the control of the remote terminal to be deployed to each of the selected physical unit to be deployed, and the fitting of PXE (preboot execute environment, pre-boot execution environment), and remote control can be deployed to be deployed a large number of physical machine.

[0028]但发明人经过长期的实践研宄发现,在现有的部署方式中,其人工部署的方式,大量手动操作不仅费时费力,且人工的失误概率导致其可靠性无法得到保障,并导致部署失败的概率极高。 [0028] However, the inventors After a long practice in a Subsidiary found in the existing deployment, the deployment of its artificial way, a lot of manual operation not only time consuming, and manual errors probability lead to its reliability can not be guaranteed, and lead the deployment of very high probability of failure. 若采用远程大量部署的方式,一旦在部署过程中物理环境(例如网络)出现问题,则会导致部署进程中断,其需要人工介入到各待部署物理机的机房中进行检修,并在检修排故后才能给重新进行部署。 If the room remotely deploy a large number of uses, appeared once during deployment physical environment (eg network) problem will result in the deployment process is interrupted, it requires manual intervention to be deployed to each physical machine for maintenance, repair and troubleshooting before it can give redeployment. 故远程大量部署的方式也存部署可靠性差,无法有效控制失败概率的问题,且也存在在出现故障后人工检修和重新部署费时费力的问题。 It is remotely deployed in large numbers also exist deploy poor reliability, failure probability can not effectively control the problem, and there are also maintenance manual and time-consuming re-deployment issues after a failure. 除此之夕卜,无论人工部署,还是远程部署,其对哪一台待部署物理机用于部署的选择大多由操作人员决定,其无法实现根据用户个性化需求来实现针对性的部署选择,给用户带来的体验性也不好。 In addition the evening Bu, whether deployed manually or remote deployment, which select the physical machine for deployment on Which to be deployed mostly determined by the operating personnel, its not possible to achieve the targeted deployment options according to the needs of individual users, to the user experience is not good.

[0029]以上现有技术中的方案所存在的缺陷,均是发明人在经过实践并仔细研宄后得出的结果,因此,上述问题的发现过程以及下文中本申请实施例针对上述向题所提出的解决方案,都应该是发明人在本申请过程中对本申请做出的贡献。 [0029] The above prior art solutions present drawbacks, the inventors are in practice and after careful study based on the results, therefore, the discovery process and in the following embodiment of the present application address the above embodiment to the above-described problems title the proposed solution, should be the contribution of the inventors of this application process to make this application.

[0030]基于上述研究,本申请实施例提供了一种部署确定方法方法及装置。 [0030] Based on the above, the present application provides a method and apparatus for determining the method of deployment. 本实施例通过根据第一配置条件和二配置条件来选择待部署物理机,实现了可以按照不同客户的不同个性化需求来自动智能选择对应的待部署物理机。 The present embodiment is selected according to a first embodiment of an arrangement condition and two physical configuration to be deployed by the machine conditions, it may be achieved automatically and intelligently select the corresponding physical machine to be deployed according to different individual needs of different customers. 又通过对部署环境的自动检测,即在检测到配置服务器集群的配置服务正常时才自动去部署该待部署物理机,不仅避免人工实操的费时费力,还避免了部署的可靠性差,以及极大的提高了待部署物理机实际部署的成功率。 By automatically detecting and deployment environment, i.e., the detected service configuration server cluster configuration when normal automatic time-consuming to deploy the physical machine to be deployed, not only avoid manual practical operation, also to avoid the poor reliability of the deployment, and the electrode big increase the success rate of deployment of physical machine to be actually deployed.

[0031]下面将结合本申请实施例中附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。 [0031] below with reference to the present application illustrated in the drawings embodiments, the technical solutions in the embodiments will be apparent to the present application, fully described, obviously, the described embodiments are only part of this application embodiment, but not all of the embodiments . 通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。 Components of the embodiments generally described herein and illustrated in the drawings in the present application may be arranged and designed in a variety of different configurations. 因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。 Accordingly, the following detailed description of the application provided in the drawings embodiments is not intended to limit the scope of the present application is claimed, but is merely representative of selected embodiments of the present application. 基于本申请的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。 Based on the embodiments of the present disclosure, all the other embodiments of the present art in the art without creative efforts shall fall within the scope of the present application.

[0032] 应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。 [0032] It should be noted: like reference numerals and letters refer to similar items in the following figures, and thus once an item is defined in one figure, then it need not be in the following figures further defined and interpretation. 术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。 The terms "first," "second," etc. are used merely to distinguish description, not to be construed to indicate or imply relative importance.

[0033] 第一实施例 [0033] First embodiment

[0034]请参阅图1,本申请实施例提供了一种部署系统10,该部署系统10包括:调度器11、 M个配置服务器集群12和N个待部署物理机13,M和N均为正整数,N不小于M。 [0034] Referring to FIG. 1, an embodiment is provided a deployment system 10 of the present application, the deployment system 10 includes: a scheduler 11, M 12 and a configuration server clusters to be deployed, the N physical machines 13, M and N are both a positive integer, N is not less than M.

[0035]调度器11与M个配置服务器集群12连接,以及,M个配置服务器集群12与N个待部署物理机13对应连接,且M个配置服务器集群12中的每个配置服务器集群12均对应连接N个待部署物理机13中的至少一个待部署物理机13。 [0035] The scheduler 1112 is connected to the server cluster configuration of M, and, the M cluster configuration server 12 is connected to the N 13 corresponds to the physical machine to be deployed, and the M configuration for each server cluster configuration server cluster 1212 all corresponding to the N connection 13 to be deployed in at least one physical machine physical machine 13 to be deployed.

[0036]其中,调度器11可以具备数据处理、受控制或执行控制操作的物理设备。 [0036] wherein, the scheduler 11 may include data processing, under the control of physical devices or performing a control operation. . 具体的, 调度器11包括:存储器、处理器和通信接口。 Specifically, the scheduler 11 comprising: a memory, a processor and a communication interface. 所述处理器分别与所述存储器和所述通信接口连接,所述通信接口用于与配置服务器集群连接,所述存储器用于存储程序,所述处理器, 用于通过调用存储在所述存储器中的程序,执行所述的部署确定方法。 Each said processor, said communications interface for connection with the memory and in communication with said interface server cluster configuration, a memory for storing a program, the processor for storing in the memory by invoking the program, executing the deployment determination method. 本实施例中,调度器11可以受控于控制终端,在控制终端的控制下,调度器11可以实现在M个配置服务器集群中选择合适的配置服务器集群来对对应的待部署物理机进行部署。 In this embodiment, the scheduler can be controlled by the control terminal 11, under the control of the control terminal, the scheduler 11 may be implemented to select the appropriate configuration server cluster configuration of M cluster of servers to be deployed deployment corresponding physical machine .

[0037] M个配置服务器集群12中每个配置服务器集群12可以包括:DHCP服务器(Dynami c Host Configuration Protocol,动态主机配置协议)、PXE服务器和镜像服务器。 [0037] M of configuration server cluster configuration server 12 for each cluster 12 may include: DHCP server (Dynami c Host Configuration Protocol, Dynamic Host Configuration Protocol), PXE server and the mirror server.

[0038] N个待部署物理机13中每个待部署物理机I3均可以为待部署物理服务器,其为硬件设备,用于云计算的计算。 [0038] N a physical machine 13 to be deployed in each of the physical machine to be deployed that can be deployed I3 physical server, which is a hardware device for computing cloud computing. 本实施例中,每个待部署物理机13在未部署时,即为处于未工作状态时,每个待部署物理机13均处于关机状态。 When the present embodiment, each of the physical machine 13 to be deployed when not deployed, that is in non-operation, to be deployed in each physical machine 13 are turned off.

[0039] 第二实施例 [0039] Second Embodiment

[0040] 请参阅图2,本申请实施例提供了一种部署确定方法,应用于部署系统中的调度器。 [0040] Referring to FIG. 2, the present application provides a method for determining deployment, the deployment system is applied to a scheduler. 该部署确定方法包括:步骤S100、步骤S200和步骤S300。 The deployment determination method comprises: step S100, a step S200 and step S300.

[0041] 步骤S100:判断是否有所连接的一配置服务器集群的工作状态满足第一配置条件,且判断所述配置服务器集群连接的一待部署物理机的参数是否满足第二配置条件。 [0041] Step S100: determining whether the cluster has a configuration server connected to a first configuration of the operation state satisfies the condition, and determines whether the configuration parameters of a second arrangement condition to be deployed physical server machine cluster is connected is satisfied.

[0042] 步骤S200:在均为是时,检测所述配置服务器集群的配置服务是否正常。 [0042] Step S200: In both is configured service detects the configuration server cluster is normal.

[0043] 步骤S300:在为是时,确定由所述配置服务器集群配置所述待部署物理机。 [0043] Step S300: When YES, it is determined by the configuration of the server cluster configuration to be deployed physical machine.

[0044]需要说明的是,调度器通过对该部署确定方法的执行,调度器可从M个配置服务器集群选择出至少一个配置服务器集群,并控制该至少一个配置服务器集群去部署该至少一个配置服务器集群所对应连接的至少一个待部署物理机,其中,该至少一个待部署物理机的数量不小于该至少一个配置服务器集群的数量。 [0044] Incidentally, the scheduler performs deployment by the method of determination, the scheduler may configure the M selected from at least one server cluster configuration server cluster, and controls the at least one server configured to deploy the at least one cluster configuration corresponding to the cluster number of servers connected to at least one physical machine to be deployed, wherein the at least one physical machine to be deployed is not less than the number of the at least one configuration of the server cluster.

[0045] 进一步的,考虑到部署确定方法执行的普适性,至少一个配置服务器集群中每个配置服务器集群的工作流程和至少一个配置服务器集群中其它配置服务器集群的工作流程均相同,以及至少一个待部署物理机中每个待部署物理机在被对应的一配置服务器集群部署的工程流程也与至少一个待部署物理机中的其它待部署物理机的工作流程也均相同。 [0045] Further, considering the universal deployment determination method executed, the at least one configuration server in the cluster for each cluster server configured workflow configuration server and at least one other cluster configuration workflow server cluster are the same, and at least a physical machine to be deployed by the corresponding physical machine in a server cluster configured to deploy at least one engineering process can be deployed with other workflow to be deployed in the physical machine physical machine are the same as each also be deployed. 为保证描述的清楚,以便于本领域的常规技术人员能够清楚的理解本方案的工作原理,本实施例以该调度器控制M个配置服务器集群中任一个配置服务器集群去部署该配置服务器集群所连接的一待部署物理机来对该部署确定方法进行说明。 To ensure the description clearly, so that the conventional skill in the art to clearly understand how the present embodiment, the present embodiment to the scheduler control of the M-configuration server in any cluster a configuration server cluster to deploy the configuration server cluster as connected to a physical machine to be deployed to determine the deployment method will be described.

[0046] 下面将具体说明上述部署确定方法的实现过程。 [0046] The implementation process will be described in detail in the above-described method for determining deployment.

[0047] 调度器可基于操作人员对其的控制来开始执行该部署确定方法,例如,调度器上安装有执行该部署确定方法的应用程序,调度器启动并运行该应用程序,则操作人员通过该应用程序的。 [0047] The scheduler can be started based on the control operator to deploy the determination method thereof, e.g., attached to the application program execution method for determining deployment of a scheduler, and the scheduler starts running the application, by the operator the application. 调度器可获得操作人员输入的第一配置条件和第二配置条件。 A first configuration and a second configuration condition input by the scheduler conditions the operation can be obtained.

[0048] 其中,第一配置条件和第二配置条件可以为操作人员预先输入并存储到调度器的指定存储区域中,以使调度器执行该部署确定方法均采用第一配置条件和第二配置条件来作为方法执行过程中的约束条件。 Designated storage area [0048] wherein the first configuration and a second configuration condition may be a condition of the operator inputted in advance and stored in the scheduler, such that the scheduler performs the determination method are used to deploy a first configuration and a second configuration condition constraint condition during execution of a method. 当然,该第一配置条件和第二配置条件可以为根据客户或者公司的需求,每次该部署确定方法执行之前时,操作人员将该相应的第一配置条件和第二配置条件输入并存储到调度器的指定存储区域中,以使调度器在执行当前的部署确定方法时,采用当前输入的第一配置条件和第二配置条件来作为方法执行过程中对应客户或者公司需求的个性化约束条件。 Of course, the first configuration and a second configuration condition may be a condition or according to the customer's needs, each time the determination is performed prior to the deployment of the method, the operator of the respective first configuration and the second configuration condition input conditions and stored designated storage area in the scheduler so that the scheduler while executing the current method for determining deployment, using the first configuration and the second configuration condition of the current input conditions as during the execution of the corresponding process or company customer needs individualized constraints .

[0049]可选的,本实施例以第一配置条件和第二配置条件为根据客户或者公司的需求而输入来进行说明,但并不作为对本实施例的限定。 [0049] Optionally, in this embodiment in a first configuration and a second configuration condition input conditions according to the needs of the customer or the company to be described below, but not limitative of the present embodiment.

[0050] 再者,调度器获得第一配置条件和第二配置条件的具体方式可以为例如,操作人员基于调度器启动并运行该应用程序时所显示的操作界面,在该操作界面中将第一配置条件和第二配置条件输入到该调度器中。 [0050] Further, the scheduler DETAILED conditions to obtain a first configuration and a second configuration, for example, conditions may be, the operator interface based on the schedule start and run when the application is displayed, the user interface in the first a second arrangement condition and the condition input to configure the scheduler.

[0051] 进一步的,第一配置条件可以为针对配置服务器集群所制定,即第一配置条件可以作为约束条件来使得调度器可从M个配置服务器集群中选择出满足该第一配置条件的一配置服务器集群。 [0051] Further, the first condition may be developed configuration for the server cluster configuration, i.e., a first configuration as a constraint condition may be selected such that the scheduler may configure the first condition is satisfied from the M arranged in a server cluster configure the server cluster. 相应的,第二配置条件则可以为针对待部署物理机所制定,即第二配置条件可以作为约束条件来使得调度器可从N个待部署物理机中选择出满足该第二配置条件的一待部署物理机。 Accordingly, the second arrangement conditions that may be deployed for the development of the physical machine, i.e. the second configuration as a constraint condition may be selected such that the scheduler may configure the second condition is satisfied from the N physical machine to be deployed in a physical machine to be deployed.

[0052]具体的,根据用户或公司的需求在制定该第一配置条件时,该第一配置条件可以包括但不限于:对配置服务器集群的负荷阈值定义、对配置服务器集群的型号参数定义和/ 或对配置服务器集群的地理位置定义等。 [0052] Specifically, according to the needs of the user or a company in the development of the first arrangement condition, the first configuration condition may include, without limitation: the configuration server cluster value defines a load threshold, the definition of the model parameters and the configuration server cluster / or geographical definitions to configure the server cluster. 而根据用户或公司的需求在制定该第二配置条件时,该第二配置条件可以包括但不限于:对待部署物理机的型号参数定义和/或对待部署物理机的数量定义等。 According to user requirements in the development of a company or the second arrangement condition, the second configuration condition may include, without limitation: type parameter defines the deployment of physical treatment machine and / or physical treatment machine deployment defined by the number or the like.

[0053]进一步的,为便于部署确定方法执行,调度器的指定存储区域中还预先存储了M个配置服务器集群的包括但不限于:型号参数数据和地理位置数据等;以及,调度器的指定存储区域中还预先存储了N个待部署物理机的包括但不限于:型号参数数据。 [0053] Further, for ease of deployment determination method executed, specify the storage area of ​​a scheduler is also previously stored server cluster configuration of M include, but are not limited to: model parameter data and location data; specified and a scheduler also previously stored in the storage area of ​​the N physical machines to be deployed include, but are not limited to: data model parameters.

[0054]作为第一种实施方式,调度器可根据第一配置条件,判断M个配置服务器集群是否有m个配置服务器集群的工作状态满足第一配置条件,其中,m为正整数,且m不大于M。 [0054] As a first embodiment, the scheduler may be configured in accordance with the first condition, the configuration server determines whether the M clusters with m-configuration server cluster configuration condition satisfies a first operational state, wherein, m is a positive integer, and m is not greater than M. 具体的,调度器可根据存储存的配置服务器集群的型号参数数据判断是否有配置服务器集群的型号参数数据满足第一配置条件的对应的配置服务器集群,以及调度器还通过与M个配置服务器集群交互,判断当前是否有配置服务器集群的负荷状态不大于第一配置条件中负荷阈值。 Specifically, the scheduler may configure the server if there is a cluster model parameter configuration data satisfies a first condition corresponding to the configuration of the server cluster, and a scheduler determines the data stored in accordance with model parameters stored by the configuration server cluster further configuration server cluster with the M interaction, it is determined whether the current cluster configuration server load state is not greater than the first load threshold condition configuration.

[0055]与此同时,调度器可根据第二配置条件,判断N个待部署物理机中是否有n个待部署物理机的参数满足第二配置条件,其中,n为正整数,且n不大于N。 [0055] At the same time, the scheduler may be configured according to a second condition, determining whether there are N physical machine to be deployed to be deployed in n parameter meets a second physical configuration conditions, wherein, n is a positive integer, and n is not greater than N. 具体的,调度器可根据存储存的待部署物理机的型号参数数据判断是否有待部署物理机的型号参数数据满足第二配置条件的对应的待部署物理机。 Model parameters determine the specific data, the scheduler may be deployed in a physical machine to be stored according to the storage model parameters whether the data to be deployed to meet the physical machine configuration corresponding to a second condition to be deployed physical machine.

[0056]在上述根据第一配置条件和第二配置条件产生的判断中,有任意一个不满足时, 则调度器判断为否,即调度器判断没有m个配置服务器集群的工作状态满足第一配置条件和/或判断没有n个待部署物理机的参数满足第二配置条件。 [0056] In the configuration according to the first determination condition is generated and a second configuration in conditions as described above, when there is any not satisfied, it is determined whether the scheduler, i.e. the scheduler is not determined m-th cluster configuration server satisfies the first operating state arrangement condition and / or parameter n is determined to be deployed without a physical configuration which meets a second condition. 进而调度器可终止后续流程的执行,并根据判断过程中不满足的条件提示失败原因。 Further scheduler may terminate the execution of the subsequent process, and prompt failure reason according to the conditions is not satisfied in the judging process.

[0057]在上述根据第一配置条件和第二配置条件产生的判断中,全部满足时,则调度器判断为是,即调度器判断有m个配置服务器集群的工作状态满足第一配置条件,且判断有n 个待部署物理机的参数满足第二配置条件。 [0057] In a first configuration according to a discrimination condition and the second condition above configuration, when all satisfied, the scheduler determines that the scheduler determines i.e. with m configuration server cluster configuration condition satisfies a first operating state, there are n parameters and determines a physical machine to be deployed configuration satisfies the second condition. 进而调度器可继续执行后续流程。 Further scheduler can proceed to subsequent processes. 即调度器可根据配置服务器集群与一连接的待部署物理机的对应关系,将m个配置服务器集群和n个待部署物理机取交集,从而获得满足第一配置条件和第二配置条件且具有连接关系的1个配置服务器集群和y个待部署物理机,即获得满足第一配置条件的m个配置服务器集群中的\ 个配置服务器集群,以及获得在该n个待部署物理机中X个配置服务器集群所连接的满足第二配置条件的y个待部署物理机,其中,x为不大于m为正整数,y为不大于n为正整数。 I.e., the scheduler may be deployed depending on the configuration server cluster to be connected to a corresponding relationship between a physical machine, the m and the n-th server cluster configuration to be deployed on the intersection physical machines, so as to obtain a first configuration to meet the condition and the second condition and having arranged a connection relationship and configuration server clusters to be deployed y a physical machine, namely a first configuration condition met the m servers in the cluster configuration \ a configuration server cluster, and access to be deployed in the n th physical machine X the second configuration server cluster configuration satisfies the condition of y connected physical machines to be deployed, wherein, x is a positive integer not greater than m, y is a positive integer no greater than n.

[0058]可以理解,本实施方式为根据第一配置条件和第二配置条件同时执行两个判断, 并取得判断交集作为结果。 [0058] It will be appreciated, the present embodiment is performed according to two determination conditions of the first configuration and the second configuration conditions are, as a result of the intersection is determined and obtained. 本实施方式作为本实施例的一种实施方式,并不作为限定。 One embodiment of the present embodiment according to the present embodiment, not as a limitation. 下述将介绍与本实施方式相对的第二种实施方式。 The following embodiment according to the present embodiment will be described with opposing second embodiment.

[0059]作为第二种实施方式,调度器可根据第一配置条件,判断M个配置服务器集群是否有x个配置服务器集群的工作状态满足第一配置条件,其中,x为正整数,且x不大于M。 [0059] As a second embodiment, the scheduler may be configured according to a first condition, determining whether there are clusters of M x a configuration server to configure the server cluster configuration condition satisfies a first operational state, wherein, x is a positive integer, and x is not greater than M. 具体的,调度器可根据存储存的配置服务器集群的型号参数数据判断是否有配置服务器集群的型号参数数据满足第一配置条件的对应的配置服务器集群,以及调度器还通过与[^个配置服务器集群交互,判断当前是否有配置服务器集群的负荷状态不大于第一配置条件中负荷阈值。 Specifically, the scheduler may configure the server cluster corresponding to whether a server cluster configuration data model parameters satisfy the first condition in accordance with configuration data determining model parameters stored in the memory configuration of a server cluster and a scheduler further by [^ a configuration server cluster interaction, it is determined whether the current cluster configuration server load state is not greater than the first load threshold condition configuration.

[0060] 在判断为否的时候,即调度器判断没有X个配置服务器集群的工作状态满足第一配置条件,进而调度器可终止后续流程的执行,并根据判断过程中不满足的条件提示失败原因。 [0060] When NO is determined, i.e., the scheduler determines the configuration of the X server is not a cluster configuration satisfies the first operational state condition, and thus the scheduler may terminate the execution of the subsequent process, and prompt the failure determination process according to the conditions is not satisfied the reason.

[0061] 在判断为是的时候,即调度器判断有x个配置服务器集群的工作状态满足第一配置条件,进而调度器可继续执行后续流程。 [0061] When the determination is Yes, i.e., there are x scheduler determines the working status of the cluster configuration server configuration satisfies a first condition, and thus the scheduler may proceed to a subsequent process. 进一步的,在N个待部署物理机中,调度器判断x 个配置服务器集群所连接的n个待部署物理机中是否有y个待部署物理机的参数满足第二配置条件。 Further, in the N physical machine to be deployed, the scheduler determines whether there are n x a physical machine to be deployed configuration server cluster is connected to be deployed in the y parameter meets a second physical configuration conditions. 即调度器也根据存储存的待部署物理机的型号参数数据判断是否有待部署物理机的型号参数数据满足第二配置条件的对应的待部署物理机。 Analyzing the data model parameter scheduler deploy i.e. physical machine to be stored according to the storage model parameters whether the data to be deployed to meet the physical machine configuration corresponding to a second condition to be deployed physical machine.

[0062]在判断为否的时候,即调度器判断没有y个待部署物理机的参数满足第二配置条件,进而调度器可终止后续流程的执行,并根据判断过程中不满足的条件提示失败原因。 [0062] When NO is determined, i.e. the scheduler is not judged to be deployed y parameter meets a second physical configuration conditions, and thus the scheduler may terminate the execution of the subsequent process, and prompt the failure determination process according to the conditions is not satisfied the reason. [0063]判断为是的时候,即调度器通过依次的两次判断获得了第一配置条件的m个配置服务器集群中的X个配置服务器集群,以及获得在该n个待部署物理机中x个配置服务器集群所连接的满足第二配置条件的y个待部署物理机,并继续执行后续流程。 [0063] determined to be the time that the scheduler is obtained by two conditions of a first configuration of sequentially determining the m servers in the cluster configuration of the X server cluster configuration, the deployed and in the physical machine to be in the n x y pending condition satisfies a second configuration server cluster configuration deployed physical machine is connected, and proceed to the subsequent process.

[00M]在通过第一种实施方式或者第二种实施方式获得x个配置服务器集群和对应的y 个待部署物理机后,终端设备还可基于x个配置服务器集群和对应的y个待部署物理机的来进一步的进行更为优化的选择。 [00M] After obtaining the x of y to be configured and the corresponding cluster server machine through the deployment of a first physical embodiment or the second embodiment, the terminal device may configure the server cluster based on the x and y corresponding to the number to be deployed further physical machine to a more optimal choice.

[0065]本实施例中,调度器的指定存储区域中还预先存储了M个配置服务器集群的包括但不限于:每个配置服务器集群针对不同第一配置条件而对应的不同权重值。 [0065] In this embodiment, the memory area designated scheduler also previously stored server cluster configuration of M include, but are not limited to: a different weight value for each server cluster configured for different conditions corresponding to the first configuration. 以及,调度器的指定存储区域中还预先存储了N个待部署物理机的包括但不限于:每个待部署物理机针对不同第二配置条件而对应的不同权重值。 And a designated storage area scheduler also previously stored in the N physical machines to be deployed include, but are not limited to: a different weight value for each unit to be deployed in different physical conditions corresponding to the second configuration.

[0066]进一步的,调度器根据第一配置条件,判断x个配置服务器集群中是否有一配置服务器集群的权重值为所有适配第一配置条件的权重值中的最高值。 [0066] Further, the scheduler according to the first arrangement condition, it is determined whether there are x server cluster configuration in a configuration server cluster weight is the highest weight of all weight values ​​adapted to the conditions in the first configuration. 本实施例中,配置服务器集群的权重值的最高值为最适配第一配置条件可以为:针对该第一配置条件,配置服务器集群的信息是最符合该第一配置条件的,那么该配置服务器集群的权重值在针对第一配置条件则为最高。 In this embodiment, the maximum value of the weight values ​​configuration server cluster configuration most suitable for a first condition may be: the conditions for the first configuration, the configuration information of the server cluster configuration is best meet the first condition, then the configuration right server cluster weight value was the highest for the first configuration condition. 例如,第一配置条件为配置服务器集群地点在北京,那么针对该第一配置条件,位于北京的一配置服务器集群的权重值则为最符合该第一配置条件的最高值。 For example, the first condition for the configuration server cluster configuration location in Beijing, the configuration for the first condition, the weight value of a Beijing-based server cluster configuration best meets the highest value compared to the first configuration condition.

[0067]故在判断为否时,即调度器判断m个配置服务器集群中没有一配置服务器集群的权重值为所有适配第一配置条件的权重值中的最高值,进而调度器可终止后续流程的执行,并根据判断过程中不满足的条件提示失败原因。 [0067] When it is determined NO, i.e., the scheduler determines the m servers in the cluster configuration is not permitted to configure a server cluster weight is the highest value of all weight values ​​adapted in a first arrangement condition, and thus the scheduler may terminate the subsequent process execution, and prompts the reason for the failure judging process according to the conditions are not satisfied.

[0068]故也在判断为是时,即调度器判断„!个配置服务器集群中有一配置服务器集群的权重值为所有适配第一配置条件的权重值中的最高值,进而调度器可继续执行后续流程。 进一步的,调度器判断n个待部署物理机中是否有一配置服务器集群连接一待部署物理机的权重值$所有适配第二配置条件的权重值中的最高值。本实施例中,待部署物理机的权重值的最高值为最适配第一配置条件可以为:针对该第二配置条件,待部署物理机的信息是最符合该第二配置条件的。例如,第二配置条件为待部署物理机的品牌为华硕且CPU数量为8核心,那么针对该第二配置条件,品牌为华硕且cpu数量为8核心的一待部署物理机的权重值则为最符合该第二配置条件的最高值。 [0068] Also it determines YES, i.e., the scheduler determines "! A cluster configuration server has the right to a configuration server cluster weight is the highest value of all weight values ​​adapted in a first arrangement condition, and thus the scheduler may continue perform a subsequent process. further, the scheduler determines the n be deployed if there is the highest weight values ​​a configuration server cluster connected to a to be deployed physical machine weighting value $ all adaptations second arrangement condition in the physical machine in this embodiment , the maximum value of the weight value to be deployed machine most suitable for the physical condition may be a first configuration: the conditions for the second configuration, a physical machine that is to be deployed configuration best conforms to the second condition, for example, the second configure physical condition to be deployed for the brand ASUS machine and the number of CPU core is 8, then the conditions for the second re-configuration value, and the brand ASUS 8-core cpu quantity of a physical machine to be deployed was right in line with most of the first Configuring the highest value of two conditions.

[0069]故在判断为否时,即调度器判断没有一待部署物理机的权重值满足第二配置条件,进而调度器可终止后续流程的执行,并根据判断过程中不满足的条件提示失败原因。 [0069] When it is determined NO, i.e., there is no right to a physical machine to be deployed scheduler determines a weight value of a second configuration satisfies the condition, the scheduler may terminate further perform a subsequent process, and prompt the failure determination process according to the conditions is not satisfied the reason. [0070]故也在判断为是时,即调度器判断有一待部署物理机的权重值满足第一配置条件,进而调度器确定出了一用于部署的待部署物理机,以及确定出部署该待部署物理机的配置服务器集群。 [0070] Also it determines YES, i.e., have the right to deploy the scheduler determines a physical machine to be re-configured value satisfies a first condition, and thus a scheduler determines a physical machine to be deployed for deployment, and deployment of the determined configure server clusters to be deployed physical machine.

[0071]相应的,在调度器选择出配置服务器集群,及由配置服务器集群部署的一待部署物理机,调度器在部署前需要对部署环境进行检测,以避免由于部署环境的问题,而在部署的过程中出现部署失败。 [0071] Accordingly, the scheduler selects a configuration server cluster, and deploying the configuration server cluster a be deployed physical machine, the scheduler needs to deployment environment for testing prior to deployment, in order to avoid deployment environment, and in deployment fails during deployment occurs.

[0072]是故,调度器可检测该配置服务器集群中是否存在配置服务器集群的负载超过预先设置的阀值、配置服务器集群的资源池中资源是否不足、配置服务器集群中是否有服务处于异常状态和/或检测用于调度该配置服务器集群的调度程序是否出现异常。 [0072] Therefore in scheduler may detect the presence of threshold load configuration server cluster exceeds a preset configuration of the server cluster, whether the allocation of resources in a resource pool deficiency server cluster, the configuration server if there is an abnormal state in the cluster service scheduler and / or scheduling for detecting the configuration server cluster is abnormal.

[0073] 调度器在确定出现负载超过阀值、资源是否不足、有服务处于异常状态和调度程序异常中的至少一个,那么调度器判定部署失败,终止部署流程的执行,并根据具体的异常情况生成相应的报告信息。 [0073] In the scheduler determines the load exceeds the threshold appears, if resources are insufficient, there are services in an abnormal state and the scheduler at least one exception, the scheduler determines that the deployment fails, terminate the implementation of the deployment process, and according to the specific exceptions generate the corresponding report information.

[0074] 而调度器在确定没有出现负载超过阀值、资源是否不足、有服务处于异常状态和调度程序异常中的任一个时,那么调度器判定可以继续执行部署。 [0074] The scheduler determines the load exceeds the threshold does not appear, resources are low, there is an abnormal state and any service in the scheduler exception of a time, the scheduler determines that the deployment can continue. 基于此,可选的,调度器可以去检测配置服务器集群的配置服务是否正常。 Based on this, an optional scheduler can be configured to detect service configuration server cluster is normal. 在本实施例中,配置服务器集群的配置服务包括:该配置服务器集群内镜像服务器的镜像服务和该配置服务器集群内DHCP服务器的动态获取IP服务。 In the present embodiment, the configuration server cluster configuration include: dynamic IP service within a service image of the configuration server and the mirror server cluster within the cluster configuration server DHCP server. 进一步的,为保证在后续部署该待部署物理机时镜像服务能够正常执行,调度器相应的检测配置服务器集群的镜像服务和动态获取IP服务是否正常。 Further, to ensure the normal image of the service can be performed in the subsequent deployment of the physical machine to be deployed, the scheduler server cluster configuration corresponding detection mirroring service and dynamic IP service is normal. 其中,在镜像服务正常,且动态获取IP服务正常时,配置服务器集群的配置服务正常。 Which, in normal service mirroring, and dynamic access to IP services when a normal, configure the server cluster configuration service normally.

[0075] 通过检测,在判断为否时,即说明镜像服务不正常和/或动态获取IP服务不正常。 [0075] By detecting, when it is determined NO, i.e. the service described abnormal mirror and / or dynamic IP service is not normal. 进一步的,调度器可根据预设的控制程序去对出现问题进行故障自恢复,并再次判断镜像服务和/或动态获取IP服务是否均恢复了正常。 Further, the scheduler can go to troubleshoot problems with self-recovery according to a preset control program, and determines mirroring services and / or whether to dynamically obtain IP services are back to normal again. 若还不正常,且终端设备还确定自恢复的次数大于一预设的恢复次数时,则调度器可终止后续流程的执行,并根据判断过程中故障情况提示失败原因。 If not normal, and also determines the number from the terminal device to recover a predetermined number of times greater than the recovery time, the scheduler may terminate the execution of the subsequent process, the cause of failure based on the determination and prompts during fault conditions. 若恢复至正常,调度器可继续后续流程的执行。 If returned to normal, the scheduler can proceed to subsequent processes.

[0076] 通过检测,在判断为是时,即说明镜像服务正常(恢复至正常)和动态获取IP服务正常(恢复至正常),即确定配置服务器集群的配置服务正常。 [0076] By detecting, in the determination it is YES, i.e., the normal image of the service description (return to normal) and normal dynamic IP service (returned to normal), i.e., determining the configuration of the normal service server cluster configuration. 调度器可进一步去检测待部署物理机的部署状态是否正常。 State whether to deploy a scheduler may further be deployed to detect a physical machine is normal. 本实施例中,待部署物理机的部署状态包括待部署物理机的:网络状态、电源状态和设备状态。 Network status, power status and device status: In this example, the deployment status to be deployed physical machine comprises a physical machine to be deployed according to the present embodiment.

[0077] 具体的,调度器去检测待部署物理机的网络状态是否正常,并通过IPMI接口(Intelligent Platform Management Interface、智能平台管理接口)去检测待部署物理机的电源状态是否正常,以及去检测待部署物理机的设备状态是否正常。 [0077] Specifically, the scheduler to detect whether a network status to be deployed physical machine is normal, and through the IPMI interfaces (Intelligent Platform Management Interface, IPMI) to detect whether the power state to be deployed physical machine is normal, and to detect whether a physical device state machines to be deployed properly.

[0078] 通过检测,在判断为否时,即说明待部署物理机的网络状态不正常、待部署物理机的电源状态不正常和/或待部署物理机的设备状态不正常。 [0078] By detecting, when it is determined NO, i.e., it indicates that the network to be deployed physical machine state is not normal, the power to be deployed state machine abnormal physical and / or physical device state machines to be deployed is not normal. 调度器可终止后续流程的执行, 并根据判断过程中故障情况提示失败原因。 Scheduler may terminate the execution of the subsequent process, the cause of failure based on the determination and prompts during fault conditions.

[0079] 通过检测,在判断为是时,即说明待部署物理机的网络状态正常、待部署物理机的电源状态正常和待部署物理机的设备状态正常。 [0079] By detecting, in the determination is YES, i.e., the state indicates that the network to be deployed in the normal physical machine, to be deployed physical machine power state and a normal state of the device to be deployed in the normal physical machine. 此时,调度器可确定,无论配置服务器集群的配置服务,还是待部署物理机的部署状态,其均满足部署条件。 At this time, the scheduler may determine whether the service configuration server cluster configuration, or to be deployed, the deployment state of the physical machine, which satisfy the deployed condition. 故调度器确定由配置服务器集群配置待部署物理机。 Therefore, the scheduler determines the configuration server cluster configuration to be deployed physical machine.

[0080]本实施例中,在由配置服务器集群配置待部署物理机,以实现部署该待部署物理机部署的流程可以为:配置服务器集群设置PXE启动,配置服务器集群通过PXE部署待部署物理机的网络操作系统。 [0080] In this embodiment, by the configuration server cluster configuration to be deployed physical machine, to effect the flow of the to be deployed physical machine deployment deployment may be: a configuration server cluster settings PXE boot configuration server cluster via PXE deployment to be deployed physical machine network operating system. 之后,配置服务器集群设置网络操作系统中的agent启动,并通过agent获取镜像服务上的镜像。 After that, the server cluster configuration settings in the agent network operating system startup time and gets on the mirror image of the service through the agent. 再者,配置服务器集群通过agent将镜像部署到待部署物理机的硬盘中,并通过agent对待部署物理机进行配置设置。 Furthermore, by the configuration server cluster agent to the hard disk image deployment of the physical machine to be deployed, and the deployment of the configuration settings treating agent physical machine. 最后再重启通过硬盘启动该待部署物理机,则完成了对该待部署物理机的部署。 Finally, restart the start to be deployed by hard physical machine, then completed the deployment of the physical machine to be deployed.

[0081] 第三实施例 [0081] Third embodiment

[0082]请参阅图3,本申请实施例提供了一种部署确定装置100,应用于部署系统中的调度器。 [0082] Referring to FIG. 3, the present embodiment provides an application deployment determining means 100, is applied to the deployment of the system scheduler. 该部署确定装置100包括: The deployment determination apparatus 100 comprises:

[0083]条件判断模块110,用于判断是否有所连接的一配置服务器集群的工作状态满足第一配置条件,且判断所述配置服务器集群连接的一待部署物理机的参数是否满足第二配置条件。 [0083] The condition determination module 110 for determining whether the operation state has a configuration server connected to the cluster configuration satisfies a first condition, and determines the configuration server cluster to be connected to a deployment of a physical parameter meets a second machine configuration condition.

[0084] 服务检测模块120,用于在均为是时,检测所述配置服务器集群的配置服务是否正常。 [0084] Service detection module 120, is used to both detect the configuration server cluster configuration service is normal.

[0085]状态检测模块130,用于在确定所述配置服务器集群的配置服务正常时,检测所述待部署物理机的部署状态是否正常,所述部署状态包括所述待部署物理机的:网络状态、电源状态和设备状态。 [0085] The status detection module 130 for determining the configuration of a server cluster configuration service when properly detecting the physical machine to be deployed deployment status is normal, the state includes the deployment of a physical machine to be deployed: Network status, power status and device status.

[0086]确定部署模块140,用于在为是时,确定由所述配置服务器集群配置所述待部署物理机。 [0086] Deployment module 140 determines, at the time to be used, is determined by the configuration of the server cluster configuration to be deployed physical machine.

[0087]其中,服务检测模块120,具体用于检测所述配置服务器集群的所述镜像服务是否正常,且检测所述配置服务器集群的所述动态获取IP服务是否正常,其中,在所述镜像服务正常,且所述动态获取IP服务正常时,所述配置服务器集群的配置服务正常。 Said mirror service [0087] wherein, the service detection module 120, particularly for detecting the configuration server cluster is normal, and detects the configuration of the server cluster dynamic IP service is normal, wherein, in said mirror normal service, and the dynamic IP acquires the normal service, the configuration server cluster configuration normal service.

[0088] 请参阅图4,在本申请实施例提供中,条件判断模块110包括: [0088] Referring to FIG 4, in the present embodiment provides the application, the condition determination module 110 includes:

[0089]第一条件判断单元111,用于判断是否有m个配置服务器集群的工作状态满足所述第一配置条件,且判断是否有n个待部署物理机的参数满足所述第二配置条件,n和m均为正整数。 [0089] The first condition determination unit 111, arranged for determining whether a first condition m a server cluster configuration satisfies the operating state, and determines whether or not there are n parameters to be deployed to meet the physical condition of the second configuration of the machine , n and m are both positive integers.

[0090] 第二条件判断单元112,用于在为是时,判断所述m个配置服务器集群中是否有一配置服务器集群的权重值为所有适配所述第一配置条件的权重值中的最高值,且判断所述n个待部署物理机中是否有一所述配置服务器集群连接一待部署物理机的权重值为所有适配所述第二配置条件的权重值中的最高值。 [0090] The second condition determination unit 112, is configured to, if the weight value is the highest weight of all the first configuration adapted to condition a right right in the cluster configuration server determines the m-configuration server cluster value, and determines whether there is a right to a configuration server connected to a cluster of physical machines to be deployed is the highest weight of all weight values ​​adapted to the conditions of the second configuration of the n physical machine to be deployed.

[0091] 请参阅图5,在本申请实施例提供中,第二条件判断单元112包括:包括: [0091] Referring to FIG 5, an embodiment in the present application, the second condition judging unit 112 includes: includes:

[0092]获得子单元1121,用于获得满足所述第一配置条件的m个配置服务器集群中的x个配置服务器集群,以及获得在所述n个待部署物理机中所述\个配置服务器集群所连接的满足所述第二配置条件的y个待部署物理机,x为不大于m为正整数,y为不大于n为正整数。 [0092] The obtaining sub-unit 1121, configured to obtain a first condition is satisfied for the servers in the cluster configuration of m x of server cluster configuration, the deployed and in the n physical machine to be in the \ a configuration server satisfy the cluster connected to the second arrangement condition of y to be deployed physical machine, x is a positive integer not greater than m, y is a positive integer no greater than n. [0093]判断子单元1122,用于判断所述x个配置服务器集群中是否有一配置服务器集群的权重值为所有适配所述第一配置条件的权重值中的最高值,且判断所述y个待部署物理机中是否有一所述配置服务器集群连接一待部署物理机的权重值为所有适配所述第二配置条件的权重值中的最高值。 [0093] The determining subunit 1122, for determining whether there is a weight value is the highest weight of all the first configuration adapted to condition a right right cluster configuration server in the server cluster configuration in the x, y and determines the whether there is a pending deployment of a server cluster configuration to be deployed a physical connection weights machine weight is the highest weight values ​​of all the second configuration adapted to the conditions in the physical machine.

[0094]需要说明的是,由于所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。 [0094] Incidentally, since ordinary skill in the art may clearly understand that, for convenience and brevity of description, specific working process of the foregoing system, apparatus, and unit may refer to the corresponding process in the foregoing method embodiments , not discussed here.

[0095]本领域内的技术人员应明白,本申请实施例可提供为方法、系统、或计算机程序产品。 [0095] skill in the art should understand that the embodiments of the present application may provide a method, system, or computer program product embodiment. 因此,本申请实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。 Thus, embodiments may employ an entirely hardware embodiment of the present application embodiment, an entirely software embodiment, or an embodiment in conjunction with the form of software and hardware aspects. 而且,本申请实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD — ROM、光学存储器等)上实施的计算机程序产品的形式。 Form of a computer program product implemented on - and, in one or more embodiments may be employed which comprises a computer usable storage medium having computer-usable program code (a ROM, optical storage devices including but not limited to disk storage, the CD) embodiment of the present application.

[0096]综上所述,本申请实施例提供了一种部署确定方法及装置。 [0096] In summary, the present application provides a method and apparatus for determining deployment. 部署确定方法应用于一调度器;方法包括:判断是否有所连接的一配置服务器集群的工作状态满足第一配置条件,且判断配置服务器集群连接的一待部署物理机的参数是否满足第二配置条件;在均为是时,检测配置服务器集群的配置服务是否正常;在为是时,确定由配置服务器集群配置待部署物理机。 The method of determining is applied to a scheduler deployment; method comprising: determining whether the operation state has a configuration server connected to the cluster configuration satisfies a first condition, and determines the physical parameters of the deployment of a machine arranged to be connected to the server cluster meets a second configuration conditions; in both is to configure a service configuration server cluster detection is normal; when is is determined by the configuration server cluster configuration to be deployed physical machine.

[0097]通过根据第一配置条件和二配置条件来选择待部署物理机,实现了可以按照不同客户的不同个性化需求来自动智能选择对应的待部署物理机。 [0097] According to a first arrangement condition selected arrangement condition and II to be deployed through the physical machine may be automatically achieved in a different smart individual needs of different customer selects a corresponding physical machine to be deployed. 又通过对部署环境的自动检测,即在检测到配置服务器集群的配置服务正常时才自动去部署该待部署物理机,不仅避免人工实操的费时费力,还避免了部署的可靠性差,以及极大的提高了待部署物理机实际部署的成功率。 By automatically detecting and deployment environment, i.e., the detected service configuration server cluster configuration when normal automatic time-consuming to deploy the physical machine to be deployed, not only avoid manual practical operation, also to avoid the poor reliability of the deployment, and the electrode big increase the success rate of deployment of physical machine to be actually deployed.

[0098] 以上仅为本申请的优选实施例而己,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。 Embodiment [0098] above is merely a preferred embodiment of the present application but has not intended to limit the present application, those skilled in the art, the present application may have various changes and variations. 凡在本申请的精神和原则之内,所作的任何修改、 等同替换、改进等,均应包含在本申请的保护范围之内。 Any modification within the spirit and principle of the present application, the, equivalent substitutions, improvements should be included within the scope of the present application. 应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。 It should be noted: like reference numerals and letters refer to similar items in the following figures, and thus once an item is defined in one figure, then the following figures need not be further defined and explained.

[0099]以上,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。 [0099] above are only specific embodiments of the present disclosure, but the scope of the present application is not limited thereto, any skilled in the art in the art within the technical scope disclosed in the present application, variations or replacement that can be easily, It shall fall within the scope of the present application. 因此,本申请的保护范围应以权利要求的保护范围为准。 Accordingly, the scope of the present disclosure should be defined by the scope of the claims.

Claims (10)

1. 一种部署确定方法,其特征在于,应用于一调度器;所述方法包括: 判断是否有所连接的一配置服务器集群的工作状态满足第一配置条件,且判断所述配置服务器集群连接的一待部署物理机的参数是否满足第二配置条件; 在均为是时,检测所述配置服务器集群的配置服务是否正常; 在为是时,确定由所述配置服务器集群配置所述待部署物理机。 1. A method for determining deployment, characterized in that, applied to a scheduler; the method comprising: determining whether the operation state has a configuration server connected to the cluster configuration satisfies a first condition, and determines the configuration server cluster is connected the second condition is the configuration parameters of a physical machine to be deployed to meet; in both is, detecting the configuration server cluster configuration service is normal; in YES, it is determined by the configuration of said server cluster configuration to be deployed physical machine.
2. 根据权利要求1所述的部署确定方法,其特征在于,所述判断是否有所连接的一配置服务器集群的工作状态满足第一配置条件,且判断所述配置服务器集群连接的一待部署物理机的参数是否满足第二配置条件,包括: 判断是否有m个配置服务器集群的工作状态满足所述第一配置条件,且判断是否有n个待部署物理机的参数满足所述第二配置条件,11和111均为正整数; 在为是时,判断所述m个配置服务器集群中是否有一配置服务器集群的权重值为所有适配所述第一配置条件的权重值中的最高值,且判断所述n个待部署物理机中是否有一所述配置服务器集群连接一待部署物理机的权重值为所有适配所述第二配置条件的权重值中的最高值。 2. A method for determining the deployment of claim 1, wherein said determining whether the operation state has a configuration server connected to the cluster configuration satisfies a first condition, and the configuration is determined to be a cluster of servers connected to deploy parameters of the physical machine satisfies a second condition configuration, comprising: determining whether the state of the m-th working configuration server cluster configuration satisfies the first condition, and determines whether or not there are n parameters to be deployed to meet the physical configuration of the second machine conditions, 11 and 111 are both positive integers; at is YES, whether there is a right to re-configure the server cluster is the highest weight values ​​of all the first configuration adapted to the determination condition in the m-configuration server cluster, and determining whether the n has to be deployed configuration of said server cluster connected to a right of a physical machine to be deployed is the highest weight of all weight values ​​adapted to the second configuration of the physical condition of the machine.
3. 根据权利要求2所述的部署确定方法,其特征在于,所述判断所述m个配置服务器集群中是否有一配置服务器集群的权重值为所有适配所述第一配置条件的权重值中的最高值,且判断所述n个待部署物理机中是否有一所述配置服务器集群连接一待部署物理机的权重值为所有适配所述第二配置条件的权重值中的最高值,包括: 获得满足所述第一配置条件的m个配置服务器集群中的x个配置服务器集群,以及获得在所述n个待部署物理机中所述x个配置服务器集群所连接的满足所述第二配置条件的y个待部署物理机,x为不大于m为正整数,y为不大于n为正整数; 判断所述x个配置服务器集群中是否有一配置服务器集群的权重值为所有适配所述第一配置条件的权重值中的最高值,且判断所述y个待部署物理机中是否有一所述配置服务器集群连接一待部署物理机的权重 3. The method of determining the deployment according to claim 2, wherein the judging whether the m-configuration server cluster weight is all the first configuration adapted to condition a weight value weight configuration server cluster the highest value, and determines whether there is a right to a configuration server connected to a cluster of physical machines to be deployed is the highest weight of all weight values ​​adapted to the conditions of the second configuration of the n physical machine to be deployed, including : obtaining a first configuration satisfying the condition of m x arranged in a server cluster configuration server clusters, and in the n physical machine to be deployed in a cluster configuration server of the x satisfies the second connected the arrangement condition of y physical machines to be deployed, x is a positive integer not greater than m, y is a positive integer no greater than n; whether there is a right to re-configuration server cluster is adapted to all of the x is determined by the configuration server cluster said maximum value of the first weight values ​​in the layout condition, and determines whether the number y to be deployed in the right physical machine is connected to a physical machine to be deployed in a configuration of said server cluster weight 值为所有适配所述第二配置条件的权重值中的最高值。 Value of the weight values ​​of all adapter arrangement condition in the second highest value.
4. 根据权利要求3所述的部署确定方法,其特征在于,所述检测所述配置服务器集群的配置服务是否正常之后,所述在为是时,确定由所述配置服务器集群配置所述待部署物理机之前,所述方法包括: 在确定所述配置服务器集群的配置服务正常时,检测所述待部署物理机的部署状态是否正常,所述部署状态包括所述待部署物理机的:网络状态、电源状态和设备状态。 4. The method of determining deployment according to claim 3, characterized in that, after detecting the configuration of said server cluster configuration service is normal, as described in, it is determined by the configuration server cluster configuration to be the prior to deployment of a physical machine, the method comprising: determining when the configuration server cluster configuration normal service, detecting a physical machine to be deployed deployment status is normal, the state includes the deployment of a physical machine to be deployed: network status, power status and device status.
5. 根据权利要求4所述的部署确定方法,其特征在于,所述配置服务包括:镜像服务和动态获取IP服务,所述检测所述配置服务器集群的配置服务是否正常,包括: 检测所述配置服务器集群的所述镜像服务是否正常,且检测所述配置服务器集群的所述动态获取IP服务是否正常,其中,在所述镜像服务正常,且所述动态获取IP服务正常时, 所述配置服务器集群的配置服务正常。 The determination method according to claim 4, wherein the deployment claim, wherein said service configuration comprising: a mirroring service and dynamic IP services, the detection of the configuration server cluster configuration is normal service, comprising: detecting the the configuration server cluster mirror service is normal, and detects the configuration of the server cluster dynamic IP service is normal, wherein, in the normal mirroring service, and when the dynamic IP service normally acquired, the configuration configuration service server cluster is normal.
6.—种部署确定装置,其特征在于,应用于一调度器;所述装置包括: 条件判断模块,用于判断是否有所连接的一配置服务器集群的工作状态满足第一配置条件,且判断所述配置服务器集群连接的一待部署物理机的参数是否满足第二配置条件; 服务检测模块,用于在均为是时,检测所述配置服务器集群的配置服务是否正常; 确定部署模块,用于在为是时,确定由所述配置服务器集群配置所述待部署物理机。 6.- species deployment determining means, characterized in that, it applied to a scheduler; said apparatus comprising: a condition judging means for judging whether the operation state has a configuration server connected to the cluster configuration satisfies a first condition, and determines the configuration of the second condition is configured to be deployed physical parameters of a machine connected to the server cluster to meet; detection service module, is used for both the detection of the configuration server cluster configuration service is normal; determining deployment module, with when to is that determined by the configuration of the server cluster configuration to be deployed physical machine.
7. 根据权利要求6所述的部署确定装置,其特征在于,所述条件判断輭块包括: 第一条件判断单元,用于判断是否有m个配置服务器集群的工作状态满足所述第一配置条件,且判断是否有n个待部署物理机的参数满足所述第二配置条件,n和m均为正整数; 第二条件判断单元,用于在为是时,判断所述m个配置服务器集群中是否有一配置服务器集群的权重值为所有适配所述第一配置条件的权重值中的最髙值,且判断所述n个待部署物理机中是否有一所述配置服务器集群连接一待部署物理机的权重值为所有适配所述第二配置条件的权重值中的最高值。 7. The deployment of the determination apparatus according to claim 6, characterized in that said condition judging Er block comprises: a first condition judging means for judging whether the m satisfies the first configuration operating state configuration server cluster condition, and determines whether or not there are n parameters to be deployed to meet the physical configuration of the second machine condition, n and m are both positive integers; and a second condition judgment unit is configured to, configuration server determines the m Gao most value if there is a weight value of the weight of all the first configuration adapted to condition a right right configuration server cluster in a cluster, and determining whether there is a configuration of the server cluster to be connected to an n-th physical machine to be deployed right physical machine deployment adapting the weight value of weight values ​​of all of the second arrangement condition of the highest value.
8. 根据权利要求7所述的部署确定装置,其特征在于,所述第二条件判断单元包括: 获得子单元,用于获得满足所述第一配置条件的m个配置服务器集群中的x个配置服务器集群,以及获得在所述n个待部署物理机中所述x个配置服务器集群所连接的满足所述第二配置条件的y个待部署物理机,x为不大于m为正整数,y为不大于n为正整数; 判断子单元,用于判断所述x个配置服务器集群中是否有一配置服务器集群的权重值为所有适配所述第一配置条件的权重值中的最高值,且判断所述y个待部署物理机中是否有一所述配置服务器集群连接一待部署物理机的权重值为所有适配所述第二配置条件的权重值中的最高值。 Deployment according to claim 7, wherein said determining means, characterized in that, the second condition determination unit comprises: obtaining sub-unit, for obtaining satisfying the condition of m first configuration server cluster configuration in the x configuration server cluster, and obtaining the x-th cluster configuration server connected to the n satisfies the physical machine to be deployed in the physical machine to be deployed y a second arrangement condition, x is a positive integer not greater than m, y is a positive integer no greater than n; determining subunit, for determining whether there is a right to re-configure the server cluster is the highest weight values ​​of all the first configuration adapted to the determination condition of the x-configuration server cluster, and determining the number y to be deployed if there is a right to a configuration server connected to a cluster to be deployed physical machine weight is the highest value of the weight values ​​of all the second configuration adapted to the conditions in the physical machine.
9.根据权利要求8所述的部署确定装置,其特征在于,所述装置包括: 状态检测模块,用于在确定所述配置服务器集群的配置服务正常时,检测所述待部署物理机的部署状态是否正常,所述部署状态包括所述待部署物理机的:网络状态、电源状态和设备状态。 According to claim 8, wherein said deployment determining means, wherein, said apparatus comprising: state detecting means for determining the configuration of a server cluster configuration service when properly deployed be deployed detecting said physical machine whether the state is normal, the state includes the deployment of a physical machine to be deployed: network status, power status and device status.
10.根据权利要求9所述的部署确定装置,其特征在于,所述配置服务包括:镜像服务和动态获取IP服务; 所述服务检测模块,具体用于检测所述配置服务器集群的所述镜像服务是否正常,且检测所述配置服务器集群的所述动态获取IP服务是否正常,其中,在所述镜像服务正常,且所述动态获取IP服务正常时,所述配置服务器集群的配置服务正常。 Detecting the image of the service module, particularly for detecting the configuration server cluster; mirror service and dynamic IP services: 10. Deployment of the determination means according to claim 9, wherein said configuration includes service service is normal, and detects the configuration of the server cluster dynamic IP service is normal, wherein the mirror service in the normal, and the normal dynamic acquires the IP service, the configuration server cluster configuration normal service.
CN201810412104.1A 2018-04-28 2018-04-28 It disposes and determines method and device CN108616397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810412104.1A CN108616397B (en) 2018-04-28 2018-04-28 It disposes and determines method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810412104.1A CN108616397B (en) 2018-04-28 2018-04-28 It disposes and determines method and device

Publications (2)

Publication Number Publication Date
CN108616397A true CN108616397A (en) 2018-10-02
CN108616397B CN108616397B (en) 2019-05-03

Family

ID=63661535

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810412104.1A CN108616397B (en) 2018-04-28 2018-04-28 It disposes and determines method and device

Country Status (1)

Country Link
CN (1) CN108616397B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986272A (en) * 2010-11-05 2011-03-16 北京大学 Task scheduling method under cloud computing environment
CN103905226A (en) * 2012-12-26 2014-07-02 中兴通讯股份有限公司 Service platform automatic deployment method and device
US8856319B1 (en) * 2010-02-03 2014-10-07 Citrix Systems, Inc. Event and state management in a scalable cloud computing environment
CN104991826A (en) * 2015-06-09 2015-10-21 广州杰赛科技股份有限公司 Method and apparatus for deploying virtual machine
CN105141466A (en) * 2015-09-25 2015-12-09 浪潮(北京)电子信息产业有限公司 Operating system automation deployment method based on cloud platform and system thereof
CN105159704A (en) * 2015-08-05 2015-12-16 浪潮(北京)电子信息产业有限公司 Method and apparatus for batch deployment of operation systems
CN105324760A (en) * 2013-06-10 2016-02-10 亚马逊技术有限公司 Pre-configure and pre-launch compute resources
CN106341496A (en) * 2016-11-10 2017-01-18 郑州云海信息技术有限公司 Resource scheduling method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8856319B1 (en) * 2010-02-03 2014-10-07 Citrix Systems, Inc. Event and state management in a scalable cloud computing environment
CN101986272A (en) * 2010-11-05 2011-03-16 北京大学 Task scheduling method under cloud computing environment
CN103905226A (en) * 2012-12-26 2014-07-02 中兴通讯股份有限公司 Service platform automatic deployment method and device
CN105324760A (en) * 2013-06-10 2016-02-10 亚马逊技术有限公司 Pre-configure and pre-launch compute resources
CN104991826A (en) * 2015-06-09 2015-10-21 广州杰赛科技股份有限公司 Method and apparatus for deploying virtual machine
CN105159704A (en) * 2015-08-05 2015-12-16 浪潮(北京)电子信息产业有限公司 Method and apparatus for batch deployment of operation systems
CN105141466A (en) * 2015-09-25 2015-12-09 浪潮(北京)电子信息产业有限公司 Operating system automation deployment method based on cloud platform and system thereof
CN106341496A (en) * 2016-11-10 2017-01-18 郑州云海信息技术有限公司 Resource scheduling method and device

Also Published As

Publication number Publication date
CN108616397B (en) 2019-05-03

Similar Documents

Publication Publication Date Title
US9444762B2 (en) Computer network systems to manage computer network virtualization environments
US10044795B2 (en) Methods and apparatus for rack deployments for virtual computing environments
CN102934087B (en) When the network link is detected degraded operating migrating virtual machines among networked servers
US7454427B2 (en) Autonomic control of a distributed computing system using rule-based sensor definitions
US10003597B2 (en) Managing hardware reboot and reset in shared environments
US8589916B2 (en) Deploying and instantiating multiple instances of applications in automated data centers using application deployment template
US7765299B2 (en) Dynamic adaptive server provisioning for blade architectures
US7996525B2 (en) Systems and methods for dynamically provisioning cloud computing resources
US7703091B1 (en) Methods and apparatus for installing agents in a managed network
US8930543B2 (en) Dynamically building a set of compute nodes to host the user's workload
JP6005706B2 (en) Virtual machine morphing for heterogeneous mobile environment
US8417796B2 (en) System and method for transferring a computing environment between computers of dissimilar configurations
US8140624B2 (en) Automated deployment and configuration of applications in an autonomically controlled distributed computing system
US8638674B2 (en) System and method for cloud computing
US8909767B2 (en) Cloud federation in a cloud computing environment
US8595331B2 (en) Automated deployment and configuration of applications in an autonomically controlled distributed computing system
US9753713B2 (en) Coordinated upgrades in distributed systems
US7478097B2 (en) Application governor providing application-level autonomic control within a distributed computing system
US8910172B2 (en) Application resource switchover systems and methods
US8572138B2 (en) Distributed computing system having autonomic deployment of virtual machine disk images
JP6054522B2 (en) Integrated storage / vdi provisioning method
US9134982B2 (en) Automated configuration and installation of virtualized solutions
US7890613B2 (en) Program deployment apparatus and method
US7600005B2 (en) Method and apparatus for provisioning heterogeneous operating systems onto heterogeneous hardware systems
US8706879B2 (en) Automated discovery and inventory of nodes within an autonomic distributed computing system

Legal Events

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