WO2016041202A1 - Deployment method and apparatus based on cloud environment system - Google Patents

Deployment method and apparatus based on cloud environment system Download PDF

Info

Publication number
WO2016041202A1
WO2016041202A1 PCT/CN2014/086952 CN2014086952W WO2016041202A1 WO 2016041202 A1 WO2016041202 A1 WO 2016041202A1 CN 2014086952 W CN2014086952 W CN 2014086952W WO 2016041202 A1 WO2016041202 A1 WO 2016041202A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
deployment unit
deployed
policy
deployment
Prior art date
Application number
PCT/CN2014/086952
Other languages
French (fr)
Chinese (zh)
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 CN201480008418.5A priority Critical patent/CN105612727B/en
Priority to PCT/CN2014/086952 priority patent/WO2016041202A1/en
Publication of WO2016041202A1 publication Critical patent/WO2016041202A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a deployment method and apparatus based on a cloud environment system.
  • the SOA (Service-Oriented Architecture)-based cloud environment system includes a control platform and multiple nodes.
  • the control platform utilizes the computing power of the cloud computing and the SOA scheduling capability to uniformly manage and schedule the processes deployed on each node. This provides on-demand web services for individuals and businesses.
  • the process in each node of the cloud environment system is deployed in a static configuration manner. Specifically, the to-be-deployed process in the node to be deployed is pre-deployed into a software package; The package starts the process in the package.
  • the default value of which processes are deployed in which nodes is determined by the user experience, so that an inexperienced user generally has difficulty setting the processes to be deployed for each node in a short time, thereby Lead to less efficient deployment.
  • Embodiments of the present invention provide a deployment method and apparatus based on a cloud environment system to improve deployment efficiency.
  • a method for deploying a cloud environment based system including:
  • the control module determines the first node to be deployed in the cloud environment system
  • the control module acquires a node type of the first node
  • the control module compares a node type of the first node with a node class in a preset table The matching is performed to obtain a set of deployment units that can be deployed by the first node; wherein the preset table is used to record a correspondence between a node type and a deployment unit that can be deployed by a node having the node type;
  • the control module selects, according to a policy corresponding to the deployment unit in the deployable deployment unit set, a deployment unit that needs to be deployed by the first node in the set of deployable deployment units;
  • the control module deploys the deployment unit to be deployed in the first node.
  • the determining, by the first node to be deployed includes:
  • the node that is being started in the system is determined to be the first node to be deployed, or the node that is determined to be actually deployed in the system is different from the pre-deployed deployment unit is the first node to be deployed.
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes: a general policy, a single policy, Quantity policy, node type policy, resource policy.
  • the deployable deployment unit is configured according to a policy corresponding to a deployment unit in the deployable deployment unit set Selecting the deployment unit to be deployed by the first node in the collection, including:
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes a single policy or a quantity policy, according to the policy corresponding to the deployment unit in the deployable deployment unit set and the deployment unit in other nodes in the system, Selecting, in the set of deployable deployment units, a deployment unit to be deployed by the first node;
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy
  • selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit that the node needs to deploy.
  • the method further includes:
  • At least one of the first nodes is migrated under a trigger condition.
  • the migrating the at least one of the first nodes includes:
  • the triggering condition includes at least one of: a deployment unit in the first node The occupied resource is greater than or equal to a threshold, and at least one deployment unit in the first node is faulty, and the load of the system in which the first node is located is less than or equal to a threshold.
  • the migrating the at least one deployment unit of the first node including :
  • n migratable deployment units in the first node Determining n migratable deployment units in the first node; wherein n>1, n is an integer;
  • migratable deployment units are sequentially migrated according to the migration order.
  • the method further includes:
  • the first node When the first node is no longer a node in the system, at least one of the first nodes is deployed in other nodes in the system.
  • the deploying the at least one deployment unit of the first node in another node in the system includes:
  • At least one deployment unit of the first node is deployed in the target node.
  • the deployment unit includes at least one of the following: a process, Process group, virtual machine, application system.
  • the second aspect provides a deployment method based on a cloud environment system, including:
  • the unit to be deployed is deployed in the target node.
  • the policy corresponding to the deployment unit to be deployed includes: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
  • the selecting a target node for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed includes:
  • the target node is selected for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed and the deployment unit in other nodes in the system;
  • the policy corresponding to the deployment unit to be deployed includes a resource policy
  • the deployment unit to be deployed includes at least one of the following: a process, Process group, virtual machine, application system.
  • a deployment device based on a cloud environment system including:
  • a storage module configured to store a preset table, where the preset table is used to record a correspondence between a node type and a deployment unit deployable by a node having the node type;
  • Processing module for performing the following actions:
  • the processing module is specifically configured to: determine that a node that is being started in the system is a first node to be deployed, or determine a deployment unit that is actually running in the system and the foregoing The different nodes of the deployed deployment unit are the first nodes to be deployed.
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes: a general policy, a single policy, Quantity policy, node type policy, resource policy.
  • the processing module is specifically configured to:
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes a single policy or a quantity policy, according to the policy corresponding to the deployment unit in the deployable deployment unit set and the deployment unit in other nodes in the system, Selecting, in the set of deployable deployment units, a deployment unit to be deployed by the first node;
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy
  • selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit that the node needs to deploy.
  • the processing module is further configured to be used under a trigger condition Relocating at least one of the first nodes.
  • the processing module is specifically configured to:
  • the triggering condition includes at least one of: a deployment unit in the first node The occupied resource is greater than or equal to a threshold, and at least one deployment unit in the first node is faulty, and the load of the system in which the first node is located is less than or equal to a threshold.
  • the processing module is specifically configured to:
  • n migratable deployment units in the first node Determining n migratable deployment units in the first node; wherein n>1, n is an integer;
  • migratable deployment units are sequentially migrated according to the migration order.
  • the processing module is further configured to: when the When a node is no longer a node in the system, at least one of the first nodes is deployed in other nodes in the system.
  • the deployment module is specifically configured to:
  • At least one deployment unit of the first node is deployed in the target node.
  • the deployment unit includes at least one of the following: a process, Process group, virtual machine, application system.
  • the fourth aspect provides a deployment device based on a cloud environment system, including:
  • Processing module for performing the following actions:
  • the policy corresponding to the deployment unit to be deployed includes: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
  • the processing module is specifically configured to:
  • the target node is selected for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed and the deployment unit in other nodes in the system;
  • the policy corresponding to the deployment unit to be deployed includes a resource policy
  • the deployment unit to be deployed includes at least one of the following: a process, Process group, virtual machine, application system.
  • a fifth aspect provides a cloud environment system-based deployment apparatus, including: a memory and a processor;
  • the memory is for storing a set of codes for controlling the processor Do the following actions:
  • the preset table is used to record a node type and have the node type Correspondence between deployment units of nodes that can be deployed;
  • the processor is specifically configured to:
  • the node that is being started in the system is determined to be the first node to be deployed, or the node that is determined to be actually deployed in the system is different from the pre-deployed deployment unit is the first node to be deployed.
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes: a general policy, a single policy, Quantity policy, node type policy, resource policy.
  • the processor is specifically configured to:
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes a single policy or a quantity policy, according to the deployment order in the deployable deployment unit set a policy corresponding to the element and a deployment unit in the other nodes in the system, and selecting, in the set of deployable deployment units, the deployment unit to be deployed by the first node;
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy
  • selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit that the node needs to deploy.
  • the processor is further configured to:
  • At least one of the first nodes is migrated under a trigger condition.
  • the processor is specifically configured to:
  • the triggering condition includes at least one of the following: a deployment unit in the first node The occupied resource is greater than or equal to a threshold, and at least one deployment unit in the first node is faulty, and the load of the system in which the first node is located is less than or equal to a threshold.
  • the processor is specifically configured to:
  • n migratable deployment units in the first node Determining n migratable deployment units in the first node; wherein n>1, n is an integer;
  • migratable deployment units are sequentially migrated according to the migration order.
  • the processor is further configured to:
  • the first node When the first node is no longer a node in the system, at least one of the first nodes is deployed in other nodes in the system.
  • the processor is specifically configured to:
  • At least one deployment unit of the first node is deployed in the target node.
  • the deployment unit includes at least one of the following: a process, Process group, virtual machine, application system.
  • a sixth aspect provides a cloud environment system-based deployment apparatus, including a memory and a processor;
  • the memory is for storing a set of codes for controlling the processor to perform the following actions:
  • the unit to be deployed is deployed in the target node.
  • the policy corresponding to the deployment unit to be deployed includes: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
  • the processor is specifically configured to:
  • the target node is selected for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed and the deployment unit in other nodes in the system;
  • the policy corresponding to the deployment unit to be deployed includes a resource policy
  • the deployment unit to be deployed includes at least one of the following: a process, Process group, virtual machine, application system.
  • the cloud environment system-based deployment method and apparatus determine the node type of the first node and the first node to be deployed, and determine the deployable deployment unit set according to the node type of the first node, and then Determining the deployment units to be deployed by the first node according to the policy corresponding to the deployment unit in the deployable deployment unit set, so that the deployed deployment units are deployed in the first node. That is to say, the embodiment of the present invention can deploy a node by using an automatic control method; compared with the prior art, manual deployment is not required, thereby improving deployment efficiency.
  • FIG. 1 is a flowchart of a method for deploying a cloud environment system according to Embodiment 1 of the present invention
  • FIG. 2 is a flowchart of a method for deploying a cloud environment system according to Embodiment 2 of the present invention
  • FIG. 3 is a flowchart of a method for deploying a cloud environment system according to Embodiment 3 of the present invention
  • FIG. 4 is a schematic structural diagram of a deployment apparatus based on a cloud environment system according to Embodiment 4 of the present invention.
  • FIG. 5 is a schematic structural diagram of a deployment apparatus based on a cloud environment system according to Embodiment 5 of the present invention.
  • FIG. 6 is a schematic structural diagram of a deployment apparatus based on a cloud environment system according to Embodiment 6 of the present invention.
  • FIG. 7 is a schematic structural diagram of a cloud environment system-based deployment apparatus according to Embodiment 7 of the present invention.
  • the cloud environment system-based deployment method provided by the embodiment of the present invention is described in the following two aspects: “how to determine the deployment unit to be deployed for the node to be deployed” and “how to determine the target node for the deployment unit to be deployed”.
  • This embodiment describes a cloud environment system-based deployment method provided by an embodiment of the present invention by using the "how to determine the deployment unit to be deployed for the node to be deployed.” As shown in FIG. 1 , the cloud environment system-based deployment method provided by this embodiment includes:
  • the control module determines a first node to be deployed in the cloud environment system.
  • the execution body of the cloud environment system-based deployment method provided by the embodiment of the present invention may be a control module.
  • the cloud environment system-based deployment method provided by the embodiment of the present invention can be applied to an SOA-based cloud environment system; in this case, the control module can be integrated in a device independent of the cloud environment system, or can be integrated in the system. In any device.
  • the cloud environment system-based deployment method provided by the embodiment of the present invention may also be applied to a physical device; in this case, the control module may be integrated in a device independent of the physical device, or may be in the physical device. Processor.
  • system SOA-based cloud environment system
  • the "first node” can be any physical node or logical node that runs the deployment unit.
  • the deployment unit may include at least one of the following: a process, a process group, a virtual machine, an application system; wherein the process group is composed of multiple processes. It should be noted that, all the processes in a process group are bound together according to a certain rule, and the specific setting manner of the rule is not limited in the embodiment of the present invention. In general, all processes in a process group are simultaneously The department was moved or removed at the same time. In a specific implementation, some processes can be bound to a process group according to requirements, and the process group is used as a deployment unit.
  • the step 101 may include: determining that the node being started in the system is the first node to be deployed, or determining that the node that is actually running in the system is different from the pre-deployed deployment unit is the first node to be deployed.
  • starting includes: initial startup or restart;
  • nodes that are initially started in the system include: new nodes or existing nodes that are initially started in the system;
  • pre-deployed deployment units may Each deployment unit that needs to be deployed for the node that is pre-stored may also be a deployment unit that needs to be deployed for the node before the control module performs step 101.
  • control module may simultaneously deploy multiple first nodes according to the method provided by the embodiment of the present invention.
  • the control module acquires a node type of the first node.
  • the embodiment of the present invention does not limit the manner of the "node type", and can be implemented by using the method in the prior art.
  • the "node type” can be classified into a storage type, a switch type, a forwarding type, a calculation type, and a signaling type. Wait.
  • the control module executing step 102 can obtain the node type of the first node by means of information interaction or direct reading.
  • the control module matches a node type of the first node with a node type in a preset table, to obtain a deployment unit set that can be deployed by the first node, where the preset table is used to record a node.
  • the correspondence between a type and a deployment unit that can be deployed by a node with that node type is used to record a node.
  • a deployment unit with a node type deployable refers to a deployment unit that can theoretically be deployed on a node having the node type
  • a deployment unit to be deployed on a node refers to a deployment unit that can be deployed on the node according to actual conditions, that is, when The deployment unit that needs to be deployed in this node before.
  • the manner of setting the correspondence between the "node type” and the "deployable unit deployable by the node having the node type” is not limited in the embodiment of the present invention.
  • the number of deployment units that can be deployed by a node having the node type corresponding to a node type may be one or more.
  • different nodes with the same node type can deploy the same deployment unit, and different nodes with different node types can deploy the deployment units partially or completely the same or different.
  • the "first node deployable set of deployment units" may be composed of one or more deployment units that the first node may deploy.
  • the “preset table” may be pre-stored in the device where the control module is located, and the control module may match the node type of the first node with the node type in the preset table after acquiring the node type of the first node, and
  • the deployment unit corresponding to the node type of the node type of the first node in the table constitutes a deployment unit set that the first node can deploy.
  • the expressions of "preset tables” include but are not limited to: tables, charts, and the like.
  • the control module selects, according to the policy corresponding to the deployment unit in the deployable deployment unit set, the deployment unit that needs to be deployed by the first node in the set of deployable deployment units.
  • the policy corresponding to the deployment unit may be a policy defined in advance for the deployment unit, or a policy obtained through a policy customization interface.
  • the policy customization interface is used to enable the application to customize a specific policy.
  • the method for setting the policy corresponding to the deployment unit is not limited in the embodiment of the present invention.
  • the policy corresponding to the deployment unit may be set according to factors such as the application scenario and the purpose of the deployment unit.
  • the number of policies corresponding to one deployment unit may be one or more; the policies corresponding to different deployment units may be the same or different.
  • policies corresponding to the deployment unit may include but are not limited to the following:
  • Quantity Policy A policy that limits the number of deployed deployment units in the system and/or any one or more nodes.
  • the quantity policy corresponding to the deployment unit A is: deploying the corresponding deployment unit on at least one and up to five nodes in the system, and deploying at least two corresponding deployment unit policies in each node.
  • Node type policy A policy in which the corresponding deployment unit is deployed in a node of the system having the node type.
  • Resource policy A policy that limits the available resources of the nodes deployed by the corresponding deployment unit; wherein the "available resources” may include at least one of the following: available hard disks, available memory, available capacity, available bandwidth, and the like.
  • a deployment unit corresponds to at least one of “single policy, quantity policy, and general policy”; in addition, since “the deployable deployment unit” in this embodiment is determined according to the node type, step 103 is performed. The resulting deployable deployment units all meet the node type policy.
  • step 104 may include:
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes a single policy or a quantity policy, according to the policy corresponding to the deployment unit in the deployable deployment unit set and the deployment unit in other nodes in the system, Selecting, in the set of deployable deployment units, a deployment unit to be deployed by the first node;
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy
  • selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit to be deployed by the node; wherein the resource of the first node may specifically be an available resource of the first node.
  • the deployment unit set to be deployed by the first node is determined by the policy of the deployable deployment unit set corresponding to the deployment unit in the deployable deployment unit set; further, it may also be in other nodes.
  • the deployment unit, or the available resources of the first node, are determined; therefore, in the specific implementation, the deployment unit to be deployed by the first node may be empty; in this case, no deployment unit is deployed to the first node.
  • the control module deploys the deployment unit to be deployed in the first node.
  • the concept of the first node device is proposed in this document. Specifically, when the first node is a logical node, the first node device refers to the physical device where the first node is located; when the first node is In the case of a physical node, the first node device and the first node represent the same physical device.
  • the step 105 may specifically include: when the device where the control module is located is different from the first node device, the control module sends an indication message to the first node, where the indication message includes information indicating the deployment unit to be deployed, The first node runs the deployment unit to be deployed according to the indication message; when the device where the control module is located is the same as the first node device, the control module controls the deployment unit to be deployed to run in the first node.
  • the related instruction file of the deployment unit that the first node can deploy is pre-stored in the first node device.
  • deployment unit will always run once deployed to the node, unless the deployment unit fails, or is deleted, or the node is faulty; therefore, if not stated, the "nodes” mentioned in this article “Deployment unit” refers to the node that actually runs in this node.
  • the "deployment unit to be deployed” in step 105 can be used as the pre-deployed deployment unit corresponding to the first node when step 101 is executed next time.
  • the cloud environment system-based deployment method determines the node type of the first node and the first node to be deployed, and according to the node class of the first node Determining the set of deployment units that can be deployed, and determining the deployment units to be deployed by the first node according to the policy corresponding to the deployment unit in the deployable deployment unit set, thereby deploying the deployed deployment units in the first node. . That is to say, the embodiment of the present invention can deploy a node by using an automatic control method; compared with the prior art, manual deployment is not required, thereby improving deployment efficiency.
  • the method may further include: migrating at least one of the first nodes in a trigger condition.
  • the migrating the at least one deployment unit of the first node may include: deleting at least one deployment unit of the first node; and deleting the deleted according to a policy corresponding to the deleted at least one deployment unit At least one deployment unit is deployed in other nodes in the system.
  • the "trigger condition" in the optional implementation may include, but is not limited to, at least one of the following: the resource occupied by the deployment unit in the first node is greater than or equal to a threshold; at least one of the first nodes A deployment unit fails; the load of the system where the first node is located is less than or equal to a threshold.
  • the “resources occupied by the deployment unit in the first node” include, but are not limited to, the following: the ratio of the capacity of the deployment unit in the first node to the total capacity of the hard disk, and the capacity of the deployment unit in the first node. The proportion of the total memory capacity.
  • “Deployment unit failure” can be understood as: the deployment unit is unable to provide services properly. When the load of a system is small, the deployment units in one or more nodes can be migrated to other deployment units; of course, some deployment units can be shut down. It should be noted that, compared with a deployment unit in the prior art, the optional method can implement flexible configuration of the deployment unit, thereby improving system resource utilization.
  • the migrating the at least one deployment unit in the first node may include: determining n migratable deployment units in the first node; n>1, n being an integer; and migrating weight values according to n migratable deployment units Determine the migration order of n migratable deployment units; press N migrateable deployment units are migrated in sequence according to the migration order.
  • any deployment unit in the first node may correspond to a migration weight, which is used to represent the cost of the deployment unit to migrate out of the first node; the cost may specifically be reliability of the system or The impact of availability, where the impact on the availability of the system can be an impact on the business in the system (eg, causing business disruptions, etc.).
  • the corresponding migration weights of the same deployment unit in different nodes may be the same or different.
  • the control node may set a corresponding migration weight value of each deployment unit in the first node when deploying the deployment unit for the first node.
  • the "migrated deployment unit” refers to a deployment unit that can be migrated to other nodes under certain conditions; the specific setting of the condition is not limited in the embodiment of the present invention.
  • the deployment unit of the first node whose corresponding migration weight is greater than or equal to a threshold may be used as the migratable deployment unit in the first node.
  • the specific implementation manner of determining the n migratable deployment units in the first node is not limited in the embodiment of the present invention, for example, may be determined according to the “trigger condition”. Specifically, when the triggering condition is that the resource occupied by the deployment unit in the first node is greater than or equal to a threshold, the deployment unit that is greater than a threshold and whose migration weight is greater than a threshold may be used in the first node.
  • n migrateable deployment units when the trigger condition is that at least one deployment unit in the first node is faulty, the at least one deployment unit may be used as n migratable deployment units; when the trigger condition is the system where the first node is located When the load is less than or equal to a threshold, the deployment unit in the first node and the migration weight greater than a threshold may be used as the n migratable deployment units.
  • the migrateable deployment unit may be directly migrated.
  • the method may further include: when the first node is no longer a node in the system, the first node At least one of the deployment units is deployed in other nodes in the system.
  • the method may include: selecting, according to a policy corresponding to the at least one deployment unit of the first node, a target node for at least one deployment unit of the first node; deploying at least one deployment unit of the first node in the In the target node.
  • the first node is no longer a node in the system
  • the specific implementation method of “selecting a target node according to a policy corresponding to at least one deployment unit of the first node to at least one deployment unit in the first node” may refer to a related description in the following.
  • the cloud environment system-based deployment method provided by the foregoing embodiment is described by using the method of how to configure the node to be deployed.
  • the node where the control module is located is taken as an example.
  • the control node is different from the first node to be deployed.
  • the cloud environment system-based deployment method provided by this embodiment includes:
  • the control node uses the discovered one node as the first node to be deployed, and acquires the logical identifier of the first node.
  • a node discovered by the control node may be a node initially started in the system (including: a new node in the system or a node already existing in the system), or a node restarted in the system.
  • This embodiment does not limit the implementation method of the first node to be found by the control node, and can be implemented, for example, by using the method in the prior art.
  • the control module assigns a logical identifier to it, and records the logical identifier in a preset logical identifier set.
  • the control module uses the logical identifier to communicate with the node.
  • the preset logical identifier set is a set formed by the logical identifier assigned by the control node to the nodes in the system, and the preset logical identifier set is updated as the nodes in the system are updated.
  • the control module When the first node is a node that is initially started in the system, the control module has not assigned a logical identifier to the first node. In this case, the logical identifier of the first node acquired by the control node is empty. In addition, in this case, The logical identifier of the first node acquired by the control node may also be a logical identifier assigned by the control node in the other system when the first node is in another system. When the first node is a node that is restarted in the system, the control node has assigned a logical identifier to the first node. In this case, the logical identifier of the first node acquired by the control node is one of the preset logical identifier sets. Logical identity.
  • the control node determines whether the logical identifier belongs to a preset logical identifier set.
  • step 203 is performed; if not, the node is an initial node in the system or a new node in the system, and step 205 is performed.
  • Steps 201-202 may be referred to as a process in which the control node determines a deployment scenario, where the deployment scenario is a restart scenario or an initial startup scenario.
  • the deployment scenario may be determined by other methods, which is not limited in this embodiment.
  • the method may further include: assigning a logical identifier to the first node, and adding the assigned logical identifier to the preset In the logical identification set; in a subsequent process, the control node uses the logical identifier to communicate with the first node.
  • the control node acquires a deployment unit that is actually running in the first node.
  • control node when there is no node in the system, the control node may also perform step 203 under the trigger condition; that is, the control node may execute without performing steps 201-202.
  • Step 203 in this case, the "first node" is a node that has been started in the system.
  • the specific setting manner of the trigger condition is not limited in the embodiment of the present invention, for example, periodically.
  • the control node determines a deployment unit and a pre-deployment actually running in the first node. Whether the deployment unit is consistent.
  • step 205 is performed; if yes, the first node is not required to be deployed, and then ends.
  • the method may further include: the control node sending a deletion indication message to the first node, where the deletion indication message is used to delete the actual operation of the first node. All deployment units; the first node deletes all deployment units that it actually runs according to the delete message indication.
  • This optional method can avoid the problem of poor deployment accuracy when deploying the deployment unit to be deployed for the first node due to the deployment node already deployed in the first node.
  • step 204 if the determination result in step 204 is no, only the running, non-pre-deployed deployment unit may be deleted, and the deployment unit that is not deployed in the pre-deployed deployment unit is deployed in the first node.
  • the control node acquires a node type of the first node.
  • the control node matches the node type of the first node with the node type in the preset table to obtain a deployment unit set that can be deployed by the first node.
  • Table 1 it is a schematic diagram of a preset table:
  • the set of deployment units that can be deployed by the first node obtained in step 206 is: a deployment list.
  • the control node acquires a policy corresponding to the deployment unit in the deployable deployment unit set.
  • the control node selects a deployment unit to be deployed by the first node according to a policy corresponding to each deployment unit in the deployable deployment unit set.
  • step 208 Based on the example in step 207, the specific implementation of step 208 is illustrated below:
  • the deployment unit B determines whether the deployment unit B has been deployed in the system, and if so, determining that the deployment unit B is not the deployment unit to be deployed by the first node; if not, determining that the deployment unit B is the first node The deployed deployment unit.
  • For deployment unit C Determine deployment unit C as the deployment unit to be deployed on the first node.
  • the deployment unit D determines whether the first node has available memory, if not, determining that the deployment unit D is not the deployment unit to be deployed by the first node; if yes, determining that the deployment unit D is the first node to be deployed Deployment unit. It should be noted that, in this embodiment, the deployment unit D must conform to the node type policy, and the specific reason is referred to the foregoing embodiment 1.
  • the control node deploys the deployment unit to be deployed in the first node.
  • the deployment unit to be deployed obtained in step 208 is deployed in the first node. If the deployment unit A is a deployment unit to be deployed, the number of deployment units A deployed in the first node cannot exceed two (that is, the quantity policy in Table 2 is satisfied).
  • the cloud environment system-based deployment method determines the node type of the first node and the first node to be deployed, and determines the deployable deployment unit set according to the node type of the first node, and then according to the The policy corresponding to the deployment unit in the deployable deployment unit set determines the deployment unit that the first node needs to deploy, so that the deployed deployment units are deployed in the first node. That is to say, the embodiment of the present invention can deploy a node by using an automatic control method; compared with the prior art, manual deployment is not required, thereby improving deployment efficiency.
  • This embodiment describes a cloud environment system-based deployment method provided by an embodiment of the present invention by using the method of "how to determine a target node for a deployment unit to be deployed.” As shown in Figure 3
  • the cloud environment system-based deployment method provided by this embodiment includes:
  • the control module determines, in the cloud environment system, a policy corresponding to the deployment unit to be deployed and the deployment unit to be deployed.
  • deployment unit to be deployed in this embodiment may be a new deployment unit in the system, or may be a deployment unit that has been deployed in one or more nodes in the system.
  • the deployment unit to be deployed includes at least one of the following: a process, a process group, a virtual machine, and an application system.
  • the policy corresponding to the deployment unit to be deployed may include, but is not limited to, any one of the following: a general policy, a single policy, a quantity policy, a node type policy, a resource policy, and the like.
  • a deployment unit corresponds to at least one of “single policy, quantity policy, and general policy”.
  • the explanations of terms such as the policy corresponding to the deployment unit to be deployed, the process group, the general policy, the single policy, the quantity policy, the node type policy, and the resource policy may be referred to in the above embodiment. The first embodiment is not described here.
  • the control module selects a target node for the deployment unit to be deployed according to the policy corresponding to the deployment unit to be deployed. Specifically, a node that satisfies a policy corresponding to the deployment unit to be deployed is used as the target node.
  • step 302 may include:
  • the target node is selected for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed and the deployment unit in other nodes in the system;
  • the root The target node is selected for the deployment unit to be deployed according to the resource policy and resources of other nodes in the system.
  • the resources of other nodes may specifically be available resources of other nodes.
  • step 302 can be implemented as follows:
  • the policy corresponding to the deployment unit A is a single policy, it is determined whether the deployment unit A has been deployed in the system; if yes, the process ends; if not, any node in the system is used as the target node.
  • the policy corresponding to the deployment unit A is a quantity policy (for example, the quantity policy is: when the corresponding deployment unit is deployed on at least one and at most five nodes in the system, it is determined that the deployment unit has been deployed in the system) Whether the number of nodes of A is greater than or equal to 5, and if so, ends, if not, selects at least one and at most 5 nodes in the system as target nodes.
  • the quantity policy is: when the corresponding deployment unit is deployed on at least one and at most five nodes in the system, it is determined that the deployment unit has been deployed in the system.
  • the policy corresponding to the deployment unit A is a node type policy
  • one or more nodes having the node type in the system are used as target nodes.
  • the policy corresponding to deployment unit A is a resource policy (for example, the resource policy is: the corresponding deployment unit is deployed in a node with available memory), one or more available memory in the system The node acts as the target node.
  • a deployment unit may also correspond to multiple policies, and those skilled in the art should be able to infer the specific implementation steps in this case from the above examples, and will not be described herein.
  • the control module deploys the to-be-deployed unit in the target node.
  • step 303 in the foregoing Embodiment 1 may refer to the specific implementation manner of step 105 in the foregoing Embodiment 1.
  • the field provided in this embodiment In the scene, the relevant instruction file of the unit to be deployed may be pre-stored in the target node.
  • the cloud environment system-based deployment method determines a policy corresponding to the deployment unit to be deployed and the deployment unit to be deployed, and selects a target for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed.
  • a node thereby deploying the deployment unit to be deployed in the target node. That is to say, the embodiment of the present invention can determine the target node for a deployment unit by using an automatic control method, thereby deploying the target node; compared with the prior art, manual deployment is not required, compared with the prior art, Manual deployment is required, thus increasing deployment efficiency.
  • the embodiment of the present invention provides a cloud environment system-based deployment device 40, which is used to implement the cloud environment system-based deployment method shown in FIG. 1.
  • the deployment device 40 includes:
  • the storage module 401 is configured to store a preset table, where the preset table is used to record a correspondence between a node type and a deployment unit deployable by a node having the node type;
  • the processing module 402 is configured to perform the following actions:
  • the processing module 402 is specifically configured to: determine that the node that is being started in the system is the first node to be deployed, or determine that the node that is actually running in the system is different from the pre-deployed deployment unit is to be deployed. The first node.
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
  • processing module 402 is specifically configured to:
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes a single policy or a quantity policy, according to the policy corresponding to the deployment unit in the deployable deployment unit set and the deployment unit in other nodes in the system, Selecting, in the set of deployable deployment units, a deployment unit to be deployed by the first node;
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy
  • selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit that the node needs to deploy.
  • processing module 402 is further configured to migrate at least one deployment unit in the first node under a trigger condition.
  • the processing module 402 is specifically configured to: delete at least one deployment unit of the first node; deploy the deleted at least one deployment unit according to a policy corresponding to the deleted at least one deployment unit Among other nodes in the system.
  • the triggering condition includes at least one of the following: a resource occupied by a deployment unit in the first node is greater than or equal to a threshold, and at least one deployment unit in the first node is faulty, the first The load of the system where the node is located is less than or equal to a threshold.
  • the processing module 402 is specifically configured to: determine n migratable deployment units in the first node; where n>1, n is an integer; and according to the migration rights of the n migratable deployment units The value determines the migration order of the n migratable deployment units; The migration sequence sequentially migrates the n migratable deployment units.
  • the processing module 402 is further configured to: when the first node is no longer a node in the system, deploy at least one deployment unit of the first node in another node in the system. .
  • the processing module 402 is specifically configured to: select, according to a policy corresponding to the at least one deployment unit of the first node, a target node for at least one deployment unit of the first node; At least one of the deployment units is deployed in the target node.
  • the deployment unit includes at least one of the following: a process, a process group, a virtual machine, and an application system.
  • the deployment device 40 may be integrated in a device independent of the cloud environment system, or may be integrated in any device in the cloud environment system.
  • the cloud environment system-based deployment apparatus determines the node type of the first node and the first node to be deployed, and determines the deployable deployment unit set according to the node type of the first node, and then according to the The policy corresponding to the deployment unit in the deployable deployment unit set determines the deployment unit that the first node needs to deploy, so that the deployed deployment units are deployed in the first node. That is to say, the device can automatically deploy a node; compared with the prior art, manual deployment is not required, thereby improving deployment efficiency.
  • each module in Embodiment 4 may be embedded in a hardware form or independent of a processor of a cloud environment system-based deployment device, or may be stored in software in a cloud environment system-based deployment device.
  • the processor in order to facilitate the processor to perform the operations corresponding to the above modules, the processor may be a central processing unit (CPU), a microprocessor, a single chip microcomputer, or the like.
  • a deployment device 50 is provided for implementing the cloud environment system-based deployment method shown in FIG. 1.
  • the deployment device 50 includes: a memory 501, a processor 502, and a bus system. 503.
  • the memory 501 and the processor 502 are coupled together by a bus system 503, wherein the memory 501 may include a high speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
  • the bus system 503 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component) bus, or an EISA (Extended Industry Standard Architecture) bus.
  • the bus system 503 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 5, but it does not mean that there is only one bus or one type of bus.
  • the memory 501 is configured to store a set of codes for controlling the processor 502 to perform the following actions:
  • the preset table is used to record a node type and have the node type Correspondence between deployment units of nodes that can be deployed;
  • the processor 502 is specifically configured to: determine a section that is being started in the system. The point is the first node to be deployed, or the node that determines that the deployment unit actually running in the system is different from the pre-deployed deployment unit is the first node to be deployed.
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
  • the processor 502 is specifically configured to:
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes a single policy or a quantity policy, according to the policy corresponding to the deployment unit in the deployable deployment unit set and the deployment unit in other nodes in the system, Selecting, in the set of deployable deployment units, a deployment unit to be deployed by the first node;
  • the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy
  • selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit that the node needs to deploy.
  • the processor 502 is further configured to migrate at least one deployment unit in the first node under a trigger condition.
  • the processor 502 is further configured to delete at least one deployment unit of the first node, and deploy the deleted at least one deployment unit to the system according to the policy corresponding to the deleted at least one deployment unit.
  • the processor 502 is further configured to delete at least one deployment unit of the first node, and deploy the deleted at least one deployment unit to the system according to the policy corresponding to the deleted at least one deployment unit.
  • the processor 502 is further configured to delete at least one deployment unit of the first node, and deploy the deleted at least one deployment unit to the system according to the policy corresponding to the deleted at least one deployment unit.
  • the processor 502 is further configured to delete at least one deployment unit of the first node, and deploy the deleted at least one deployment unit to the system according to the policy corresponding to the deleted at least one deployment unit.
  • the triggering condition includes at least one of the following: a resource occupied by a deployment unit in the first node is greater than or equal to a threshold, and at least one deployment unit in the first node is faulty, the first The load of the system where the node is located is less than or equal to a threshold.
  • the processor 502 is specifically configured to: determine n migratable deployment units in the first node; where n>1, n is an integer; and according to the migration rights of the n migratable deployment units The value determines a migration order of the n migratable deployment units; and the n migratable deployment units are sequentially migrated according to the migration order.
  • the processor 502 is further configured to: when the first node is no longer a node in the system, deploy at least one deployment unit of the first node in another node in the system. .
  • the processor 502 is specifically configured to: select, according to a policy corresponding to the at least one deployment unit of the first node, a target node for at least one deployment unit of the first node; At least one of the deployment units is deployed in the target node.
  • the deployment unit includes at least one of the following: a process, a process group, a virtual machine, and an application system.
  • the cloud environment system-based deployment apparatus determines the node type of the first node and the first node to be deployed, and determines the deployable deployment unit set according to the node type of the first node, and then according to the The policy corresponding to the deployment unit in the deployable deployment unit set determines the deployment unit that the first node needs to deploy, so that the deployed deployment units are deployed in the first node. That is to say, the device can deploy a node by an automatic control method; compared with the prior art, manual deployment is not required, thereby improving deployment efficiency.
  • the embodiment of the present invention provides a cloud environment system-based deployment device 60, which is used to implement the cloud environment system-based deployment method shown in FIG.
  • the processing module 601 is configured to perform the following actions:
  • the storage module 602 is configured to store a policy corresponding to the deployment unit to be deployed.
  • the policy corresponding to the deployment unit to be deployed includes: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
  • processing module 601 is specifically configured to:
  • the target node is selected for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed and the deployment unit in other nodes in the system;
  • the policy corresponding to the deployment unit to be deployed includes a resource policy
  • the deployment unit to be deployed includes at least one of the following: a process, a process group, a virtual machine, and an application system.
  • the cloud environment system-based deployment apparatus determines the node type of the first node and the first node to be deployed, and determines the deployable deployment unit set according to the node type of the first node, and then according to the The policy corresponding to the deployment unit in the deployable deployment unit set determines the deployment unit that the first node needs to deploy, so that the deployed deployment units are deployed in the first node. That is to say, the device can deploy a node by an automatic control method; compared with the prior art, manual deployment is not required, thereby improving deployment efficiency.
  • each module in Embodiment 6 may be embedded in or independent of the processor of the user equipment UE in hardware, or may be stored in the memory of the device 70 in software, so that the processor can execute the call.
  • the processor may be a central processing unit (CPU), a microprocessor, a single chip microcomputer, or the like.
  • the device 70 is configured to implement the cloud environment system-based deployment method shown in FIG. 3, where the deployment device 70 includes a memory 701, a processor 702, and a bus system 703.
  • the memory 701 and the processor 702 are coupled together by a bus system 703, wherein the memory 701 may include a high speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
  • the bus system 703 can be an ISA bus, a PCI bus, or an EISA bus.
  • the bus system 703 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus.
  • the memory 701 is for storing a set of codes including computer operating instructions.
  • the code is used to control the processor 702 to perform the following actions:
  • the unit to be deployed is deployed in the target node.
  • the policy corresponding to the deployment unit to be deployed includes: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
  • processor 702 is specifically configured to:
  • the target node is selected for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed and the deployment unit in other nodes in the system;
  • the policy corresponding to the deployment unit to be deployed includes a resource policy
  • the deployment unit to be deployed includes at least one of the following: a process, a process group, a virtual machine, and an application system.
  • the deployment device 70 may be integrated in a device independent of the cloud environment system, or may be integrated in any device in the cloud environment system.
  • the cloud environment system-based deployment apparatus determines the node type of the first node and the first node to be deployed, and determines the deployable deployment unit set according to the node type of the first node, and then according to the The policy corresponding to the deployment unit in the deployable deployment unit set determines the deployment unit that the first node needs to deploy, so that the deployed deployment units are deployed in the first node. That is to say, the device can deploy a node by an automatic control method; compared with the prior art, manual deployment is not required, thereby improving deployment efficiency.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules is only a logical function division.
  • there may be another division manner for example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the modules described as separate components may or may not be physically separated.
  • the components displayed as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional module in each embodiment of the present invention may be integrated into one processing module, or two or more modules may be integrated into one module.
  • the above integrated modules can be implemented in the form of hardware or in the form of hardware plus software function modules.
  • the above-described integrated modules implemented in the form of software function modules can be stored in a computer readable storage medium.
  • the software functional modules described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform some of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, and the program code can be stored. Medium.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Stored Programmes (AREA)

