CN107872499A - Service establishing method, apparatus and system - Google Patents

Service establishing method, apparatus and system Download PDF

Info

Publication number
CN107872499A
CN107872499A CN201610861999.8A CN201610861999A CN107872499A CN 107872499 A CN107872499 A CN 107872499A CN 201610861999 A CN201610861999 A CN 201610861999A CN 107872499 A CN107872499 A CN 107872499A
Authority
CN
China
Prior art keywords
target
resource
cloud service
host
create
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610861999.8A
Other languages
Chinese (zh)
Other versions
CN107872499B (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud 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 Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201610861999.8A priority Critical patent/CN107872499B/en
Publication of CN107872499A publication Critical patent/CN107872499A/en
Application granted granted Critical
Publication of CN107872499B publication Critical patent/CN107872499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses service establishing method, apparatus and system.For the service establishing method applied to resource management server, this method receives the resource inquiry request of service server transmission first, the target resource information carried in resource inquiry request is then based on, judges whether the available resources of host create target cloud service enough;If it is, judged result is fed back to service server, to cause service server to obtain the target order of corresponding target cloud service;Hereafter resource management server receives the request to create for target cloud service that service server is sent in the case of successfully acquisition target order again, and is based ultimately upon the request to create, and target cloud service is created in host.This programme reduces due to host inadequate resource and causes to create the generation that needs when cloud service fails cancel the phenomenon of the respective orders got, solves the problems, such as that service creation of the prior art is cumbersome.

Description

Service establishing method, apparatus and system
Technical field
The present invention relates to field of computer technology, more particularly to service establishing method, apparatus and system.
Background technology
Information-based continuous development causes people rapidly to increase the demand for the resource such as calculating and storing, in existing calculating In machine field, people need to put into more hardware devices, and more PC Rooms Environmental Facilities, therefore, operation expense Also accordingly increase with human cost, in order to cost-effective, cloud is applied in computer realm more and more.Many institute's weeks Know, cloud service provider is configured with multiple hosts, and cloud service provider configures the resource of multiple hosts by cloud Beyond the clouds, and according to user need to create corresponding cloud service in host for user, for example, creating for user virtual main Machine, database or Dropbox.
Certainly, user is created using cloud service provider cloud service is this cloud service provider, it is necessary to pay certain expense The corresponding method for creating business is provided, the business that creates includes creating cloud service and obtains the order of corresponding cloud service.But It is, it is in the prior art, longer the time required to creating cloud service, it is impossible to cloud service is successfully created in a short time, so, work as tenant When having the demand for creating cloud service, the service server of cloud service provider configuration is based on the request, will obtain first corresponding Order and charging, after getting order, then the resource management server configured to cloud service provider sends and creates cloud service Request, resource management server are based on the request, corresponding cloud service are created in host.
But when the resource in host, including CPU (Central Processing Unit, central processing unit) provide Source, memory source and hard disk resources etc., when can not create cloud service enough, the above-mentioned operation that cloud service is created in host Cannot successful execution, then now need manually to cancel the respective orders obtained before, it is clear that, service server obtains first Order, then when host inadequate resource causes to create cloud service failure, need to cancel the respective orders got, business again Establishment process is cumbersome.
The content of the invention
The embodiment of the invention discloses service establishing method, apparatus and system, for solving in the prior art, to reduce in place In the case of host resource deficiency, the problem of existing service creation procedure is cumbersome.Technical scheme is as follows:
To reach above-mentioned purpose, in a first aspect, the embodiments of the invention provide a kind of service establishing method, applied to resource Management server, methods described include:
The resource inquiry request that service server is sent is received, the resource inquiry request, which includes, creates target cloud service institute Need target resource information corresponding to resource;
Based on the target resource information, judge whether the available resources of host create the target cloud service enough;
If it is, judged result is fed back to the service server, to cause described in the service server acquisition correspondingly The target order of target cloud service;
Receive that the service server sends in the case where successfully obtaining the target order is directed to the target cloud The request to create of service;
Based on the request to create, the target cloud service is created in host.
Preferably, the service establishing method also includes:
After the available resources for judging host create the target cloud service enough, based on the target resource information, Resource lock operation is performed in the available resources of host.
In the first implementation, it is preferred that it is described to be based on the target resource information, in the available resources of host Middle execution resource lock operation, including:
Based on the target resource information, from the available resources of host, it is determined that to create the target cloud service First resource;
Lock the first resource;
It is described to be based on the request to create, the target cloud service is created in host, including:
Based on the first resource and the request to create, the target cloud service is created in host.
In second of implementation, it is preferred that it is described to be based on the target resource information, in the available resources of host Middle execution resource lock operation, including:
Based on the target resource information, it is determined that to create all target host machines of the target cloud service;
It is determined that the target resource amount needed for all target cloud services for creating is needed on each target host machine;
The available volume of resources of each target host machine for updating local record is:The available volume of resources of each target host machine The difference of the target resource amount corresponding with the target host machine.
Preferably, the target resource information is based on described, resource lock behaviour is performed in the available resources of host After work, the service establishing method also includes:
The each target cloud service of record and the corresponding relation of the target host machine;
It is described to be based on the request to create, the target cloud service is created in host, including:
Based on the request to create and the corresponding relation, it is determined that target host corresponding to each target cloud service Machine;
The target cloud service corresponding to being created in the identified target host machine.
Preferably, the service establishing method also includes:
Judge whether to successfully create the target cloud service;
If not, release the resource lock operation.
Second aspect, the embodiments of the invention provide another service establishing method, applied to service server, the side Method includes:
Obtain and create target resource information corresponding to resource needed for target cloud service;
The resource inquiry request for including the target resource information is sent to resource management server, to cause the resource Management server is based on the target resource information, judges whether the available resources of host create the target cloud clothes enough Business;
The judged result of the resource management server feedback is received, if described in the establishment enough of the available resources of host Target cloud service, obtain the target order of the corresponding target cloud service;
In the case where successfully obtaining the target order, sent to the resource management server and create the target cloud The request to create of service, to cause the resource management server to be based on the request to create, the mesh is created in host Mark cloud service.
The third aspect, it is described applied to resource management server the embodiments of the invention provide a kind of service creation device Device includes:
First receiving module, for receiving the resource inquiry request of service server transmission, the resource inquiry request bag Target resource information corresponding to resource needed for the target cloud service containing establishment;
First judge module, for based on the target resource information, judging whether the available resources of host are created enough Build the target cloud service;
Feedback module, it is anti-to the service server in the case of being in the judged result of the judge module Judged result is presented, to cause the service server to obtain the target order of the corresponding target cloud service;
Second receiving module, sent for receiving the service server in the case where successfully obtaining the target order The request to create for the target cloud service;
Creation module, for based on the request to create, the target cloud service to be created in host.
Preferably, the service creation device also includes:
Locking module, in the case of being in the judged result of first judge module, provided based on the target Source information, resource lock operation is performed in the available resources of host.
In the first implementation, it is preferred that the locking module, including:
First determining unit, in the case of being in the judged result of first judge module, based on the mesh Resource information is marked, from the available resources of host, it is determined that to create the first resource of the target cloud service;
Lock cell, for locking the first resource;
The creation module, specifically for based on the first resource and the request to create, being created in host The target cloud service.
In second of implementation, it is preferred that the locking module, including:
Second determining unit, in the case of being in the judged result of first judge module, based on the mesh Resource information is marked, it is determined that to create all target host machines of the target cloud service;
3rd determining unit, for needed for all target cloud services for determining to need on each target host machine to create Target resource amount;
Updating block, the available volume of resources of each target host machine for updating local record are:Each target host The difference of the available volume of resources of the machine target resource amount corresponding with the target host machine.
Preferably, the service creation device also includes:
Logging modle, after performing resource lock operation in the locking module, each target cloud clothes of record Business and the corresponding relation of the target host machine;
The creation module, including:
4th determining unit, for based on the request to create and the corresponding relation, it is determined that each target cloud clothes Target host machine corresponding to business;
Creating unit, for the target cloud service corresponding to the establishment in the identified target host machine.
Preferably, the service creation device also includes:
Second judge module, for judging whether to successfully create the target cloud service;
Module is released, in the case of being no in the judged result of second judge module, releases the resource lock Fixed operation.
Fourth aspect, the embodiments of the invention provide another service creation device, applied to service server, the dress Put including:
Module is obtained, target resource information corresponding to resource needed for target cloud service is created for obtaining;
First dispensing device, please for sending the resource query comprising the target resource information to resource management server Ask, to cause the resource management server to be based on the target resource information, judge whether the available resources of host are enough Create the target cloud service;
3rd reception device, for receiving the judged result of resource management server feedback, if host can Create the target cloud service enough with resource, obtain the target order of the corresponding target cloud service;
Second dispensing device, in the case where successfully obtaining the target order, to the resource management server The request to create for creating the target cloud service is sent, to cause the resource management server to be based on the request to create, The target cloud service is created in host.
5th aspect, the embodiments of the invention provide a kind of service creation system, the system include service server and Resource management server,
The service server, for obtaining the target resource information needed for establishment target cloud service;Taken to resource management Business device sends the resource inquiry request for including the target resource information, and receives resource management server and be directed to host Whether available resources create the judged result of the target cloud service enough;Described in if the available resources of host create enough Target cloud service, obtain the target order of the corresponding target cloud service;In the case where successfully obtaining the target order, to The resource management server sends the request to create for creating the target cloud service;
The resource management server, the resource inquiry request sent for receiving the service server;It is based on The target resource information, judges whether the available resources of host create the target cloud service enough;And to the business Whether server feedback creates the judged result of the target cloud service for the available resources of host enough;And receive institute The request to create of the establishment target cloud service of service server transmission is stated, and is based on the request to create, in host Create the target cloud service.
Preferably, the resource management server is additionally operable to:
In the case where the available resources of host create the target cloud service enough, believed based on the target resource Breath, resource lock operation is performed in the available resources of host.
In the first implementation, it is preferred that the resource management server, be specifically used for:
In the case where the available resources of host create the target cloud service enough, believed based on the target resource Breath, from the available resources of host, it is determined that to create the first resource of the target cloud service;And lock first money Source;And after receiving the request to create for the establishment target cloud service that the service server is sent, based on the described first money Source and the request to create, the target cloud service is created in host.
In second of implementation, it is preferred that the resource management server, be specifically used for:
In the case where the available resources of host create the target cloud service enough, believed based on the target resource Breath, it is determined that to create all target host machines of the target cloud service;It is determined that need what is created on each target host machine Target resource amount needed for all target cloud services;Update the available volume of resources of each target host machine of local record For:The difference of the available volume of resources target resource amount corresponding with each target host machine of each target host machine.
Preferably, the resource management server, is additionally operable to:Resource lock operation is performed in the available resources of host Afterwards, each target cloud service and the corresponding relation of the target host machine are recorded;
The resource management server, is specifically used for:Based on the request to create and the corresponding relation, it is determined that each institute State target host machine corresponding to target cloud service;It is corresponding in the identified target host machine to create the target cloud clothes Business.
Preferably, the resource management server, is additionally operable to:
Judge whether to successfully create the target cloud service;If not, release the resource lock operation.
As seen from the above, in scheme provided in an embodiment of the present invention, resource management server receives service server first The resource inquiry request of transmission, the target resource information carried in resource inquiry request is then based on, judges the available of host Whether resource creates target cloud service enough;If it is, judged result is fed back to service server, to cause service server to obtain Take the target order of corresponding target cloud service;Hereafter resource management server receives service server and ordered in successfully acquisition target again The request to create for target cloud service sent in the case of list, and the request to create is based ultimately upon, created in host Target cloud service.In scheme provided in an embodiment of the present invention, when needing to create new business, first by resource management server Judge in host with the presence or absence of enough resources to create cloud service corresponding to the new business, when judged result is to be, industry Business server can just go to obtain corresponding order;Compared with prior art, reduce due to host inadequate resource and cause to create Needs cancel the generation of the phenomenon of the respective orders got when cloud service fails, and it is numerous to solve service creation of the prior art The problem of trivial, and then reduce the useless order occurred due to host inadequate resource.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the signaling process schematic diagram of service establishing method of the prior art;
Fig. 2 is the signaling process schematic diagram of service establishing method provided in an embodiment of the present invention;
Fig. 3 is a kind of the first schematic flow sheet of service establishing method provided in an embodiment of the present invention;
Fig. 4 is a kind of second of schematic flow sheet of service establishing method provided in an embodiment of the present invention;
Fig. 5 is a kind of the third schematic flow sheet of service establishing method provided in an embodiment of the present invention;
Fig. 6 is the schematic flow sheet of another service establishing method provided in an embodiment of the present invention;
Fig. 7 is a kind of the first structural representation of service creation device provided in an embodiment of the present invention;
Fig. 8 is a kind of second of structural representation of service creation device provided in an embodiment of the present invention;
Fig. 9 is a kind of the third structural representation of service creation device provided in an embodiment of the present invention;
Figure 10 is the structural representation of another service creation device provided in an embodiment of the present invention;
Figure 11 is a kind of structural representation of service creation system provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
The technical term being related in present specification is simply introduced first below.
Service server and resource management server:The cloud management platform of cloud service provider is belonged to, such as A kind of Openstack (cloud computing management platform project increased income) management platform, cloud service provider pass through cloud management platform pipe Host is managed, create cloud service and creates order etc..In actual use, EDrop order server use can be correspondingly arranged on To create order and charging.It should be noted that service server, resource management server and EDrop order server herein can To be to be respectively at different machines, it is of course also possible to uniform machinery is in, can be by service server, resource management service Device and EDrop order server regard Business Logic, resource management layer and the order and charge system of cloud management platform as.
The present invention is described in detail from the angle that prior art is contrasted below, wherein, for convenience of explanation, Assuming that the order of cloud service is created by default EDrop order server, certainly, the present invention is not limited to be created by EDrop order server and ordered It is single.
Fig. 1 is the signaling process schematic diagram of service establishing method of the prior art.
In the prior art, when creating business, service server is firstly the need of obtaining corresponding to the business required for cloud service Resource information (S301), such as CPU core number, the memory size needed, then service server send and wrap to EDrop order server Order creation request (S302) containing the required resource information;EDrop order server creates according to required resource information Respective orders and charging (S303), then EDrop order server whether create successful order creation to service server feedback order Information (S304);In the case of order creation is successful, service server is sent to resource management server creates corresponding cloud clothes The request to create (S305) of business, the required resource information is equally included in the request to create, service server can be to money Whether the cloud service of source control server poll successfully creates;Finally, resource management server is based on required resource information, Cloud service (S306) is created in host, resource management server can also return to whether cloud service is successfully created to service server The information built.
Seen from the above description, in the prior art, when creating business, service server interacts with EDrop order server first, To obtain corresponding order by EDrop order server, then service server interacts with resource management server again, by resource pipe Reason server creates corresponding cloud service in host.When the inadequate resource in host is to create cloud service, resource management Server can not successfully create corresponding cloud service, then now need manually to cancel the respective orders obtained before, it is clear that, herein In the case of, service creation procedure is cumbersome.
Fig. 2 is the signaling process schematic diagram of service establishing method provided in an embodiment of the present invention.
In scheme provided by the invention, when creating business, service server obtains first to be created corresponding to target cloud service Target resource information (S401), then service server sent to resource management server and include the resource of the target resource information Inquiry request (S402);Resource management server is based on the target resource information, judge whether to have in host enough resources with Target cloud service (S403) is created, and judged result (S404) is fed back to service server.
When the judged result of resource management server feedback is is, service server sends to include to EDrop order server and is somebody's turn to do The order creation request (S405) of target resource information;EDrop order server creates respective orders and counted according to target resource information Take (S406), then whether EDrop order server creates successful order creation information (S407) to service server feedback order; In the case of order creation is successful, service server sends the request to create for creating target cloud service to resource management server (S408) the target resource information, is equally included in the request to create;Finally, resource management server is believed based on target resource Breath, target cloud service (S409) is created in host.
Therefore in scheme provided by the invention, create business when, service server first with resource management service Device is interacted, and corresponding cloud service is created to ensure to exist in host enough resources one, and then service server takes with order Business device interaction, to obtain corresponding order by EDrop order server, last service server interacts with resource management server again, Corresponding cloud service is created in host by resource management server.Compared with prior art, scheme provided by the invention is reduced Needs cancel the hair of the phenomenon of the respective orders got when causing due to host inadequate resource to create cloud service failure It is raw, solve the problems, such as that service creation of the prior art is cumbersome, and then reduce the nothing occurred due to host inadequate resource Use order.
The present invention is described in detail by specific embodiment again below.
Fig. 3 be a kind of service establishing method provided in an embodiment of the present invention the first schematic flow sheet, this method application In resource management server, this method includes:
S101:Receive the resource inquiry request that service server is sent.
The resource inquiry request, which includes, creates target resource information corresponding to resource needed for target cloud service;For example, it is desired to CPU core number, internal memory and hard disk resources etc..
S102:Based on target resource information, judge whether the available resources of host create target cloud service enough.
Resource management server can be managed to the resource in host, and certainly, resource management server can be remembered Record has remaining available resources total amount in host, so resource management server can judge place based on the target resource information Whether the available resources of main frame create target cloud service enough.
For example, the target cloud service corresponds to two virtual cloud main frames, and the target resource information shows:Create this two Virtual cloud main frame needs two CPU cores, 5G internal memory and 200G hard-disk capacity.If now available resource in host For:5 CPU cores, 15G internal memory and 600G hard-disk capacity, then now, resource management server may determine that host Available resources create target cloud service enough;If now available resource is in host:5 CPU cores, 10G internal memory And 100G hard-disk capacity, due to the hard-disk capacity deficiency of host, then now, resource management server may determine that host The available resources of machine are not enough to create target cloud service.
If S102 judged result is yes, S103 is performed:Judged result is fed back to service server, to cause business to take Business device obtains the target order of corresponding target cloud service.
Service server only when the judged result received is to be, can just go to obtain respective orders.Certainly, if S102 judged result is no, and resource management server can equally will determine that result feeds back to service server, still, when this is sentenced When disconnected result is no, show that the available resources of host are not enough to create target cloud service, judged result now is considered as It is the resource early warning that resource management server is sent to service server, in the case, service server will not go to obtain Take respective orders.
S104:Receive the wound for target cloud service that service server is sent in the case of successfully acquisition target order Build request.
The request to create corresponds to target cloud service, so the request to create should include the money created needed for target cloud service Source information, for example, including information in this request to create:Create target cloud service need 3 CPU cores, 15G internal memory and 1500G hard-disk capacity.
S105:Based on the request to create, target cloud service is created in host.
It should be noted that the quantity of host and the quantity of target cloud service are at least one.Such as:Target cloud Service needs to create 3 virtual cloud main frames for virtual cloud main frame, user, and the quantity of host is 20, is creating virtual cloud master During machine, resource management server is this 3 suitable hosts of virtual cloud Selection of chiller according to actual conditions, and selected This 3 virtual cloud main frames are respectively created in host.
Certainly, the system of selection of specific creation method and host belongs to prior art, and the embodiment of the present invention is herein No longer it is discussed in detail.
As seen from the above, in scheme provided in an embodiment of the present invention, resource management server receives service server first The resource inquiry request of transmission, the target resource information carried in resource inquiry request is then based on, judges the available of host Whether resource creates target cloud service enough;If it is, judged result is fed back to service server, to cause service server to obtain Take the target order of corresponding target cloud service;Hereafter resource management server receives service server and ordered in successfully acquisition target again The request to create for target cloud service sent in the case of list, and the request to create is based ultimately upon, created in host Target cloud service.In scheme provided in an embodiment of the present invention, when needing to create new business, first by resource management server Judge in host with the presence or absence of enough resources to create cloud service corresponding to the new business, when judged result is to be, industry Business server can just go to obtain corresponding order;Compared with prior art, reduce due to host inadequate resource and cause to create Needs cancel the generation of the phenomenon of the respective orders got when cloud service fails, and it is numerous to solve service creation of the prior art The problem of trivial, and then reduce the useless order occurred due to host inadequate resource.
It should be noted that in the embodiment of the method shown in Fig. 3, due to before target order is obtained, having carried out Cross resource query operation, it is possible to which needs, which are cancelled, when reduction causes to create cloud service failure due to host inadequate resource obtains The generation of the phenomenon for the respective orders got, but this phenomenon can not be completely eliminated, because to wound after resource query is carried out Build in this period of destination service, the available resources of host are it may also happen that change.
Such as:The target cloud service is:Three virtual clouds main frame X, Y, Z, creating this three virtual cloud main frames needs 3 The hard-disk capacity of CPU core, 15G internal memory and 1500G, during resource query know:The available resources of host are 4 CPU core, 20G internal memory and 2000 hard-disk capacity, then service server can go to obtain corresponding order in the case of this, false During being located at service server acquisition order, new virtual cloud main frame U and W are created in host, takes two CPU altogether Kernel, 10G internal memory and 1000 hard-disk capacity.
After thus service server gets corresponding virtual cloud main frame X, Y, Z order, remaining resource is in host Two CPU cores, 10G internal memory and 1000 hard-disk capacity, resource management server still can now provide because of host Source deficiency can not create virtual cloud main frame X, Y, Z, therefore the order obtained still needs to cancel.
Thus, in order to avoid causing to create needs when cloud service fails due to host inadequate resource and cancel acquisition completely The generation of the phenomenon of the respective orders arrived, relative to Fig. 3, a kind of service creation provided in an embodiment of the present invention as shown in Figure 4 Second of schematic flow sheet of method:
After the available resources for judging host create target cloud service enough, the service establishing method also includes:S106: Based on target resource information, resource lock operation is performed in the available resources of host.
It should be noted that the finger of a resource lock can be included in the resource inquiry request that resource management server receives Order, the instruction that resource management server can be based on target resource information and the resource lock, in the available resources of host Middle execution resource lock operation;It is also possible that resource management server is it is determined that the available resources of host create target enough In the case of cloud service, resource lock operation is actively performed.
It is well known by those skilled in the art that after resource lock operation is performed, resource management server can be the mesh Mark cloud service and reserve resource to create target cloud service, that is, when ensuring to create target cloud service, have establishment enough should in host The resource of target cloud service.
For example, the target cloud service is:One Dropbox, creating this Dropbox needs 500G hard-disk capacity, carries out resource and looks into Know during inquiry:The available resources of host are 2000 hard-disk capacity, then carry out after resource lock operation to when creating the Dropbox, Available resources in host will not be less than 500G hard-disk capacities all the time, i.e. resource in host creates the net enough all the time Disk.
In embodiments of the present invention, resource lock operation can include two kinds of implementations, in the first resource lock It is above-mentioned to be based on target resource information in implementation, resource lock operation (S106), bag are performed in the available resources of host Include:
Based on target resource information, from the available resources of host, it is determined that to create the first of target cloud service the money Source;
Lock the first resource.
It is appreciated that under this implementation, it is above-mentioned to be based on the request to create, target cloud service is created in host (S105), Ke Yishi:
Based on first resource and request to create, target cloud service is created in host.
In this implementation, resource management server marks off to create target cloud from available host resource The first resource of service, and the first resource is locked, to ensure that the first resource is only used for creating the target cloud service, work as establishment During the target cloud service, target cloud service is created based on the first resource.
For example, the target cloud service is virtual cloud main frame X, create virtual cloud main frame X need 1 CPU core, 5G it is interior Deposit and 800G hard-disk capacity, know during resource query:The available resources of host be 3 CPU cores, 15G it is interior Deposit and 2000 hard-disk capacity, can now lock the CPU core x in host, and from 15G internal memory and 2000 it is hard In disk capacity, divide and lock 5G internal memory and 800 hard-disk capacity.
Resource management server after locking the first resource to during creating virtual cloud main frame X, it is assumed that resource Management server receives a new resource inquiry request, corresponding virtual cloud host A, B, C in the new resource inquiry request 3 CPU cores, 15G internal memory and 1500 hard-disk capacity are needed, due to the CPU core x in now host and is drawn The 5G separated internal memory and 800 hard-disk capacity are locked, and now, resource management server judges the inadequate resource in host To create virtual cloud host A, B, C.When explorer creates virtual cloud main frame X, directly using CPU core x and drawn The 5G separated internal memory and 800 hard-disk capacity create virtual cloud main frame X.
It is above-mentioned to be based on target resource information in the implementation of second of resource lock, in the available resources of host Middle execution resource lock operation (S106), can include:
The first step:Based on target resource information, it is determined that to create all target host machines of target cloud service.
Sayed as foregoing, the number of target cloud service and the number of target host machine are at least one, when target cloud takes During the equal more than one of number of business and target host machine, different target cloud services may be in different target host machines Create, so can first do a predistribution to all target cloud services herein, i.e., first determine all creating target All target host machines of cloud service.
Realized it should be noted that the operation of predistribution can be based on prior art, prior art is creating target cloud clothes During business, host corresponding to target cloud service can be found first, the then target cloud service corresponding to establishment in host, and In the embodiment of the present invention, host corresponding to target cloud service can be first found, it is then determined that each host found is mesh Mark host.
For example, target cloud service is five virtual clouds main frame D, E, F, G and H, host includes host 1~10, it is assumed that Predistribution virtual cloud main frame D, E is created on host 2, and virtual cloud main frame F is created on host 6, and virtual cloud main frame G is in place Created on main frame 9, it is determined that host 2,6 and 9 is target host machine.
Second step:It is determined that the target resource being described needed for target cloud service for needing to create on each target host machine Amount.
When predistribution has a target cloud service in a certain target host machine, target resource corresponding to the target host machine Amount is exactly to create the stock number needed for the target cloud service, such as target cloud service is the Dropbox that capacity is 500G, then the first money Source amount is 500G hard disk resources amounts.
When predistribution has at least two target cloud services in a certain target host machine, target corresponding to the target host machine Stock number is:Create the stock number needed for all target cloud services pre-allocated in the target host machine, such as target host machine Middle predistribution has target cloud service X and Y, and creating target cloud service X needs the hard disk appearance of two CPU cores, 5G internal memories and 500G Amount, and creating target cloud service Y needs the hard-disk capacity of 1 CPU core, 10G internal memories and 800G, then first resource amount is 3 The stock number of kernel, 15G internal memories and 1300G hard-disk capacities.
3rd step:The available volume of resources of each target host machine for updating local record is:Each target host machine can With the difference of stock number target resource amount corresponding with the target host machine.
Assuming that the available volume of resources of current time a certain target host machine is:5 kernels, 25G internal memories and 2500G hard disks The stock number of capacity, target resource amount corresponding to the target host machine are 3 kernels, 15G internal memories and 1500G hard-disk capacities Stock number, then now update resource management server local record the target host machine available volume of resources for two kernels, The stock number of 10G internal memories and 1000G hard-disk capacities.
It is appreciated that with reference to above-mentioned three step when resource management server determines that resource creates target cloud service enough, meeting The available volume of resources of the host locally recorded to it does a pre- reducing, and the stock number subtracted in advance is exactly to create target cloud All stock numbers needed for service.
For example, the target cloud service is virtual cloud main frame Y, create virtual cloud main frame Y need 1 CPU core, 5G it is interior Deposit and 800G hard-disk capacity, know during resource query:Host M available resources are two CPU cores, 10G Internal memory and 1500 hard-disk capacity, it is assumed that it is target host machine to determine host M, then needs to update explorer locally note The host M of record available volume of resources is:The stock number of 1 CPU core, 5G internal memories and 700G hard-disk capacities.
Resource management service after locking the first resource to during creating virtual cloud main frame Y, it is assumed that resource pipe Reason server receives a new resource inquiry request, and corresponding virtual cloud main frame N and P need in the new resource inquiry request Two CPU cores, 8G internal memory and 1500 hard-disk capacity, but because host M available volume of resources is:In 1 CPU The stock number of core, 5G internal memories and 700G hard-disk capacities, now, virtual cloud main frame N and P will not create on host M.Resource When manager creates virtual cloud main frame Y, directly virtual cloud main frame Y is created using the stock number subtracted in advance.
Additionally it should explanation, for multiple target cloud services in the same business of establishment, if being directed to each mesh Mark cloud service judges whether the available resources of host are enough one by one, and the available resources in host only create one enough During partial objectives for cloud service, if corresponding to the pre- reducing of resource had been done in the part cloud service, then due to remaining cloud service without Method realizes predistribution, it should cancels the pre- reducing rollback of the resource done.
For example, target cloud service is the Dropbox M and N that two capacity are 500G, current host available resources are 800G hard-disk capacity, for Dropbox M, resource management server performs pre- reducing:The host of renewal local record can use Hard disk resources amount be 300G, then resource management server finds that remaining inadequate resource to create Dropbox N, then now needs The pre- reducing is cancelled, the available hard disk resources amount of host for changing local record is 800G.
It is appreciated that after resource lock, during in order to ensure to create each target cloud service, target cloud clothes can be found Host corresponding to business, as shown in figure 5, being based on target resource information above-mentioned, resource is performed in the available resources of host After lock operation (S106), the service establishing method also includes:
S107:Record the corresponding relation of each target cloud service and target host machine.
Carried out it is appreciated that resource lock operation is the target resource information based on target cloud service, and in host Middle execution, so each corresponding relation be present between target cloud service and each target host machine, for example, target cloud service is It is virtual as creating to select host A when performing resource lock operation for two virtual clouds main frame X and Y, resource management server Cloud main frame X and Y target host machine.Then now, resource management server should record virtual cloud main frame X and host A pair It should be related to, and virtual cloud main frame Y and host A corresponding relation.
It should be noted that each corresponding relation can be distinguished with identification information, such as in resource management server One list is set, and there is using req_id as corresponding relation identifying, on cloud service and host record in list.The mark Information can be generated and sent to resource management server by service server, for example, carrying the mark in the resource inquiry request Know information.Certainly, the request to create for the establishment target cloud service that service server is sent can also carry the identification information.
In the case, it is above-mentioned to be based on the request to create, target cloud service (S105) is created in host, can be wrapped Include:
S1051:Based on the request to create and corresponding relation, it is determined that target host machine corresponding to each target cloud service;
S1052:Target cloud service corresponding to being created in identified target host machine.
For example, in the resource inquiry request that resource management server receives, comprising on creating needed for virtual cloud main frame X Stock number and corresponding virtual cloud main frame X identification information a, and on create stock number needed for virtual cloud main frame Y and Corresponding virtual cloud main frame Y identification information b, explorer determine that target host machine is host A, i.e. virtual cloud main frame X and Y It will all establish in host A, now, resource management server is using identification information a as identification record virtual cloud main frame X and host Machine A corresponding relation, the corresponding relation using identification information b as identification record virtual cloud main frame Y and host A.
When resource management server receives the request to create for creating target cloud service, identification information a can also be obtained And b, then now, resource management server finds corresponding virtual cloud main frame X and Y host based on identification information a and b first A, the request to create is then based on, virtual cloud main frame X and Y are created in host A.
Additionally it should explanation, resource management server can not necessarily successfully create target cloud service, it is possible to Can occur the phenomenon for creating failure in the case of resource abundance, when this phenomenon occurs, the resource of foregoing locking is not sharp With, but the other cloud services that can not be required establishment are utilized, in order to avoid the wasting of resources in the case of this, this business wound Construction method also includes:
Judge whether to successfully create target cloud service;
If not, release resource lock operation.
Resource management server can judge whether to successfully create target cloud service based on prior art, if not provided, solution Except resource lock operates, show that the resource of locking is released, can be utilized by any cloud service, it should illustrate, resource management clothes Being engaged in device should also the target cloud service of failed establishment and the corresponding relation of host of the deletion record in local.
As seen from the above, in scheme provided in an embodiment of the present invention, resource management server receives service server first The resource inquiry request of transmission, the target resource information carried in resource inquiry request is then based on, judges the available of host Whether resource creates target cloud service enough;If it is, judged result is fed back to service server, to cause service server to obtain Take the target order of corresponding target cloud service;Hereafter resource management server receives service server and ordered in successfully acquisition target again The request to create for target cloud service sent in the case of list, and the request to create is based ultimately upon, created in host Target cloud service.In scheme provided in an embodiment of the present invention, when needing to create new business, first by resource management server Judge in host with the presence or absence of enough resources to create cloud service corresponding to the new business, when judged result is to be, industry Business server can just go to obtain corresponding order;Compared with prior art, reduce due to host inadequate resource and cause to create Needs cancel the generation of the phenomenon of the respective orders got when cloud service fails, and it is numerous to solve service creation of the prior art The problem of trivial, and then reduce the useless order occurred due to host inadequate resource.
Relative to the embodiment of the method shown in Fig. 3, as shown in fig. 6, another service creation provided in an embodiment of the present invention Method, applied to service server, the service establishing method includes:
S201:Obtain and create target resource information corresponding to resource needed for target cloud service.
It should be noted that target resource information can be inputted by user, for example, user inputs target resource packet Include:Create the virtual cloud main frame for possessing 1 CPU core, 15G internal memories and 1500G hard-disk capacities.
S202:The resource inquiry request for including the target resource information is sent to resource management server, it is described to cause Resource management server is based on the target resource information, judges whether the available resources of host create the target cloud enough Service.
S203:The judged result of resource management server feedback is received, if the available resources of host create mesh enough Cloud service is marked, obtains the target order of corresponding target cloud service.
It should be noted that target order can represent service server by service server from locally obtaining Also there is the function of creating order, but in actual use, the establishment of order can be completed by EDrop order server, should EDrop order server is creating order and charging.When the judged result shows that the available resources of host are enough to create target cloud clothes During business, service server can send the order creation comprising target resource information to the EDrop order server and ask, EDrop order server Ask to create order and charging based on the order creation, then the target order created is sent to business by EDrop order server Server.
S204:In the case where successfully obtaining target order, sent to resource management server and create target cloud service Request to create, to cause the resource management server to be based on the request to create, the target cloud clothes are created in host Business.
In scheme provided in an embodiment of the present invention, when needing to create new business, resource management server judges can place With the presence or absence of enough resources to create cloud service corresponding to the new business in main frame, when judged result is to be, business service Device can just go to obtain corresponding order;Compared with prior art, reduce due to host inadequate resource and cause to create cloud service Need to cancel the generation of the phenomenon of the respective orders got during failure, solve that service creation of the prior art is cumbersome to ask Topic, and then reduce the useless order occurred due to host inadequate resource.
Simple introduction is done to the present invention below by an instantiation, assume in this example that establishment and the meter of order Expense is completed by EDrop order server.
Service server is firstly received a resource information, and the resource information includes:3 virtual cloud main frame X, Y of establishment, Z, creating virtual cloud main frame X needs 1 CPU core, 5G internal memories and 400G hard-disk capacities, and creating virtual cloud main frame Y needs two Individual CPU core, 6G internal memories and 500G hard-disk capacities, creating virtual cloud main frame Z needs 1 CPU core, 5G internal memories and 320G Hard-disk capacity.
Then service server sends the resource inquiry request for including the resource information, the resource to resource management server Inquiry request also includes dividing by the identification information x, y, z corresponding to virtual cloud main frame X, Y, Z;Resource management server is based on resource The resource information that inquiry request carries, judges whether to have enough resources in host to create virtual cloud main frame X, Y, Z.
Assuming that the available resources in host are enough to create virtual cloud main frame X, Y, Z, now, resource management server determines The host for going out to create virtual cloud main frame X, Y, Z is respectively host a, b, c.Now with respectively with identification information x, y with And z is the corresponding pass that mark records virtual cloud main frame X and host a corresponding relation, virtual cloud main frame Y and host b respectively System and virtual cloud main frame Z and host c corresponding relation.
If available volume of resources corresponding to host a is two CPU cores, the money of 15G internal memories and 2000G hard-disk capacities Source is measured, and available volume of resources corresponding to host b is the stock number of 3 CPU cores, 15G internal memories and 2500G hard-disk capacities, place Available volume of resources corresponding to main frame c is the stock number of two CPU cores, 10G internal memories and 1800G hard-disk capacities;Then resource pipe Manage server update:Available volume of resources corresponding to host a is the money of 1 CPU core, 10G internal memories and 1600G hard-disk capacities Source is measured, and available volume of resources corresponding to host b is the stock number of 1 CPU core, 9G internal memories and 2000G hard-disk capacities, host Available volume of resources corresponding to machine c is the stock number of 1 CPU core, 5G internal memories and 1480G hard-disk capacities.Then, resource management Server feeds back judged result to service server, and the available resources of informing business server host are enough to create virtual cloud master Machine X, Y, Z.
After service server receives the judged result, because judged result is yes, service server is to EDrop order server The order creation comprising the resource information is sent to ask;EDrop order server creates respective orders simultaneously according to the resource information is based on Charging, then whether EDrop order server creates successful order creation information to service server feedback order, and handle creates Order be sent to service server;After service server receives the order, send and created virtually to resource management server Cloud main frame X, Y, Z request to create, the target resource information and identification information x, y, z are equally included in the request to create.
Finally, resource management server is based on the target resource information and identification information x, y, z, finds virtual cloud first Main frame X, Y, Z distinguish corresponding to host a, b, c, virtual cloud main frame X, Y, Z are then respectively created in host a, b, c.
Corresponding to the embodiment of the method shown in Fig. 3, the embodiment of the present invention additionally provides a kind of service creation device, is applied to Resource management server, as shown in fig. 7, the device includes:
First receiving module 110, for receiving the resource inquiry request of service server transmission, the resource inquiry request Include target resource information corresponding to resource needed for establishment target cloud service;
First judge module 120, for based on the target resource information, judging whether the available resources of host are enough Create the target cloud service;
Feedback module 130, in the case of being in the judged result of the judge module, to the service server Judged result is fed back, to cause the service server to obtain the target order of the corresponding target cloud service;
Second receiving module 140, for receiving the service server in the case where successfully obtaining the target order The request to create for the target cloud service sent;
Creation module 150, for based on the request to create, the target cloud service to be created in host.
As seen from the above, in scheme provided in an embodiment of the present invention, resource management server receives service server first The resource inquiry request of transmission, the target resource information carried in resource inquiry request is then based on, judges the available of host Whether resource creates target cloud service enough;If it is, judged result is fed back to service server, to cause service server to obtain Take the target order of corresponding target cloud service;Hereafter resource management server receives service server and ordered in successfully acquisition target again The request to create for target cloud service sent in the case of list, and the request to create is based ultimately upon, created in host Target cloud service.In scheme provided in an embodiment of the present invention, when needing to create new business, first by resource management server Judge in host with the presence or absence of enough resources to create cloud service corresponding to the new business, when judged result is to be, industry Business server can just go to obtain corresponding order;Compared with prior art, reduce due to host inadequate resource and cause to create Needs cancel the generation of the phenomenon of the respective orders got when cloud service fails, and it is numerous to solve service creation of the prior art The problem of trivial, and then reduce the useless order occurred due to host inadequate resource.
Corresponding to the embodiment of the method shown in Fig. 4, relative to Fig. 7, a kind of service creation that the embodiment of the present invention also provides Device, as shown in figure 8, the device also includes:
Locking module 160, in the case of being in the judged result of first judge module, based on the target Resource information, resource lock operation is performed in the available resources of host.
Specifically, in the first implementation, the locking module 160, including the first determining unit and lock cell (not shown),
First determining unit, in the case of being in the judged result of first judge module 120, based on described Target resource information, from the available resources of host, it is determined that to create the first resource of the target cloud service;
Lock cell, for locking the first resource;
The creation module 150, specifically for based on the first resource and the request to create, being created in host Build the target cloud service.
Specifically, in second of implementation, the locking module 160, including the second determining unit, the 3rd determination list Member and updating block (not shown).
Second determining unit, in the case of being in the judged result of first judge module 120, based on described Target resource information, it is determined that to create all target host machines of the target cloud service;
3rd determining unit, for needed for all target cloud services for determining to need on each target host machine to create Target resource amount;
Updating block, the available volume of resources of each target host machine for updating local record are:Each target host The difference of the available volume of resources of the machine target resource amount corresponding with the target host machine.
In actual use, as shown in figure 9, described device also includes:
Logging modle 170, after performing resource lock operation in the locking module 160, record each mesh Mark cloud service and the corresponding relation of the target host machine;
The creation module 150, including the 4th determining unit 1501 and creating unit 1502.
4th determining unit 1501, for based on the request to create and the corresponding relation, it is determined that each mesh Mark target host machine corresponding to cloud service;
The creating unit 1502, for the target cloud clothes corresponding to the establishment in the identified target host machine Business.
In actual applications, specifically, described device also includes the second judge module and releases module (not shown).
Second judge module, for judging whether to successfully create the target cloud service;
Module is released, in the case of being no in the judged result of second judge module, releases the resource lock Fixed operation.
In scheme provided in an embodiment of the present invention, when needing to create new business, sentenced first by resource management server With the presence or absence of enough resources to create cloud service corresponding to the new business in disconnected host, when judged result is to be, business Server can just go to obtain corresponding order;Compared with prior art, reduce due to host inadequate resource and cause to create cloud Needs cancel the generation of the phenomenon of the respective orders got during serv-fail, and it is cumbersome to solve service creation of the prior art The problem of, and then reduce the useless order occurred due to host inadequate resource.
Corresponding to the embodiment of the method shown in Fig. 6, the embodiment of the present invention additionally provides another service creation device, application In service server, as shown in Figure 10, the device includes:
Module 210 is obtained, target resource information corresponding to resource needed for target cloud service is created for obtaining;
First sending module 220, looked into for sending the resource comprising the target resource information to resource management server Ask request, to cause the resource management server to be based on the target resource information, judge host available resources whether The target cloud service is created enough;
3rd receiving module 230, for receiving the judged result of the resource management server feedback, if host Available resources create the target cloud service enough, obtain the target order of the corresponding target cloud service;
Second sending module 240, in the case where successfully obtaining the target order, to the resource management service Device sends the request to create for creating the target cloud service, to cause the resource management server to be based on the request to create, The target cloud service is created in host.
In scheme provided in an embodiment of the present invention, when needing to create new business, resource management server judges can place With the presence or absence of enough resources to create cloud service corresponding to the new business in main frame, when judged result is to be, business service Device can just go to obtain corresponding order;Compared with prior art, reduce due to host inadequate resource and cause to create cloud service Need to cancel the generation of the phenomenon of the respective orders got during failure, solve that service creation of the prior art is cumbersome to ask Topic, and then reduce the useless order occurred due to host inadequate resource.
Corresponding to aforementioned approaches method and device embodiment, the embodiment of the invention also discloses a kind of service creation system, As shown in figure 11, the system includes service server and resource management server,
The service server, for obtaining the target resource information needed for establishment target cloud service;Taken to resource management Business device sends the resource inquiry request for including the target resource information, and receives resource management server and be directed to host Whether available resources create the judged result of the target cloud service enough;Described in if the available resources of host create enough Target cloud service, obtain the target order of the corresponding target cloud service;In the case where successfully obtaining the target order, to The resource management server sends the request to create for creating the target cloud service;
The resource management server, the resource inquiry request sent for receiving the service server;It is based on The target resource information, judges whether the available resources of host create the target cloud service enough;And to the business Whether server feedback creates the judged result of the target cloud service for the available resources of host enough;And receive institute The request to create of the establishment target cloud service of service server transmission is stated, and is based on the request to create, in host Create the target cloud service.
Specifically, the resource management server is additionally operable to:
In the case where the available resources of host create the target cloud service enough, believed based on the target resource Breath, resource lock operation is performed in the available resources of host.
In the first implementation, the resource management server, it is specifically used for:
In the case where the available resources of host create the target cloud service enough, believed based on the target resource Breath, from the available resources of host, it is determined that to create the first resource of the target cloud service;And lock first money Source;And after receiving the request to create for the establishment target cloud service that the service server is sent, based on the described first money Source and the request to create, the target cloud service is created in host.
In second of implementation, the resource management server, it is specifically used for:
In the case where the available resources of host create the target cloud service enough, believed based on the target resource Breath, it is determined that to create all target host machines of the target cloud service;It is determined that need what is created on each target host machine Target resource amount needed for all target cloud services;Update the available volume of resources of each target host machine of local record For:The difference of the available volume of resources target resource amount corresponding with each target host machine of each target host machine.
Specifically, the resource management server, is additionally operable to:Resource lock operation is performed in the available resources of host Afterwards, each target cloud service and the corresponding relation of the target host machine are recorded;
The resource management server, is specifically used for:Based on the request to create and the corresponding relation, it is determined that each institute State target host machine corresponding to target cloud service;It is corresponding in the identified target host machine to create the target cloud clothes Business.
Specifically, the resource management server, is additionally operable to:
Judge whether to successfully create the target cloud service;If not, release the resource lock operation.
In scheme provided in an embodiment of the present invention, when needing to create new business, resource management server judges can place With the presence or absence of enough resources to create cloud service corresponding to the new business in main frame, when judged result is to be, business service Device can just go to obtain corresponding order;Compared with prior art, reduce due to host inadequate resource and cause to create cloud service Need to cancel the generation of the phenomenon of the respective orders got during failure, solve that service creation of the prior art is cumbersome to ask Topic, and then reduce the useless order occurred due to host inadequate resource.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.It is real especially for device For applying example, because it is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
Can one of ordinary skill in the art will appreciate that realizing that all or part of step in above method embodiment is To instruct the hardware of correlation to complete by program, described program can be stored in computer read/write memory medium, The storage medium designated herein obtained, such as:ROM/RAM, magnetic disc, CD etc..
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent substitution and improvements made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention It is interior.

Claims (20)

1. a kind of service establishing method, applied to resource management server, it is characterised in that methods described includes:
The resource inquiry request that service server is sent is received, the resource inquiry request is included to create and provided needed for target cloud service Target resource information corresponding to source;
Based on the target resource information, judge whether the available resources of host create the target cloud service enough;
If it is, judged result is fed back to the service server, to cause the service server to obtain the corresponding target The target order of cloud service;
Receive that the service server sends in the case where successfully obtaining the target order is directed to the target cloud service Request to create;
Based on the request to create, the target cloud service is created in host.
2. according to the method for claim 1, it is characterised in that methods described also includes:
After the available resources for judging host create the target cloud service enough, based on the target resource information, in place Resource lock operation is performed in the available resources of main frame.
3. according to the method for claim 2, it is characterised in that it is described to be based on the target resource information, in host Resource lock operation is performed in available resources, including:
Based on the target resource information, from the available resources of host, it is determined that to create the of the target cloud service One resource;
Lock the first resource;
It is described to be based on the request to create, the target cloud service is created in host, including:
Based on the first resource and the request to create, the target cloud service is created in host.
4. according to the method for claim 2, it is characterised in that it is described to be based on the target resource information, in host Resource lock operation is performed in available resources, including:
Based on the target resource information, it is determined that to create all target host machines of the target cloud service;
It is determined that the target resource amount needed for all target cloud services for creating is needed on each target host machine;Renewal is local The available volume of resources of each target host machine of record is:The available volume of resources and the target host machine pair of each target host machine The difference for the target resource amount answered.
5. according to the method for claim 2, it is characterised in that the target resource information is based on described, in host Available resources in perform resource lock operation after, methods described also includes:
The each target cloud service of record and the corresponding relation of the target host machine;
It is described to be based on the request to create, the target cloud service is created in host, including:
Based on the request to create and the corresponding relation, it is determined that target host machine corresponding to each target cloud service;
The target cloud service corresponding to being created in the identified target host machine.
6. according to the method for claim 2, it is characterised in that methods described also includes:
Judge whether to successfully create the target cloud service;
If not, release the resource lock operation.
7. a kind of service establishing method, applied to service server, it is characterised in that methods described includes:
Obtain and create target resource information corresponding to resource needed for target cloud service;
The resource inquiry request for including the target resource information is sent to resource management server, to cause the resource management Server is based on the target resource information, judges whether the available resources of host create the target cloud service enough;
The judged result of the resource management server feedback is received, if the available resources of host create the target enough Cloud service, obtain the target order of the corresponding target cloud service;
In the case where successfully obtaining the target order, sent to the resource management server and create the target cloud service Request to create, to cause the resource management server to be based on the request to create, the target cloud is created in host Service.
A kind of 8. service creation device, applied to resource management server, it is characterised in that described device includes:
First receiving module, for receiving the resource inquiry request of service server transmission, the resource inquiry request includes wound Build target resource information corresponding to resource needed for target cloud service;
First judge module, for based on the target resource information, judging whether the available resources of host create institute enough State target cloud service;
Feedback module, in the case of being in the judged result of the judge module, sentence to service server feedback Disconnected result, to cause the service server to obtain the target order of the corresponding target cloud service;
Second receiving module, the pin sent for receiving the service server in the case where successfully obtaining the target order To the request to create of the target cloud service;
Creation module, for based on the request to create, the target cloud service to be created in host.
9. device according to claim 8, it is characterised in that described device also includes:
Locking module, in the case of being in the judged result of first judge module, believed based on the target resource Breath, resource lock operation is performed in the available resources of host.
10. device according to claim 9, it is characterised in that the locking module, including:
First determining unit, in the case of being in the judged result of first judge module, provided based on the target Source information, from the available resources of host, it is determined that to create the first resource of the target cloud service;
Lock cell, for locking the first resource;
The creation module, described in based on the first resource and the request to create, being created in host Target cloud service.
11. device according to claim 9, it is characterised in that the locking module, including:
Second determining unit, in the case of being in the judged result of first judge module, provided based on the target Source information, it is determined that to create all target host machines of the target cloud service;
3rd determining unit, for the mesh needed for all target cloud services for determining to need on each target host machine to create Mark stock number;
Updating block, the available volume of resources of each target host machine for updating local record are:Each target host machine The difference of the available volume of resources target resource amount corresponding with the target host machine.
12. device according to claim 9, it is characterised in that described device also includes:
Logging modle, after performing resource lock operation in the locking module, record each target cloud service with The corresponding relation of the target host machine;
The creation module, including:
4th determining unit, for based on the request to create and the corresponding relation, it is determined that each target cloud service pair The target host machine answered;
Creating unit, for the target cloud service corresponding to the establishment in the identified target host machine.
13. device according to claim 9, it is characterised in that described device also includes:
Second judge module, for judging whether to successfully create the target cloud service;
Module is released, in the case of being no in the judged result of second judge module, releases the resource lock behaviour Make.
A kind of 14. service creation device, applied to service server, it is characterised in that described device includes:
Module is obtained, target resource information corresponding to resource needed for target cloud service is created for obtaining;
First dispensing device, for sending the resource inquiry request for including the target resource information to resource management server, To cause the resource management server to be based on the target resource information, judge whether the available resources of host create enough The target cloud service;
3rd reception device, for receiving the judged result of the resource management server feedback, if the available money of host Source creates the target cloud service enough, obtains the target order of the corresponding target cloud service;
Second dispensing device, in the case where successfully obtaining the target order, being sent to the resource management server The request to create of the target cloud service is created, to cause the resource management server to be based on the request to create, in host The target cloud service is created in machine.
A kind of 15. service creation system, it is characterised in that the system includes service server and resource management server,
The service server, for obtaining the target resource information needed for establishment target cloud service;To resource management server The resource inquiry request for including the target resource information is sent, and receives resource management server and is directed to the available of host Whether resource creates the judged result of the target cloud service enough;If the available resources of host create the target enough Cloud service, obtain the target order of the corresponding target cloud service;In the case where successfully obtaining the target order, to described Resource management server sends the request to create for creating the target cloud service;
The resource management server, the resource inquiry request sent for receiving the service server;Based on described Target resource information, judges whether the available resources of host create the target cloud service enough;And to the business service Whether device feedback creates the judged result of the target cloud service for the available resources of host enough;And receive the industry The request to create for the establishment target cloud service that business server is sent, and the request to create is based on, created in host The target cloud service.
16. system according to claim 15, it is characterised in that the resource management server is additionally operable to:
In the case where the available resources of host create the target cloud service enough, based on the target resource information, Resource lock operation is performed in the available resources of host.
17. system according to claim 16, it is characterised in that the resource management server, be specifically used for:
In the case where the available resources of host create the target cloud service enough, based on the target resource information, from In the available resources of host, it is determined that to create the first resource of the target cloud service;And lock the first resource;With And after receiving the request to create for the establishment target cloud service that the service server is sent, based on the first resource and The request to create, the target cloud service is created in host.
18. system according to claim 16, it is characterised in that the resource management server, be specifically used for:
In the case where the available resources of host create the target cloud service enough, based on the target resource information, really Determine to create all target host machines of the target cloud service;It is determined that all institutes created are needed on each target host machine State the target resource amount needed for target cloud service;The available volume of resources of each target host machine for updating local record is:Each The difference of the available volume of resources of the target host machine target resource amount corresponding with each target host machine.
19. system according to claim 16, it is characterised in that the resource management server, be additionally operable to:In host Available resources in perform resource lock operation after, record each target cloud service pass corresponding with the target host machine System;
The resource management server, is specifically used for:Based on the request to create and the corresponding relation, it is determined that each mesh Mark target host machine corresponding to cloud service;It is corresponding in the identified target host machine to create the target cloud service.
20. system according to claim 16, it is characterised in that the resource management server, be additionally operable to:
Judge whether to successfully create the target cloud service;If not, release the resource lock operation.
CN201610861999.8A 2016-09-28 2016-09-28 Service creation method, device and system Active CN107872499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610861999.8A CN107872499B (en) 2016-09-28 2016-09-28 Service creation method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610861999.8A CN107872499B (en) 2016-09-28 2016-09-28 Service creation method, device and system

Publications (2)

Publication Number Publication Date
CN107872499A true CN107872499A (en) 2018-04-03
CN107872499B CN107872499B (en) 2021-05-25

Family

ID=61762188

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610861999.8A Active CN107872499B (en) 2016-09-28 2016-09-28 Service creation method, device and system

Country Status (1)

Country Link
CN (1) CN107872499B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108961004A (en) * 2018-07-06 2018-12-07 北京金山云网络技术有限公司 Processing method, device, system, electronic equipment and the medium of cloud service order
CN110674153A (en) * 2019-09-25 2020-01-10 北京金山云网络技术有限公司 Data consistency detection method and device and electronic equipment
CN110764899A (en) * 2019-09-03 2020-02-07 无锡华云数据技术服务有限公司 Resource quota management method, resource processing method, device, equipment, system and medium
CN111652605A (en) * 2020-06-08 2020-09-11 山东汇贸电子口岸有限公司 Creation system and creation method for creating cloud service package by public cloud service
CN113285975A (en) * 2021-03-30 2021-08-20 紫光云技术有限公司 High-concurrency resource detection method
US20210279109A1 (en) * 2020-03-09 2021-09-09 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for acquiring information
WO2021179487A1 (en) * 2020-03-13 2021-09-16 平安科技(深圳)有限公司 Method for dynamically allocating cloud host to host machine, electronic apparatus, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605139A (en) * 2009-07-10 2009-12-16 中兴通讯股份有限公司 The method and apparatus of P 2 P service establishing
CN103377407A (en) * 2012-04-25 2013-10-30 华为技术有限公司 Method for processing cloud service, and related device and system of cloud service
CN103810015A (en) * 2012-11-09 2014-05-21 华为技术有限公司 Virtual machine establishing method and equipment
CN104468150A (en) * 2013-09-12 2015-03-25 阿里巴巴集团控股有限公司 Method for realizing fault migration through virtual host and virtual host service device
CN104731657A (en) * 2013-12-24 2015-06-24 中国移动通信集团山西有限公司 Resource scheduling method and system
CN105159782A (en) * 2015-08-28 2015-12-16 北京百度网讯科技有限公司 Cloud host based method and apparatus for allocating resources to orders

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101605139A (en) * 2009-07-10 2009-12-16 中兴通讯股份有限公司 The method and apparatus of P 2 P service establishing
CN103377407A (en) * 2012-04-25 2013-10-30 华为技术有限公司 Method for processing cloud service, and related device and system of cloud service
CN103810015A (en) * 2012-11-09 2014-05-21 华为技术有限公司 Virtual machine establishing method and equipment
CN104468150A (en) * 2013-09-12 2015-03-25 阿里巴巴集团控股有限公司 Method for realizing fault migration through virtual host and virtual host service device
CN104731657A (en) * 2013-12-24 2015-06-24 中国移动通信集团山西有限公司 Resource scheduling method and system
CN105159782A (en) * 2015-08-28 2015-12-16 北京百度网讯科技有限公司 Cloud host based method and apparatus for allocating resources to orders

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108961004A (en) * 2018-07-06 2018-12-07 北京金山云网络技术有限公司 Processing method, device, system, electronic equipment and the medium of cloud service order
CN108961004B (en) * 2018-07-06 2021-08-06 北京金山云网络技术有限公司 Cloud service order processing method, device and system, electronic equipment and medium
CN110764899A (en) * 2019-09-03 2020-02-07 无锡华云数据技术服务有限公司 Resource quota management method, resource processing method, device, equipment, system and medium
CN110674153A (en) * 2019-09-25 2020-01-10 北京金山云网络技术有限公司 Data consistency detection method and device and electronic equipment
CN110674153B (en) * 2019-09-25 2023-02-07 北京金山云网络技术有限公司 Data consistency detection method and device and electronic equipment
US20210279109A1 (en) * 2020-03-09 2021-09-09 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for acquiring information
US11704157B2 (en) * 2020-03-09 2023-07-18 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for comparing acquired cloud resource use information to thresholds to recommend a target cloud resource instance
WO2021179487A1 (en) * 2020-03-13 2021-09-16 平安科技(深圳)有限公司 Method for dynamically allocating cloud host to host machine, electronic apparatus, and storage medium
CN111652605A (en) * 2020-06-08 2020-09-11 山东汇贸电子口岸有限公司 Creation system and creation method for creating cloud service package by public cloud service
CN113285975A (en) * 2021-03-30 2021-08-20 紫光云技术有限公司 High-concurrency resource detection method

Also Published As

Publication number Publication date
CN107872499B (en) 2021-05-25

Similar Documents

Publication Publication Date Title
CN107872499A (en) Service establishing method, apparatus and system
CN112153085B (en) Data processing method, node and block chain system
CN110032571B (en) Business process processing method and device, storage medium and computing equipment
CN108052398A (en) A kind of feedback method of order processing state and polymerization payment platform
CN104111897B (en) A kind of data processing method, device and computer system
CN103916455B (en) Method and system for data duplication
CN107589915B (en) Capacity information monitoring method, device and equipment of distributed storage system
KR101959153B1 (en) System for efficient processing of transaction requests related to an account in a database
EP3738045A1 (en) Distributed partitioned map reduce using a data fabric
CN108399101A (en) The methods, devices and systems of scheduling of resource
CN105074674B (en) Computer system and method for managing resource
CN109313564A (en) For supporting the server computer management system of the highly usable virtual desktop of multiple and different tenants
CN108470298A (en) The methods, devices and systems of resource numerical value transfer
US20130019087A1 (en) System structure management device, system structure management method, and program
CN115114305B (en) Lock management method, device, equipment and storage medium for distributed database
CN111708849A (en) Data management method, device, equipment and storage medium
CN107124473A (en) The construction method and cloud platform of cloud platform
CN106254466A (en) HDFS distributed file sharing method based on LAN
CN110289999A (en) A kind of data processing method, system and device
CN109286579A (en) A kind of distribution method of user resources, device and computer readable storage medium
CN110517145A (en) Data trade method and relevant device based on multi-tiling interchain
CN107180040A (en) The management method and device of a kind of business datum
US20130054930A1 (en) Method, system and program product for storing downloadable content on a plurality of enterprise storage system (ess) cells
CN104184603B (en) A kind of User Status statistical method, apparatus and system
CN104657216B (en) The resource allocation methods and device of a kind of resource pool

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