CN108900435B - Service deployment method, device and computer storage medium - Google Patents

Service deployment method, device and computer storage medium Download PDF

Info

Publication number
CN108900435B
CN108900435B CN201810637863.8A CN201810637863A CN108900435B CN 108900435 B CN108900435 B CN 108900435B CN 201810637863 A CN201810637863 A CN 201810637863A CN 108900435 B CN108900435 B CN 108900435B
Authority
CN
China
Prior art keywords
service
nodes
resource providing
node
service nodes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810637863.8A
Other languages
Chinese (zh)
Other versions
CN108900435A (en
Inventor
商晓
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810637863.8A priority Critical patent/CN108900435B/en
Publication of CN108900435A publication Critical patent/CN108900435A/en
Application granted granted Critical
Publication of CN108900435B publication Critical patent/CN108900435B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/78Architectures of resource allocation
    • H04L47/783Distributed allocation of resources, e.g. bandwidth brokers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2408Traffic characterised by specific attributes, e.g. priority or QoS for supporting different services, e.g. a differentiated services [DiffServ] type of service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2416Real-time traffic

Abstract

A method, an apparatus and a computer storage medium for service deployment are provided, which include: determining the total service requirements of all the leases according to the service requirements of each lease; configuring service nodes according to the types and the number of the service nodes which can be configured by each physical server, the resource providing capacity of each type of service node and the determined total service requirement; according to the service requirement of each lease, service deployment is carried out on the configured service nodes; wherein, the service requirement includes: the type of service node required and the resource providing capability required corresponding to each type of service node required; the service nodes include some or all of the following types of nodes: network node, computational node, storage node. The embodiment of the invention reduces the use cost of the physical server and improves the utilization rate of resources.

Description

Service deployment method, device and computer storage medium
Technical Field
This document relates to, but is not limited to, autopilot technology, and more particularly, to a method, apparatus, and computer-storage medium for service deployment.
Background
OpenStack (OpenStack is an open source cloud computing management platform project, which is a combination of several main components to complete specific work and supports almost all types of cloud environments) is an open source project aiming at providing software for the construction and management of public and private clouds, is composed of several main components such as computing, storage, network and the like, is used for completing cloud computing management work, and aims to provide a cloud computing management platform which is simple to implement, can be expanded in large scale, is rich and has a unified standard for hundreds of millions of users all over the world.
The OpenStack platform belongs to a multi-tenant mode, and a plurality of tenants customize and use services through the unified OpenStack platform. In an OpenStack actual production environment, due to performance requirements related to large-scale user concurrency, disaster tolerance, high availability and the like, an OpenStack platform is generally deployed in a distributed and multi-service node manner. In the deployment process, a service provider determines the number of the OpenStack service nodes to be deployed, the type and the number of used physical servers and the mapping relationship between each service node and the physical servers according to the actual condition of the own infrastructure, the lease requirement of tenants, the types of the OpenStack service nodes and the resource consumption condition of the OpenStack service nodes to the infrastructure, and further determines the allocation condition of the resources required by the OpenStack platform.
Because the service provider is often neglected in planning in the early stage of deployment, conditions that the service provider is prompted to readjust or reprogram in the operation period of the OpenStack platform due to insufficient hardware resources or a service node cannot meet actual production requirements and the like easily occur, so that a large amount of manpower resource consumption and cost investment are caused, and the service quality and the user experience of the OpenStack platform are reduced.
Disclosure of Invention
The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.
Embodiments of the present invention provide a method and an apparatus for service deployment, and a computer storage medium, which can reduce the use cost of a physical server and improve the utilization rate of resources.
The embodiment of the invention provides a method for service deployment, which comprises the following steps:
determining the total service requirements of all the leases according to the service requirements of each lease;
configuring service nodes according to the types and the number of the service nodes which can be configured by each physical server, the resource providing capability of each type of service nodes and the determined total service requirement;
according to the service requirement of each lease, service deployment is carried out on the configured service nodes;
wherein the service requirement comprises: the type of service node required and the resource providing capability required corresponding to each type of service node required; the service nodes include some or all of the following types of nodes: network node, computational node, storage node.
Optionally, determining the total service requirement of all leases according to the service requirement of each lease, including:
adding the service requirements of each lease to a preset set;
after counting the service requirements of all leases added to the set, determining the total service requirement;
wherein the total business requirement comprises: all service node types required for all leases, and a first sum of the required resource provisioning capabilities corresponding to each type of service node required.
Optionally, for each type of service node, the configuring of the service node includes:
determining the number of the current type service nodes to be configured according to the first sum of the determined resource providing capacity required by the service nodes corresponding to the current type and the acquired resource providing capacity of the service nodes of the current type provided by the platform;
for each physical server which can be configured with the current type service node, determining the number of the service nodes which can be configured according to the resource providing capacity;
and selecting a corresponding number of physical servers according to the number of the service nodes which can be configured by each physical server so as to configure the service nodes of the current type.
Optionally, the configuring of the service node includes:
accumulating and determining a second sum of available resource providing capacity for all physical servers configured with the service nodes of the same type;
and for the configured service node of the current type, when the second sum of the resource providing capacities provided by the physical servers is greater than or equal to the first sum of the resource providing capacities of the corresponding service node of the current type in the total service requirement, selecting a corresponding number of physical servers according to the sequence from large to small of the resource providing capacities of the physical servers so as to configure the service node.
Optionally, the configuring of the service node includes:
accumulating and determining a second sum of available resource providing capacity for all physical servers configured with the service nodes of the same type;
for the configured service nodes of the current type, when the second sum of the resource providing capabilities of the service nodes of the current type, which can be provided by the physical server, is less than the first sum of the resource providing capabilities of the service nodes of the current type, which correspond to the total service demands, the leases of the lowest priority are deleted one by one after the leases are sorted according to the preset priority order until the resource providing capabilities of the service nodes of the current type, which correspond to the total service demands of all the residual leases, are less than or equal to the resource providing capabilities, which can be provided by the physical server, are stopped; and determining the total service requirement of the residual lease, and configuring the service nodes according to the determined total service requirement of the residual lease.
In another aspect, an embodiment of the present invention further provides a device for service deployment, where the device includes: a determining unit, a configuring unit and a deploying unit; wherein the content of the first and second substances,
the determination unit is to: determining the total service requirements of all the leases according to the service requirements of each lease;
the configuration unit is used for: configuring service nodes according to the types and the number of the service nodes which can be configured by each physical server, the resource providing capacity of each type of service node and the determined total service requirement;
the deployment unit is to: according to the service requirement of each lease, service deployment is carried out on the configured service nodes;
wherein the service requirement comprises: the type of service node required and the resource providing capability required corresponding to each type of service node required; the service nodes include some or all of the following types of nodes: network node, computational node, storage node.
Optionally, the determining unit is specifically configured to: adding the service requirement of each lease to a preset set;
after counting the service requirements of all leases added to the set, determining the total service requirement;
wherein the total business requirement comprises: all service node types required for all leases, and a first sum of the required resource provisioning capabilities corresponding to each type of service node required.
Optionally, the configuration unit is specifically configured to: determining the number of the current type service nodes to be configured according to the first sum of the determined resource providing capacity required by the service nodes corresponding to the current type and the acquired resource providing capacity of the service nodes of the current type provided by the platform;
for each physical server which can be configured with the current type service node, determining the number of the service nodes which can be configured according to the resource providing capacity;
and selecting a corresponding number of physical servers according to the number of the service nodes which can be configured by each physical server so as to configure the service nodes of the current type.
Optionally, the configuration unit is specifically configured to: accumulating and determining a second sum of available resource providing capacity for all physical servers configured with the service nodes of the same type;
and for the configured service node of the current type, when the second sum of the resource providing capacities provided by the physical servers is greater than or equal to the first sum of the resource providing capacities of the corresponding service node of the current type in the total service requirement, selecting a corresponding number of physical servers according to the sequence from large to small of the resource providing capacities of the physical servers to configure the service node.
Optionally, the configuration unit is specifically configured to: accumulating and determining a second sum of available resource providing capacity for all physical servers configured with the service nodes of the same type;
for the configured service nodes of the current type, when the second sum of the resource providing capabilities of the service nodes of the current type, which can be provided by the physical server, is less than the first sum of the resource providing capabilities of the service nodes of the current type, which correspond to the total service requirements, the leases with the lowest priority are deleted one by one after the leases are sorted according to a preset priority order, and the lease is stopped until the resource providing capabilities of the service nodes of the current type, which correspond to the total service requirements of all the leases, are less than or equal to the resource providing capabilities, which can be provided by the physical server; and determining the total service requirement of the remaining leases, and configuring the service nodes according to the determined total service requirement of the remaining leases.
In another aspect, an embodiment of the present invention further provides a computer storage medium, where computer-executable instructions are stored in the computer storage medium, and the computer-executable instructions are used to execute the service deployment method.
Compared with the related art, the technical scheme of the application comprises the following steps: determining the total service requirements of all the leases according to the service requirements of each lease; configuring service nodes according to the types and the number of the service nodes which can be configured by each physical server, the resource providing capacity of each type of service node and the determined total service requirement; according to the service requirement of each lease, service deployment is carried out on the configured service nodes; wherein, the service requirement includes: the type of service node required and the resource providing capability required corresponding to each type of service node required; the service nodes include some or all of the following types of nodes: network node, computational node, storage node. The embodiment of the invention reduces the use cost of the physical server and improves the utilization rate of resources.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
FIG. 1 is a flow chart of a method for service deployment according to an embodiment of the present invention;
fig. 2 is a block diagram of a service deployment apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a network topology for an exemplary service deployment in accordance with the present invention;
fig. 4 is a schematic diagram of an exemplary lease aggregation in accordance with the present invention;
fig. 5 is a schematic diagram of an exemplary service deployment in which the present invention is applied.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
Fig. 1 is a flowchart of a method for service deployment according to an embodiment of the present invention, as shown in fig. 1, including:
step 101, determining the total service requirements of all leases according to the service requirements of each lease;
wherein the service requirement comprises: the type of service node required and the resource providing capability required corresponding to each type of service node required;
optionally, the determining the total service requirement of all leases in the embodiment of the present invention includes:
adding the service requirements of each lease to a preset set;
after counting the service requirements of all leases added to the set, determining the total service requirement;
wherein the total business requirement comprises: all service node types required for all leases, and a first sum of the required resource provisioning capabilities corresponding to each type of service node required.
Wherein the service node comprises the following partial or all types of nodes: network node, computational node, storage node.
102, configuring service nodes according to the types and the number of the service nodes which can be configured by each physical server, the resource providing capacity of each type of service node and the determined total service requirement;
optionally, the embodiment of the present invention may obtain, based on the related art, the resource providing capability of each type of service node provided by the platform, and the type and number of service nodes that can be configured by each physical server;
it should be noted that the resource providing capability of the embodiment of the present invention may include bandwidth, storage space, and quantization information of the CPU for operation.
Optionally, for each type of service node, the configuring of the service node in the embodiment of the present invention includes:
determining the number of the current type service nodes to be configured according to the first sum of the determined resource providing capacity required by the service nodes corresponding to the current type and the acquired resource providing capacity of the service nodes of the current type provided by the platform;
for each physical server capable of configuring the current type service node, determining the number of the service nodes capable of being configured according to the resource providing capacity;
and selecting a corresponding number of physical servers according to the number of the service nodes which can be configured by each physical server so as to configure the service nodes of the current type.
Optionally, the configuring of the service node according to the embodiment of the present invention includes:
accumulating and determining a second sum of available resource providing capacity for all physical servers configured with the service nodes of the same type;
and for the configured service node of the current type, when the second sum of the resource providing capacities provided by the physical servers is greater than or equal to the first sum of the resource providing capacities of the corresponding service node of the current type in the total service requirement, selecting a corresponding number of physical servers according to the sequence from large to small of the resource providing capacities of the physical servers so as to configure the service node.
It should be noted that the number of physical servers required for configuring the service node may be obtained by calculating the resource providing capability of each physical server and the resource providing capability of the service node.
Optionally, the configuring of the service node according to the embodiment of the present invention includes:
accumulating and determining a second sum of available resource providing capacity for all physical servers configured with the service nodes of the same type;
for the configured service nodes of the current type, when the second sum of the resource providing capabilities of the service nodes of the current type, which can be provided by the physical server, is less than the first sum of the resource providing capabilities of the service nodes of the current type, which correspond to the total service requirements, the leases with the lowest priority are deleted one by one after the leases are sorted according to a preset priority order, and the lease is stopped until the resource providing capabilities of the service nodes of the current type, which correspond to the total service requirements of all the leases, are less than or equal to the resource providing capabilities, which can be provided by the physical server; and determining the total service requirement of the residual lease, and configuring the service nodes according to the determined total service requirement of the residual lease. Here, the priority may be determined by analyzing the security level, quality of service, and other requirements of the lease set by the protocol.
And 103, deploying the service on the configured service nodes according to the service requirement of each lease.
Compared with the related art, the technical scheme of the application comprises the following steps: determining the total service requirements of all the leases according to the service requirements of each lease; configuring service nodes according to the types and the number of the service nodes which can be configured by each physical server, the resource providing capability of each type of service nodes and the determined total service requirement; according to the service requirement of each lease, service deployment is carried out on the configured service nodes; wherein, the service requirement includes: the type of service node required and the resource providing capability required corresponding to each type of service node required; the service nodes include some or all of the following types of nodes: network node, computational node, storage node. The embodiment of the invention reduces the use cost of the physical server and improves the utilization rate of resources.
Fig. 2 is a block diagram of a service deployment apparatus according to an embodiment of the present invention, and as shown in fig. 2, the apparatus includes: the system comprises a determining unit, a configuration unit and a deployment unit; wherein the content of the first and second substances,
the determination unit is used for: determining the total service requirements of all the leases according to the service requirements of each lease;
optionally, the determining unit in the embodiment of the present invention is specifically configured to: adding the service requirements of each lease to a preset set;
after counting the service requirements of all leases added to the set, determining the total service requirement;
wherein the total business requirement comprises: all service node types required for all leases, and a first sum of the required resource provisioning capabilities corresponding to each type of service node required.
The configuration unit is used for: configuring service nodes according to the types and the number of the service nodes which can be configured by each physical server, the resource providing capacity of each type of service node and the determined total service requirement;
optionally, the implementation configuration unit of the present invention is specifically configured to: determining the number of the current type service nodes to be configured according to the first sum of the determined resource providing capacity required by the service nodes corresponding to the current type and the acquired resource providing capacity of the service nodes of the current type provided by the platform;
for each physical server which can be configured with the current type service node, determining the number of the service nodes which can be configured according to the resource providing capacity;
and selecting a corresponding number of physical servers according to the number of the service nodes which can be configured by each physical server so as to configure the service nodes of the current type.
Optionally, the configuration unit in the embodiment of the present invention is specifically configured to: accumulating and determining a second sum of available resource providing capacity for all physical servers configured with the service nodes of the same type;
and for the configured service node of the current type, when the second sum of the resource providing capacities provided by the physical servers is greater than or equal to the first sum of the resource providing capacities of the corresponding service node of the current type in the total service requirement, selecting a corresponding number of physical servers according to the sequence from large to small of the resource providing capacities of the physical servers so as to configure the service node.
Optionally, the configuration unit in the embodiment of the present invention is specifically configured to: accumulating and determining a second sum of available resource providing capacity for all physical servers configured with the service nodes of the same type;
for the configured service nodes of the current type, when the second sum of the resource providing capabilities of the service nodes of the current type, which can be provided by the physical server, is less than the first sum of the resource providing capabilities of the service nodes of the current type, which correspond to the total service requirements, the leases with the lowest priority are deleted one by one after the leases are sorted according to a preset priority order, and the lease is stopped until the resource providing capabilities of the service nodes of the current type, which correspond to the total service requirements of all the leases, are less than or equal to the resource providing capabilities, which can be provided by the physical server; and determining the total service requirement of the residual lease, and configuring the service nodes according to the determined total service requirement of the residual lease.
The deployment unit is to: according to the service requirement of each lease, service deployment is carried out on the configured service nodes;
wherein the service requirement comprises: the type of service node required and the resource providing capability required corresponding to each type of service node required; the service nodes include some or all of the following types of nodes: network node, computational node, storage node.
The embodiment of the invention also provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used for executing the service deployment method.
The method of the embodiment of the present invention is described in detail below by using application examples, which are only used for illustrating the present invention and are not used for limiting the protection scope of the present invention.
Application example
The application example of the invention ensures the normal and stable operation of the OpenStack platform and meets the service performance requirements of users, reduces the use cost of infrastructure and reduces the manpower and cost investment of service providers.
Fig. 3 is a schematic diagram of a network topology of an exemplary service deployment applied by the present invention, as shown in fig. 3, all server resources and service platforms of OpenStack are uniformly deployed and managed by a service provider, and a tenant customizes and uses services through a network. The OpenStack platform is divided into from bottom to top: (1) infrastructure layer: providing physical servers required for deploying service nodes of OpenStack from own facilities by a service provider; (2) and (3) a service layer: providing a service node required by the stable operation of the OpenStack platform; the service node is formed by combining a computing node, a storage node, a network node and the like; (3) and a scheduling layer: through a user request response control and service scheduling mechanism of the OpenStack platform, a multi-tenant service request received through a platform interface is issued to a relevant OpenStack service node, so that the service requirement of each tenant is realized, and the performance and the service quality of the OpenStack platform are ensured.
Fig. 4 is a schematic diagram of an example lease set applied to the present invention, as shown in fig. 4, tenant requests of tenant 1, tenant 2, tenant 3, and tenant 4 respectively relate to service node types OS1 and OS2 corresponding to the OpenStack platform, and the service providers have 3 server types PM1, PM2, and PM3, which respectively have different resource specifications and use costs; fig. 5 is a schematic diagram of example service deployment applied to the present invention, as shown in fig. 5, in a deployment scenario, a service provider uses 2 servers PM11 and PM12 of PM1 type, uses 2 servers PM21 and PM22 of PM2 type, needs to deploy two instances OS11 and OS12 of OpenStack node type OS1, two instances OS21 and OS22 of OpenStack node type OS2, deploys OS11 on PM11, deploys OS12 on PM12, deploys OS21 on PM21, and deploys OS22 on PM 22; OS11 corresponds to the service request of tenant 1, OS12 corresponds to the service request of tenant 2, OS21 corresponds to the service requests of tenant 2 and tenant 3, and OS22 corresponds to the service request of tenant 4.
Application example of the present invention sets T ═ { T ═ T1,T2,…,TtIs the tenant's lease set, lease Ti(i-1, 2, …, t) represents a service as in fig. 5A lease relation, namely a lease set T which determines and plans the service requirements of all tenants before the OpenStack platform is deployed
The application example of the invention sets OS (OS 1, OS2 and OS 3) as a set of service node types of an OpenStack platform, sets PM (PM 1, PM2 and PM 3) as a set of types of physical servers required by deploying service nodes, determines the resource requirements (resource supply capacity) of the service node type set OS required to be deployed and each node type in the OS according to the corresponding relation between each lease in the lease set T of a tenant and the service node type of the OpenStack platform, and determines the resource supply capacity (CPU, memory, storage and the like) of each type of physical servers in the PM and PM of the set of server types according to the resource supply capacity of the physical servers which can be provided by own facility
Under the condition that a lease set T, a service node type set OS and a server type set PM are determined, according to the resource requirement of each node type in the OS and the resource providing capability of each server type in the PM, the number of OpenStack service nodes of each type in the set OS, the number of physical servers of each type in the set PM, and the mapping relation among a tenant lease T, an OpenStack service node instance set required to be deployed and a used physical server instance set are determined. The service deployment of the invention needs to meet the following requirements: 1. when the lease requirements of all tenants in the tenant lease T can be met, the using number of the physical servers is the minimum; the specific implementation can include: and for the configured service node of the current type, when the second sum of the resource providing capacities provided by the physical servers is greater than or equal to the first sum of the resource providing capacities of the corresponding service node of the current type in the total service requirement, selecting a corresponding number of physical servers according to the sequence from large to small of the resource providing capacities of the physical servers so as to configure the service node. 2. When the leases of all the tenants in the tenant lease T can not be completely met, the tenant leases which can be met in the T are the most; the specific implementation can include: for the configured service nodes of the current type, when the second sum of the resource providing capabilities of the service nodes of the current type, which can be provided by the physical server, is less than the first sum of the resource providing capabilities of the service nodes of the current type, which correspond to the total service demands, the leases of the lowest priority are deleted one by one after the leases are sorted according to the preset priority order until the resource providing capabilities of the service nodes of the current type, which correspond to the total service demands of all the residual leases, are less than or equal to the resource providing capabilities, which can be provided by the physical server, are stopped; and determining the total service requirement of the residual lease, and configuring the service nodes according to the determined total service requirement of the residual lease. Establishing a mathematical model of an OpenStack platform optimized deployment problem under own facilities, wherein the mathematical model belongs to a combined optimization problem with constraint conditions, and an artificial intelligence algorithm such as a genetic algorithm is preferably adopted to solve the mapping relation among elements;
the service deployment of the OpenStack platform is realized through the steps, the application example of the invention deploys the OpenStack platform by taking the minimum cost of using the physical server as an optimization target, and the service utilization cost of the physical server is reduced and the utilization rate of resources is improved while ensuring that each service of the OpenStack platform is normally operated and meeting the requirements of tenant service.
It will be understood by those skilled in the art that all or part of the steps of the above methods may be implemented by a program instructing associated hardware (e.g., a processor) to perform the steps, and the program may be stored in a computer readable storage medium, such as a read only memory, a magnetic or optical disk, and the like. Alternatively, all or part of the steps of the above embodiments may be implemented using one or more integrated circuits. Accordingly, each module/unit in the above embodiments may be implemented in hardware, for example, by an integrated circuit to implement its corresponding function, or in software, for example, by a processor executing a program/instruction stored in a memory to implement its corresponding function. The present invention is not limited to any specific form of combination of hardware and software.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (7)

1. A method for service deployment, comprising:
determining the total service requirements of all the leases according to the service requirements of each lease;
configuring service nodes according to the types and the number of the service nodes which can be configured by each physical server, the resource providing capacity of each type of service node and the determined total service requirement;
according to the service requirement of each lease, service deployment is carried out on the configured service nodes;
wherein the service requirement comprises: the type of service node required and the resource providing capability required corresponding to each type of service node required; the service nodes include some or all of the following types of nodes: the system comprises a network node, a computing node and a storage node;
the total business requirements include: a first sum of all service node types required for all leases and the resource provisioning capabilities required for each type of service node required;
the configuring of the service nodes according to the types and the number of the service nodes which can be configured by each physical server, the resource providing capability of each type of service node and the determined total service requirement comprises the following steps:
determining the number of the current type service nodes to be configured according to the first sum of the determined resource providing capacity required by the service nodes corresponding to the current type and the acquired resource providing capacity of the service nodes of the current type provided by the platform;
for each physical server which can be configured with the current type service node, determining the number of the service nodes which can be configured according to the resource providing capacity;
selecting a corresponding number of physical servers according to the number of service nodes which can be configured by each physical server so as to configure the service nodes of the current type;
the selecting a corresponding number of physical servers according to the number of the service nodes that can be configured by each physical server to configure the service node of the current type includes:
accumulating and determining a second sum of available resource providing capacity for all physical servers configured with the service nodes of the same type;
for the configured service nodes of the current type, when the second sum of the resource providing capabilities of the service nodes of the current type, which can be provided by the physical server, is less than the first sum of the resource providing capabilities of the service nodes of the current type, which correspond to the total service requirements, the leases with the lowest priority are deleted one by one after the leases are sorted according to a preset priority order, and the lease is stopped until the resource providing capabilities of the service nodes of the current type, which correspond to the total service requirements of all the leases, are less than or equal to the resource providing capabilities, which can be provided by the physical server; and determining the total service requirement of the residual lease, and configuring the service nodes according to the determined total service requirement of the residual lease.
2. The method of claim 1, wherein determining the total service requirement for all leases based on the service requirement for each lease comprises:
adding the service requirement of each lease to a preset set;
and after counting the service requirements of all the leases added into the set, determining the total service requirement.
3. The method according to claim 1, wherein the selecting a corresponding number of physical servers for configuring the service node of the current type according to the number of service nodes that can be configured by each physical server comprises:
accumulating and determining a second sum of available resource providing capacity for all physical servers configured with the service nodes of the same type;
and for the configured service node of the current type, when the second sum of the resource providing capacities provided by the physical servers is greater than or equal to the first sum of the resource providing capacities of the corresponding service node of the current type in the total service requirement, selecting a corresponding number of physical servers according to the sequence from large to small of the resource providing capacities of the physical servers so as to configure the service node.
4. An apparatus for service deployment, comprising: the system comprises a determining unit, a configuration unit and a deployment unit; wherein the content of the first and second substances,
the determination unit is used for: determining the total service requirements of all the leases according to the service requirements of each lease;
the configuration unit is used for: configuring service nodes according to the types and the number of the service nodes which can be configured by each physical server, the resource providing capability of each type of service nodes and the determined total service requirement;
the deployment unit is to: according to the service requirement of each lease, service deployment is carried out on the configured service nodes;
wherein the service requirement comprises: the type of service node required and the resource providing capability required corresponding to each type of service node required; the service nodes include some or all of the following types of nodes: the system comprises a network node, a computing node and a storage node;
the total business requirements include: a first sum of all service node types required for all leases and the resource provisioning capabilities required for each type of service node required;
the configuration unit is specifically configured to: determining the number of the current type service nodes to be configured according to the first sum of the determined resource providing capacity required by the service nodes corresponding to the current type and the acquired resource providing capacity of the service nodes of the current type provided by the platform;
for each physical server which can be configured with the current type service node, determining the number of the service nodes which can be configured according to the resource providing capacity;
selecting a corresponding number of physical servers according to the number of service nodes which can be configured by each physical server so as to configure the service nodes of the current type;
the selecting a corresponding number of physical servers according to the number of service nodes that can be configured by each physical server to configure the service node of the current type includes: accumulating and determining a second sum of available resource providing capacity for all physical servers configured with the service nodes of the same type;
for the configured service nodes of the current type, when the second sum of the resource providing capabilities of the service nodes of the current type, which can be provided by the physical server, is less than the first sum of the resource providing capabilities of the service nodes of the current type, which correspond to the total service requirements, the leases with the lowest priority are deleted one by one after the leases are sorted according to a preset priority order, and the lease is stopped until the resource providing capabilities of the service nodes of the current type, which correspond to the total service requirements of all the leases, are less than or equal to the resource providing capabilities, which can be provided by the physical server; and determining the total service requirement of the residual lease, and configuring the service nodes according to the determined total service requirement of the residual lease.
5. The apparatus according to claim 4, wherein the determining unit is specifically configured to: adding the service requirements of each lease to a preset set;
and after counting the service requirements of all leases added to the set, determining the total service requirement.
6. The apparatus of claim 4, wherein the selecting a corresponding number of physical servers for configuration of the current type of service node according to the number of service nodes that can be configured by each physical server comprises: accumulating and determining a second sum of available resource providing capacity for all physical servers configured with the service nodes of the same type;
and for the configured service node of the current type, when the second sum of the resource providing capacities provided by the physical servers is greater than or equal to the first sum of the resource providing capacities of the corresponding service node of the current type in the total service requirement, selecting a corresponding number of physical servers according to the sequence from large to small of the resource providing capacities of the physical servers so as to configure the service node.
7. A computer storage medium having stored thereon computer-executable instructions for performing the method of service deployment of any of claims 1-3.
CN201810637863.8A 2018-06-20 2018-06-20 Service deployment method, device and computer storage medium Active CN108900435B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810637863.8A CN108900435B (en) 2018-06-20 2018-06-20 Service deployment method, device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810637863.8A CN108900435B (en) 2018-06-20 2018-06-20 Service deployment method, device and computer storage medium

Publications (2)

Publication Number Publication Date
CN108900435A CN108900435A (en) 2018-11-27
CN108900435B true CN108900435B (en) 2022-06-07

Family

ID=64345595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810637863.8A Active CN108900435B (en) 2018-06-20 2018-06-20 Service deployment method, device and computer storage medium

Country Status (1)

Country Link
CN (1) CN108900435B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109710405B (en) * 2018-12-21 2023-04-14 平安科技(深圳)有限公司 Block chain intelligent contract management method and device, electronic equipment and storage medium
CN109714423A (en) * 2018-12-29 2019-05-03 浪潮电子信息产业股份有限公司 A kind of OpenStack dispositions method, device, equipment and medium
CN111865638B (en) * 2019-04-30 2023-02-28 中兴通讯股份有限公司 Method, device and equipment for realizing service configuration
CN111666130A (en) * 2020-06-03 2020-09-15 百度在线网络技术(北京)有限公司 Container balanced deployment method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015000362A1 (en) * 2013-07-05 2015-01-08 华为技术有限公司 Service node configuration method, service node pond register and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8424059B2 (en) * 2008-09-22 2013-04-16 International Business Machines Corporation Calculating multi-tenancy resource requirements and automated tenant dynamic placement in a multi-tenant shared environment
CN104598249B (en) * 2015-02-05 2017-09-01 浙江天正信息科技有限公司 Software personalisation customization and dispositions method that multi-tenant is perceived
CN106897115A (en) * 2017-02-24 2017-06-27 郑州云海信息技术有限公司 SaaS software deployments method and device under a kind of cloud environment
CN106897094A (en) * 2017-02-24 2017-06-27 郑州云海信息技术有限公司 SaaS software deployments method and device under a kind of cloud environment

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015000362A1 (en) * 2013-07-05 2015-01-08 华为技术有限公司 Service node configuration method, service node pond register and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种多租户SaaS应用部署优化算法;曹祖凤等;《计算机工程》;20131015(第10期);全文 *
支持多租约SaaS应用按需服务的负载均衡策略;汪德帅等;《东北大学学报(自然科学版)》;20110315(第03期);全文 *

Also Published As

Publication number Publication date
CN108900435A (en) 2018-11-27

Similar Documents

Publication Publication Date Title
US10496503B2 (en) Healing cloud services during upgrades
US10481935B2 (en) Management system, overall management node, and management method for managing virtualization resources in a mobile communication network
CN108900435B (en) Service deployment method, device and computer storage medium
US10481953B2 (en) Management system, virtual communication-function management node, and management method for managing virtualization resources in a mobile communication network
CN105207798B (en) Service arrangement method and device in software defined network
CN108337109B (en) Resource allocation method and device and resource allocation system
CN112099938A (en) Determining resource allocation in a distributed computing environment using multi-dimensional metadata tag sets
US11544100B2 (en) Hardware acceleration method and related device
US20150089064A1 (en) Policy-based scaling of network resources
US11870842B2 (en) System and method for dynamic auto-scaling based on roles
US11283688B2 (en) Delayed recomputation of formal network topology models based on modifications to deployed network topologies
CN106856438B (en) Network service instantiation method, device and NFV system
WO2020114608A1 (en) Method and apparatus for mapping network slices onto network infrastructures with sla guarantee
CN108924249A (en) A kind of method and device for disposing OpenStack platform
US20210406053A1 (en) Rightsizing virtual machine deployments in a cloud computing environment
US20190097895A1 (en) System and method for dynamic auto-scaling based on roles
Tang et al. Application centric lifecycle framework in cloud
JP2024501005A (en) Management method and device for container clusters
CN109660575B (en) Method and device for realizing NFV service deployment
US9798571B1 (en) System and method for optimizing provisioning time by dynamically customizing a shared virtual machine
US20230315531A1 (en) Method of creating container, electronic device and storage medium
US20220407785A1 (en) Achieving requested service availability
CN114090201A (en) Resource scheduling method, device, equipment and storage medium
CN115604101B (en) System management method and related equipment
US11442756B2 (en) Common service resource application method, related device, and system

Legal Events

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