Abstract

Embodiments of the present invention relate to the technical field of communications. Disclosed are a deployment method and apparatus based on a cloud environment system, so as to improve the deployment efficiency. The deployment method based on a cloud environment system in an embodiment of the present invention comprises: a control module determines a to-be-deployed first node in a cloud environment system; the control module acquires the node type of the first node; the control module matches the node type of the first node with a node type in a preset table, so as to obtain a set of deployment units that can be deployed to the first node; the control module selects, according to a policy corresponding to a deployment unit in the set of deployable deployment units, a deployment unit that needs to be deployed to the first node in the set of deployable deployment units; and the control module deploys the deployment unit that needs to be deployed to the first node. The technical solution provided in the embodiments of the present invention can be used in a cloud environment system.

Description

一种基于云环境系统的部署方法和装置Deployment method and device based on cloud environment system 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种基于云环境系统的部署方法和装置。The present invention relates to the field of communications technologies, and in particular, to a deployment method and apparatus based on a cloud environment system.
背景技术Background technique
基于SOA(Service-Oriented Architecture,面向服务结构)的云环境系统包括控制平台和多个节点,控制平台利用云计算的计算能力和SOA调度的能力,统一管理和调度部署在各节点上的进程,从而为个人和企业提供按需即取的网络服务。The SOA (Service-Oriented Architecture)-based cloud environment system includes a control platform and multiple nodes. The control platform utilizes the computing power of the cloud computing and the SOA scheduling capability to uniformly manage and schedule the processes deployed on each node. This provides on-demand web services for individuals and businesses.
目前,一般通过静态配置的方法对云环境系统中的各节点中的进程进行部署,具体的:预先将待部署节点中的待部署进程制作成软件包;当该待部署节点启动时,获取该软件包并启动该软件包中的进程。Currently, the process in each node of the cloud environment system is deployed in a static configuration manner. Specifically, the to-be-deployed process in the node to be deployed is pre-deployed into a software package; The package starts the process in the package.
在上述部署进程的过程中,由于在哪个节点中部署哪些进程的预设值均靠用户的经验确定,这样,经验不足的用户一般很难在短时间内为各节点设置待部署的进程,从而导致部署效率较低。In the process of the above deployment process, the default value of which processes are deployed in which nodes is determined by the user experience, so that an inexperienced user generally has difficulty setting the processes to be deployed for each node in a short time, thereby Lead to less efficient deployment.
发明内容Summary of the invention
本发明的实施例提供一种基于云环境系统的部署方法和装置,以提高部署效率。Embodiments of the present invention provide a deployment method and apparatus based on a cloud environment system to improve deployment efficiency.
为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:
第一方面,提供一种基于云环境系统的部署方法,包括:In a first aspect, a method for deploying a cloud environment based system is provided, including:
控制模块在云环境系统中确定待部署的第一节点;The control module determines the first node to be deployed in the cloud environment system;
所述控制模块获取所述第一节点的节点类型;The control module acquires a node type of the first node;
所述控制模块将所述第一节点的节点类型与预设表中的节点类 型进行匹配,得到所述第一节点可部署的部署单元集合;其中,所述预设表用于记录节点类型与具有该节点类型的节点可部署的部署单元之间的对应关系;The control module compares a node type of the first node with a node class in a preset table The matching is performed to obtain a set of deployment units that can be deployed by the first node; wherein the preset table is used to record a correspondence between a node type and a deployment unit that can be deployed by a node having the node type;
所述控制模块根据所述可部署的部署单元集合中的部署单元对应的策略,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;The control module selects, according to a policy corresponding to the deployment unit in the deployable deployment unit set, a deployment unit that needs to be deployed by the first node in the set of deployable deployment units;
所述控制模块将所述需部署的部署单元部署在所述第一节点中。The control module deploys the deployment unit to be deployed in the first node.
结合第一方面,在第一种可能的实现方式中,所述确定待部署的第一节点,包括:With reference to the first aspect, in a first possible implementation, the determining, by the first node to be deployed, includes:
确定系统中正在启动的节点为待部署的第一节点,或,确定系统中实际运行的部署单元与预先部署的部署单元不同的节点为待部署的第一节点。The node that is being started in the system is determined to be the first node to be deployed, or the node that is determined to be actually deployed in the system is different from the pre-deployed deployment unit is the first node to be deployed.
结合第一方面或第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述可部署的部署单元集合中的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation, the policy corresponding to the deployment unit in the deployable deployment unit set includes: a general policy, a single policy, Quantity policy, node type policy, resource policy.
结合第一方面的第二种可能的实现方式,在第三种可能的实现方式中,所述根据所述可部署的部署单元集合中的部署单元对应的策略,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元,包括:In conjunction with the second possible implementation of the first aspect, in a third possible implementation, the deployable deployment unit is configured according to a policy corresponding to a deployment unit in the deployable deployment unit set Selecting the deployment unit to be deployed by the first node in the collection, including:
当所述可部署的部署单元集合中的部署单元对应的策略包括单一策略或数量策略时,根据所述可部署的部署单元集合中的部署单元对应的策略和系统中其他节点中的部署单元,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元; When the policy corresponding to the deployment unit in the deployable deployment unit set includes a single policy or a quantity policy, according to the policy corresponding to the deployment unit in the deployable deployment unit set and the deployment unit in other nodes in the system, Selecting, in the set of deployable deployment units, a deployment unit to be deployed by the first node;
或,当所述可部署的部署单元集合中的部署单元对应的策略包括资源策略时,根据资源策略和所述第一节点的资源,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元。Or, when the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy, selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit that the node needs to deploy.
结合第一方面、第一方面的第一种可能的实现方式至第三种可能的实现方式任一种,在第四种可能的实现方式中,在所述将所述需部署的部署单元部署在所述第一节点中之后,所述方法还包括:In combination with the first aspect, the first possible implementation manner of the first aspect, or the third possible implementation manner, in the fourth possible implementation manner, where the deployment unit to be deployed is deployed After the first node, the method further includes:
在触发条件下,迁移所述第一节点中的至少一个部署单元。At least one of the first nodes is migrated under a trigger condition.
结合第一方面的第四种可能的实现方式,在第五种可能的实现方式中,所述迁移所述第一节点中的至少一个部署单元,包括:In conjunction with the fourth possible implementation of the first aspect, in the fifth possible implementation, the migrating the at least one of the first nodes includes:
删除所述第一节点中的至少一个部署单元;Deleting at least one deployment unit of the first node;
根据所述删除的至少一个部署单元对应的策略,将所述删除的至少一个部署单元部署在系统中的其他节点中。And deleting the deleted at least one deployment unit in other nodes in the system according to the policy corresponding to the deleted at least one deployment unit.
结合第一方面的第四种可能的实现方式或第五种可能的实现方式,在第六种可能的实现方式中,所述触发条件包括以下至少一种:所述第一节点中的部署单元所占的资源大于或等于一阈值,所述第一节点中的至少一个部署单元故障,所述第一节点所在的系统的负载量小于或等于一阈值。With reference to the fourth possible implementation manner of the first aspect, or the fifth possible implementation manner, in a sixth possible implementation manner, the triggering condition includes at least one of: a deployment unit in the first node The occupied resource is greater than or equal to a threshold, and at least one deployment unit in the first node is faulty, and the load of the system in which the first node is located is less than or equal to a threshold.
结合第一方面的第四种可能的实现方式至第六种可能的实现方式任一种,在第七种可能的实现方式中,所述迁移所述第一节点中的至少一个部署单元,包括:In combination with the fourth possible implementation manner of the first aspect, the sixth possible implementation manner, in the seventh possible implementation manner, the migrating the at least one deployment unit of the first node, including :
确定所述第一节点中的n个可迁移部署单元;其中,n>1,n为整数;Determining n migratable deployment units in the first node; wherein n>1, n is an integer;
按照所述n个可迁移部署单元的迁移权值确定所述n个可迁移部署单元的迁移顺序; Determining a migration order of the n migratable deployment units according to a migration weight of the n migratable deployment units;
按照所述迁移顺序依次迁移所述n个可迁移部署单元。The n migratable deployment units are sequentially migrated according to the migration order.
结合第一方面、第一方面的第一种可能的实现方式至第七种可能的实现方式任一种,在第八种可能的实现方式中,在所述将所述需部署的部署单元部署在所述第一节点中之后,所述方法还包括:With reference to the first aspect, the first possible implementation manner of the first aspect, and the seventh possible implementation manner, in the eighth possible implementation manner, where the deployment unit to be deployed is deployed After the first node, the method further includes:
当所述第一节点不再为所述系统中的节点时,将所述第一节点中的至少一个部署单元部署在系统中的其他节点中。When the first node is no longer a node in the system, at least one of the first nodes is deployed in other nodes in the system.
结合第一方面的第八种可能的实现方式,在第九种可能的实现方式中,所述将所述第一节点中的至少一个部署单元部署在系统中的其他节点中,包括:With reference to the eighth possible implementation of the first aspect, in the ninth possible implementation, the deploying the at least one deployment unit of the first node in another node in the system includes:
根据所述第一节点中的至少一个部署单元对应的策略为所述第一节点中的至少一个部署单元选择目标节点;Selecting a target node for at least one of the first nodes according to a policy corresponding to at least one of the first nodes;
将所述第一节点中的至少一个部署单元部署在所述目标节点中。At least one deployment unit of the first node is deployed in the target node.
结合第一方面、第一方面的第一种可能的实现方式至第九种可能的实现方式任一种,在第十种可能的实现方式中,所述部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。With reference to the first aspect, the first possible implementation manner of the first aspect, and the ninth possible implementation manner, in a tenth possible implementation manner, the deployment unit includes at least one of the following: a process, Process group, virtual machine, application system.
第二方面,提供一种基于云环境系统的部署方法,包括:The second aspect provides a deployment method based on a cloud environment system, including:
确定待部署的部署单元和所述待部署的部署单元对应的策略;Determining a policy corresponding to the deployment unit to be deployed and the deployment unit to be deployed;
根据所述待部署的部署单元对应的策略为所述待部署的部署单元选择目标节点;Selecting a target node for the deployment unit to be deployed according to the policy corresponding to the deployment unit to be deployed;
将所述待部署单元部署在所述目标节点中。The unit to be deployed is deployed in the target node.
结合第二方面,在第一种可能的实现方式中,所述待部署的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。 With reference to the second aspect, in a first possible implementation, the policy corresponding to the deployment unit to be deployed includes: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
结合第二方面的第一种可能的实现方式,在第二种可能的实现方式中,所述根据所述待部署的部署单元对应的策略为所述待部署单元选择目标节点,包括:With reference to the first possible implementation manner of the second aspect, in a second possible implementation, the selecting a target node for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed includes:
当所述待部署的部署单元对应的策略包括单一策略或数量策略时,根据待部署的部署单元对应的策略和系统中其他节点中的部署单元为所述待部署单元选择目标节点;When the policy corresponding to the deployment unit to be deployed includes a single policy or a quantity policy, the target node is selected for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed and the deployment unit in other nodes in the system;
或,当所述待部署的部署单元对应的策略包括资源策略时,根据资源策略和系统中其他节点的资源为所述待部署的部署单元选择目标节点。Or, when the policy corresponding to the deployment unit to be deployed includes a resource policy, select a target node for the deployment unit to be deployed according to the resource policy and resources of other nodes in the system.
结合第二方面、第二方面的第一种可能的实现方式或第二种可能的实现方式,在第三种可能的实现方式中,所述待部署的部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。With reference to the second aspect, the first possible implementation manner of the second aspect, or the second possible implementation manner, in a third possible implementation manner, the deployment unit to be deployed includes at least one of the following: a process, Process group, virtual machine, application system.
第三方面,提供一种基于云环境系统的部署装置,包括:In a third aspect, a deployment device based on a cloud environment system is provided, including:
存储模块,用于存储预设表,其中,所述预设表用于记录节点类型与具有该节点类型的节点可部署的部署单元之间的对应关系;a storage module, configured to store a preset table, where the preset table is used to record a correspondence between a node type and a deployment unit deployable by a node having the node type;
处理模块,用于执行以下动作:Processing module for performing the following actions:
在云环境系统中确定待部署的第一节点;Determining a first node to be deployed in a cloud environment system;
获取所述第一节点的节点类型;Obtaining a node type of the first node;
将所述第一节点的节点类型与预设表中的节点类型进行匹配,得到所述第一节点可部署的部署单元集合;Matching the node type of the first node with the node type in the preset table to obtain a deployment unit set that can be deployed by the first node;
根据所述可部署的部署单元集合中的部署单元对应的策略,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;Selecting, according to a policy corresponding to the deployment unit in the deployable deployment unit set, a deployment unit that needs to be deployed by the first node in the set of deployable deployment units;
将所述需部署的部署单元部署在所述第一节点中。 Deploying the deployment unit to be deployed in the first node.
结合第三方面,在第一种可能的实现方式中,所述处理模块具体用于:确定系统中正在启动的节点为待部署的第一节点,或,确定系统中实际运行的部署单元与预先部署的部署单元不同的节点为待部署的第一节点。With reference to the third aspect, in a first possible implementation manner, the processing module is specifically configured to: determine that a node that is being started in the system is a first node to be deployed, or determine a deployment unit that is actually running in the system and the foregoing The different nodes of the deployed deployment unit are the first nodes to be deployed.
结合第三方面或第三方面的第一种可能的实现方式,在第二种可能的实现方式中,所述可部署的部署单元集合中的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。With reference to the third aspect, or the first possible implementation manner of the third aspect, in a second possible implementation, the policy corresponding to the deployment unit in the deployable deployment unit set includes: a general policy, a single policy, Quantity policy, node type policy, resource policy.
结合第三方面的第二种可能的实现方式,在第三种可能的实现方式中,所述处理模块具体用于:In conjunction with the second possible implementation of the third aspect, in a third possible implementation, the processing module is specifically configured to:
当所述可部署的部署单元集合中的部署单元对应的策略包括单一策略或数量策略时,根据所述可部署的部署单元集合中的部署单元对应的策略和系统中其他节点中的部署单元,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;When the policy corresponding to the deployment unit in the deployable deployment unit set includes a single policy or a quantity policy, according to the policy corresponding to the deployment unit in the deployable deployment unit set and the deployment unit in other nodes in the system, Selecting, in the set of deployable deployment units, a deployment unit to be deployed by the first node;
或,当所述可部署的部署单元集合中的部署单元对应的策略包括资源策略时,根据资源策略和所述第一节点的资源,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元。Or, when the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy, selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit that the node needs to deploy.
结合第三方面、第三方面的第一种可能的实现方式至第三种可能的实现方式任一种,在第四种可能的实现方式中,所述处理模块还用于,在触发条件下,迁移所述第一节点中的至少一个部署单元。In combination with the third aspect, the first possible implementation manner of the third aspect, or the third possible implementation manner, in a fourth possible implementation manner, the processing module is further configured to be used under a trigger condition Relocating at least one of the first nodes.
结合第三方面的第四种可能的实现方式,在第五种可能的实现方式中,所述处理模块具体用于:In conjunction with the fourth possible implementation of the third aspect, in a fifth possible implementation, the processing module is specifically configured to:
删除所述第一节点中的至少一个部署单元;Deleting at least one deployment unit of the first node;
根据所述删除的至少一个部署单元对应的策略,将所述删除的至少一个部署单元部署在系统中的其他节点中。 And deleting the deleted at least one deployment unit in other nodes in the system according to the policy corresponding to the deleted at least one deployment unit.
结合第三方面的第四种可能的实现方式或第五种可能的实现方式,在第六种可能的实现方式中,所述触发条件包括以下至少一种:所述第一节点中的部署单元所占的资源大于或等于一阈值,所述第一节点中的至少一个部署单元故障,所述第一节点所在的系统的负载量小于或等于一阈值。With reference to the fourth possible implementation manner of the third aspect, or the fifth possible implementation manner, in a sixth possible implementation manner, the triggering condition includes at least one of: a deployment unit in the first node The occupied resource is greater than or equal to a threshold, and at least one deployment unit in the first node is faulty, and the load of the system in which the first node is located is less than or equal to a threshold.
结合第三方面的第四种可能的实现方式至第六种可能的实现方式任一种,在第七种可能的实现方式中,所述处理模块具体用于:With reference to the fourth possible implementation of the third aspect, the sixth possible implementation manner, in the seventh possible implementation, the processing module is specifically configured to:
确定所述第一节点中的n个可迁移部署单元;其中,n>1,n为整数;Determining n migratable deployment units in the first node; wherein n>1, n is an integer;
按照所述n个可迁移部署单元的迁移权值确定所述n个可迁移部署单元的迁移顺序;Determining a migration order of the n migratable deployment units according to a migration weight of the n migratable deployment units;
按照所述迁移顺序依次迁移所述n个可迁移部署单元。The n migratable deployment units are sequentially migrated according to the migration order.
结合第三方面、第三方面的第一种可能的实现方式至第七种可能的实现方式任一种,在第八种可能的实现方式中,所述处理模块还用于:当所述第一节点不再为所述系统中的节点时,将所述第一节点中的至少一个部署单元部署在系统中的其他节点中。With reference to the third aspect, the first possible implementation manner of the third aspect, and the seventh possible implementation manner, in the eighth possible implementation manner, the processing module is further configured to: when the When a node is no longer a node in the system, at least one of the first nodes is deployed in other nodes in the system.
结合第三方面的第八种可能的实现方式,在第九种可能的实现方式中,所述部署模块具体用于:In conjunction with the eighth possible implementation of the third aspect, in a ninth possible implementation, the deployment module is specifically configured to:
根据所述第一节点中的至少一个部署单元对应的策略为所述第一节点中的至少一个部署单元选择目标节点;Selecting a target node for at least one of the first nodes according to a policy corresponding to at least one of the first nodes;
将所述第一节点中的至少一个部署单元部署在所述目标节点中。At least one deployment unit of the first node is deployed in the target node.
结合第三方面、第三方面的第一种可能的实现方式至第九种可能的实现方式任一种,在第十种可能的实现方式中,所述部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。 With reference to the third aspect, the first possible implementation manner of the third aspect, and the ninth possible implementation manner, in a tenth possible implementation manner, the deployment unit includes at least one of the following: a process, Process group, virtual machine, application system.
第四方面,提供一种基于云环境系统的部署装置,包括:The fourth aspect provides a deployment device based on a cloud environment system, including:
处理模块,用于执行以下动作:Processing module for performing the following actions:
确定待部署的部署单元和所述待部署的部署单元对应的策略;Determining a policy corresponding to the deployment unit to be deployed and the deployment unit to be deployed;
根据所述待部署的部署单元对应的策略为所述待部署的部署单元选择目标节点;Selecting a target node for the deployment unit to be deployed according to the policy corresponding to the deployment unit to be deployed;
将所述待部署单元部署在所述目标节点中;Deploying the to-be-deployed unit in the target node;
存储模块,用于存储所述待部署的部署单元对应的策略。结合第四方面,在第一种可能的实现方式中,所述待部署的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。And a storage module, configured to store a policy corresponding to the deployment unit to be deployed. With reference to the fourth aspect, in a first possible implementation manner, the policy corresponding to the deployment unit to be deployed includes: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
结合第四方面的第一种可能的实现方式,在第二种可能的实现方式中,所述处理模块具体用于:In conjunction with the first possible implementation of the fourth aspect, in a second possible implementation, the processing module is specifically configured to:
当所述待部署的部署单元对应的策略包括单一策略或数量策略时,根据待部署的部署单元对应的策略和系统中其他节点中的部署单元为所述待部署单元选择目标节点;When the policy corresponding to the deployment unit to be deployed includes a single policy or a quantity policy, the target node is selected for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed and the deployment unit in other nodes in the system;
或,当所述待部署的部署单元对应的策略包括资源策略时,根据资源策略和系统中其他节点的资源为所述待部署的部署单元选择目标节点。Or, when the policy corresponding to the deployment unit to be deployed includes a resource policy, select a target node for the deployment unit to be deployed according to the resource policy and resources of other nodes in the system.
结合第四方面、第四方面的第一种可能的实现方式或第二种可能的实现方式,在第三种可能的实现方式中,所述待部署的部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。With reference to the fourth aspect, the first possible implementation manner of the fourth aspect, or the second possible implementation manner, in a third possible implementation manner, the deployment unit to be deployed includes at least one of the following: a process, Process group, virtual machine, application system.
第五方面,提供一种基于云环境系统的部署装置,包括:存储器和处理器;A fifth aspect provides a cloud environment system-based deployment apparatus, including: a memory and a processor;
所述存储器用于存储一组代码,该代码用于控制所述处理器执 行以下动作:The memory is for storing a set of codes for controlling the processor Do the following actions:
在云环境系统中确定待部署的第一节点;Determining a first node to be deployed in a cloud environment system;
获取所述第一节点的节点类型;Obtaining a node type of the first node;
将所述第一节点的节点类型与预设表中的节点类型进行匹配,得到所述第一节点可部署的部署单元集合;其中,所述预设表用于记录节点类型与具有该节点类型的节点可部署的部署单元之间的对应关系;Matching the node type of the first node with the node type in the preset table to obtain a deployment unit set that can be deployed by the first node; wherein the preset table is used to record a node type and have the node type Correspondence between deployment units of nodes that can be deployed;
根据所述可部署的部署单元集合中的部署单元对应的策略,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;Selecting, according to a policy corresponding to the deployment unit in the deployable deployment unit set, a deployment unit that needs to be deployed by the first node in the set of deployable deployment units;
将所述需部署的部署单元部署在所述第一节点中。Deploying the deployment unit to be deployed in the first node.
结合第五方面,在第一种可能的实现方式中,所述处理器具体用于:With reference to the fifth aspect, in a first possible implementation manner, the processor is specifically configured to:
确定系统中正在启动的节点为待部署的第一节点,或,确定系统中实际运行的部署单元与预先部署的部署单元不同的节点为待部署的第一节点。The node that is being started in the system is determined to be the first node to be deployed, or the node that is determined to be actually deployed in the system is different from the pre-deployed deployment unit is the first node to be deployed.
结合第五方面或第五方面的第一种可能的实现方式,在第二种可能的实现方式中,所述可部署的部署单元集合中的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。With reference to the fifth aspect, or the first possible implementation manner of the fifth aspect, in a second possible implementation, the policy corresponding to the deployment unit in the deployable deployment unit set includes: a general policy, a single policy, Quantity policy, node type policy, resource policy.
结合第五方面的第二种可能的实现方式,在第三种可能的实现方式中,所述处理器具体用于:In conjunction with the second possible implementation of the fifth aspect, in a third possible implementation, the processor is specifically configured to:
当所述可部署的部署单元集合中的部署单元对应的策略包括单一策略或数量策略时,根据所述可部署的部署单元集合中的部署单 元对应的策略和系统中其他节点中的部署单元,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;When the policy corresponding to the deployment unit in the deployable deployment unit set includes a single policy or a quantity policy, according to the deployment order in the deployable deployment unit set a policy corresponding to the element and a deployment unit in the other nodes in the system, and selecting, in the set of deployable deployment units, the deployment unit to be deployed by the first node;
或,当所述可部署的部署单元集合中的部署单元对应的策略包括资源策略时,根据资源策略和所述第一节点的资源,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元。Or, when the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy, selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit that the node needs to deploy.
结合第五方面、第五方面的第一种可能的实现方式至第三种可能的实现方式任一种,在第四种可能的实现方式中,所述处理器还用于:With reference to the fifth aspect, the first possible implementation manner of the fifth aspect, and the third possible implementation manner, in a fourth possible implementation manner, the processor is further configured to:
在触发条件下,迁移所述第一节点中的至少一个部署单元。At least one of the first nodes is migrated under a trigger condition.
结合第五方面的第四种可能的实现方式,在第五种可能的实现方式中,所述处理器具体用于:In conjunction with the fourth possible implementation of the fifth aspect, in a fifth possible implementation, the processor is specifically configured to:
删除所述第一节点中的至少一个部署单元;Deleting at least one deployment unit of the first node;
根据所述删除的至少一个部署单元对应的策略,将所述删除的至少一个部署单元部署在系统中的其他节点中。And deleting the deleted at least one deployment unit in other nodes in the system according to the policy corresponding to the deleted at least one deployment unit.
结合第五方面的第四种可能的实现方式或第五种可能的实现方式,在第六种可能的实现方式中,所述触发条件包括以下至少一种:所述第一节点中的部署单元所占的资源大于或等于一阈值,所述第一节点中的至少一个部署单元故障,所述第一节点所在的系统的负载量小于或等于一阈值。With reference to the fourth possible implementation manner of the fifth aspect, or the fifth possible implementation manner, in a sixth possible implementation manner, the triggering condition includes at least one of the following: a deployment unit in the first node The occupied resource is greater than or equal to a threshold, and at least one deployment unit in the first node is faulty, and the load of the system in which the first node is located is less than or equal to a threshold.
结合第五方面的第四种可能的实现方式至第六种可能的实现方式任一种,在第七种可能的实现方式中,所述处理器具体用于:With reference to the fourth possible implementation manner of the fifth aspect, the sixth possible implementation manner, in the seventh possible implementation manner, the processor is specifically configured to:
确定所述第一节点中的n个可迁移部署单元;其中,n>1,n为整数;Determining n migratable deployment units in the first node; wherein n>1, n is an integer;
按照所述n个可迁移部署单元的迁移权值确定所述n个可迁移 部署单元的迁移顺序;Determining the n migrateable according to the migration weights of the n migratable deployment units The migration order of the deployment unit;
按照所述迁移顺序依次迁移所述n个可迁移部署单元。The n migratable deployment units are sequentially migrated according to the migration order.
结合第五方面、第五方面的第一种可能的实现方式至第七种可能的实现方式任一种,在第八种可能的实现方式中,所述处理器还用于:With reference to the fifth aspect, the first possible implementation manner of the fifth aspect, and the seventh possible implementation manner, in the eighth possible implementation manner, the processor is further configured to:
当所述第一节点不再为所述系统中的节点时,将所述第一节点中的至少一个部署单元部署在系统中的其他节点中。When the first node is no longer a node in the system, at least one of the first nodes is deployed in other nodes in the system.
结合第五方面的第八种可能的实现方式,在第九种可能的实现方式中,所述处理器具体用于:In conjunction with the eighth possible implementation of the fifth aspect, in a ninth possible implementation, the processor is specifically configured to:
根据所述第一节点中的至少一个部署单元对应的策略为所述第一节点中的至少一个部署单元选择目标节点;Selecting a target node for at least one of the first nodes according to a policy corresponding to at least one of the first nodes;
将所述第一节点中的至少一个部署单元部署在所述目标节点中。At least one deployment unit of the first node is deployed in the target node.
结合第五方面、第五方面的第一种可能的实现方式至第九种可能的实现方式任一种,在第十种可能的实现方式中,所述部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。With reference to the fifth aspect, the first possible implementation manner of the fifth aspect, and the ninth possible implementation manner, in the tenth possible implementation manner, the deployment unit includes at least one of the following: a process, Process group, virtual machine, application system.
第六方面,提供一种基于云环境系统的部署装置,包括存储器和处理器;a sixth aspect provides a cloud environment system-based deployment apparatus, including a memory and a processor;
所述存储器用于存储一组代码,该代码用于控制所述处理器执行以下动作:The memory is for storing a set of codes for controlling the processor to perform the following actions:
在云环境系统中确定待部署的部署单元和所述待部署的部署单元对应的策略;Determining, in the cloud environment system, a policy corresponding to the deployment unit to be deployed and the deployment unit to be deployed;
根据所述待部署的部署单元对应的策略为所述待部署的部署单元选择目标节点; Selecting a target node for the deployment unit to be deployed according to the policy corresponding to the deployment unit to be deployed;
将所述待部署单元部署在所述目标节点中。The unit to be deployed is deployed in the target node.
结合第六方面,在第一种可能的实现方式中,所述待部署的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。With reference to the sixth aspect, in a first possible implementation, the policy corresponding to the deployment unit to be deployed includes: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
结合第六方面的第一种可能的实现方式,在第二种可能的实现方式中,所述处理器具体用于:In conjunction with the first possible implementation of the sixth aspect, in a second possible implementation, the processor is specifically configured to:
当所述待部署的部署单元对应的策略包括单一策略或数量策略时,根据待部署的部署单元对应的策略和系统中其他节点中的部署单元为所述待部署单元选择目标节点;When the policy corresponding to the deployment unit to be deployed includes a single policy or a quantity policy, the target node is selected for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed and the deployment unit in other nodes in the system;
或,当所述待部署的部署单元对应的策略包括资源策略时,根据资源策略和系统中其他节点的资源为所述待部署的部署单元选择目标节点。Or, when the policy corresponding to the deployment unit to be deployed includes a resource policy, select a target node for the deployment unit to be deployed according to the resource policy and resources of other nodes in the system.
结合第六方面、第六方面的第一种可能的实现方式或第二种可能的实现方式,在第三种可能的实现方式中,所述待部署的部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。With reference to the sixth aspect, the first possible implementation manner of the sixth aspect, or the second possible implementation manner, in a third possible implementation manner, the deployment unit to be deployed includes at least one of the following: a process, Process group, virtual machine, application system.
本发明实施例提供的基于云环境系统的部署方法和装置,通过确定待部署的第一节点和第一节点的节点类型,并根据第一节点的节点类型确定其可部署的部署单元集合,再根据该可部署的部署单元集合中的部署单元对应的策略确定第一节点需部署的部署单元,从而将这些需部署的部署单元部署在第一节点中。也就是说,本发明实施例可以通过自动控制的方法对一节点进行部署;与现有技术相比,不需要手动部署,因此,提高了部署效率。The cloud environment system-based deployment method and apparatus provided by the embodiment of the present invention determine the node type of the first node and the first node to be deployed, and determine the deployable deployment unit set according to the node type of the first node, and then Determining the deployment units to be deployed by the first node according to the policy corresponding to the deployment unit in the deployable deployment unit set, so that the deployed deployment units are deployed in the first node. That is to say, the embodiment of the present invention can deploy a node by using an automatic control method; compared with the prior art, manual deployment is not required, thereby improving deployment efficiency.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only some embodiments of the present invention, and those skilled in the art can obtain other drawings according to the drawings without any creative work.
图1为本发明实施例一提供的一种基于云环境系统的部署方法的流程图;FIG. 1 is a flowchart of a method for deploying a cloud environment system according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种基于云环境系统的部署方法的流程图;2 is a flowchart of a method for deploying a cloud environment system according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种基于云环境系统的部署方法的流程图;3 is a flowchart of a method for deploying a cloud environment system according to Embodiment 3 of the present invention;
图4为本发明实施例四提供的一种基于云环境系统的部署装置的结构示意图;4 is a schematic structural diagram of a deployment apparatus based on a cloud environment system according to Embodiment 4 of the present invention;
图5为本发明实施例五提供的一种基于云环境系统的部署装置的结构示意图;FIG. 5 is a schematic structural diagram of a deployment apparatus based on a cloud environment system according to Embodiment 5 of the present invention; FIG.
图6为本发明实施例六提供的一种基于云环境系统的部署装置的结构示意图;6 is a schematic structural diagram of a deployment apparatus based on a cloud environment system according to Embodiment 6 of the present invention;
图7为本发明实施例七提供的一种基于云环境系统的部署装置的结构示意图。FIG. 7 is a schematic structural diagram of a cloud environment system-based deployment apparatus according to Embodiment 7 of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表 示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。本文中字符“/”,一般表示前后关联对象是一种“或”的关系。另外,本文中的术语“多个”是指两个或两个以上。The term "and/or" in this article is merely an association describing the associated object, the table There may be three relationships, for example, A and/or B, which may indicate that there are three cases where A exists separately, A and B exist at the same time, and B exists separately. The character "/" in this article generally indicates that the contextual object is an "or" relationship. In addition, the term "plurality" herein means two or more.
本文通过“如何为待部署的节点确定需部署的部署单元”和“如何为待部署的部署单元确定目标节点”两方面对本发明实施例提供的基于云环境系统的部署方法进行说明。The cloud environment system-based deployment method provided by the embodiment of the present invention is described in the following two aspects: "how to determine the deployment unit to be deployed for the node to be deployed" and "how to determine the target node for the deployment unit to be deployed".
实施例一Embodiment 1
本实施例通过“如何为待部署的节点确定需部署的部署单元”对本发明实施例提供的基于云环境系统的部署方法进行说明。如图1所示,本实施例提供的基于云环境系统的部署方法包括:This embodiment describes a cloud environment system-based deployment method provided by an embodiment of the present invention by using the "how to determine the deployment unit to be deployed for the node to be deployed." As shown in FIG. 1 , the cloud environment system-based deployment method provided by this embodiment includes:
101、控制模块在云环境系统中确定待部署的第一节点。101. The control module determines a first node to be deployed in the cloud environment system.
本发明实施例提供的基于云环境系统的部署方法的执行主体可以为控制模块。本发明实施例提供的基于云环境系统的部署方法可以应用于基于SOA的云环境系统中;该情况下,控制模块可以集成在独立于云环境系统的一设备中,也可以集成在系统中的任一设备中。另外,本发明实施例提供的基于云环境系统的部署方法还可以应用于一物理设备中;该情况下,控制模块可以集成在独立于该物理设备的一设备中,也可以为该物理设备中的处理器。下文中均以应用于基于SOA的云环境系统(简称“系统”)为例进行说明。The execution body of the cloud environment system-based deployment method provided by the embodiment of the present invention may be a control module. The cloud environment system-based deployment method provided by the embodiment of the present invention can be applied to an SOA-based cloud environment system; in this case, the control module can be integrated in a device independent of the cloud environment system, or can be integrated in the system. In any device. In addition, the cloud environment system-based deployment method provided by the embodiment of the present invention may also be applied to a physical device; in this case, the control module may be integrated in a device independent of the physical device, or may be in the physical device. Processor. The following applies to an SOA-based cloud environment system (referred to as "system") as an example.
“第一节点”可以为运行部署单元的任一物理节点或逻辑节点。部署单元可以包括以下至少一种:进程、进程组、虚拟机、应用系统;其中,进程组由多个进程构成。需要说明的是,一进程组中的所有进程按照一定规则绑定在一起,本发明实施例对该规则的具体设定方式不进行限定。一般地,一进程组中的所有进程均同时被部 署、同时被迁移或同时被移除。具体实现时,可以根据需求将某些进程绑定为一进程组,将该进程组作为一个部署单元。The "first node" can be any physical node or logical node that runs the deployment unit. The deployment unit may include at least one of the following: a process, a process group, a virtual machine, an application system; wherein the process group is composed of multiple processes. It should be noted that, all the processes in a process group are bound together according to a certain rule, and the specific setting manner of the rule is not limited in the embodiment of the present invention. In general, all processes in a process group are simultaneously The department was moved or removed at the same time. In a specific implementation, some processes can be bound to a process group according to requirements, and the process group is used as a deployment unit.
可选的,步骤101可以包括:确定系统中正在启动的节点为待部署的第一节点,或者,确定系统中实际运行的部署单元与预先部署的部署单元不同的节点为待部署的第一节点。示例性的,“正在启动”包括:初始启动或重启动;“系统中正在初始启动的节点”包括:系统中正在初始启动的新增节点或已存在的节点;“预先部署的部署单元”可以为预先存储的该节点的需部署的各部署单元,也可以为控制模块在执行步骤101之前为该节点选择的需部署的部署单元。Optionally, the step 101 may include: determining that the node being started in the system is the first node to be deployed, or determining that the node that is actually running in the system is different from the pre-deployed deployment unit is the first node to be deployed. . Exemplarily, "starting" includes: initial startup or restart; "nodes that are initially started in the system" include: new nodes or existing nodes that are initially started in the system; "pre-deployed deployment units" may Each deployment unit that needs to be deployed for the node that is pre-stored may also be a deployment unit that needs to be deployed for the node before the control module performs step 101.
需要说明的是,具体实现时,控制模块可以按照本发明实施例提供的方法同时对多个第一节点进行部署。It should be noted that, in a specific implementation, the control module may simultaneously deploy multiple first nodes according to the method provided by the embodiment of the present invention.
102、所述控制模块获取所述第一节点的节点类型。102. The control module acquires a node type of the first node.
本发明实施例对“节点类型”的划分方式不进行限定,可以利用现有技术中的方式实现,例如,“节点类型”可以划分为存储类型、交换类型、转发类型、计算类型、信令类型等。The embodiment of the present invention does not limit the manner of the "node type", and can be implemented by using the method in the prior art. For example, the "node type" can be classified into a storage type, a switch type, a forwarding type, a calculation type, and a signaling type. Wait.
执行步骤102的控制模块可以通过信息交互的方式或直接读取的方式等方式获取第一节点的节点类型。The control module executing step 102 can obtain the node type of the first node by means of information interaction or direct reading.
103、所述控制模块将所述第一节点的节点类型与预设表中的节点类型进行匹配,得到所述第一节点可部署的部署单元集合;其中,所述预设表用于记录节点类型与具有该节点类型的节点可部署的部署单元之间的对应关系。103. The control module matches a node type of the first node with a node type in a preset table, to obtain a deployment unit set that can be deployed by the first node, where the preset table is used to record a node. The correspondence between a type and a deployment unit that can be deployed by a node with that node type.
为了清楚说明本发明实施例提供的技术,首先说明如下两个概念:“具有某节点类型的节点可部署的部署单元”是指理论上可以在具有该节点类型的节点上部署的部署单元;“一节点需部署的部署单元”是指根据实际情况确定的能够在该节点上部署的部署单元,即当 前需要在该节点中部署的部署单元。In order to clearly illustrate the technology provided by the embodiment of the present invention, the following two concepts are first described: "a deployment unit with a node type deployable" refers to a deployment unit that can theoretically be deployed on a node having the node type; A deployment unit to be deployed on a node refers to a deployment unit that can be deployed on the node according to actual conditions, that is, when The deployment unit that needs to be deployed in this node before.
本发明实施例对“节点类型”与“具有该节点类型的节点可部署的部署单元”的对应关系的设定方式不进行限定。一种节点类型对应的具有该节点类型的节点可部署的部署单元的数目可以为一个或多个。一般地,具有相同节点类型的不同节点可部署的部署单元相同,具有不同节点类型的不同节点可部署的部署单元可以部分或全部相同,也可以均不同。“第一节点可部署的部署单元集合”可以由第一节点可部署的一个或多个部署单元构成。The manner of setting the correspondence between the "node type" and the "deployable unit deployable by the node having the node type" is not limited in the embodiment of the present invention. The number of deployment units that can be deployed by a node having the node type corresponding to a node type may be one or more. Generally, different nodes with the same node type can deploy the same deployment unit, and different nodes with different node types can deploy the deployment units partially or completely the same or different. The "first node deployable set of deployment units" may be composed of one or more deployment units that the first node may deploy.
“预设表”可以预先存储在控制模块所在的设备中,控制模块可以在获取第一节点的节点类型后,将第一节点的节点类型与预设表中的节点类型进行匹配,并将预设表中的与第一节点的节点类型相同的节点类型所对应的部署单元构成第一节点可部署的部署单元集合。“预设表”的表现形式包括但不限于:表格、图表等。The “preset table” may be pre-stored in the device where the control module is located, and the control module may match the node type of the first node with the node type in the preset table after acquiring the node type of the first node, and The deployment unit corresponding to the node type of the node type of the first node in the table constitutes a deployment unit set that the first node can deploy. The expressions of "preset tables" include but are not limited to: tables, charts, and the like.
104、所述控制模块根据所述可部署的部署单元集合中的部署单元对应的策略,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元。The control module selects, according to the policy corresponding to the deployment unit in the deployable deployment unit set, the deployment unit that needs to be deployed by the first node in the set of deployable deployment units.
“部署单元对应的策略”可以为预先为该部署单元定义的策略,也可以为通过策略自定义接口获取的一策略;其中,策略自定义接口用于使应用自定义特定的策略。本发明实施例对“部署单元对应的策略”的设定方法不进行限定;具体实现时,可以根据应用场景和部署单元的用途等因素设定部署单元对应的策略。一个部署单元对应的策略的数目可以为一个或多个;不同部署单元对应的策略可以相同,也可以不同。The policy corresponding to the deployment unit may be a policy defined in advance for the deployment unit, or a policy obtained through a policy customization interface. The policy customization interface is used to enable the application to customize a specific policy. The method for setting the policy corresponding to the deployment unit is not limited in the embodiment of the present invention. In specific implementation, the policy corresponding to the deployment unit may be set according to factors such as the application scenario and the purpose of the deployment unit. The number of policies corresponding to one deployment unit may be one or more; the policies corresponding to different deployment units may be the same or different.
示例性的,部署单元对应的策略可以包括但不限于如下几种:Exemplarily, the policies corresponding to the deployment unit may include but are not limited to the following:
1、通用策略:将所对应的部署单元部署在系统中的每个节点中 的策略。1. General strategy: deploy the corresponding deployment unit in each node in the system. Strategy.
2、单一策略:仅将所对应的部署单元部署在系统中的一个节点中的策略。2. Single strategy: A policy in which only the corresponding deployment unit is deployed in one node in the system.
3、数量策略:对所对应的部署单元部署在系统和/或任一个/多个节点中的数量有限定要求的策略。例如,部署单元A对应的数量策略为:将所对应的部署单元部署在系统中的至少1个且至多5个节点上,且每个节点中至多部署2个所对应的部署单元的策略。3. Quantity Policy: A policy that limits the number of deployed deployment units in the system and/or any one or more nodes. For example, the quantity policy corresponding to the deployment unit A is: deploying the corresponding deployment unit on at least one and up to five nodes in the system, and deploying at least two corresponding deployment unit policies in each node.
4、节点类型策略:将所对应的部署单元部署在系统中的具有该节点类型的节点中的策略。4. Node type policy: A policy in which the corresponding deployment unit is deployed in a node of the system having the node type.
5、资源策略:对所对应的部署单元所部署的节点的可用资源有限定要求的策略;其中,“可用资源”可以包括以下至少一种:可用硬盘、可用内存、可用容量、可用带宽等。5. Resource policy: A policy that limits the available resources of the nodes deployed by the corresponding deployment unit; wherein the "available resources" may include at least one of the following: available hard disks, available memory, available capacity, available bandwidth, and the like.
需要说明的是,一部署单元至多对应“单一策略、数量策略、通用策略”中的一个策略;另外,由于本实施例中“可部署的部署单元”是根据节点类型确定的,因此步骤103中的得到的可部署的部署单元均满足节点类型策略。It should be noted that a deployment unit corresponds to at least one of “single policy, quantity policy, and general policy”; in addition, since “the deployable deployment unit” in this embodiment is determined according to the node type, step 103 is performed. The resulting deployable deployment units all meet the node type policy.
可选的,步骤104可以包括:Optionally, step 104 may include:
当所述可部署的部署单元集合中的部署单元对应的策略包括单一策略或数量策略时,根据所述可部署的部署单元集合中的部署单元对应的策略和系统中其他节点中的部署单元,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;When the policy corresponding to the deployment unit in the deployable deployment unit set includes a single policy or a quantity policy, according to the policy corresponding to the deployment unit in the deployable deployment unit set and the deployment unit in other nodes in the system, Selecting, in the set of deployable deployment units, a deployment unit to be deployed by the first node;
或,当所述可部署的部署单元集合中的部署单元对应的策略包括资源策略时,根据资源策略和所述第一节点的资源,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;其中,第一节点的资源具体可以为第一节点的可用资源。 Or, when the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy, selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit to be deployed by the node; wherein the resource of the first node may specifically be an available resource of the first node.
需要说明的是,由于第一节点需部署的部署单元集合由其可部署的部署单元集合与该可部署的部署单元集合中的部署单元对应的策略决定;进一步地,还可能由其他节点中的部署单元、或第一节点的可用资源等因素决定;因此,具体实现时,可能出现第一节点需部署的部署单元为空的情况;该情况下,不对第一节点部署任何部署单元。It should be noted that, because the deployment unit set to be deployed by the first node is determined by the policy of the deployable deployment unit set corresponding to the deployment unit in the deployable deployment unit set; further, it may also be in other nodes. The deployment unit, or the available resources of the first node, are determined; therefore, in the specific implementation, the deployment unit to be deployed by the first node may be empty; in this case, no deployment unit is deployed to the first node.
105、所述控制模块将所述需部署的部署单元部署在所述第一节点中。105. The control module deploys the deployment unit to be deployed in the first node.
为了说明步骤105的具体实现方式,本文中提出第一节点设备的概念,具体的:当第一节点为逻辑节点时,第一节点设备是指第一节点所在的实体设备;当第一节点为物理节点时,第一节点设备与第一节点表示同一实体设备。To illustrate the specific implementation of step 105, the concept of the first node device is proposed in this document. Specifically, when the first node is a logical node, the first node device refers to the physical device where the first node is located; when the first node is In the case of a physical node, the first node device and the first node represent the same physical device.
步骤105具体可以包括:当控制模块所在的设备与第一节点设备不同时,控制模块向第一节点发送指示消息,该指示消息包含用于表示所述需部署的部署单元的信息,用于使第一节点根据该指示消息运行该需部署的部署单元;当控制模块所在的设备与第一节点设备相同时,控制模块控制所述需部署的部署单元在第一节点中运行。需要说明的是,第一节点设备中预先存储有第一节点可部署的部署单元的相关指令文件。The step 105 may specifically include: when the device where the control module is located is different from the first node device, the control module sends an indication message to the first node, where the indication message includes information indicating the deployment unit to be deployed, The first node runs the deployment unit to be deployed according to the indication message; when the device where the control module is located is the same as the first node device, the control module controls the deployment unit to be deployed to run in the first node. It should be noted that the related instruction file of the deployment unit that the first node can deploy is pre-stored in the first node device.
需要说明的是,部署单元一旦被部署到节点中就会一直运行,除非该部署单元故障、或被删除、或该节点故障等;因此,如果不加说明,本文中提到的“节点中的部署单元”均是指该节点中实际运行的节点。步骤105中的“需部署的部署单元”可以作为下一次执行步骤101时,第一节点对应的预先部署的部署单元。It should be noted that the deployment unit will always run once deployed to the node, unless the deployment unit fails, or is deleted, or the node is faulty; therefore, if not stated, the "nodes" mentioned in this article "Deployment unit" refers to the node that actually runs in this node. The "deployment unit to be deployed" in step 105 can be used as the pre-deployed deployment unit corresponding to the first node when step 101 is executed next time.
本发明实施例提供的基于云环境系统的部署方法,通过确定待部署的第一节点和第一节点的节点类型,并根据第一节点的节点类 型确定其可部署的部署单元集合,再根据该可部署的部署单元集合中的部署单元对应的策略确定第一节点需部署的部署单元,从而将这些需部署的部署单元部署在第一节点中。也就是说,本发明实施例可以通过自动控制的方法对一节点进行部署;与现有技术相比,不需要手动部署,因此,提高了部署效率。The cloud environment system-based deployment method provided by the embodiment of the present invention determines the node type of the first node and the first node to be deployed, and according to the node class of the first node Determining the set of deployment units that can be deployed, and determining the deployment units to be deployed by the first node according to the policy corresponding to the deployment unit in the deployable deployment unit set, thereby deploying the deployed deployment units in the first node. . That is to say, the embodiment of the present invention can deploy a node by using an automatic control method; compared with the prior art, manual deployment is not required, thereby improving deployment efficiency.
在本发明的一个实施例中,在步骤105之后,该方法还可以包括:在触发条件下,迁移所述第一节点中的至少一个部署单元。具体的,所述迁移所述第一节点中的至少一个部署单元,可以包括:删除第一节点中的至少一个部署单元;根据所述删除的至少一个部署单元对应的策略,将所述删除的至少一个部署单元部署在系统中的其他节点中。In an embodiment of the present invention, after step 105, the method may further include: migrating at least one of the first nodes in a trigger condition. Specifically, the migrating the at least one deployment unit of the first node may include: deleting at least one deployment unit of the first node; and deleting the deleted according to a policy corresponding to the deleted at least one deployment unit At least one deployment unit is deployed in other nodes in the system.
示例性的,在该可选的实现方式中的“触发条件”可以包括但不限于以下至少一种:第一节点中的部署单元所占的资源大于或等于一阈值;第一节点中的至少一个部署单元故障;第一节点所在的系统的负载量小于或等于一阈值。Exemplarily, the "trigger condition" in the optional implementation may include, but is not limited to, at least one of the following: the resource occupied by the deployment unit in the first node is greater than or equal to a threshold; at least one of the first nodes A deployment unit fails; the load of the system where the first node is located is less than or equal to a threshold.
其中,“第一节点中的部署单元所占的资源”包括但不限于以下任一种:第一节点中的部署单元的容量所占硬盘总容量的比例,第一节点中的部署单元的容量所占内存总容量的比例等。“部署单元故障”可以理解为:部署单元无法正常提供服务。当一系统的负载量较小时,可以将其中一个或多个节点中的部署单元迁移到其他部署单元中;当然还可以关闭一些部署单元。需要说明的是,与现有技术中的一个部署单元会一直运行在其被部署的节点中相比,该可选的方式能够实现部署单元的灵活配置,从而提高系统资源的利用率。The “resources occupied by the deployment unit in the first node” include, but are not limited to, the following: the ratio of the capacity of the deployment unit in the first node to the total capacity of the hard disk, and the capacity of the deployment unit in the first node. The proportion of the total memory capacity. "Deployment unit failure" can be understood as: the deployment unit is unable to provide services properly. When the load of a system is small, the deployment units in one or more nodes can be migrated to other deployment units; of course, some deployment units can be shut down. It should be noted that, compared with a deployment unit in the prior art, the optional method can implement flexible configuration of the deployment unit, thereby improving system resource utilization.
可选的,迁移第一节点中的至少一个部署单元,可以包括:确定第一节点中的n个可迁移部署单元;n>1,n为整数;按照n个可迁移部署单元的迁移权值确定n个可迁移部署单元的迁移顺序;按 照迁移顺序依次迁移n个可迁移部署单元。Optionally, the migrating the at least one deployment unit in the first node may include: determining n migratable deployment units in the first node; n>1, n being an integer; and migrating weight values according to n migratable deployment units Determine the migration order of n migratable deployment units; press N migrateable deployment units are migrated in sequence according to the migration order.
示例性的,第一节点中的任一部署单元均可以对应一迁移权值,该迁移权值用以表征该部署单元迁移出第一节点的代价;该代价具体可以为对系统的可靠性或可用性的影响,其中,对系统的可用性的影响可以为对系统中业务的影响(例如,导致业务中断等)。第一节点中的一部署单元对应的迁移权值越小,表示将该部署单元迁移出第一节点的代价越大。同一部署单元在不同节点中对应的迁移权值可以相同也可以不同。控制节点可以在为第一节点部署部署单元时设置各部署单元在第一节点中对应的迁移权值。Exemplarily, any deployment unit in the first node may correspond to a migration weight, which is used to represent the cost of the deployment unit to migrate out of the first node; the cost may specifically be reliability of the system or The impact of availability, where the impact on the availability of the system can be an impact on the business in the system (eg, causing business disruptions, etc.). The smaller the migration weight corresponding to a deployment unit in the first node, the greater the cost of migrating the deployment unit out of the first node. The corresponding migration weights of the same deployment unit in different nodes may be the same or different. The control node may set a corresponding migration weight value of each deployment unit in the first node when deploying the deployment unit for the first node.
“可迁移部署单元”是指在一定条件下,可以被迁移到其他节点中的部署单元;本发明实施例对该条件的具体设定不进行限定。具体实现时,可以将第一节点中的、所对应的迁移权值大于或等于一阈值的部署单元的作为第一节点中的可迁移部署单元。The "migrated deployment unit" refers to a deployment unit that can be migrated to other nodes under certain conditions; the specific setting of the condition is not limited in the embodiment of the present invention. In a specific implementation, the deployment unit of the first node whose corresponding migration weight is greater than or equal to a threshold may be used as the migratable deployment unit in the first node.
本发明实施例对确定第一节点中的n个可迁移部署单元的具体实现方式不进行限定,例如,可以根据“触发条件”确定。具体的,当触发条件为第一节点中的部署单元所占的资源大于或等于一阈值时,可以将第一节点中的、所占资源大于一阈值、且迁移权值大于一阈值的部署单元作为n个可迁移部署单元;当触发条件为第一节点中的至少一个部署单元故障时,可以将该至少一个部署单元作为n个可迁移部署单元;当触发条件为第一节点所在的系统的负载量小于或等于一阈值时,可以将第一节点中的、且迁移权值大于一阈值的部署单元作为n个可迁移部署单元。The specific implementation manner of determining the n migratable deployment units in the first node is not limited in the embodiment of the present invention, for example, may be determined according to the “trigger condition”. Specifically, when the triggering condition is that the resource occupied by the deployment unit in the first node is greater than or equal to a threshold, the deployment unit that is greater than a threshold and whose migration weight is greater than a threshold may be used in the first node. As n migrateable deployment units; when the trigger condition is that at least one deployment unit in the first node is faulty, the at least one deployment unit may be used as n migratable deployment units; when the trigger condition is the system where the first node is located When the load is less than or equal to a threshold, the deployment unit in the first node and the migration weight greater than a threshold may be used as the n migratable deployment units.
需要说明的是,当第一节点中可迁移的部署单元的数目为1时,可以直接迁移该可迁移的部署单元。It should be noted that when the number of deployable deployment units in the first node is 1, the migrateable deployment unit may be directly migrated.
在本发明的另一实施例中,在步骤105之后,该方法还可以包括:当所述第一节点不再为所述系统中的节点时,将所述第一节点 中的至少一个部署单元部署在系统中的其他节点中。具体可以包括:根据所述第一节点中的至少一个部署单元对应的策略为所述第一节点中的至少一个部署单元选择目标节点;将所述第一节点中的至少一个部署单元部署在所述目标节点中。In another embodiment of the present invention, after step 105, the method may further include: when the first node is no longer a node in the system, the first node At least one of the deployment units is deployed in other nodes in the system. The method may include: selecting, according to a policy corresponding to the at least one deployment unit of the first node, a target node for at least one deployment unit of the first node; deploying at least one deployment unit of the first node in the In the target node.
示例性的,“第一节点不再为系统中的节点”可以理解为该第一节点从系统中被移除。需要说明的是,“根据所述第一节点中的至少一个部署单元对应的策略为所述第一节点中的至少一个部署单元选择目标节点”的具体实现方法可以参考下文中的相关描述。Exemplarily, "the first node is no longer a node in the system" can be understood as the first node being removed from the system. It should be noted that the specific implementation method of “selecting a target node according to a policy corresponding to at least one deployment unit of the first node to at least one deployment unit in the first node” may refer to a related description in the following.
实施例二Embodiment 2
本实施例通过“如何对待部署的节点进行部署”对上述实施例一提供的基于云环境系统的部署方法进行说明;另外,本实施例以控制模块所在的节点为控制节点为例进行说明,其中,控制节点与待部署的第一节点为不同的两个节点。如图2所示,本实施例提供的基于云环境系统的部署方法包括:In this embodiment, the cloud environment system-based deployment method provided by the foregoing embodiment is described by using the method of how to configure the node to be deployed. In this embodiment, the node where the control module is located is taken as an example. The control node is different from the first node to be deployed. As shown in FIG. 2, the cloud environment system-based deployment method provided by this embodiment includes:
201:控制节点将发现的一节点作为待部署的第一节点,并获取第一节点的逻辑标识。201: The control node uses the discovered one node as the first node to be deployed, and acquires the logical identifier of the first node.
控制节点发现的一节点可以为系统中初始启动的一节点(其中包括:系统中新增的一节点或系统中已存在的一节点),也可以为系统中重启动的一节点。本实施例对控制节点发现第一节点的实现方法不进行限定,例如可以利用现有技术中的方法实现。A node discovered by the control node may be a node initially started in the system (including: a new node in the system or a node already existing in the system), or a node restarted in the system. This embodiment does not limit the implementation method of the first node to be found by the control node, and can be implemented, for example, by using the method in the prior art.
系统中任一节点初始启动后,控制模块会为其分配逻辑标识,并将该逻辑标识记录在预设逻辑标识集合中,在后续过程中,控制模块利用该逻辑标识与该节点进行通信。其中,预设逻辑标识集合为控制节点为系统中的节点分配的逻辑标识构成的集合,预设逻辑标识集合会随着系统中节点的更新而更新。 After any node in the system is initially started, the control module assigns a logical identifier to it, and records the logical identifier in a preset logical identifier set. In the subsequent process, the control module uses the logical identifier to communicate with the node. The preset logical identifier set is a set formed by the logical identifier assigned by the control node to the nodes in the system, and the preset logical identifier set is updated as the nodes in the system are updated.
当第一节点为系统中初始启动的一节点时,控制模块还未为第一节点分配逻辑标识,该情况下,控制节点获取到的第一节点的逻辑标识为空,另外,该情况下,控制节点获取到的第一节点的逻辑标识还可能为第一节点处于其他系统中时,其他系统中的控制节点为其分配的一逻辑标识。当第一节点为系统中重启动的一节点时,控制节点已经为第一节点分配了逻辑标识,该情况下,控制节点获取到的第一节点的逻辑标识为预设逻辑标识集合中的一逻辑标识。When the first node is a node that is initially started in the system, the control module has not assigned a logical identifier to the first node. In this case, the logical identifier of the first node acquired by the control node is empty. In addition, in this case, The logical identifier of the first node acquired by the control node may also be a logical identifier assigned by the control node in the other system when the first node is in another system. When the first node is a node that is restarted in the system, the control node has assigned a logical identifier to the first node. In this case, the logical identifier of the first node acquired by the control node is one of the preset logical identifier sets. Logical identity.
202:控制节点判断该逻辑标识是否属于预设逻辑标识集合。202: The control node determines whether the logical identifier belongs to a preset logical identifier set.
若是,说明该节点为系统中重启动的一个节点,则执行步骤203;若否,说明该节点为系统中一个初始启动的一个节点或为系统中新增的一个节点,则执行步骤205。If the node is a node that is restarted in the system, step 203 is performed; if not, the node is an initial node in the system or a new node in the system, and step 205 is performed.
步骤201-202可以称为控制节点确定部署场景的过程,其中,部署场景为重启动场景或初始启动场景。当然,还可以通过其他方法确定部署场景,本实施例对此不进行限定。Steps 201-202 may be referred to as a process in which the control node determines a deployment scenario, where the deployment scenario is a restart scenario or an initial startup scenario. Certainly, the deployment scenario may be determined by other methods, which is not limited in this embodiment.
需要说明的是,具体实现时,若步骤202的判断结果为否,则在执行步骤205之前,该方法还可以包括:为第一节点分配逻辑标识,并将所分配的逻辑标识添加到预设逻辑标识集合中;在后续过程中,控制节点利用该逻辑标识与第一节点进行通信。It should be noted that, in a specific implementation, if the determination result in step 202 is no, before performing step 205, the method may further include: assigning a logical identifier to the first node, and adding the assigned logical identifier to the preset In the logical identification set; in a subsequent process, the control node uses the logical identifier to communicate with the first node.
203、控制节点获取第一节点中实际运行的部署单元。203. The control node acquires a deployment unit that is actually running in the first node.
需要说明的是,具体实现时,当系统中没有正在启动的节点时,控制节点也可以在触发条件下执行步骤203;也就是说,控制节点可以在不执行步骤201-202的情况下,执行步骤203,该情况下,“第一节点”为系统中已经启动的一节点。其中,本发明实施例对该触发条件的具体设定方式不进行限定,例如周期性地等。It should be noted that, in a specific implementation, when there is no node in the system, the control node may also perform step 203 under the trigger condition; that is, the control node may execute without performing steps 201-202. Step 203, in this case, the "first node" is a node that has been started in the system. The specific setting manner of the trigger condition is not limited in the embodiment of the present invention, for example, periodically.
204、控制节点判断第一节点中实际运行的部署单元与预先部署 的部署单元是否一致。204. The control node determines a deployment unit and a pre-deployment actually running in the first node. Whether the deployment unit is consistent.
若否,说明需要对第一节点重新进行部署,则执行步骤205;若是,说明不需要为第一节点进行部署,则结束。If no, indicating that the first node needs to be re-deployed, step 205 is performed; if yes, the first node is not required to be deployed, and then ends.
可选的,具体实现时,若步骤204的判断结果为否,则该方法还可以包括:控制节点向第一节点发送删除指示消息,该删除指示消息用于使第一节点删除其实际运行的所有部署单元;第一节点根据删除消息指示删除其实际运行的所有部署单元。该可选的方式能够避免出现因第一节点中包含已在部署的部署单元,导致的在为第一节点部署需部署的部署单元时,部署准确性差的问题。Optionally, in a specific implementation, if the determination result in step 204 is no, the method may further include: the control node sending a deletion indication message to the first node, where the deletion indication message is used to delete the actual operation of the first node. All deployment units; the first node deletes all deployment units that it actually runs according to the delete message indication. This optional method can avoid the problem of poor deployment accuracy when deploying the deployment unit to be deployed for the first node due to the deployment node already deployed in the first node.
另外,若步骤204的判断结果为否,还可以仅删除正在运行的、非预先部署的部署单元,并在第一节点中部署预先部署的部署单元中未部署的部署单元。In addition, if the determination result in step 204 is no, only the running, non-pre-deployed deployment unit may be deleted, and the deployment unit that is not deployed in the pre-deployed deployment unit is deployed in the first node.
205、控制节点获取第一节点的节点类型。205. The control node acquires a node type of the first node.
206、控制节点将第一节点的节点类型与预设表中的节点类型进行匹配,得到第一节点可部署的部署单元集合。206. The control node matches the node type of the first node with the node type in the preset table to obtain a deployment unit set that can be deployed by the first node.
如表1所示,为一种预设表的示意图:As shown in Table 1, it is a schematic diagram of a preset table:
表1Table 1
节点类型Node type 可部署的部署单元Deployable deployment unit
节点类型1Node type 1 部署单元A、部署单元B、部署单元C、部署单元DDeployment unit A, deployment unit B, deployment unit C, deployment unit D
节点类型2Node type 2 部署单元A、部署单元B、部署单元C、部署单元DDeployment unit A, deployment unit B, deployment unit C, deployment unit D
节点类型3Node type 3 部署单元A、部署单元C、部署单元DDeployment unit A, deployment unit C, deployment unit D
节点类型4Node type 4 部署单元EDeployment unit E
……...... ……......
假设第一节点的节点类型为节点类型1,则按照表1所示的预设表,步骤206中得到的第一节点可部署的部署单元集合为:部署单 元A、部署单元B、部署单元C和部署单元D。Assuming that the node type of the first node is node type 1, according to the preset table shown in Table 1, the set of deployment units that can be deployed by the first node obtained in step 206 is: a deployment list. Element A, deployment unit B, deployment unit C, and deployment unit D.
207、控制节点获取该可部署的部署单元集合中的部署单元对应的策略。207. The control node acquires a policy corresponding to the deployment unit in the deployable deployment unit set.
基于步骤206中的示例,假设部署单元A和部署单元B对应的策略如表2所示:Based on the example in step 206, it is assumed that the policies corresponding to deployment unit A and deployment unit B are as shown in Table 2:
表2Table 2
Figure PCTCN2014086952-appb-000001
Figure PCTCN2014086952-appb-000001
208、控制节点根据该可部署的部署单元集合中的各部署单元对应的策略选择第一节点需部署的部署单元。208. The control node selects a deployment unit to be deployed by the first node according to a policy corresponding to each deployment unit in the deployable deployment unit set.
基于步骤207中的示例,下面对步骤208的具体实现方式进行举例说明:Based on the example in step 207, the specific implementation of step 208 is illustrated below:
1)、针对部署单元A:判断系统中已经部署了部署单元A的节点的数目是否大于或等于5,若是,则确定部署单元A不为第一节点需部署的部署单元;若否,则判断第一节点中是否有可用硬盘,若否,则确定部署单元A不为第一节点需部署的部署单元;若是,则确定部署单元A为第一节点需部署的部署单元。 1), for the deployment unit A: determining whether the number of nodes in the system where the deployment unit A has been deployed is greater than or equal to 5, and if so, determining that the deployment unit A is not the deployment unit to be deployed by the first node; Whether there is an available hard disk in the first node, if not, it is determined that the deployment unit A is not the deployment unit to be deployed by the first node; if yes, it is determined that the deployment unit A is the deployment unit to be deployed on the first node.
2)、针对部署单元B:确定系统中是否已经部署了部署单元B,若是,则确定部署单元B不为第一节点需部署的部署单元;若否,则确定部署单元B为第一节点需部署的部署单元。2), for the deployment unit B: determining whether the deployment unit B has been deployed in the system, and if so, determining that the deployment unit B is not the deployment unit to be deployed by the first node; if not, determining that the deployment unit B is the first node The deployed deployment unit.
3)、针对部署单元C:确定部署单元C为第一节点需部署的部署单元。3) For deployment unit C: Determine deployment unit C as the deployment unit to be deployed on the first node.
4)、针对部署单元D:确定第一节点是否有可用内存,若否,则确定部署单元D不为第一节点需部署的部署单元;若是,则确定部署单元D为第一节点需部署的部署单元。需要说明的是,在该实施例中,部署单元D一定符合节点类型策略,具体理由参考上述实施例一。4), for the deployment unit D: determining whether the first node has available memory, if not, determining that the deployment unit D is not the deployment unit to be deployed by the first node; if yes, determining that the deployment unit D is the first node to be deployed Deployment unit. It should be noted that, in this embodiment, the deployment unit D must conform to the node type policy, and the specific reason is referred to the foregoing embodiment 1.
209:控制节点将该需部署的部署单元部署在第一节点中。209: The control node deploys the deployment unit to be deployed in the first node.
基于步骤207中的示例,将步骤208中得到的需部署的部署单元部署在第一节点中。其中,若部署单元A为需部署的部署单元,则第一节点中部署的部署单元A的数量不能超过2个(即满足表2中的数量策略)。Based on the example in step 207, the deployment unit to be deployed obtained in step 208 is deployed in the first node. If the deployment unit A is a deployment unit to be deployed, the number of deployment units A deployed in the first node cannot exceed two (that is, the quantity policy in Table 2 is satisfied).
本发明实施例提供的基于云环境系统的部署方法,通过确定待部署的第一节点和第一节点的节点类型,并根据第一节点的节点类型确定其可部署的部署单元集合,再根据该可部署的部署单元集合中的部署单元对应的策略确定第一节点需部署的部署单元,从而将这些需部署的部署单元部署在第一节点中。也就是说,本发明实施例可以通过自动控制的方法对一节点进行部署;与现有技术相比,不需要手动部署,因此,提高了部署效率。The cloud environment system-based deployment method provided by the embodiment of the present invention determines the node type of the first node and the first node to be deployed, and determines the deployable deployment unit set according to the node type of the first node, and then according to the The policy corresponding to the deployment unit in the deployable deployment unit set determines the deployment unit that the first node needs to deploy, so that the deployed deployment units are deployed in the first node. That is to say, the embodiment of the present invention can deploy a node by using an automatic control method; compared with the prior art, manual deployment is not required, thereby improving deployment efficiency.
实施例三Embodiment 3
本实施例通过“如何为一待部署的部署单元确定目标节点”对本发明实施例提供的基于云环境系统的部署方法进行说明。如图3所 示,本实施例提供的基于云环境系统的部署方法包括:This embodiment describes a cloud environment system-based deployment method provided by an embodiment of the present invention by using the method of "how to determine a target node for a deployment unit to be deployed." As shown in Figure 3 The cloud environment system-based deployment method provided by this embodiment includes:
301、控制模块在云环境系统中确定待部署的部署单元和所述待部署的部署单元对应的策略。301. The control module determines, in the cloud environment system, a policy corresponding to the deployment unit to be deployed and the deployment unit to be deployed.
本实施例可以应用于系统中新增一部署单元的场景或系统中已存在的部署单元进行迁移的场景中。也就是说,本实施例中的“待部署的部署单元”可以为系统中新增的一部署单元,也可以为已经部署在系统中的一个或多个节点中的部署单元。This embodiment can be applied to a scenario in which a deployment unit is added to a system or a deployment unit that exists in the system is migrated. That is to say, the "deployment unit to be deployed" in this embodiment may be a new deployment unit in the system, or may be a deployment unit that has been deployed in one or more nodes in the system.
可选的,待部署的部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。Optionally, the deployment unit to be deployed includes at least one of the following: a process, a process group, a virtual machine, and an application system.
可选的,待部署的部署单元对应的策略可以包括但不限于以下任一种:通用策略、单一策略、数量策略、节点类型策略、资源策略等。Optionally, the policy corresponding to the deployment unit to be deployed may include, but is not limited to, any one of the following: a general policy, a single policy, a quantity policy, a node type policy, a resource policy, and the like.
需要说明的是,一部署单元至多对应“单一策略、数量策略、通用策略”中的一个策略。另外,本实施例中的进程组“待部署的部署单元对应的策略”、“进程组”、“通用策略、单一策略、数量策略、节点类型策略、资源策略”等术语的解释均可以参考上述实施例一,此处不再赘述。It should be noted that a deployment unit corresponds to at least one of “single policy, quantity policy, and general policy”. In addition, the explanations of terms such as the policy corresponding to the deployment unit to be deployed, the process group, the general policy, the single policy, the quantity policy, the node type policy, and the resource policy may be referred to in the above embodiment. The first embodiment is not described here.
302、所述控制模块根据所述待部署的部署单元对应的策略为所述待部署的部署单元选择目标节点。具体的,将满足待部署的部署单元对应的策略的节点作为目标节点。302. The control module selects a target node for the deployment unit to be deployed according to the policy corresponding to the deployment unit to be deployed. Specifically, a node that satisfies a policy corresponding to the deployment unit to be deployed is used as the target node.
可选的,步骤302可以包括:Optionally, step 302 may include:
当所述待部署的部署单元对应的策略包括单一策略或数量策略时,根据待部署的部署单元对应的策略和系统中其他节点中的部署单元为所述待部署单元选择目标节点;When the policy corresponding to the deployment unit to be deployed includes a single policy or a quantity policy, the target node is selected for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed and the deployment unit in other nodes in the system;
或,当所述待部署的部署单元对应的策略包括资源策略时,根 据资源策略和系统中其他节点的资源为所述待部署的部署单元选择目标节点。其中,其他节点的资源具体可以为其他节点的可用资源。Or, when the policy corresponding to the deployment unit to be deployed includes a resource policy, the root The target node is selected for the deployment unit to be deployed according to the resource policy and resources of other nodes in the system. The resources of other nodes may specifically be available resources of other nodes.
假设待部署的部署单元为部署单元A,那么,步骤302可以具体实现为:Assuming that the deployment unit to be deployed is the deployment unit A, step 302 can be implemented as follows:
1)、当部署单元A对应的策略为通用策略时,将系统中所有节点作为目标节点。1) When the policy corresponding to deployment unit A is a general policy, all nodes in the system are used as target nodes.
2)、当部署单元A对应的策略为单一策略时,判断系统中是否已经部署了部署单元A;若是,则结束,若否,则将系统中的任一节点作为目标节点。2) When the policy corresponding to the deployment unit A is a single policy, it is determined whether the deployment unit A has been deployed in the system; if yes, the process ends; if not, any node in the system is used as the target node.
3)、当部署单元A对应的策略为数量策略(例如,数量策略为:将所对应的部署单元部署在系统中的至少1个且至多5个节点上时,判断系统中已经部署了部署单元A的节点的数目是否大于或等于5,若是,则结束,若否,则选择系统中的至少1个且至多5个节点作为目标节点。3) When the policy corresponding to the deployment unit A is a quantity policy (for example, the quantity policy is: when the corresponding deployment unit is deployed on at least one and at most five nodes in the system, it is determined that the deployment unit has been deployed in the system) Whether the number of nodes of A is greater than or equal to 5, and if so, ends, if not, selects at least one and at most 5 nodes in the system as target nodes.
4)、当部署单元A对应的策略为节点类型策略时,将系统中具有该节点类型的一个或多个节点作为目标节点。4) When the policy corresponding to the deployment unit A is a node type policy, one or more nodes having the node type in the system are used as target nodes.
5)、当部署单元A对应的策略为资源策略(例如,资源策略为:将所对应的部署单元部署在有可用内存的节点中的策略)时,将系统中有可用内存的一个或多个节点作为目标节点。5) When the policy corresponding to deployment unit A is a resource policy (for example, the resource policy is: the corresponding deployment unit is deployed in a node with available memory), one or more available memory in the system The node acts as the target node.
需要说明的是,具体实现时,一个部署单元也可以对应多个策略,本领域技术人员应当可以从上述示例中推断出该情况下的具体实现步骤,此处不再一一说明。It should be noted that, in a specific implementation, a deployment unit may also correspond to multiple policies, and those skilled in the art should be able to infer the specific implementation steps in this case from the above examples, and will not be described herein.
303、所述控制模块将所述待部署单元部署在所述目标节点中。303. The control module deploys the to-be-deployed unit in the target node.
示例性的,步骤303的具体实现方式可以参考上述实施例一中的步骤105的具体实现方式。需要说明的是,在本实施例提供的场 景中,目标节点中可以预先存储有待部署单元的相关指令文件。For example, the specific implementation manner of step 303 in the foregoing Embodiment 1 may refer to the specific implementation manner of step 105 in the foregoing Embodiment 1. It should be noted that the field provided in this embodiment In the scene, the relevant instruction file of the unit to be deployed may be pre-stored in the target node.
本发明实施例提供的基于云环境系统的部署方法,通过确定待部署的部署单元和该待部署的部署单元对应的策略,并根据该待部署的部署单元对应的策略为该待部署单元选择目标节点,从而将该待部署的部署单元部署在该目标节点中。也就是说,本发明实施例可以通过自动控制的方法为一部署单元确定目标节点,从而对该目标节点进行部署;与现有技术相比,不需要手动部署,与现有技术相比,不需要手动部署,因此,提高了部署效率。The cloud environment system-based deployment method provided by the embodiment of the present invention determines a policy corresponding to the deployment unit to be deployed and the deployment unit to be deployed, and selects a target for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed. A node, thereby deploying the deployment unit to be deployed in the target node. That is to say, the embodiment of the present invention can determine the target node for a deployment unit by using an automatic control method, thereby deploying the target node; compared with the prior art, manual deployment is not required, compared with the prior art, Manual deployment is required, thus increasing deployment efficiency.
实施例四Embodiment 4
如图4所示,本发明实施例提供一种基于云环境系统的部署装置40,用于实现图1所示的基于云环境系统的部署方法,该部署装置40包括:As shown in FIG. 4, the embodiment of the present invention provides a cloud environment system-based deployment device 40, which is used to implement the cloud environment system-based deployment method shown in FIG. 1. The deployment device 40 includes:
存储模块401,用于存储预设表,其中,所述预设表用于记录节点类型与具有该节点类型的节点可部署的部署单元之间的对应关系;The storage module 401 is configured to store a preset table, where the preset table is used to record a correspondence between a node type and a deployment unit deployable by a node having the node type;
处理模块402,用于执行以下动作:The processing module 402 is configured to perform the following actions:
在云环境系统中确定待部署的第一节点;Determining a first node to be deployed in a cloud environment system;
获取所述第一节点的节点类型;Obtaining a node type of the first node;
将所述第一节点的节点类型与预设表中的节点类型进行匹配,得到所述第一节点可部署的部署单元集合;Matching the node type of the first node with the node type in the preset table to obtain a deployment unit set that can be deployed by the first node;
根据所述可部署的部署单元集合中的部署单元对应的策略,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;Selecting, according to a policy corresponding to the deployment unit in the deployable deployment unit set, a deployment unit that needs to be deployed by the first node in the set of deployable deployment units;
将所述需部署的部署单元部署在所述第一节点中。 Deploying the deployment unit to be deployed in the first node.
可选的,所述处理模块402具体用于:确定系统中正在启动的节点为待部署的第一节点,或,确定系统中实际运行的部署单元与预先部署的部署单元不同的节点为待部署的第一节点。Optionally, the processing module 402 is specifically configured to: determine that the node that is being started in the system is the first node to be deployed, or determine that the node that is actually running in the system is different from the pre-deployed deployment unit is to be deployed. The first node.
可选的,所述可部署的部署单元集合中的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。Optionally, the policy corresponding to the deployment unit in the deployable deployment unit set includes: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
可选的,所述处理模块402具体用于:Optionally, the processing module 402 is specifically configured to:
当所述可部署的部署单元集合中的部署单元对应的策略包括单一策略或数量策略时,根据所述可部署的部署单元集合中的部署单元对应的策略和系统中其他节点中的部署单元,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;When the policy corresponding to the deployment unit in the deployable deployment unit set includes a single policy or a quantity policy, according to the policy corresponding to the deployment unit in the deployable deployment unit set and the deployment unit in other nodes in the system, Selecting, in the set of deployable deployment units, a deployment unit to be deployed by the first node;
或,当所述可部署的部署单元集合中的部署单元对应的策略包括资源策略时,根据资源策略和所述第一节点的资源,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元。Or, when the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy, selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit that the node needs to deploy.
可选的,所述处理模块402还用于,在触发条件下,迁移所述第一节点中的至少一个部署单元。Optionally, the processing module 402 is further configured to migrate at least one deployment unit in the first node under a trigger condition.
可选的,所述处理模块402具体用于:删除所述第一节点中的至少一个部署单元;根据所述删除的至少一个部署单元对应的策略,将所述删除的至少一个部署单元部署在系统中的其他节点中。Optionally, the processing module 402 is specifically configured to: delete at least one deployment unit of the first node; deploy the deleted at least one deployment unit according to a policy corresponding to the deleted at least one deployment unit Among other nodes in the system.
可选的,所述触发条件包括以下至少一种:所述第一节点中的部署单元所占的资源大于或等于一阈值,所述第一节点中的至少一个部署单元故障,所述第一节点所在的系统的负载量小于或等于一阈值。Optionally, the triggering condition includes at least one of the following: a resource occupied by a deployment unit in the first node is greater than or equal to a threshold, and at least one deployment unit in the first node is faulty, the first The load of the system where the node is located is less than or equal to a threshold.
可选的,所述处理模块402具体用于:确定所述第一节点中的n个可迁移部署单元;其中,n>1,n为整数;按照所述n个可迁移部署单元的迁移权值确定所述n个可迁移部署单元的迁移顺序;按照 所述迁移顺序依次迁移所述n个可迁移部署单元。Optionally, the processing module 402 is specifically configured to: determine n migratable deployment units in the first node; where n>1, n is an integer; and according to the migration rights of the n migratable deployment units The value determines the migration order of the n migratable deployment units; The migration sequence sequentially migrates the n migratable deployment units.
可选的,所述处理模块402还用于:当所述第一节点不再为所述系统中的节点时,将所述第一节点中的至少一个部署单元部署在系统中的其他节点中。Optionally, the processing module 402 is further configured to: when the first node is no longer a node in the system, deploy at least one deployment unit of the first node in another node in the system. .
可选的,所述处理模块402具体用于:根据所述第一节点中的至少一个部署单元对应的策略为所述第一节点中的至少一个部署单元选择目标节点;将所述第一节点中的至少一个部署单元部署在所述目标节点中。Optionally, the processing module 402 is specifically configured to: select, according to a policy corresponding to the at least one deployment unit of the first node, a target node for at least one deployment unit of the first node; At least one of the deployment units is deployed in the target node.
可选的,所述部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。Optionally, the deployment unit includes at least one of the following: a process, a process group, a virtual machine, and an application system.
需要说明的是,具体实现时,部署装置40可以集成在独立于云环境系统的一设备中,也可以集成在云环境系统中的任一设备中。It should be noted that, in specific implementation, the deployment device 40 may be integrated in a device independent of the cloud environment system, or may be integrated in any device in the cloud environment system.
本发明实施例提供的基于云环境系统的部署装置,通过确定待部署的第一节点和第一节点的节点类型,并根据第一节点的节点类型确定其可部署的部署单元集合,再根据该可部署的部署单元集合中的部署单元对应的策略确定第一节点需部署的部署单元,从而将这些需部署的部署单元部署在第一节点中。也就是说,该装置可以自动对一节点进行部署;与现有技术相比,不需要手动部署,因此,提高了部署效率。The cloud environment system-based deployment apparatus provided by the embodiment of the present invention determines the node type of the first node and the first node to be deployed, and determines the deployable deployment unit set according to the node type of the first node, and then according to the The policy corresponding to the deployment unit in the deployable deployment unit set determines the deployment unit that the first node needs to deploy, so that the deployed deployment units are deployed in the first node. That is to say, the device can automatically deploy a node; compared with the prior art, manual deployment is not required, thereby improving deployment efficiency.
实施例五Embodiment 5
在硬件实现上,实施例四中的各个模块可以可以以硬件形式内嵌于或独立于基于云环境系统的部署装置的处理器中,也可以以软件形式存储于基于云环境系统的部署装置的存储器中,以便于处理器调用执行以上各个模块对应的操作,该处理器可以为中央处理单元(CPU)、微处理器、单片机等。 In hardware implementation, each module in Embodiment 4 may be embedded in a hardware form or independent of a processor of a cloud environment system-based deployment device, or may be stored in software in a cloud environment system-based deployment device. In the memory, in order to facilitate the processor to perform the operations corresponding to the above modules, the processor may be a central processing unit (CPU), a microprocessor, a single chip microcomputer, or the like.
如图5所示,为本发明实施例提供一种部署装置50,用于实现图1所示的基于云环境系统的部署方法,所述部署装置50包括:存储器501、处理器502和总线系统503。As shown in FIG. 5, a deployment device 50 is provided for implementing the cloud environment system-based deployment method shown in FIG. 1. The deployment device 50 includes: a memory 501, a processor 502, and a bus system. 503.
其中,存储器501和处理器502之间是通过总线系统503耦合在一起的,其中存储器501可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。总线系统503,可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(Peripheral Component,外部设备互连)总线或EISA(Extended Industry Standard Architecture,扩展工业标准体系结构)总线等。该总线系统503可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The memory 501 and the processor 502 are coupled together by a bus system 503, wherein the memory 501 may include a high speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory. . The bus system 503 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component) bus, or an EISA (Extended Industry Standard Architecture) bus. The bus system 503 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 5, but it does not mean that there is only one bus or one type of bus.
存储器501用于存储一组代码,该代码用于控制所述处理器502执行以下动作:The memory 501 is configured to store a set of codes for controlling the processor 502 to perform the following actions:
在云环境系统中确定待部署的第一节点;Determining a first node to be deployed in a cloud environment system;
获取所述第一节点的节点类型;Obtaining a node type of the first node;
将所述第一节点的节点类型与预设表中的节点类型进行匹配,得到所述第一节点可部署的部署单元集合;其中,所述预设表用于记录节点类型与具有该节点类型的节点可部署的部署单元之间的对应关系;Matching the node type of the first node with the node type in the preset table to obtain a deployment unit set that can be deployed by the first node; wherein the preset table is used to record a node type and have the node type Correspondence between deployment units of nodes that can be deployed;
根据所述可部署的部署单元集合中的部署单元对应的策略,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;Selecting, according to a policy corresponding to the deployment unit in the deployable deployment unit set, a deployment unit that needs to be deployed by the first node in the set of deployable deployment units;
将所述需部署的部署单元部署在所述第一节点中。Deploying the deployment unit to be deployed in the first node.
可选的,所述处理器502具体用于:确定系统中正在启动的节 点为待部署的第一节点,或,确定系统中实际运行的部署单元与预先部署的部署单元不同的节点为待部署的第一节点。Optionally, the processor 502 is specifically configured to: determine a section that is being started in the system. The point is the first node to be deployed, or the node that determines that the deployment unit actually running in the system is different from the pre-deployed deployment unit is the first node to be deployed.
可选的,所述可部署的部署单元集合中的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。Optionally, the policy corresponding to the deployment unit in the deployable deployment unit set includes: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
可选的,所述处理器502具体用于:Optionally, the processor 502 is specifically configured to:
当所述可部署的部署单元集合中的部署单元对应的策略包括单一策略或数量策略时,根据所述可部署的部署单元集合中的部署单元对应的策略和系统中其他节点中的部署单元,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;When the policy corresponding to the deployment unit in the deployable deployment unit set includes a single policy or a quantity policy, according to the policy corresponding to the deployment unit in the deployable deployment unit set and the deployment unit in other nodes in the system, Selecting, in the set of deployable deployment units, a deployment unit to be deployed by the first node;
或,当所述可部署的部署单元集合中的部署单元对应的策略包括资源策略时,根据资源策略和所述第一节点的资源,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元。Or, when the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy, selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit that the node needs to deploy.
可选的,所述处理器502还用于在触发条件下,迁移所述第一节点中的至少一个部署单元。Optionally, the processor 502 is further configured to migrate at least one deployment unit in the first node under a trigger condition.
可选的,所述处理器502还用于删除所述第一节点中的至少一个部署单元;根据所述删除的至少一个部署单元对应的策略,将所述删除的至少一个部署单元部署在系统中的其他节点中。Optionally, the processor 502 is further configured to delete at least one deployment unit of the first node, and deploy the deleted at least one deployment unit to the system according to the policy corresponding to the deleted at least one deployment unit. Among the other nodes in .
可选的,所述触发条件包括以下至少一种:所述第一节点中的部署单元所占的资源大于或等于一阈值,所述第一节点中的至少一个部署单元故障,所述第一节点所在的系统的负载量小于或等于一阈值。Optionally, the triggering condition includes at least one of the following: a resource occupied by a deployment unit in the first node is greater than or equal to a threshold, and at least one deployment unit in the first node is faulty, the first The load of the system where the node is located is less than or equal to a threshold.
可选的,所述处理器502具体用于:确定所述第一节点中的n个可迁移部署单元;其中,n>1,n为整数;按照所述n个可迁移部署单元的迁移权值确定所述n个可迁移部署单元的迁移顺序;按照所述迁移顺序依次迁移所述n个可迁移部署单元。 Optionally, the processor 502 is specifically configured to: determine n migratable deployment units in the first node; where n>1, n is an integer; and according to the migration rights of the n migratable deployment units The value determines a migration order of the n migratable deployment units; and the n migratable deployment units are sequentially migrated according to the migration order.
可选的,所述处理器502还用于:当所述第一节点不再为所述系统中的节点时,将所述第一节点中的至少一个部署单元部署在系统中的其他节点中。Optionally, the processor 502 is further configured to: when the first node is no longer a node in the system, deploy at least one deployment unit of the first node in another node in the system. .
可选的,所述处理器502具体用于:根据所述第一节点中的至少一个部署单元对应的策略为所述第一节点中的至少一个部署单元选择目标节点;将所述第一节点中的至少一个部署单元部署在所述目标节点中。Optionally, the processor 502 is specifically configured to: select, according to a policy corresponding to the at least one deployment unit of the first node, a target node for at least one deployment unit of the first node; At least one of the deployment units is deployed in the target node.
可选的,所述部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。Optionally, the deployment unit includes at least one of the following: a process, a process group, a virtual machine, and an application system.
本发明实施例提供的基于云环境系统的部署装置,通过确定待部署的第一节点和第一节点的节点类型,并根据第一节点的节点类型确定其可部署的部署单元集合,再根据该可部署的部署单元集合中的部署单元对应的策略确定第一节点需部署的部署单元,从而将这些需部署的部署单元部署在第一节点中。也就是说,该装置可以通过自动控制的方法对一节点进行部署;与现有技术相比,不需要手动部署,因此,提高了部署效率。The cloud environment system-based deployment apparatus provided by the embodiment of the present invention determines the node type of the first node and the first node to be deployed, and determines the deployable deployment unit set according to the node type of the first node, and then according to the The policy corresponding to the deployment unit in the deployable deployment unit set determines the deployment unit that the first node needs to deploy, so that the deployed deployment units are deployed in the first node. That is to say, the device can deploy a node by an automatic control method; compared with the prior art, manual deployment is not required, thereby improving deployment efficiency.
实施例六Embodiment 6
如图6所示,本发明实施例提供一种基于云环境系统的部署装置60,用于实现图3所示的基于云环境系统的部署方法,该部署装置60包括:As shown in FIG. 6, the embodiment of the present invention provides a cloud environment system-based deployment device 60, which is used to implement the cloud environment system-based deployment method shown in FIG.
处理模块601,用于执行以下动作:The processing module 601 is configured to perform the following actions:
确定待部署的部署单元和所述待部署的部署单元对应的策略;Determining a policy corresponding to the deployment unit to be deployed and the deployment unit to be deployed;
根据所述待部署的部署单元对应的策略为所述待部署的部署单元选择目标节点;Selecting a target node for the deployment unit to be deployed according to the policy corresponding to the deployment unit to be deployed;
将所述待部署单元部署在所述目标节点中; Deploying the to-be-deployed unit in the target node;
存储模块602,用于存储所述待部署的部署单元对应的策略。可选的,所述待部署的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。The storage module 602 is configured to store a policy corresponding to the deployment unit to be deployed. Optionally, the policy corresponding to the deployment unit to be deployed includes: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
可选的,所述处理模块601具体用于:Optionally, the processing module 601 is specifically configured to:
当所述待部署的部署单元对应的策略包括单一策略或数量策略时,根据待部署的部署单元对应的策略和系统中其他节点中的部署单元为所述待部署单元选择目标节点;When the policy corresponding to the deployment unit to be deployed includes a single policy or a quantity policy, the target node is selected for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed and the deployment unit in other nodes in the system;
或,当所述待部署的部署单元对应的策略包括资源策略时,根据资源策略和系统中其他节点的资源为所述待部署的部署单元选择目标节点。Or, when the policy corresponding to the deployment unit to be deployed includes a resource policy, select a target node for the deployment unit to be deployed according to the resource policy and resources of other nodes in the system.
可选的,所述待部署的部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。Optionally, the deployment unit to be deployed includes at least one of the following: a process, a process group, a virtual machine, and an application system.
本发明实施例提供的基于云环境系统的部署装置,通过确定待部署的第一节点和第一节点的节点类型,并根据第一节点的节点类型确定其可部署的部署单元集合,再根据该可部署的部署单元集合中的部署单元对应的策略确定第一节点需部署的部署单元,从而将这些需部署的部署单元部署在第一节点中。也就是说,该装置可以通过自动控制的方法对一节点进行部署;与现有技术相比,不需要手动部署,因此,提高了部署效率。The cloud environment system-based deployment apparatus provided by the embodiment of the present invention determines the node type of the first node and the first node to be deployed, and determines the deployable deployment unit set according to the node type of the first node, and then according to the The policy corresponding to the deployment unit in the deployable deployment unit set determines the deployment unit that the first node needs to deploy, so that the deployed deployment units are deployed in the first node. That is to say, the device can deploy a node by an automatic control method; compared with the prior art, manual deployment is not required, thereby improving deployment efficiency.
实施例七Example 7
在硬件实现上,实施例六中的各个模块可以可以以硬件形式内嵌于或独立于用户设备UE的处理器中,也可以以软件形式存储于装置70的存储器中,以便于处理器调用执行以上各个模块对应的操作,该处理器可以为中央处理单元(CPU)、微处理器、单片机等。In hardware implementation, each module in Embodiment 6 may be embedded in or independent of the processor of the user equipment UE in hardware, or may be stored in the memory of the device 70 in software, so that the processor can execute the call. For the operations corresponding to the above modules, the processor may be a central processing unit (CPU), a microprocessor, a single chip microcomputer, or the like.
如图7所示,为本发明实施例提供一种基于云环境系统的部署 装置70,用于实现图3所示的基于云环境系统的部署方法,所述部署装置70包括:存储器701、处理器702和总线系统703。As shown in FIG. 7, a cloud environment system based deployment is provided according to an embodiment of the present invention. The device 70 is configured to implement the cloud environment system-based deployment method shown in FIG. 3, where the deployment device 70 includes a memory 701, a processor 702, and a bus system 703.
其中,存储器701和处理器702之间是通过总线系统703耦合在一起的,其中存储器701可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。总线系统703,可以是ISA总线、PCI总线或EISA总线等。该总线系统703可以分为地址总线、数据总线、控制总线等。为便于表示,图7中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The memory 701 and the processor 702 are coupled together by a bus system 703, wherein the memory 701 may include a high speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory. . The bus system 703 can be an ISA bus, a PCI bus, or an EISA bus. The bus system 703 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 7, but it does not mean that there is only one bus or one type of bus.
所述存储器701用于存储一组代码,该代码包括计算机操作指令。该代码用于控制所述处理器702执行以下动作:The memory 701 is for storing a set of codes including computer operating instructions. The code is used to control the processor 702 to perform the following actions:
在云环境系统中确定待部署的部署单元和所述待部署的部署单元对应的策略;Determining, in the cloud environment system, a policy corresponding to the deployment unit to be deployed and the deployment unit to be deployed;
根据所述待部署的部署单元对应的策略为所述待部署的部署单元选择目标节点;Selecting a target node for the deployment unit to be deployed according to the policy corresponding to the deployment unit to be deployed;
将所述待部署单元部署在所述目标节点中。The unit to be deployed is deployed in the target node.
可选的,所述待部署的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。Optionally, the policy corresponding to the deployment unit to be deployed includes: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
可选的,所述处理器702具体用于:Optionally, the processor 702 is specifically configured to:
当所述待部署的部署单元对应的策略包括单一策略或数量策略时,根据待部署的部署单元对应的策略和系统中其他节点中的部署单元为所述待部署单元选择目标节点;When the policy corresponding to the deployment unit to be deployed includes a single policy or a quantity policy, the target node is selected for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed and the deployment unit in other nodes in the system;
或,当所述待部署的部署单元对应的策略包括资源策略时,根据资源策略和系统中其他节点的资源为所述待部署的部署单元选择目标节点。 Or, when the policy corresponding to the deployment unit to be deployed includes a resource policy, select a target node for the deployment unit to be deployed according to the resource policy and resources of other nodes in the system.
可选的,所述待部署的部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。Optionally, the deployment unit to be deployed includes at least one of the following: a process, a process group, a virtual machine, and an application system.
需要说明的是,具体实现时,部署装置70可以集成在独立于云环境系统的一设备中,也可以集成在云环境系统中的任一设备中。It should be noted that, in a specific implementation, the deployment device 70 may be integrated in a device independent of the cloud environment system, or may be integrated in any device in the cloud environment system.
本发明实施例提供的基于云环境系统的部署装置,通过确定待部署的第一节点和第一节点的节点类型,并根据第一节点的节点类型确定其可部署的部署单元集合,再根据该可部署的部署单元集合中的部署单元对应的策略确定第一节点需部署的部署单元,从而将这些需部署的部署单元部署在第一节点中。也就是说,该装置可以通过自动控制的方法对一节点进行部署;与现有技术相比,不需要手动部署,因此,提高了部署效率。The cloud environment system-based deployment apparatus provided by the embodiment of the present invention determines the node type of the first node and the first node to be deployed, and determines the deployable deployment unit set according to the node type of the first node, and then according to the The policy corresponding to the deployment unit in the deployable deployment unit set determines the deployment unit that the first node needs to deploy, so that the deployed deployment units are deployed in the first node. That is to say, the device can deploy a node by an automatic control method; compared with the prior art, manual deployment is not required, thereby improving deployment efficiency.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division. In actual implementation, there may be another division manner, for example, multiple modules or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated. The components displayed as modules may or may not be physical modules, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能模块可以集成在一个处理模块中,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。 In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or two or more modules may be integrated into one module. The above integrated modules can be implemented in the form of hardware or in the form of hardware plus software function modules.
上述以软件功能模块的形式实现的集成的模块,可以存储在一个计算机可读取存储介质中。上述软件功能模块存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The above-described integrated modules implemented in the form of software function modules can be stored in a computer readable storage medium. The software functional modules described above are stored in a storage medium and include instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform some of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, and the program code can be stored. Medium.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。 It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not limited thereto; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that The technical solutions described in the foregoing embodiments are modified, or the equivalents of the technical features are replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (45)

  1. 一种基于云环境系统的部署方法,其特征在于,包括:A deployment method based on a cloud environment system, comprising:
    控制模块在云环境系统中确定待部署的第一节点;The control module determines the first node to be deployed in the cloud environment system;
    所述控制模块获取所述第一节点的节点类型;The control module acquires a node type of the first node;
    所述控制模块将所述第一节点的节点类型与预设表中的节点类型进行匹配,得到所述第一节点可部署的部署单元集合;其中,所述预设表用于记录节点类型与具有该节点类型的节点可部署的部署单元之间的对应关系;The control module matches the node type of the first node with the node type in the preset table to obtain a deployment unit set that can be deployed by the first node; wherein the preset table is used to record the node type and Correspondence between deployment units that can be deployed by nodes of the node type;
    所述控制模块根据所述可部署的部署单元集合中的部署单元对应的策略,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;The control module selects, according to a policy corresponding to the deployment unit in the deployable deployment unit set, a deployment unit that needs to be deployed by the first node in the set of deployable deployment units;
    所述控制模块将所述需部署的部署单元部署在所述第一节点中。The control module deploys the deployment unit to be deployed in the first node.
  2. 根据权利要求1所述的方法,其特征在于,所述确定待部署的第一节点,包括:The method according to claim 1, wherein the determining the first node to be deployed comprises:
    确定系统中正在启动的节点为待部署的第一节点,或,确定系统中实际运行的部署单元与预先部署的部署单元不同的节点为待部署的第一节点。The node that is being started in the system is determined to be the first node to be deployed, or the node that is determined to be actually deployed in the system is different from the pre-deployed deployment unit is the first node to be deployed.
  3. 根据权利要求1或2所述的方法,其特征在于,所述可部署的部署单元集合中的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。The method according to claim 1 or 2, wherein the policy corresponding to the deployment unit in the set of deployable deployment units comprises: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述可部署的部署单元集合中的部署单元对应的策略,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元,包括:The method according to claim 3, wherein the selecting the first node to be deployed in the set of deployable deployment units according to a policy corresponding to a deployment unit in the deployable deployment unit set Deployment unit, including:
    当所述可部署的部署单元集合中的部署单元对应的策略包括单一策略或数量策略时,根据所述可部署的部署单元集合中的部署单元对应的策略和系统中其他节点中的部署单元,在所述可部署的部 署单元集合中选择所述第一节点需部署的部署单元;When the policy corresponding to the deployment unit in the deployable deployment unit set includes a single policy or a quantity policy, according to the policy corresponding to the deployment unit in the deployable deployment unit set and the deployment unit in other nodes in the system, In the deployable department Selecting a deployment unit to be deployed by the first node in the set of unit units;
    或,当所述可部署的部署单元集合中的部署单元对应的策略包括资源策略时,根据资源策略和所述第一节点的资源,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元。Or, when the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy, selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit that the node needs to deploy.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,在所述将所述需部署的部署单元部署在所述第一节点中之后,所述方法还包括:The method according to any one of claims 1 to 4, wherein after the deploying the deployment unit to be deployed in the first node, the method further comprises:
    在触发条件下,迁移所述第一节点中的至少一个部署单元。At least one of the first nodes is migrated under a trigger condition.
  6. 根据权利要求5所述的方法,其特征在于,所述迁移所述第一节点中的至少一个部署单元,包括:The method according to claim 5, wherein the migrating at least one of the first nodes comprises:
    删除所述第一节点中的至少一个部署单元;Deleting at least one deployment unit of the first node;
    根据所述删除的至少一个部署单元对应的策略,将所述删除的至少一个部署单元部署在系统中的其他节点中。And deleting the deleted at least one deployment unit in other nodes in the system according to the policy corresponding to the deleted at least one deployment unit.
  7. 根据权利要求5或6所述的方法,其特征在于,所述触发条件包括以下至少一种:所述第一节点中的部署单元所占的资源大于或等于一阈值,所述第一节点中的至少一个部署单元故障,所述第一节点所在的系统的负载量小于或等于一阈值。The method according to claim 5 or 6, wherein the triggering condition comprises at least one of the following: a resource occupied by a deployment unit in the first node is greater than or equal to a threshold, in the first node. At least one deployment unit fails, and the load of the system in which the first node is located is less than or equal to a threshold.
  8. 根据权利要求5至7任一项所述的方法,其特征在于,所述迁移所述第一节点中的至少一个部署单元,包括:The method according to any one of claims 5 to 7, wherein the migrating at least one of the first nodes comprises:
    确定所述第一节点中的n个可迁移部署单元;其中,n>1,n为整数;Determining n migratable deployment units in the first node; wherein n>1, n is an integer;
    按照所述n个可迁移部署单元的迁移权值确定所述n个可迁移部署单元的迁移顺序;Determining a migration order of the n migratable deployment units according to a migration weight of the n migratable deployment units;
    按照所述迁移顺序依次迁移所述n个可迁移部署单元。The n migratable deployment units are sequentially migrated according to the migration order.
  9. 根据权利要求1-8任一项所述的方法,其特征在于,在所述将所述需部署的部署单元部署在所述第一节点中之后,所述方法还包括: The method according to any one of claims 1 to 8, wherein after the deploying the deployment unit to be deployed in the first node, the method further comprises:
    当所述第一节点不再为所述系统中的节点时,将所述第一节点中的至少一个部署单元部署在系统中的其他节点中。When the first node is no longer a node in the system, at least one of the first nodes is deployed in other nodes in the system.
  10. 根据权利要求9所述的方法,其特征在于,所述将所述第一节点中的至少一个部署单元部署在系统中的其他节点中,包括:The method according to claim 9, wherein the deploying at least one of the first nodes in other nodes in the system comprises:
    根据所述第一节点中的至少一个部署单元对应的策略为所述第一节点中的至少一个部署单元选择目标节点;Selecting a target node for at least one of the first nodes according to a policy corresponding to at least one of the first nodes;
    将所述第一节点中的至少一个部署单元部署在所述目标节点中。At least one deployment unit of the first node is deployed in the target node.
  11. 根据权利要求1-10任一项所述的方法,其特征在于,所述部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。The method according to any one of claims 1 to 10, wherein the deployment unit comprises at least one of the following: a process, a process group, a virtual machine, and an application system.
  12. 一种基于云环境系统的部署方法,其特征在于,包括:A deployment method based on a cloud environment system, comprising:
    控制模块在云环境系统中确定待部署的部署单元和所述待部署的部署单元对应的策略;The control module determines a policy corresponding to the deployment unit to be deployed and the deployment unit to be deployed in the cloud environment system;
    所述控制模块根据所述待部署的部署单元对应的策略为所述待部署的部署单元选择目标节点;The control module selects a target node for the deployment unit to be deployed according to the policy corresponding to the deployment unit to be deployed;
    所述控制模块将所述待部署单元部署在所述目标节点中。The control module deploys the to-be-deployed unit in the target node.
  13. 根据权利要求12所述的方法,其特征在于,所述待部署的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。The method according to claim 12, wherein the policy corresponding to the deployment unit to be deployed comprises: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
  14. 根据权利要求13所述的方法,其特征在于,所述根据所述待部署的部署单元对应的策略为所述待部署单元选择目标节点,包括:The method according to claim 13, wherein the selecting a target node for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed includes:
    当所述待部署的部署单元对应的策略包括单一策略或数量策略时,根据待部署的部署单元对应的策略和系统中其他节点中的部署单元为所述待部署单元选择目标节点;When the policy corresponding to the deployment unit to be deployed includes a single policy or a quantity policy, the target node is selected for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed and the deployment unit in other nodes in the system;
    或,当所述待部署的部署单元对应的策略包括资源策略时,根据资源策略和系统中其他节点的资源为所述待部署的部署单元选择 目标节点。Or, when the policy corresponding to the deployment unit to be deployed includes a resource policy, the resource policy and the resources of other nodes in the system are selected as the deployment unit to be deployed. Target node.
  15. 根据权利要求12-14任一项所述的方法,其特征在于,所述待部署的部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。The method according to any one of claims 12 to 14, wherein the deployment unit to be deployed comprises at least one of the following: a process, a process group, a virtual machine, and an application system.
  16. 一种基于云环境系统的部署装置,其特征在于,包括:A deployment device based on a cloud environment system, comprising:
    存储模块,用于存储预设表,其中,所述预设表用于记录节点类型与具有该节点类型的节点可部署的部署单元之间的对应关系;a storage module, configured to store a preset table, where the preset table is used to record a correspondence between a node type and a deployment unit deployable by a node having the node type;
    处理模块,用于执行以下动作:Processing module for performing the following actions:
    在云环境系统中确定待部署的第一节点;Determining a first node to be deployed in a cloud environment system;
    获取所述第一节点的节点类型;Obtaining a node type of the first node;
    将所述第一节点的节点类型与所述预设表中的节点类型进行匹配,得到所述第一节点可部署的部署单元集合;Matching the node type of the first node with the node type in the preset table to obtain a deployment unit set that can be deployed by the first node;
    根据所述可部署的部署单元集合中的部署单元对应的策略,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;Selecting, according to a policy corresponding to the deployment unit in the deployable deployment unit set, a deployment unit that needs to be deployed by the first node in the set of deployable deployment units;
    将所述需部署的部署单元部署在所述第一节点中。Deploying the deployment unit to be deployed in the first node.
  17. 根据权利要求16所述的装置,其特征在于,所述处理模块具体用于:The device according to claim 16, wherein the processing module is specifically configured to:
    确定系统中正在启动的节点为待部署的第一节点,或,确定系统中实际运行的部署单元与预先部署的部署单元不同的节点为待部署的第一节点。The node that is being started in the system is determined to be the first node to be deployed, or the node that is determined to be actually deployed in the system is different from the pre-deployed deployment unit is the first node to be deployed.
  18. 根据权利要求16或17所述的装置,其特征在于,所述可部署的部署单元集合中的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。The device according to claim 16 or 17, wherein the policy corresponding to the deployment unit in the set of deployable deployment units comprises: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
  19. 根据权利要求18所述的装置,其特征在于,所述处理模块具体用于:The device according to claim 18, wherein the processing module is specifically configured to:
    当所述可部署的部署单元集合中的部署单元对应的策略包括单 一策略或数量策略时,根据所述可部署的部署单元集合中的部署单元对应的策略和系统中其他节点中的部署单元,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;The policy corresponding to the deployment unit in the deployable deployment unit set includes a single When a policy or quantity policy is selected, the first node needs to be selected among the deployable deployment unit sets according to a policy corresponding to a deployment unit in the deployable deployment unit set and a deployment unit in other nodes in the system. The deployed deployment unit;
    或,当所述可部署的部署单元集合中的部署单元对应的策略包括资源策略时,根据资源策略和所述第一节点的资源,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元。Or, when the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy, selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit that the node needs to deploy.
  20. 根据权利要求16-19任一项所述的装置,其特征在于,所述处理模块还用于,在触发条件下,迁移所述第一节点中的至少一个部署单元。The apparatus according to any one of claims 16 to 19, wherein the processing module is further configured to migrate at least one deployment unit of the first node under a trigger condition.
  21. 根据权利要求20所述的装置,其特征在于,所述处理模块具体用于:The device according to claim 20, wherein the processing module is specifically configured to:
    删除所述第一节点中的至少一个部署单元;Deleting at least one deployment unit of the first node;
    根据所述删除的至少一个部署单元对应的策略,将所述删除的至少一个部署单元部署在系统中的其他节点中。And deleting the deleted at least one deployment unit in other nodes in the system according to the policy corresponding to the deleted at least one deployment unit.
  22. 根据权利要求20或21所述的装置,其特征在于,所述触发条件包括以下至少一种:所述第一节点中的部署单元所占的资源大于或等于一阈值,所述第一节点中的至少一个部署单元故障,所述第一节点所在的系统的负载量小于或等于一阈值。The device according to claim 20 or 21, wherein the triggering condition comprises at least one of the following: a resource occupied by a deployment unit in the first node is greater than or equal to a threshold, in the first node. At least one deployment unit fails, and the load of the system in which the first node is located is less than or equal to a threshold.
  23. 根据权利要求20至22任一项所述的装置,其特征在于,所述处理模块具体用于:The device according to any one of claims 20 to 22, wherein the processing module is specifically configured to:
    确定所述第一节点中的n个可迁移部署单元;其中,n>1,n为整数;Determining n migratable deployment units in the first node; wherein n>1, n is an integer;
    按照所述n个可迁移部署单元的迁移权值确定所述n个可迁移部署单元的迁移顺序;Determining a migration order of the n migratable deployment units according to a migration weight of the n migratable deployment units;
    按照所述迁移顺序依次迁移所述n个可迁移部署单元。The n migratable deployment units are sequentially migrated according to the migration order.
  24. 根据权利要求16-23任一项项所述的装置,其特征在于,所述处理模块还用于: The device according to any one of claims 16 to 23, wherein the processing module is further configured to:
    当所述第一节点不再为所述系统中的节点时,将所述第一节点中的至少一个部署单元部署在系统中的其他节点中。When the first node is no longer a node in the system, at least one of the first nodes is deployed in other nodes in the system.
  25. 根据权利要求24所述的装置,其特征在于,所述处理模块具体用于:The device according to claim 24, wherein the processing module is specifically configured to:
    根据所述第一节点中的至少一个部署单元对应的策略为所述第一节点中的至少一个部署单元选择目标节点;Selecting a target node for at least one of the first nodes according to a policy corresponding to at least one of the first nodes;
    将所述第一节点中的至少一个部署单元部署在所述目标节点中。At least one deployment unit of the first node is deployed in the target node.
  26. 根据权利要求16-25任一项所述的装置,其特征在于,所述部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。The device according to any one of claims 16 to 25, wherein the deployment unit comprises at least one of the following: a process, a process group, a virtual machine, and an application system.
  27. 一种基于云环境系统的部署装置,其特征在于,包括:A deployment device based on a cloud environment system, comprising:
    处理模块,用于执行以下动作:Processing module for performing the following actions:
    确定待部署的部署单元和所述待部署的部署单元对应的策略;Determining a policy corresponding to the deployment unit to be deployed and the deployment unit to be deployed;
    根据所述待部署的部署单元对应的策略为所述待部署的部署单元选择目标节点;Selecting a target node for the deployment unit to be deployed according to the policy corresponding to the deployment unit to be deployed;
    将所述待部署单元部署在所述目标节点中;Deploying the to-be-deployed unit in the target node;
    存储模块,用于存储所述待部署的部署单元对应的策略。And a storage module, configured to store a policy corresponding to the deployment unit to be deployed.
  28. 根据权利要求27所述的装置,其特征在于,所述待部署的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。The device according to claim 27, wherein the policy corresponding to the deployment unit to be deployed comprises: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
  29. 根据权利要求28所述的装置,其特征在于,所述处理模块具体用于:The device according to claim 28, wherein the processing module is specifically configured to:
    当所述待部署的部署单元对应的策略包括单一策略或数量策略时,根据待部署的部署单元对应的策略和系统中其他节点中的部署单元为所述待部署单元选择目标节点;When the policy corresponding to the deployment unit to be deployed includes a single policy or a quantity policy, the target node is selected for the to-be-deployed unit according to the policy corresponding to the deployment unit to be deployed and the deployment unit in other nodes in the system;
    或,当所述待部署的部署单元对应的策略包括资源策略时,根据资源策略和系统中其他节点的资源为所述待部署的部署单元选择 目标节点。Or, when the policy corresponding to the deployment unit to be deployed includes a resource policy, the resource policy and the resources of other nodes in the system are selected as the deployment unit to be deployed. Target node.
  30. 根据权利要求27-29任一项所述的装置,其特征在于,所述待部署的部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。The device according to any one of claims 27 to 29, wherein the deployment unit to be deployed comprises at least one of the following: a process, a process group, a virtual machine, and an application system.
  31. 一种基于云环境系统的部署装置,其特征在于,包括:存储器和处理器;A deployment device based on a cloud environment system, comprising: a memory and a processor;
    所述存储器用于存储一组代码,该代码用于控制所述处理器执行以下动作:The memory is for storing a set of codes for controlling the processor to perform the following actions:
    在云环境系统中确定待部署的第一节点;Determining a first node to be deployed in a cloud environment system;
    获取所述第一节点的节点类型;Obtaining a node type of the first node;
    将所述第一节点的节点类型与预设表中的节点类型进行匹配,得到所述第一节点可部署的部署单元集合;其中,所述预设表用于记录节点类型与具有该节点类型的节点可部署的部署单元之间的对应关系;Matching the node type of the first node with the node type in the preset table to obtain a deployment unit set that can be deployed by the first node; wherein the preset table is used to record a node type and have the node type Correspondence between deployment units of nodes that can be deployed;
    根据所述可部署的部署单元集合中的部署单元对应的策略,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;Selecting, according to a policy corresponding to the deployment unit in the deployable deployment unit set, a deployment unit that needs to be deployed by the first node in the set of deployable deployment units;
    将所述需部署的部署单元部署在所述第一节点中。Deploying the deployment unit to be deployed in the first node.
  32. 根据权利要求31所述的装置,其特征在于,所述处理器具体用于:The device according to claim 31, wherein the processor is specifically configured to:
    确定系统中正在启动的节点为待部署的第一节点,或,确定系统中实际运行的部署单元与预先部署的部署单元不同的节点为待部署的第一节点。The node that is being started in the system is determined to be the first node to be deployed, or the node that is determined to be actually deployed in the system is different from the pre-deployed deployment unit is the first node to be deployed.
  33. 根据权利要求31或32所述的装置,其特征在于,所述可部署的部署单元集合中的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。The device according to claim 31 or 32, wherein the policy corresponding to the deployment unit in the set of deployable deployment units comprises: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
  34. 根据权利要求33所述的装置,其特征在于,所述处理器具 体用于:The device according to claim 33, wherein said treatment tool Body for:
    当所述可部署的部署单元集合中的部署单元对应的策略包括单一策略或数量策略时,根据所述可部署的部署单元集合中的部署单元对应的策略和系统中其他节点中的部署单元,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元;When the policy corresponding to the deployment unit in the deployable deployment unit set includes a single policy or a quantity policy, according to the policy corresponding to the deployment unit in the deployable deployment unit set and the deployment unit in other nodes in the system, Selecting, in the set of deployable deployment units, a deployment unit to be deployed by the first node;
    或,当所述可部署的部署单元集合中的部署单元对应的策略包括资源策略时,根据资源策略和所述第一节点的资源,在所述可部署的部署单元集合中选择所述第一节点需部署的部署单元。Or, when the policy corresponding to the deployment unit in the deployable deployment unit set includes a resource policy, selecting the first one of the deployable deployment unit sets according to the resource policy and the resource of the first node The deployment unit that the node needs to deploy.
  35. 根据权利要求31-34任一项所述的装置,其特征在于,所述处理器还用于:The device according to any one of claims 31 to 34, wherein the processor is further configured to:
    在触发条件下,迁移所述第一节点中的至少一个部署单元。At least one of the first nodes is migrated under a trigger condition.
  36. 根据权利要求35所述的装置,其特征在于,所述处理器具体用于:The device according to claim 35, wherein the processor is specifically configured to:
    删除所述第一节点中的至少一个部署单元;Deleting at least one deployment unit of the first node;
    根据所述删除的至少一个部署单元对应的策略,将所述删除的至少一个部署单元部署在系统中的其他节点中。And deleting the deleted at least one deployment unit in other nodes in the system according to the policy corresponding to the deleted at least one deployment unit.
  37. 根据权利要求35或36所述的装置,其特征在于,所述触发条件包括以下至少一种:所述第一节点中的部署单元所占的资源大于或等于一阈值,所述第一节点中的至少一个部署单元故障,所述第一节点所在的系统的负载量小于或等于一阈值。The device according to claim 35 or claim 36, wherein the triggering condition comprises at least one of the following: a resource occupied by a deployment unit in the first node is greater than or equal to a threshold, in the first node. At least one deployment unit fails, and the load of the system in which the first node is located is less than or equal to a threshold.
  38. 根据权利要求35至37任一项所述的装置,其特征在于,所述处理器具体用于:The device according to any one of claims 35 to 37, wherein the processor is specifically configured to:
    确定所述第一节点中的n个可迁移部署单元;其中,n>1,n为整数;Determining n migratable deployment units in the first node; wherein n>1, n is an integer;
    按照所述n个可迁移部署单元的迁移权值确定所述n个可迁移部署单元的迁移顺序;Determining a migration order of the n migratable deployment units according to a migration weight of the n migratable deployment units;
    按照所述迁移顺序依次迁移所述n个可迁移部署单元。 The n migratable deployment units are sequentially migrated according to the migration order.
  39. 根据权利要求31-38任一项所述的装置,其特征在于,所述处理器还用于:The device according to any one of claims 31 to 38, wherein the processor is further configured to:
    当所述第一节点不再为所述系统中的节点时,将所述第一节点中的至少一个部署单元部署在系统中的其他节点中。When the first node is no longer a node in the system, at least one of the first nodes is deployed in other nodes in the system.
  40. 根据权利要求39所述的装置,其特征在于,所述处理器具体用于:The device according to claim 39, wherein the processor is specifically configured to:
    根据所述第一节点中的至少一个部署单元对应的策略为所述第一节点中的至少一个部署单元选择目标节点;Selecting a target node for at least one of the first nodes according to a policy corresponding to at least one of the first nodes;
    将所述第一节点中的至少一个部署单元部署在所述目标节点中。At least one deployment unit of the first node is deployed in the target node.
  41. 根据权利要求31-40任一项所述的装置,其特征在于,所述部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。The apparatus according to any one of claims 31 to 40, wherein the deployment unit comprises at least one of the following: a process, a process group, a virtual machine, and an application system.
  42. 一种基于云环境系统的部署装置,其特征在于,包括存储器和处理器;A deployment device based on a cloud environment system, comprising: a memory and a processor;
    所述存储器用于存储一组代码,该代码用于控制所述处理器执行以下动作:The memory is for storing a set of codes for controlling the processor to perform the following actions:
    在云环境系统中确定待部署的部署单元和所述待部署的部署单元对应的策略;Determining, in the cloud environment system, a policy corresponding to the deployment unit to be deployed and the deployment unit to be deployed;
    根据所述待部署的部署单元对应的策略为所述待部署的部署单元选择目标节点;Selecting a target node for the deployment unit to be deployed according to the policy corresponding to the deployment unit to be deployed;
    将所述待部署单元部署在所述目标节点中。The unit to be deployed is deployed in the target node.
  43. 根据权利要求42所述的装置,其特征在于,所述待部署的部署单元对应的策略包括:通用策略、单一策略、数量策略、节点类型策略、资源策略。The device according to claim 42, wherein the policy corresponding to the deployment unit to be deployed comprises: a general policy, a single policy, a quantity policy, a node type policy, and a resource policy.
  44. 根据权利要求43所述的装置,其特征在于,所述处理器具体用于:The device according to claim 43, wherein the processor is specifically configured to:
    当所述待部署的部署单元对应的策略包括单一策略或数量策略 时,根据待部署的部署单元对应的策略和系统中其他节点中的部署单元为所述待部署单元选择目标节点;When the policy corresponding to the deployment unit to be deployed includes a single policy or a quantity policy Selecting a target node for the to-be-deployed unit according to a policy corresponding to the deployment unit to be deployed and a deployment unit in another node in the system;
    或,当所述待部署的部署单元对应的策略包括资源策略时,根据资源策略和系统中其他节点的资源为所述待部署的部署单元选择目标节点。Or, when the policy corresponding to the deployment unit to be deployed includes a resource policy, select a target node for the deployment unit to be deployed according to the resource policy and resources of other nodes in the system.
  45. 根据权利要求42-44任一项所述的装置,其特征在于,所述待部署的部署单元包括以下至少一种:进程、进程组、虚拟机、应用系统。 The device according to any one of claims 42 to 44, wherein the deployment unit to be deployed comprises at least one of the following: a process, a process group, a virtual machine, and an application system.
