Summary of the invention
It is an object of the present invention in view of the deficiency of the prior art, provide a kind of resource allocation method, device,Equipment and storage medium, O&M cost higher problem lower to solve government affairs cloud resource utilization rate existing in the prior art.
To achieve the above object, the embodiment of the present application the technical solution adopted is as follows:
In a first aspect, the embodiment of the present application provides a kind of resource allocation method, this method comprises:
It receives the resource that resource provider is sent and recalls instruction;The resource recall instruction be the resource provider according toResource transmitted by the resource allocation application that resource user initiates recalls instruction;It includes: target group that the resource, which recalls instruction,Knit the information of chassis resources;
According to the information of the destination organization chassis resources, destination organization chassis resources described in universal resources administration pool are updatedResource status is use state, and the destination organization chassis resources are recalled from the universal resources administration pool.
Optionally, before the resource for receiving resource provider transmission recalls instruction, the method also includes:
Obtain the information of organization's resource of at least one region;
Organization's resource information of at least one region is added to the universal resources administration pool, and generates resource tuneWith catalogue, the resource allocation catalogue record has the information of organization's resource of at least one region.
Optionally, the method also includes:
The resource allocation catalogue is shown on resource allocation platform;The resource allocation application is resource useRoot is according to resource use demand, from the resource allocation catalogue shown on the resource allocation platform, selection it is describedDestination organization chassis resources, the resource allocation application initiated.
Optionally, the method also includes:
Resource reclaim order transmitted by the resource provider is received, the resource reclaim order provides for the resourceResource reclaim order transmitted by the resource release commands that root is sent according to the resource user;The resource reclaim order packetIt includes: the information of the destination organization chassis resources;
The state for updating destination organization chassis resources described in the universal resources administration pool is blank state.
Optionally, the resource release commands are that the resource user terminates in the destination organization chassis resources useWhen, from the resource allocation catalogue shown on the resource allocation platform, the destination organization chassis resources of selection,The resource release commands initiated.
Optionally, the information of organization's resource of at least one region described in the acquisition, comprising:
The resource incoming end for receiving each region passes through the group for each region that organization's network link is transmittedKnit the information of chassis resources.
Second aspect, the embodiment of the present application also provides a kind of resource allocation devices, comprising: the first receiving module recallsModule;
First receiving module, the resource for receiving resource provider transmission recall instruction;The resource recalls fingerEnable is that resource provider resource according to transmitted by the resource allocation application that resource user initiates recalls instruction;The moneySource recalls the information that instruction includes: destination organization chassis resources;
It is described to recall module, for the information according to the destination organization chassis resources, update described in universal resources administration poolThe resource status of destination organization chassis resources is use state, and by the destination organization chassis resources from the universal resources administration poolIn recall.
Optionally, described device further include: obtain module, generation module;
The acquisition module, the information of organization's resource for obtaining at least one region;
The generation module, for organization's resource information of at least one region to be added to the resource pipePond is managed, and generates resource allocation catalogue, the resource allocation catalogue record has organization's resource of at least one regionInformation.
Optionally, device further include: display module;
The display module, for showing the resource allocation catalogue in resource allocation platform;The resource allocationApplication is the resource user according to resource use demand, the resource allocation shown from the resource allocation platformIn catalogue, the destination organization chassis resources of selection, the resource allocation application initiated.
Optionally, described device further include: the second receiving module, update module;
Second receiving module, for receiving resource reclaim order transmitted by the resource provider, the resourceRecycling order is resource provider resource reclaim according to transmitted by the resource release commands that the resource user sendsOrder;The resource reclaim order includes: the information of the destination organization chassis resources;
The update module, the state for updating destination organization chassis resources described in the universal resources administration pool are vacantState.
Optionally, the acquisition module, the resource incoming end specifically for receiving each region pass through organization's networkThe information of the organization's resource for each region that link is transmitted.
The third aspect, the embodiment of the present application also provides a kind of resource allocation equipment, comprising: processor, storage medium andBus, the storage medium are stored with the executable program instruction of the processor, when the operation of resource allocation equipment, the placeIt manages by bus communication between device and the storage medium, the processor executes described program instruction, executes such as when executingThe step of resource allocation method described in above-mentioned first aspect.
Fourth aspect is stored with computer on the storage medium the embodiment of the present application also provides a kind of storage mediumProgram, the step of resource allocation method as described in above-mentioned first aspect is executed when the computer program is run by processor.
The beneficial effect of the application is: resource allocation method provided by the embodiments of the present application, resource provider is according to receptionResource user send resource allocation application, to resource allocation Platform Server send resource recall instruction so that provideThe state for the resource information that source deployment platform server can be provided according to the different resource provider stored in universal resources administration pool,Destination organization chassis resources are recalled from universal resources administration pool, so that resource user is able to use destination organization mechanism moneySource.Wherein, it is managed collectively and is deployed by resource of the resource allocation Platform Server to resource provider, can to provideSource is fully used, and is improved resource utilization, and is avoided the repetition of resource from purchasing, is reduced O&M cost.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present inventionIn attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment isA part of the embodiment of the present invention, instead of all the embodiments.
Fig. 1 is a kind of flow diagram of resource allocation method provided by the embodiments of the present application;The executing subject of this methodIt can be resource allocation equipment, which can be server, which can be the application server of resource allocation platform.As shown in Figure 1, this method can include:
S101, the resource for receiving resource provider transmission recall instruction;It is resource provider according to money that resource, which recalls instruction,Resource transmitted by the resource allocation application that source user initiates recalls instruction;It includes: destination organization mechanism that resource, which recalls instruction,The information of resource.
It should be noted that above-mentioned organization's resource may include following at least one resource: computer room, calculating, storage,Network, safety, using the relevant resource of the organizations such as support, information infrastructure.Realize the shared of organization's resource andIt rationally utilizes, organization's cloud platform intensive construction can be further realized.
In addition, a side of above-mentioned resource provider namely offer available resources, resource provider can be current not by itselfThe resource (slack resources) used is shared, and resource user namely the side for having resource use demand, resource providerThe resource of offer can be used by resource user, so that the slack resources of resource provider can effectively be hadThe resource user of resource use demand uses, and also can resource is utilized effectively, avoid the wasting of resources.
Optionally, when resource user needs using resource, resource allocation application can be issued, resource allocation application canTo indicate that resource user needs resource type and quantity to be used etc., after resource provider receives the resource allocation application, toResource allocation Platform Server sends resource and recalls instruction, recalls so that resource allocation platform carries out resource, namely pass through moneyThe slack resources of resource provider are distributed to corresponding resource user by source deployment platform server.Wherein, it needs to illustrateIt is that can be managed collectively to the resource from different resource provider by resource allocation Platform Server, and closedReason distribution improves resource utilization so that the distribution use of resource is more reasonable.
S102, according to the information of destination organization chassis resources, update the money of destination organization chassis resources in universal resources administration poolSource state is use state, and destination organization chassis resources are recalled from universal resources administration pool.
Optionally, after the resource that resource allocation Platform Server receives resource provider transmission recalls instruction, Ke YicongIt is stored in the background data base (universal resources administration pool) of resource allocation platform and recalls corresponding destination organization chassis resources, so thatResource user is able to use the destination organization chassis resources.
It should be noted that being stored with the resource of different resource provider offer and making for each resource in universal resources administration poolIt can be recalled from universal resources administration pool in order to resource allocation Platform Server with state according to the use state of each resourceThe resource being not used by, so that recalling for resource is more accurate.
It optionally, can basis after the resource that resource allocation Platform Server receives resource provider transmission recalls instructionThe resource allocation application of resource user carries out resource allocation application audit, wherein resource allocation application can pass through workflowEngine implementation, workflow engine are a kind of workflows of open source, and principle is that business activity is first designed to procedural model, thenProcedural model product process is defined, and configuration work person who lives in exile person, meeting product process example, flow instance after flow definition startingIt is made of a series of task instances, task automatic flow.When resource use direction resource provider sends resource allocation application, moneySource provider transmission resource recalls instruction and gives resource allocation Platform Server, and resource allocation Platform Server is according to resource userResource allocation application, generate resource allocation application process example, resource allocation application process example is real by resource bid taskExample, resource audit task instances, resource recall task instances, and resource calls in task instances composition.Process is according to the work of configurationPerson who lives in exile person circulates automatically.Wherein, after resource user issues resource allocation application, resource provider is to resource allocation platformServer sends resource and recalls instruction, and resource bid task instances, which circulate, audits task instances, resource allocation platform clothes to resourceBusiness device audits resource allocation application, and after the approval, resource audit task instances, which circulate, recalls task instances to resource,Resource allocation Platform Server recalls instruction according to the resource received, changes the state of resource in universal resources administration pool, and carries outResource recalls, and resource, which recalls task instances and circulates, calls in task instances to resource, and resource allocation Platform Server will be from resource pipeThe resource that the resource provider recalled in reason pond provides is called in resource user, so that resource user can carry out resourceUse.Resource calls in task instances and is finished, namely completes resource allocation application process example.
Such as: resource user A can first propose that resource allocation application is sent to resource to resource provider B application resourceProvider B, the resource allocation application may include: the type of destination organization chassis resources, quantity, and resource provider B is receivedAfter resource allocation application, resource is issued to resource allocation Platform Server and recalls instruction, resource allocation Platform Server is according to moneyType, the quantity for the destination organization chassis resources for including in the allotment application of source, generate resource allocation flow instance, the resource allocationFlow instance can be made of multiple tasks, and each task is provided with corresponding audit node (auditor), so thatThe resource allocation application can be according to audit node automatic flow step by step, and to the last an audit node audit is by beingOnly, if any one audit node audit does not pass through, which is to audit not pass through, resource allocation platform clothesBusiness can not recall organization corresponding in resource provider B resource to resource user A according to the resource allocation application.
When some resource is in unused state, can be transferred out, it is corresponding to need providing it after being transferred outState in source control pond is changed to use state.When the resource is applied by other resources user in use, resource tune againWith Platform Server application can be issued not by instruction, does not allow the money according to state of the resource in universal resources administration poolSource is transferred out, to guarantee the validity of resource transfer.
To sum up, resource allocation method provided by the embodiments of the present application, resource user sends out resource provider based on the receivedThe resource allocation application sent sends resource to resource allocation Platform Server and recalls instruction, so that resource allocation platform serviceThe state for the resource information that device can be provided according to the different resource provider stored in universal resources administration pool, from universal resources administration poolDestination organization chassis resources are recalled, so that resource user is able to use the destination organization chassis resources.Wherein, pass through moneySource deployment platform server is managed collectively and is deployed to the resource of resource provider, and resource can be made to obtain abundant benefitWith improving resource utilization, avoid the repetition of resource from purchasing, reduce O&M cost.
Fig. 2 is the flow diagram of another resource allocation method provided by the embodiments of the present application, further, above-mentioned stepIn rapid S101, before the resource that reception resource provider is sent recalls instruction, method may also include that
S201, obtain at least one region organization's resource information.
S202, organization's resource information of at least one region is added to universal resources administration pool, and generates resource allocationCatalogue, resource allocation catalogue record have the information of organization's resource of at least one region.
Optionally, at least one region can be different levels region, such as: province, city, county etc., the province, city, county etc. are gathered aroundThe region of organized chassis resources can be used as resource provider and provide resource.At least one region is obtained in the present embodimentThe information of organization's resource in order to organization's resource from different geographical to be managed collectively, namely improves pipeManage efficiency.
In some embodiments, organization's resource of at least one region of acquisition for the region it is existing it is organizedChassis resources, wherein may include used organization's resource and not used organization's resource.It is alternatively possible to willOrganization's resource information of at least one region obtained is added to universal resources administration pool, and generates resource allocation catalogue.Wherein,Organization's resource information of at least one region of resource allocation catalogue record may include: the class of each organization's resourceThe use state of type, quantity and each organization's resource.
It may include multiple organization's resources for each type of organization's resource, in universal resources administration pool, it is falseIf A organization resource includes 10, resource user application has used 7, can will be in universal resources administration pool then correspondingOrganization's resource quantity of the type is changed to 3 by 10, meanwhile, it, can be corresponding for 7 organization's resources being transferred outThe use state by 7 organization's resources from be not used be changed to using.
In addition, above-mentioned resource allocation catalogue can show the class of organization's resource of each region in the form of a listType, quantity and use state information, alternatively, can also be showed in table form, consequently facilitating resource user according toThe organization's resource information showed is more convenient and accurate selects resource information to be applied.
Further, resource allocation method provided by the present application may also include that
Resource allocation catalogue is shown on resource allocation platform;Resource allocation application is that resource user makes according to resourceWith demand, from the resource allocation catalogue shown on resource allocation platform, the destination organization chassis resources of selection are initiatedResource allocation application.
In some embodiments, the resource allocation catalogue generated in above-mentioned steps S202 can be shown in the form of a listOn resource allocation platform, optionally, resource allocation platform can be mounted in application software or webpage on mobile phone terminalVersion application platform, resource user can log in application software by mobile phone terminal or log in the application in webpage, fromAnd selection is in the mesh of unused state in the resource allocation catalogue shown on resource allocation platform interface (in application interface)Organization's resource is marked, and initiates resource allocation application according to the destination organization chassis resources of selection.
Each organization's resource information is shown above by resource allocation catalogue, can in order to resource user intoRow resource information is checked, to more accurately initiate application to the destination organization chassis resources of needs, is avoided because of targetOrganization's resource has been used and application is caused to fail.
Fig. 3 is the flow diagram of another resource allocation method provided by the embodiments of the present application, further, such as Fig. 3Shown, this method may also include that
S301, receive resource provider transmitted by resource reclaim order, resource reclaim order be resource provider according toResource reclaim order transmitted by the resource release commands that resource user sends;Resource reclaim order includes: destination organization machineThe information of structure resource.
In some embodiments, when resource user does not use the destination organization chassis resources, in order to avoid resourceUnreasonable occupancy, resource user can send resource release commands, to be discharged to the destination organization chassis resources, fromAnd other can be made to need to use the resource using the resource user application of the destination organization chassis resources.
Optionally, resource provider receives the resource release commands that resource user sends, and is discharged and ordered according to the resourceThe information of included destination organization chassis resources is enabled, such as: type, quantity of resource to be released etc., to resource allocation platformServer sends resource reclaim order, so that the destination organization chassis resources are recycled again, other resources user can be withTo its carry out using.
S302, the state for updating destination organization chassis resources in universal resources administration pool are blank state.
It optionally, can be right after resource allocation Platform Server receives the resource reclaim order of resource provider transmissionDestination organization chassis resources are recycled, and the state of the destination organization chassis resources stored in universal resources administration pool is carried out moreNewly, namely from use state it is updated to unused state (blank state).
In addition, used when the quantity of the destination organization chassis resources stored in universal resources administration pool and resource user applicationThe quantity of destination organization chassis resources is identical, such as: when being 5, when the destination organization chassis resources are transferred out, accordingly, the quantity of the destination organization chassis resources is changed to 0, and the use of 5 destination organization chassis resources in universal resources administration poolState by be not used be changed to using.Likewise, when carrying out resource reclaim, if the resource that resource user issues discharges lifeOrder is discharged to 5 destination organization chassis resources, then correspondingly, in universal resources administration pool, 5 destination organization machinesThe use state of structure resource is changed to be not used by using.And when the destination organization chassis resources stored in universal resources administration poolQuantity is not identical as the quantity for the destination organization chassis resources that resource user application uses, such as: it is stored in universal resources administration poolThe quantity of destination organization chassis resources be 5, and the quantity of destination organization chassis resources that resource user application uses is 4It is a, then, when the destination organization chassis resources are transferred out, correspondingly, the destination organization chassis resources in universal resources administration poolQuantity is changed to 1, wherein the use state for the 4 destination organization chassis resources applied by resource user by be not used moreIt is changed to using not being changed to be not used by using by the use state for 1 destination organization chassis resources that resource user applies.
It should be noted that the quantity for the destination organization chassis resources for including in universal resources administration pool, it can be in order to resource tuneAdjustable resource information is obtained with Platform Server, such as: type-A organization total number resource amount is 10, and resource managementThe quantity stored in pond is 5, namely has 5 A class loading chassis resources that can be transferred out, in this way, can make recalling for resourceIt is more accurate.Likewise, it is consistent with the above for the display result of destination organization chassis resources in resource allocation catalogue, thus justIn the clear current workable destination organization chassis resources quantity of resource user, the resource allocation application for initiating mistake is avoided,Application is caused to fail.
Further, resource release commands are resource user at the end of destination organization chassis resources use, from resourceIn the resource allocation catalogue shown on deployment platform, the destination organization chassis resources of selection, the resource release commands initiated.
Optionally, for the resource discharged, resource user can select in resource allocation catalogue,Namely the use state according to the organization's resource shown in resource allocation catalogue, by use end, use state be makeDestination organization chassis resources are chosen, and resource allocation release command is initiated.
After resource allocation Platform Server recycles the destination organization chassis resources that resource user chooses, accordingly, the information that destination organization chassis resources are corresponded in resource allocation catalogue will do it update, to guarantee the accuracy of resource information,Improve resource bid efficiency.
Further, in above-mentioned steps S201, the information of organization's resource of at least one region is obtained, it may include:
The resource incoming end for receiving each region passes through the group loom for each region that organization's network link is transmittedThe information of structure resource.
Optionally, organization's resource information of each region can access unified resource allocation by resource receiverPlatform, wherein resource receiver may include resource incoming end and resource receiving end.
Optionally, above-mentioned each region can configure resource incoming end, correspondingly, resource allocation platform can configure moneySource receiving end, the resource incoming end of each region is by organization's network link, by respective existing organization's resourceInformation is sent to resource allocation platform, wherein organization's resource information of each region can be sent in the form of resource packetResource allocation platform decompresses resource packet after resource packet is detected in the resource receiving end of resource allocation platform, obtains various regionsOrganization's resource information in domain, and organization's resource information of each region is stored into universal resources administration pool and carries out unificationManagement.
In conclusion resource allocation method provided by the embodiments of the present application, resource uses resource provider based on the receivedThe resource allocation application just sent sends resource to resource allocation Platform Server and recalls instruction, so that resource allocation platformThe state for the resource information that server can be provided according to the different resource provider stored in universal resources administration pool, from resource managementDestination organization chassis resources are recalled in pond, so that resource user is able to use the destination organization chassis resources.Wherein, lead toIt crosses resource allocation Platform Server and the resource of resource provider is managed collectively and is deployed, resource can be made to obtain sufficientlyIt utilizes, improves resource utilization, avoid the repetition of resource from purchasing, reduce O&M cost.Furthermore it is also possible to according to resource pipeThe resource information in pond is managed, resource allocation catalogue is generated, in order to which resource user carries out checking for resource status, improves resourceApply for efficiency.And after resource user is using resource, resource release commands can also be sent to resource provider, resourceProvider sends resource reclaim order according to the resource release commands and gives resource allocation Platform Server, thus to corresponding resourceIt is recycled, to avoid the occupancy and waste of resource, guarantees the effective use of resource.
Fig. 4 is a kind of structural schematic diagram of resource allocation device provided by the embodiments of the present application, as shown in figure 4, the deviceInclude: the first receiving module 401, recall module 402;
First receiving module 401, the resource for receiving resource provider transmission recall instruction;Resource recalls instruction as moneySource provider resource according to transmitted by the resource allocation application that resource user initiates recalls instruction;Resource recalls instruction packetIt includes: the information of destination organization chassis resources;
Module 402 is recalled, for the information according to destination organization chassis resources, updates destination organization machine in universal resources administration poolThe resource status of structure resource is use state, and destination organization chassis resources are recalled from universal resources administration pool.
Further, as shown in figure 5, the device further include: obtain module 403, generation module 404;
Obtain module 403, the information of organization's resource for obtaining at least one region;
Generation module 404, for organization's resource information of at least one region to be added to universal resources administration pool, and it is rawAt resource allocation catalogue, resource allocation catalogue record has the information of organization's resource of at least one region.
Further, as shown in fig. 6, the device further include: display module 405;
Display module 405, for showing resource allocation catalogue in resource allocation platform;Resource allocation application is resourceUser is according to resource use demand, from the resource allocation catalogue shown on resource allocation platform, the destination organization of selectionChassis resources, the resource allocation application initiated.
Further, as shown in fig. 7, the device further include: the second receiving module 406, update module 407;
Second receiving module 406, for receiving resource reclaim order transmitted by resource provider, resource reclaim order isResource provider resource reclaim order according to transmitted by the resource release commands that resource user sends;Resource reclaim order packetIt includes: the information of destination organization chassis resources;
Update module 407, the state for updating destination organization chassis resources in universal resources administration pool are blank state.
Further, module 403 is obtained, the resource incoming end specifically for receiving each region passes through organization's networkThe information of the organization's resource for each region that link is transmitted.
The method that above-mentioned apparatus is used to execute previous embodiment offer, it is similar that the realization principle and technical effect are similar, herein notIt repeats again.
The above module can be arranged to implement one or more integrated circuits of above method, such as: oneOr multiple specific integrated circuits (Application Specific Integrated Circuit, abbreviation ASIC), or, oneOr multi-microprocessor (digital singnal processor, abbreviation DSP), or, one or more field programmable gateArray (Field Programmable Gate Array, abbreviation FPGA) etc..For another example, when some above module passes through processing elementsWhen the form of part scheduler program code is realized, which can be general processor, such as central processing unit (CentralProcessing Unit, abbreviation CPU) or it is other can be with the processor of caller code.For another example, these modules can integrateTogether, it is realized in the form of system on chip (system-on-a-chip, abbreviation SOC).
Fig. 8 is the structural schematic diagram of another resource allocation device provided by the embodiments of the present application, which can integrateIn server, perhaps the chip of the server internal server can be the server for having resource allocation function or other metersCalculate machine equipment.
The device includes: processor 701, memory 702.
Memory 702 is for storing program, the program that processor 701 calls memory 702 to store, to execute the above methodEmbodiment.Specific implementation is similar with technical effect, and which is not described herein again.
Optionally, the present invention also provides a kind of program product, such as computer readable storage medium, including program, the journeysSequence is when being executed by processor for executing above method embodiment.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through itIts mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, onlyOnly a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tiedAnother system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussedMutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unitLetter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unitThe component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multipleIn network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unitIt is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated listMember both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and computer-readable deposit at oneIn storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computerEquipment (can be personal computer, server or the network equipment etc.) or processor (English: processor) execute this hairThe part steps of bright each embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory(English: Read-Only Memory, abbreviation: ROM), random access memory (English: Random Access Memory, letterClaim: RAM), the various media that can store program code such as magnetic or disk.