Invention content
The purpose of the application is to provide the dispositions method serviced under a kind of cloud environment, is obtained from the request of the service-creation of tenantThe relevant information of service to be created is taken, and needed for surplus yield meets and creates on the basis of stock number, while will includeTwo layers of service including Paas services and IaaS services all creates in target establishing resource area, is both provided for every tenantThe PaaS services and IaaS services exclusively enjoyed since every tenant is owned by the PaaS services of oneself, and is serviced with IaaS using sameOne physical resource, therefore Operational Visit delay between the two can be significantly reduced, while each tenant interval defection under such modeMore thoroughly, security performance is more preferably.
The another object of the application is the provision of the deployment system serviced under a kind of cloud environment, device and computer-readableStorage medium.
To achieve the above object, the application provides the dispositions method serviced under a kind of cloud environment, and this method includes:
When the service-creation for receiving tenant is asked, the target of service to be created is determined according to service-creation requestStock number needed for establishing resource area and establishment, and inquire surplus yield of the tenant in target establishing resource area;Wherein, the service to be created includes PaaS services and IaaS services;
Judge whether the surplus yield is more than stock number needed for the establishment;
If the surplus yield is more than stock number needed for the establishment, institute is created in target establishing resource areaService to be created is stated, and service-creation pass signal is returned to by the first preset path;
If the surplus yield returns to remaining money no more than stock number needed for the establishment, by the second preset pathSource amount is less than the failure signal for creating required stock number.
Optionally, the target establishing resource area of service to be created is determined according to service-creation request and creates required moneySource is measured, and inquires surplus yield of the tenant in target establishing resource area, including:
Extract the service features information to be created for including in the service-creation request and tenant's identity information;
It extracts the target establishing resource area's information for including in the service features information to be created and creates required stock numberInformation;
Determine that corresponding target creates according to stock number information needed for target establishing resource area's information and the establishmentStock number needed for resource-area and establishment;
Determine that the tenant creates in the target according to tenant's identity information and target establishing resource area informationBuild the surplus yield in resource-area.
Optionally, which further includes:
When the secondary service quotient management and the surplus yield that the tenant is subordinate to are less than resource needed for the establishmentWhen amount, the first dilatation request is sent to the secondary service quotient being subordinate to;
When the secondary service quotient that the tenant is subordinate to receives and agrees to the first dilatation request, increase the tenantSurplus yield in target establishing resource area.
Optionally, which further includes:
When the unallocated stock number that the secondary service quotient that the tenant is subordinate to is possessed is less than threshold value, taken to the two levelThe level-one cloud service provider that business quotient is subordinate to sends the second dilatation request;
When the level-one cloud service provider that the secondary service quotient is subordinate to receives and agrees to the second dilatation request,Increase the unallocated stock number that the secondary service quotient possesses.
Optionally, before the service to be created being created in target establishing resource area, further include:
Judge whether target establishing resource area meets the restrictive condition for creating the service to be created;
When being unsatisfactory for the restrictive condition, the failure letter for being unsatisfactory for creating restrictive condition is returned to by third preset pathNumber.
To achieve the above object, present invention also provides the deployment system serviced under a kind of cloud environment, the deployment system packetsIt includes:
Information is determining and query unit, for when the service-creation for receiving tenant is asked, according to the service-creationRequest determines the target establishing resource area of service to be created and creates required stock number, and inquires the tenant and created in the targetBuild the surplus yield in resource-area;Wherein, the service to be created includes PaaS services and IaaS services;
Capacity judging unit, for judging whether the surplus yield is more than stock number needed for the establishment;
Service-creation and success feedback unit are used for when the surplus yield is more than stock number needed for the establishment,The service to be created is created in target establishing resource area, and service-creation is returned to by the first preset path and is successfully believedNumber;
One type failure signal feedback unit is used for when the surplus yield is no more than stock number needed for the establishment,The failure signal that surplus yield is less than stock number needed for establishment is returned by the second preset path.
Optionally, described information is determining and query unit includes:
The first information extracts subelement, for extracting the service features information to be created for including in the service-creation requestWith tenant's identity information;
Second information extraction subelement, for extracting the target establishing resource for including in the service features information to be createdStock number information needed for area's information and establishment;
Information determination subelement, for according to stock number information needed for target establishing resource area's information and the establishmentIt determines corresponding target establishing resource area and creates required stock number;
Subelement is inquired, for determining the rent according to tenant's identity information and target establishing resource area informationSurplus yield of the family in target establishing resource area.
Optionally, which further includes:
First dilatation request transmitting unit, the secondary service quotient management for being subordinate to as the tenant and the residueWhen stock number is less than stock number needed for the establishment, the first dilatation request is sent to the secondary service quotient being subordinate to;
Tenant's surplus yield adding unit, the secondary service quotient for being subordinate to as the tenant receive and agree to describedWhen first dilatation is asked, increase the surplus yield that the tenant possesses in target establishing resource area.
Optionally, which further includes:
Second dilatation request transmitting unit, the unallocated resource that the secondary service quotient for being subordinate to as the tenant is possessedWhen amount is less than threshold value, the level-one cloud service provider being subordinate to the secondary service quotient sends the second dilatation request;
Stock number adding unit that secondary service quotient is unallocated, the level-one cloud service for being subordinate to as the secondary service quotient carryWhen being received for quotient and agreeing to the second dilatation request, increase the unallocated stock number that the secondary service quotient possesses.
Optionally, which further includes:
Target establishing resource zone state judging unit, for judging whether target establishing resource area meets described in establishmentThe restrictive condition of service to be created;
Two type failure signal feedback units, for when being unsatisfactory for the restrictive condition, being returned not by third preset pathMeet the failure signal for creating restrictive condition.
To achieve the above object, present invention also provides the deployment device serviced under a kind of cloud environment, the deployment device packetsIt includes:
Memory, for storing computer program;
Processor is realized as described in the above when for executing the computer program the step of dispositions method.
To achieve the above object, described computer-readable to deposit present invention also provides a kind of computer readable storage mediumIt is stored with computer program on storage media, the portion as described in the above is realized when the computer program is executed by processorThe step of arranging method.
Obviously, the dispositions method serviced under a kind of cloud environment provided herein, from the request of the service-creation of tenantThe relevant information of service to be created is obtained, and needed for surplus yield meets and creates on the basis of stock number, while will includeTwo layers of service including Paas services and IaaS services all creates in target establishing resource area, is both provided for every tenantThe PaaS services and IaaS services exclusively enjoyed since every tenant is owned by the PaaS services of oneself, and is serviced with IaaS using sameOne physical resource, therefore Operational Visit delay between the two can be significantly reduced, while each tenant interval defection under such modeMore thoroughly, security performance is more preferably.The application additionally provides deployment system, device and the calculating serviced under a kind of cloud environment simultaneouslyMachine readable storage medium storing program for executing has above-mentioned advantageous effect, and details are not described herein.
Specific implementation mode
The core of the application is to provide the dispositions method serviced under a kind of cloud environment, system, device and computer-readable depositsStorage media, obtains the relevant information of service to be created from the request of the service-creation of tenant, and meets in surplus yield and createOn the basis of required stock number, while two layers of service including Paas services and IaaS services all being created and is created in targetIn resource-area, the PaaS services exclusively enjoyed and IaaS services are both provided for every tenant, since every tenant is owned by oneselfPaaS service, and with IaaS service use same physical resource, therefore can significantly reduce between the two Operational Visit delay,The defection of each tenant interval is more thorough under such mode simultaneously, and security performance is more preferably.
To keep the purpose, technical scheme and advantage of the embodiment of the present application clearer, below in conjunction with the embodiment of the present applicationIn attached drawing, technical solutions in the embodiments of the present application is clearly and completely described, it is clear that described embodiment isSome embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the artThe all other embodiment obtained without making creative work, shall fall in the protection scope of this application.
Below in conjunction with Fig. 2, the flow of the dispositions method serviced under a kind of cloud environment that Fig. 2 is provided by the embodiment of the present applicationFigure.
It specifically includes following steps:
S101:When the service-creation for receiving tenant is asked, the mesh of service to be created is determined according to service-creation requestIt marks establishing resource area and creates required stock number, and inquire surplus yield of the tenant in target establishing resource area;
This step be intended to determine tenant want create which service and create these service target establishing resource area andStock number needed for creating, and judged whether according to surplus yield of the tenant in target establishing resource area to meet the establishment instituteNeed stock number.Under normal conditions, these information are obtained in the service-creation request that can be sent from tenant to console, are removed certainlyIt creates and may also contain other information outside information necessary to service, can extract and use depending on what actual conditions selected,Herein and it is not specifically limited.
It should be noted that the service to be created mentioned by the application includes PaaS services and IaaS services, IaaS services(Infrastructure as a Service, infrastructure i.e. service) refers to consumer can be from perfect by InternetThe service that obtains of Basis of Computer Engineering facility, this kind of service is known as infrastructure and services, and the service based on Internet (such as depositsStorage and database) be IaaS a part.The upper other kinds of services of Internet further include PaaS services (Platform asA Service, platform service) SaaS services (Software as a Service, software service).Wherein, PaaS is providedThe complete or partial application development that user can access, SaaS then provide the application journey that completely can be used directlySequence, for example corporate resources is managed by Internet.
In simple terms, PaaS services are located at middle layer in cloud framework, and upper layer is SaaS services, and lower layer is IaaS clothesBusiness.Specifically, IaaS services are only provided to be equivalent to provide over-the-counter server, storage and network hardware etc., needs userOneself do the work such as environment outfit, the exploitation of application program and application;PaaS services are provided (to establish in IaaS service infrastructuresOn) be equivalent on the basis of providing infrastructures, additionally it is possible to development environment and the certain applications for providing application program also needWant all or part of application program of user's self-developing;SaaS services (establishing on PaaS service infrastructures) are provided then to be equivalent toApplication program complete and can be used directly directly is provided to the user, it is only necessary to which user logs in wandering device.
The purpose of the application is, is different from the prior art, and needs the defect for breaking the fixed setting of PaaS services so thatPaaS is serviced can be flexibly arranged together with mating bottom IaaS services, postponed with solving high Operational Visit, safety it is poorThe problem of.
S102:Judge whether surplus yield is more than and creates required stock number;
On the basis of S101, this step is intended to whether judge surplus yield of the tenant in target establishing resource areaMeet stock number needed for the establishment of (being more than) service to be created.Surplus yield is to need to be more than needed for the establishment under normal conditionsStock number, minimum be also required to create needed for stock number be equal, for some safety, redundancy aspect the considerations of, can also setDetermine surplus yield and specifically need the size for being more than stock number needed for the establishment, for example, it is this that setting, which only has the surplus yield,Just think to meet establishment condition etc. when 1.3 times of stock number needed for creating, can flexibly be set according to actual conditions, herein notIt is specifically limited.
S103:Service to be created is created in target establishing resource area, and service-creation is returned to by the first preset pathPass signal;
This step is established on the basis of the judging result of S102 is that the surplus yield is more than stock number needed for establishment, becauseThis satisfaction creates the stock number requirement of the service to be created in the target resource area, you can be created in target establishing resource areaThe service to be created is built, and service-creation pass signal is returned to by the first preset path after the completion of creating, is rented for informingFamily service has created success.
Further, surplus yield is obtained more than stock number needed for establishment as a result, still even across the judgement of S102It is possible that occur due to some restrictive conditions existing for target resource area, lead to not to create service to be created, therefore can be withTo whether meeting restrictive condition and judge, such as:
Judge whether target establishing resource area meets the restrictive condition for creating service to be created;When being unsatisfactory for restrictive conditionWhen, the failure signal for being unsatisfactory for creating restrictive condition is returned by third preset path.
S104:The failure signal that surplus yield is less than stock number needed for establishment is returned by the second preset path.
This step is established on the basis of the judging result of S102 is that the surplus yield is less than stock number needed for establishment, becauseThis is unsatisfactory for the stock number requirement that the service to be created is created in the target resource area, that is, needs to return by the second preset pathIt returns surplus yield and is less than the failure signal for creating required stock number, for informing tenant's service since surplus yield is lessCause to create and fail.
Further, it is waited for when since surplus yield of the tenant in target establishing resource area is less therefore is unsatisfactory for establishmentIt, can also be on the basis of the tenant be subordinate to Mr. Yu secondary service quotient, to what is be subordinate to when creating the requirement of stock number needed for serviceSecondary service quotient sends dilatation request, to increase oneself surplus yield in target establishing resource area, and then completes to wait creatingBuild the establishment purpose of service.
Further, it can also be marked off from level-one cloud service provider when certain secondary service quotient is ownedWhen stock number is less, then it is very bright from secondary service quotient to operations, purposes such as the level-one cloud service provider request dilatations being subordinate toIt is aobvious, it is intended to meet the various actual demands of tenant by way of asking from level to level.
The first preset path, the second preset path and the third preset path occurred in above steps is intended for areaThe signal for the different role that do not feed back can be three kinds of distinct paths in actual use, can also be using a roadThe mode that diameter but sends different information is realized, herein and is not specifically limited.
Based on the above-mentioned technical proposal, the dispositions method serviced under a kind of cloud environment provided by the embodiments of the present application, from tenantService-creation request in obtain the relevant information of service to be created, and the base of stock number needed in surplus yield meeting and createOn plinth, while two layers of service including Paas services and IaaS services all being created in target establishing resource area, isEvery tenant both provides the PaaS services exclusively enjoyed and IaaS services, since every tenant is owned by the PaaS services of oneself, andIt is serviced with IaaS and uses same physical resource, therefore Operational Visit delay between the two can be significantly reduced, while such modeUnder the defection of each tenant interval it is more thorough, security performance is more preferably.
Below in conjunction with Fig. 3, one kind is from clothes in the dispositions method serviced under the cloud environment that Fig. 3 is provided by the embodiment of the present applicationThe flow chart of the method for extraction relevant information in request to create of being engaged in.
The present embodiment is intended to provide a kind of method for extracting relevant information in being asked from service-creation, specifically includes following stepSuddenly:
S201:The service features information to be created and tenant's identity information for including in extraction service-creation request;
S202:It extracts the target establishing resource area's information for including in service features information to be created and creates required stock numberInformation;
S203:Corresponding target establishing resource is determined according to stock number information needed for target establishing resource area's information and establishmentStock number needed for area and establishment;
S204:Determine tenant in target establishing resource area according to tenant's identity information and target establishing resource area informationSurplus yield.
Certainly, the present embodiment is merely given as a kind of realization step as reference, can be according to hardware in actual conditions notThe different and existing particular/special requirements comprising information are flexibly changed in same, request, as long as can realize to obtain related letterThe purpose of breath.
It is a kind of when rent in the dispositions method serviced under the cloud environment that Fig. 4 is provided by the embodiment of the present application below in conjunction with Fig. 4The flow chart of solution when the surplus yield at family is not enough to create service to be created.
S301:When the secondary service quotient management and surplus yield that tenant is subordinate to, which are less than, creates required stock number, toThe secondary service quotient being subordinate to sends the first dilatation request;
S302:When the secondary service quotient that tenant is subordinate to receives and agrees to the first dilatation request, increase tenant in targetSurplus yield in establishing resource area.
The specific steps that dilatation is asked are sent to the secondary service quotient being subordinate to this gives a kind of, it is basic hereinOn, a kind of specific steps from dilatation to level-one cloud service provider that asking can also be provided in the case where meeting correlated condition:
When the unallocated stock number that the secondary service quotient that tenant is subordinate to is possessed is less than threshold value, to secondary service, quotient is subordinate toLevel-one cloud service provider send the second dilatation request;When the level-one cloud service provider that secondary service quotient is subordinate to receives simultaneouslyWhen agreeing to the second dilatation request, increase the unallocated stock number that secondary service quotient possesses.
Based on the above-mentioned technical proposal, the dispositions method serviced under a kind of cloud environment provided by the embodiments of the present application, from tenantService-creation request in obtain the relevant information of service to be created, and the base of stock number needed in surplus yield meeting and createOn plinth, while two layers of service including Paas services and IaaS services all being created in target establishing resource area, isEvery tenant both provides the PaaS services exclusively enjoyed and IaaS services, since every tenant is owned by the PaaS services of oneself, andIt is serviced with IaaS and uses same physical resource, therefore Operational Visit delay between the two can be significantly reduced, while such modeUnder the defection of each tenant interval it is more thorough, security performance is more preferably.
Because situation is complicated, it can not enumerate and be illustrated, those skilled in the art should be able to recognize according to the applicationThe basic skills principle combination actual conditions of offer may exist many examples, in the case where not paying enough creative works,It should within the scope of protection of this application.
Fig. 5, the knot of the deployment system serviced under a kind of cloud environment that Fig. 5 is provided by the embodiment of the present application are referred to belowStructure block diagram.
The deployment system may include:
Information determination and query unit 100, for when the service-creation for receiving tenant is asked, being asked according to service-creationIt asks the target establishing resource area for determining service to be created and creates required stock number, and inquire tenant in target establishing resource areaSurplus yield;Wherein, service to be created includes PaaS services and IaaS services;
Capacity judging unit 200 creates required stock number for judging whether surplus yield is more than;
Service-creation and success feedback unit 300 are used for when surplus yield is more than and creates required stock number, in targetService to be created is created in establishing resource area, and service-creation pass signal is returned to by the first preset path;
One type failure signal feedback unit 400, for when surplus yield is no more than stock number needed for creating, by theTwo preset paths return to surplus yield and are less than the failure signal for creating required stock number.
Wherein, information is determining and query unit 100 includes:
The first information extracts subelement, for extracting the service features information to be created for including in service-creation request and rentFamily identity information;
Second information extraction subelement, for extracting the target establishing resource area for including in service features information to be created letterStock number information needed for breath and establishment;
Information determination subelement, for corresponding with required stock number information determination is created according to target establishing resource area's informationTarget establishing resource area and create needed for stock number;
Subelement is inquired, for determining that tenant creates in target according to tenant's identity information and target establishing resource area informationSurplus yield in resource-area.
Further, which can also include:
First dilatation request transmitting unit, the secondary service quotient management and surplus yield for being subordinate to as tenant are smallNeeded for establishment when stock number, the first dilatation request is sent to the secondary service quotient being subordinate to;
Tenant's surplus yield adding unit, the secondary service quotient for being subordinate to as tenant receive and agree to the first dilatationWhen request, increase the surplus yield that tenant possesses in target establishing resource area;
Second dilatation request transmitting unit, the unallocated stock number that the secondary service quotient for being subordinate to as tenant is possessed are smallWhen threshold value, the level-one cloud service provider being subordinate to secondary service quotient sends the second dilatation request;
Stock number adding unit that secondary service quotient is unallocated, the level-one cloud service provider for being subordinate to as secondary service quotientWhen receiving and agreeing to the second dilatation request, increase the unallocated stock number that secondary service quotient possesses.
Further, which can also include:
Target establishing resource zone state judging unit creates clothes to be created for judging whether target establishing resource area meetsThe restrictive condition of business;
Two type failure signal feedback units, for when being unsatisfactory for restrictive condition, being unsatisfactory for by the return of third preset pathCreate the failure signal of restrictive condition.
Here, providing a kind of specific operation step for how creating PaaS services and IaaS services in target establishing resource areaSuddenly, reference can be made to sequence diagram as shown in Figure 6 and Figure 7:
1, when IaaS service arrangements are to the areas Zhuan Xiang or shared region (as shown in Figure 6):
Tenant's console by RESTful API (meet the API of REST architecture designs, and REST be all Web applications allThe architecture design guideline that should be abided by, API are then Application Programming Interface, application programProgramming interface) to Verification System acquisition authentication information, corresponding authentication information is returned to, and API is called to create service.Control systemAfter API receives service configuration request, control system database is notified, and initialize the data-base recording for creating example;Control systemSystem database receive request after, write service configuration information to database, including index ID (id), tenant ID (tenant_id),Resource-area (region) (areas Zhuan Xiang, shared region), example ID (instance_id), operating status (status);Control system tuneDegree process intercepts message queue, obtains control system API request, and the money for meeting example and creating needs is calculated by dispatching algorithmSource;It meets the requirements, updates the data the corresponding physical host information of example in library;Control system is dispatched to be sent to instance management systemThe corresponding message for creating example request;After instance management system receives message, obtains Service Instance Mirror Info (URL), obtainsIt obtains example network information, obtain storage information, call the virtualization of configuration to drive to create example, Service Instance returns to startup and disappearsBreath;After the completion of Service Instance creates, service state is updated.
2, when PaaS service arrangements are to the areas Zhuan Xiang or shared region (as shown in Figure 6):
Tenant's control platform obtains authentication information by RESTful API to Verification System, returns to corresponding authentication information;After operation control system receives service configuration request, API is called to create service;Operation control system write service in the databaseConfiguration information, including index ID (id), tenant ID (tenant_id), resource-area (region) (areas Zhuan Xiang, shared region), exampleID (instance_id), operating status (status), configuration level (level);Control system API receives service configuration requestAfterwards, it notifies control system database, and initializes the data-base recording for creating example;Control system scheduling process intercepts message teamRow obtain control system API request, and the resource for meeting example and creating needs is calculated by dispatching algorithm;It meets the requirements, updates numberAccording to the corresponding physical host information of example in library;Control system dispatches to instance management system and sends corresponding establishment example requestMessage;After instance management system receives message, Service Instance Mirror Info (URL) is obtained, example network information is obtained, obtainsInformation is stored, calls the virtualization of configuration to drive to create example, Service Instance returns to initiation message;Service agent is to serviceControl system, which is sent, obtains information on services (RPC), and returns to information on services (RPC) and preserve afterwards;Service agent is according to watch-listInformation is monitored to Service Instance timing;Service agent is allocated to Service Instance according to the information on services lower section of acquisition, and at returnManage result;Service agent is that configuration is completed to operation control system more new demand servicing, and operation control system is returned to console and configuredIt completes.
The RPC occurred in figure refers to Remote Procedure Call, remote method call, be it is a kind of be used for realizing acrossThe communication mechanism of process (or across machine).It is then communicated by way of RPC requests between project internal services.ClientRPC requests are initiated, the program of received server-side RPC request calls local executes, and implementing result is returned to client.
It is operated by service-creation as above, a kind of deployment that the embodiment of the present application as shown in Figure 8 is provided can be obtainedPaaS is serviced and the schematic diagram of IaaS services.
Based on above-described embodiment, present invention also provides the deployment devices serviced under a kind of cloud environment, which canTo include memory and processor, wherein have computer program in the memory, which calls the meter in the memoryWhen calculation machine program, the step of above-described embodiment is provided may be implemented.Certainly, which can also include various necessaryNetwork interface, power supply and other parts etc..
Present invention also provides a kind of computer readable storage mediums, have computer program thereon, the computer programThe step of above-described embodiment is provided may be implemented when being performed terminal or processor execution.The storage medium may include:UDisk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random AccessMemory, RAM), the various media that can store program code such as magnetic disc or CD.
Each embodiment is described by the way of progressive in specification, the highlights of each of the examples are with other realitiesApply the difference of example, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodimentSpeech, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is referring to method part illustration.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosureAnd algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware andThe interchangeability of software generally describes each exemplary composition and step according to function in the above description.TheseFunction is implemented in hardware or software actually, depends on the specific application and design constraint of technical solution.ProfessionTechnical staff can use different methods to achieve the described function each specific application, but this realization is not answeredThink to exceed scope of the present application.
Specific examples are used herein to illustrate the principle and implementation manner of the present application, and above example is saidIt is bright to be merely used to help understand the present processes and its core concept.For those skilled in the art,Under the premise of not departing from the application principle, can also to the application, some improvement and modification can also be carried out, these improvement and modificationIt falls into the application scope of the claims.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to byOne entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operationBetween there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaningCovering non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only thatA little elements, but also include the other elements being not explicitly listed, or further include for this process, method, article orThe intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arrangedExcept there is also other identical elements in the process, method, article or equipment including element.