PCT/CN2014/086952 2014-09-19 2014-09-19 Deployment method and apparatus based on cloud environment system WO2016041202A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480008418.5A CN105612727B (en) 2014-09-19 2014-09-19 A kind of dispositions method and device based on cloud environment system
PCT/CN2014/086952 WO2016041202A1 (en) 2014-09-19 2014-09-19 Deployment method and apparatus based on cloud environment system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/086952 WO2016041202A1 (en) 2014-09-19 2014-09-19 Deployment method and apparatus based on cloud environment system

Publications (1)

Publication Number Publication Date
WO2016041202A1 true WO2016041202A1 (en) 2016-03-24

Family

ID=55532483

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/086952 WO2016041202A1 (en) 2014-09-19 2014-09-19 Deployment method and apparatus based on cloud environment system

Country Status (2)

Country Link
CN (1) CN105612727B (en)
WO (1) WO2016041202A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468344A (en) * 2020-12-08 2021-03-09 武汉烽火技术服务有限公司 System and method for deploying network equipment in long distance

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116719647B (en) * 2023-08-09 2023-11-03 苏州浪潮智能科技有限公司 Super-computing cluster management method and device, arrangement management equipment and super-computing cluster

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314358A (en) * 2011-05-30 2012-01-11 兰雨晴 Method for deploying conventional applications on cloud platform in SOA (service oriented architecture) way
CN103401917A (en) * 2013-07-29 2013-11-20 华南理工大学 Hybrid cloud computing system based on cloud bus and realization method of hybrid cloud computing system
WO2014025585A1 (en) * 2012-08-07 2014-02-13 Advanced Micro Devices, Inc. System and method for configuring cloud computing systems
CN103701935A (en) * 2014-01-13 2014-04-02 浪潮(北京)电子信息产业有限公司 Construction method and system of cloud computing service platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188335A (en) * 2011-12-28 2013-07-03 英业达股份有限公司 Node deployment method and server system using by same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314358A (en) * 2011-05-30 2012-01-11 兰雨晴 Method for deploying conventional applications on cloud platform in SOA (service oriented architecture) way
WO2014025585A1 (en) * 2012-08-07 2014-02-13 Advanced Micro Devices, Inc. System and method for configuring cloud computing systems
CN103401917A (en) * 2013-07-29 2013-11-20 华南理工大学 Hybrid cloud computing system based on cloud bus and realization method of hybrid cloud computing system
CN103701935A (en) * 2014-01-13 2014-04-02 浪潮(北京)电子信息产业有限公司 Construction method and system of cloud computing service platform

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112468344A (en) * 2020-12-08 2021-03-09 武汉烽火技术服务有限公司 System and method for deploying network equipment in long distance

Also Published As

Publication number Publication date
CN105612727B (en) 2019-04-26
CN105612727A (en) 2016-05-25

Similar Documents

Publication Publication Date Title
EP3355193B1 (en) Security-based container scheduling
JP6005706B2 (en) Virtual machine morphing for heterogeneous mobile environments
CN110612705B (en) Method for service deployment under server-free architecture and function management platform
CN107608757B (en) Container-based isolation processing method and related equipment
US9367340B2 (en) Resource management method and apparatus for virtual machine system, and virtual machine system
US11301303B2 (en) Resource pool processing to determine to create new virtual resource pools and storage devices based on currebt pools and devices not meeting SLA requirements
US10846119B2 (en) Virtualized network function management apparatus, virtual machine management apparatus, method for allocating resources to virtual network function, and program
WO2015196931A1 (en) Disk io-based virtual resource allocation method and device
US10601682B2 (en) Service availability management method, service availability management apparatus, and network function virtualization architecture thereof
CN107251486B (en) Method, device and system for expanding linkage
CN108984266B (en) Virtual machine management method, device and system
JPWO2017170470A1 (en) Network function virtualization management orchestration apparatus, method and program
US10541862B2 (en) VNF processing policy determining method, apparatus, and system
CN111641515A (en) VNF life cycle management method and device
US20140282540A1 (en) Performant host selection for virtualization centers
CN110673927B (en) Scheduling method and device of virtual machine
EP3879875A1 (en) Resource change method and device, apparatus, and storage medium
EP3279795B1 (en) Method and apparatus for deleting cloud host in cloud computing environment, server and storage medium
WO2013139037A1 (en) Method and device for scheduling resources
KR20170139763A (en) Method for detecting service of network and apparatus using the same
CN109639460B (en) NFV resource management method and device
WO2016041202A1 (en) Deployment method and apparatus based on cloud environment system
CN109905258B (en) PaaS management method, device and storage medium
CN107408058B (en) Virtual resource deployment method, device and system
CN112965817A (en) Resource management method and device and electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14902151

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14902151

Country of ref document: EP

Kind code of ref document: A1