CN103516763B - Method for processing resource and system and device - Google Patents

Method for processing resource and system and device Download PDF

Info

Publication number
CN103516763B
CN103516763B CN201210223045.6A CN201210223045A CN103516763B CN 103516763 B CN103516763 B CN 103516763B CN 201210223045 A CN201210223045 A CN 201210223045A CN 103516763 B CN103516763 B CN 103516763B
Authority
CN
China
Prior art keywords
resource
group
resources
address
physical machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210223045.6A
Other languages
Chinese (zh)
Other versions
CN103516763A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210223045.6A priority Critical patent/CN103516763B/en
Publication of CN103516763A publication Critical patent/CN103516763A/en
Application granted granted Critical
Publication of CN103516763B publication Critical patent/CN103516763B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of method for processing resource and system and device, and the method includes receiving the resource bid request carrying parameter information that user terminal sends, and parameter information includes user account, the specification information of application resource and the demand information of application resource;The first IP address list mated with the specification information applying for resource is obtained in the group of resources that the user account got is corresponding;When the current performance of physical machine corresponding to all IP addresses in current overall performance corresponding to the group of resources that user account is corresponding and/or the first IP address list meets third party's resource acquisition strategy, inquiry is shared the Resources list and is obtained the shared group of resources mated with specification information and demand information;When selecting an IP address as first resource call address from the IP address meeting shared resource policy;And call the first resource acquisition interface in the physical machine that first resource call address is corresponding, obtain first resource and be also sent to user terminal.

Description

Method for processing resource and system and device
Technical field
The present invention relates to computer technology, particularly relate to a kind of method for processing resource and system and device.
Background technology
At present, physical machine all unified plans that big business' difference department uses are at the interconnection netting index of a cloud According to center (Internet Data Center;It is called for short: in IDC), each department is the most only responsible for oneself department Machine purchase budget.
But, the resource of department separate between each enterprise or each enterprise is to share , thus bring inconvenience to the use of user.
Summary of the invention
The present invention provides a kind of for method for processing resource and system and device, in order to solve prior art Between middle enterprise or problem that in enterprise, the resource of the department that each is separate cannot be shared.
The first aspect of the invention is to provide a kind of method for processing resource, including:
Receive the resource bid request carrying parameter information that user terminal sends, described parameter information bag Include user account, the specification information of application resource and the demand information of application resource;
In the group of resources that the described user account got is corresponding, obtain and mate with described specification information The first IP address list;
Query resource group and the mapping relations of third party's resource acquisition strategy, obtain described user account pair Third party's resource acquisition strategy that the group of resources answered is corresponding;
As current overall performance corresponding to the group of resources that described user account is corresponding and/or a described IP The current performance of the physical machine that all IP addresses in address list are corresponding meets described third party's resource acquisition During strategy, the Resources list is shared in inquiry, obtains and being total to that described specification information and described demand information mate Enjoy group of resources;
Query resource group and the mapping relations of shared resource policy, obtain and described shared group of resources pair The shared resource policy answered;
When the current performance of physical machine corresponding to IP address some or all of in described shared group of resources is full During the described shared resource policy of foot, from meeting, the IP address sharing resource policy selects an IP address As first resource call address, and call in the physical machine that described first resource call address is corresponding One resource acquisition interface, to obtain first resource by described first resource interface;
Described first resource is sent to described user terminal.
Another aspect of the present invention is to provide a kind of resource processing means, including:
Transceiver module, for receiving the resource bid request carrying parameter information that user terminal sends, Described parameter information includes user account, the specification information of application resource and the demand information of application resource;
Group of resources management module, is used in the group of resources that the described user account got is corresponding, Obtain the first IP address list mated with described specification information;
Third party's resource acquisition policy management module, for query resource group and third party's resource acquisition plan Mapping relations slightly, obtain third party's resource acquisition plan that group of resources corresponding to described user account is corresponding Slightly;
Group of resources capabilities processing module, for judging that the group of resources that described user account is corresponding is corresponding Working as of the physical machine that all IP addresses in current overall performance and/or described first IP address list are corresponding Whether front performance meets described third party's resource acquisition strategy;
Share group of resources management module, for processing when group of resources performance corresponding to described user account Module is judged in current overall performance corresponding to described group of resources and/or described first IP address list The current performance of physical machine corresponding to all IP addresses when meeting described third party's resource acquisition strategy, look into Ask and share the Resources list, obtain the specification information with described application resource and the demand information of application resource The shared group of resources joined;
Share resource policy management module, for query resource group and the mapping relations of shared resource policy, Obtain the shared resource policy corresponding with described shared group of resources;
Described group of resources capabilities processing module is additionally operable to judge in described shared group of resources part or complete Whether the current performance of the physical machine that IP address, portion is corresponding meets described shared resource policy;
Source obtaining module, for judging described shared resource when described group of resources capabilities processing module In group, the current performance of the physical machine that some or all of IP address is corresponding meets described shared resource policy Time, the IP address sharing resource policy select an IP address call ground as first resource from meeting Location, and call the first resource acquisition interface in the physical machine that described first resource call address is corresponding, then First resource is obtained by described first resource interface;
Described transceiver module is additionally operable to send described first resource to described user terminal.
An additional aspect of the present invention is to provide a kind of cloud controller, including: memorizer, refer to for storage Order;
Processor, couples with described memorizer, and described processor is configured to execution and is stored in described storage Instruction in device, and described processor is configurable for performing method for processing resource as described above.
The still another aspect of the present invention is to provide a kind of resource processing system, including: physical machine and above-mentioned institute The cloud controller stated.
The solution have the advantages that: when receiving the resource carrying parameter information that user terminal sends During application request, in the group of resources that user account in this parameter information got is corresponding, obtain With the first IP address list applying in this parameter information that the specification information of resource mates, it is achieved thereby that work as All IP addresses pair in current overall performance that this group of resources is corresponding and/or this first IP address list When the current performance of the physical machine answered meets third party's resource acquisition strategy corresponding to this group of resources, i.e. exist When the group of resources that user account is corresponding cannot obtain resource, shared the Resources list can be inquired about further, Obtain and being total to that the application resource requirement information in the specification information of this application resource and this parameter information is mated Enjoy group of resources, and from meeting the IP address of shared resource policy corresponding to this shared group of resources as One resource transfer address, with according to this first resource call address, obtains resource and returns to user terminal, I.e. can share the resource in other group of resources, i.e. achieve sharing of resource.
Accompanying drawing explanation
Fig. 1 is the flow chart of first embodiment of method for processing resource of the present invention;
Fig. 2 is the flow chart of the 5th embodiment of method for processing resource of the present invention;
Fig. 3 is the structural representation of first embodiment of resource processing means of the present invention;
The structural representation of first embodiment of the resource processing system that Fig. 4 provides for the present invention.
Detailed description of the invention
Fig. 1 is the flow chart of first embodiment of method for processing resource of the present invention, as it is shown in figure 1, this The method of embodiment includes:
What step 101, reception user terminal sent carries the resource bid request of parameter information, this ginseng Number information includes user account, the specification information of application resource and the demand information of application resource.
In the present embodiment, the specification information of application resource may include that the void of machine capability and/or support Plan machine type;The demand information of application resource may include that price request and/or required distance etc..
Step 102, in the group of resources that this user account got is corresponding, obtain with this application provide First IP address list of the specification information coupling in source.
Step 103, query resource group and the mapping relations of third party's resource acquisition strategy, obtain this use Third party's resource acquisition strategy that group of resources corresponding to family account is corresponding.
In the present embodiment, third party's resource acquisition strategy can be by platform operation business or resource ownership side It is configured.
Preferably, this third party's resource acquisition strategy can include the one or two kinds of group in following strategy Close: current overall performance corresponding to group of resources more than the current performance of first threshold and physical machine more than the Two threshold values.Wherein, the current overall performance that group of resources is corresponding can be specially virtual machine entirety utilization rate; Central processing unit (the Central Processing that the current performance of physical machine can be specially in physical machine Unit;It is called for short: utilization rate CPU).
Step 104, when current overall performance corresponding to the group of resources that this user account is corresponding and/or this The current performance of the physical machine that all IP addresses in one IP address list are corresponding meets this third party's resource During acquisition strategy, the Resources list is shared in inquiry, obtains the specification information with this application resource and application resource Demand information coupling shared group of resources.
In the present embodiment, the corresponding current overall performance of group of resources can be specially group of resources Overall performance, such as: virtual machine entirety utilization rate;The current performance of physical machine can be specially CPU's Utilization rate.
Preferably, current overall performance that this user account is corresponding group of resources is corresponding and/or an IP The current performance of the physical machine that all IP addresses in address list are corresponding meets this third party's resource acquisition plan Specific implementation slightly has the most several:
Current overall performance corresponding to group of resources that user account is corresponding is more than described first threshold;Or,
The current performance of the physical machine that all IP addresses in the first IP address list are corresponding is all higher than second Threshold value;Or,
Current overall performance corresponding to group of resources that user account is corresponding is more than first threshold, and an IP The current performance of the physical machine that all IP addresses in address list are corresponding is all higher than Second Threshold.
It addition, it is further preferable that the Resources list is shared in inquiry, obtain the specification information with this application resource With the specific implementation of a shared group of resources of the demand information coupling of application resource be: obtain with The shared resource specification information of the demand information coupling of the specification information of this application resource and application resource, Obtain the shared group of resources corresponding with this shared resource specification information.
Step 105, query resource group and the mapping relations of shared resource policy, obtain and share money with this The shared resource policy that source group is corresponding.
In the present embodiment, shared resource policy can also be carried out by platform operation business or resource ownership side Arrange.
Preferably, this shared resource policy may include that the performance of physical machine is less than the 3rd threshold value.Wherein, The performance of physical machine can be specially the utilization rate of the CPU in physical machine.
Step 106, working as when physical machine corresponding to IP address some or all of in this shared group of resources When front performance meets this shared resource policy, from meeting, the IP address sharing resource policy selects an IP Address is as first resource call address, and calls in the physical machine that this first resource call address is corresponding First resource obtains interface, to obtain first resource by this first resource interface.
Step 107, send this first resource to user terminal.
In the present embodiment, please when the resource bid carrying parameter information receiving user terminal transmission When asking, in the group of resources that user account in this parameter information got is corresponding, obtain and this ginseng Number information is applied for the first IP address list of the specification information coupling of resource, it is achieved thereby that when this resource The thing that all IP addresses in current overall performance that group is corresponding and/or this first IP address list are corresponding When the current performance of reason machine meets third party's resource acquisition strategy corresponding to this group of resources, i.e. in user's account When number corresponding group of resources cannot obtain resource, shared the Resources list can be inquired about further, obtain The shared money mated with the application resource requirement information in the specification information of this application resource and this parameter information Source group, and from meeting the IP address of shared resource policy corresponding to this shared group of resources as the first money Source call address, with according to this first resource call address, obtains resource and returns to user terminal, i.e. The resource in other group of resources can be shared, i.e. achieve sharing of resource.
Further, in a second embodiment of the present invention, on the basis of above-mentioned embodiment illustrated in fig. 1 On, after step 103, the method can also include:
Whole or portion in current overall performance corresponding to this group of resources and this first IP address list The current performance of the IP address correspondence physical machine divided is unsatisfactory for this third party's resource policy, or an IP The current performance of all or part of IP address correspondence physical machine in address list is unsatisfactory for this third party During resource policy, from the second IP address list being unsatisfactory for this third party's resource policy got, choosing Select an IP address as Secondary resource call address;And call the thing that this Secondary resource call address is corresponding Secondary resource on reason machine obtains interface, to obtain Secondary resource by this Secondary resource interface;
Described Secondary resource is sent to this user terminal.
It should be noted that above-mentioned steps and step 104 belong to coordination to step 107, i.e. two Branch.
Further, in the 3rd embodiment of the present invention, at the base of above-mentioned embodiment illustrated in fig. 1 On plinth, after step 105, and before step 106, the method can also include:
Obtain the IP address that this user terminal accesses, and the IP address of this access is analyzed, obtain The positional information of this user terminal;
Then shared from meeting selection one the shared resource specification information sharing resource policy in step 106 The IP address of resource specification information as a kind of specific implementation of first resource call address is:
According to this positional information, from the IP address meeting this shared resource policy, select an IP ground Location is as first resource call address;Wherein, the positional information that this first resource call address is corresponding with should Positional information and this user that distance between the positional information of user terminal is corresponding less than other IP addresses are whole Distance between the positional information of end, wherein, other IP addresses refer to meet the IP sharing resource policy Address removes the IP address outside first resource call address.
In the present embodiment, due to can positional information based on user terminal and the shortest network route distance Carry out resource distribution, thus it is guaranteed that more excellent QoS.
Further, in the 4th embodiment of the present invention, at the base of above-mentioned embodiment illustrated in fig. 1 On plinth, before step 101, the method can also include:
Receiving the log-on message of physical machine, this log-on message includes that IP address, machine capability, support are virtual Machine type, attaching relation and positional information;
According to the attaching relation in the log-on message of this physical machine, this physical machine is carried out packet transaction, obtains Take group of resources;Wherein, the attaching relation that the physical machine in this group of resources is corresponding is identical.
Preferably, according to the attaching relation in the log-on message of this physical machine, this physical machine is carried out point Group processes, and after obtaining group of resources, the method can further include:
Generating the user account that this user terminal is corresponding, this user account carries attaching relation.
Then a kind of specific implementation of step 102 is:
According to the attaching relation in this user account, obtain the group of resources corresponding with this user account.
In this group of resources, obtain the first IP address list mated with the specification information of this application resource.
Fig. 2 is the flow chart of the 5th embodiment of method for processing resource of the present invention, as in figure 2 it is shown, this The executive agent of embodiment can be specially resource processing arrangements, and it should be noted that resource process sets The standby log-on message that can receive physical machine, this log-on message includes IP address, machine capability, support void Plan machine type, attaching relation and positional information, it is possible to according to the ownership in the log-on message of this physical machine Relation, carries out packet transaction to physical machine, obtains group of resources, wherein, the physics in this group of resources The attaching relation that machine is corresponding is identical.
It addition, this resource processing arrangements can also generate the user account that each user terminal is corresponding, this use Family account carries attaching relation, such that it is able to the attaching relation carried according to user account, and resource The attaching relation of physical machine in group, sets up the mapping relations of user account and group of resources.
Also, it should be noted dispose a virtual machine monitor (Hypervisor) in each physical machine, Each virtual machine monitor deploys a proxy module, by this proxy module, by its physics The log-on message of machine is sent to resource processing arrangements, and currency by this physical machine at predetermined time intervals Resource processing arrangements can be sent to.Wherein, each physical machine includes multiple virtual resource.
Then the method for the present embodiment includes:
What step 201, reception user terminal sent carries the resource bid request of parameter information;This ginseng Number information includes user account, the specification information of application resource and the demand information of application resource;This user Account carries attaching relation.
Step 202, according to the attaching relation in this user account, obtain the money corresponding with this user account Source group.
Step 203, in the group of resources that this user account is corresponding, obtain and the specification of this application resource First IP address list of information matches.
In the present embodiment, for example, all IP addresses pair in the first IP address list of acquisition The machine capability of the physical machine answered mates with the machine capability in the specification information of application resource.All physics The type of virtual machine of the support in the specification information of the type of virtual machine of the support of machine and this application resource Join.
Step 204, query resource group and the mapping relations of third party's resource acquisition strategy, obtain this use Third party's resource acquisition strategy that group of resources corresponding to family account is corresponding.
The physical machine that step 205, all IP addresses judged in the first IP address list are corresponding currency Whether can meet third party's resource acquisition strategy;If all IP addresses in the first IP address list are corresponding The current performance of physical machine meet third party's resource acquisition strategy, then perform step 206;If an IP The current performance of the physical machine that all or part of IP address in address list is corresponding is unsatisfactory for third party's money Source acquisition strategy, then perform step 212.
In the present embodiment, this third party's resource acquisition strategy includes that the performance of physical machine is more than Second Threshold.
The Resources list is shared in step 206, inquiry, obtains the specification information with this application resource and application money The shared resource that the shared group of resources of the demand information coupling in source is corresponding with this shared group of resources is advised Lattice information.
Step 207, query resource group and the mapping relations of shared resource policy, obtain and share money with this The shared resource policy that source group is corresponding.
Step 208, judge that the current performance sharing the physical machine corresponding to IP address of group of resources is the fullest The described shared resource policy of foot;If it is corresponding to judge to share all or part of IP address altogether in group of resources The current performance of physical machine meet this shared resource policy, then perform step 209;If sharing resource population In group, the current performance of the physics that whole IP addresses are corresponding is unsatisfactory for this shared resource policy, then perform step 214。
Step 209, obtain the IP address that this user terminal accesses, and the IP address of this access is carried out point Analysis, obtains the positional information of this user terminal.
Step 210, according to this positional information, from the IP address meeting described shared resource policy, choosing Select an IP address as first resource call address;Wherein, this corresponding being total to of first resource call address Enjoy the distance between the positional information in resource specification information and the positional information of this user terminal less than other Share the distance between positional information and the positional information of this user terminal in resource specification information.
Step 211, the first resource called in the physical machine that this first resource call address is corresponding obtain and connect Mouthful, to obtain first resource by this first resource interface, and it is sent to first resource to this user terminal. Terminate.
Step 212, from the second IP address list being unsatisfactory for described third party's resource policy got, Select an IP address as Secondary resource call address.
Step 213, the Secondary resource called in the physical machine that this Secondary resource call address is corresponding obtain and connect Mouthful, with by this Secondary resource obtain interface obtain Secondary resource, and to this user terminal send this second Resource.Terminate.
The Resources list is shared in step 214, inquiry, obtains the specification information with this application resource and application money Another shared group of resources of the demand information coupling in source;And perform step 207.
In the present embodiment, for example, with four physical machine, as a example by two group of resources, be situated between in detail Continue the technical scheme of the present embodiment.First, resource processing arrangements generates the organization structure tree of enterprise A, i.e. Generating 0 grade of organization object, tissue is encoded to D_A_00_001, and generates 21 grade of organization objects, and 1 Level tissue is the subordinate organization of 0 grade of tissue, and tissue coding is respectively D_A_01_001 and D_A_01_002, Being respectively Human Resource Department and network O&M department, 1 grade of tissue of the two is finance independent accountings, and Define 1 grade and be organized as the organizational hierarchy that resource divides, then belong to tissue encoding D _ A_01_001's Resource forms a group of resources, and the resource of ownership tissue encoding D _ A_01_002 forms a resource population Group.It addition, this group of resources corresponding to ownership tissue encoding D _ A_01_002 can share resource rule Lattice information has following four kinds:
2*2*2G/4G/1*1000M, 00/01, P_shichuan_chengdou_001, each hour expense 2 RMB;
4*2*2G/4G/1*1000M, 00/01, P_shichuan_chengdou_001, hourly rate 3 RMB;
2*2*2G/4G/1*1000M, 00/01, P_guangdong_guangzhou_001, within each hour, take Use 2.2 RMB;
4*2*2G/4G/1*1000M, 00/01, P_guangdong_guangzhou_001, hourly rate 3.2 RMB.
Wherein, machine capability is " CPU number * how much core * dominant frequency/memory size/network interface card number * network interface card speed Rate ".Support that " 00 " and " 01 " in type of virtual machine represents support VMware and XEN respectively. Positional information is " P province code book earth mat coded data center sequence number ".Pricing information is the least Time What are your rates RMB.
Four physical machine are deployed in two group of resources respectively, and it all reports registration to resource processing arrangements Information, its concrete log-on message as shown in Table 1:
Table one
Wherein, machine capability is " CPU number * how much core * dominant frequency/memory size/network interface card number * network interface card speed Rate ".Support that " 00 " and " 01 " in type of virtual machine represents support VMware and XEN respectively. Attaching relation is the tissue coding of group of resources.Positional information is that " P_ saves coding _ LAN coding _ data Center sequence number ".
It addition, resource processing arrangements also generates a user account A_00001, and this user account has One attribute, i.e. carries attaching relation, and this attaching relation is D_A_01_001, and this user's account is i.e. described Number belong to the Human Resource Department of enterprise A, and this user account is handed down to belong to the manpower money of enterprise A The user terminal in source portion.
Concrete, this user terminal accesses this resource by IP address (such as: 10.70.95.98) and processes Equipment, and the resource bid request carrying parameter information is sent to this resource processing arrangements, this parameter is believed Breath includes user account (A_00001), and (type of virtual machine of support is the specification information of application resource 00) and application resource demand information.Resource processing arrangements can analyze user according to this IP address The positional information (such as: Guangdong Province) at terminal place, and according to the attaching relation in this user account D_A_01_001, and the specification information of application resource, obtain an IP of the group of resources matched Address list, the IP address that this first IP address list includes has: 10.70.109.122 and 10.70.109.10。
Inquire about third party's resource acquisition strategy corresponding for this D_A_01_001, wherein, this third party's resource Strategy is: the cpu busy percentage of all physical machine is more than 80%.Owing to each physical machine can be regularly to money Source processing equipment reports resource performance information, for example, the form of this resource performance information can be: 10.70.109.122, D_A_01_001,90% and 2011-09-2612:00:00, its respectively corresponding IP ground Location, attaching relation, cpu busy percentage and index acquisition time.Therefore, it can analyze 10.70.109.122 It is satisfied by third party's resource acquisition strategy with the current cpu busy percentage corresponding to 10.70.109.10, i.e. 90% More than 80%, then the Resources list is shared in inquiry, obtains the specification information with this application resource and application resource Demand information coupling shared resource specification information.Such as: " 4*2*2G/4G/1*1000M, 00/01, P_shichuan_chengdou_001, hourly rate 3 RMB " and " 4*2*2G/4G/1*1000M, 00/01, P_guangdong_guangzhou_001, hourly rate 3.2 RMB ".And above-mentioned resource The group of resources that specification information is corresponding is D_A_01_002.
Obtain shared resource policy corresponding to the group of resources corresponding with this D_A_01_002 and (share resource Strategy is that the cpu busy percentage of all physical machine is less than 40%), obtain and meet the IP sharing resource policy Address: 10.60.90.11 and 10.70.95.60, the position corresponding to the physical machine that 10.70.95.60 is corresponding Confidence breath is Guangzhou, Guangdong, from the positional information corresponding to this user account closer to (meeting application money Required distance in the demand information in source), it is thereby possible to select the physical machine work that 10.70.95.60 is corresponding For first resource call address, thus call first in the physical machine that this first resource call address is corresponding Resource acquisition interface, and the first resource got by this first resource interface is sent to this user eventually End.
Fig. 3 is the structural representation of first embodiment of resource processing means of the present invention, as it is shown on figure 3, The device of the present embodiment includes: transceiver module 11, group of resources management module 12, third party's resource acquisition Policy management module 13, group of resources capabilities processing module 14, share group of resources management module 15, Share resource policy management module 16 and source obtaining module 17.Wherein, transceiver module 11 is used for receiving User terminal send carry parameter information resource bid request, this parameter information include user account, The specification information of application resource and the demand information of application resource;Group of resources management module 12 is for obtaining In the group of resources that this user account of getting is corresponding, obtain and to mate with the specification information of this application resource First IP address list;Third party's resource acquisition policy management module 13 is for query resource group and the The mapping relations of tripartite's resource acquisition strategy, obtain that group of resources corresponding to this user account is corresponding the 3rd Side's resource acquisition strategy;Group of resources capabilities processing module 14 is for judging the resource that this user account is corresponding The thing that all IP addresses in current overall performance that group is corresponding and/or this first IP address list are corresponding Whether the current performance of reason machine meets this third party's resource acquisition strategy;Share group of resources management module 15 For judging that the group of resources that this user account is corresponding is corresponding when this group of resources capabilities processing module 14 Current overall performance and/or this first IP address list in the working as of physical machine corresponding to all IP addresses When front performance meets this third party's resource acquisition strategy, the Resources list is shared in inquiry, obtains and provides with this application The shared group of resources of the demand information coupling of the specification information in source and application resource;Share group of resources pipe Reason module 15, for query resource group and the mapping relations of shared resource policy, obtains and this shared resource The shared resource policy that group is corresponding;Group of resources capabilities processing module 14 is additionally operable to judge this shared resource In group, whether the current performance of the physical machine that some or all of IP address is corresponding meets this shared resource plan Slightly;Source obtaining module 17 is for judging this shared resource when this group of resources capabilities processing module 14 In group, the current performance of the physical machine that some or all of IP address is corresponding meets described shared resource policy Time, the IP address sharing resource policy select an IP address call ground as first resource from meeting Location, and call the first resource acquisition interface in the physical machine that this first resource call address is corresponding, then lead to Cross this first resource interface and obtain first resource;Transceiver module 11 be additionally operable to this user terminal send this One resource.
The resource processing means of the present embodiment can perform the technical scheme of embodiment of the method shown in Fig. 1, its Realizing principle similar, here is omitted.
In the present embodiment, please when the resource bid carrying parameter information receiving user terminal transmission When asking, in the group of resources that user account in this parameter information got is corresponding, obtain and this ginseng Number information is applied for the first IP address list of the specification information coupling of resource, it is achieved thereby that when this resource The thing that all IP addresses in current overall performance that group is corresponding and/or this first IP address list are corresponding When the current performance of reason machine meets third party's resource acquisition strategy corresponding to this group of resources, i.e. in user's account When number corresponding group of resources cannot obtain resource, shared the Resources list can be inquired about further, obtain The shared money mated with the application resource requirement information in the specification information of this application resource and this parameter information Source group, and from meeting the IP address of shared resource policy corresponding to this shared group of resources as the first money Source call address, with according to this first resource call address, obtains resource and returns to user terminal, i.e. The resource in other group of resources can be shared, i.e. achieve sharing of resource.
Further, in second embodiment of resource processing means of the present invention, process in above-mentioned resource On the basis of first embodiment of device, it is preferable that third party's resource acquisition strategy includes following strategy In one or two kinds of combination: current overall performance corresponding to group of resources is more than first threshold and/or thing The current performance of reason machine is more than Second Threshold;
The group of resources that then group of resources capabilities processing module 14 is corresponding specifically for judging this user account Whether corresponding current overall performance is more than this first threshold;Or,
Group of resources capabilities processing module 14 is specifically for judging all IP in this first IP address list Whether the current performance of the physical machine that address is corresponding is all higher than this Second Threshold;Or,
The group of resources pair that group of resources capabilities processing module 14 is corresponding specifically for judging this user account Whether the current overall performance answered is more than all IP ground in this first threshold, and the first IP address list Whether the current performance of the physical machine that location is corresponding is all higher than this Second Threshold.
It is further preferable that source obtaining module 17 is additionally operable to when group of resources performance corresponding to this user account Processing module 14 judge current overall performance corresponding to group of resources that this user account is corresponding and this The current performance of all or part of IP address correspondence physical machine in one IP address list is unsatisfactory for this All or part of IP address in third party's resource policy, or this first IP address list is corresponding When the current performance of physical machine is unsatisfactory for this third party's resource policy, it is unsatisfactory for this third party from get In second IP address list of resource policy, select an IP address as Secondary resource call address, And call the Secondary resource acquisition interface in the physical machine that this Secondary resource call address is corresponding, with by being somebody's turn to do Secondary resource interface obtains resource;
This transceiver module 11 is additionally operable to send this Secondary resource to this user terminal.
Further, in the 3rd embodiment of resource processing means of the present invention, in above-mentioned Energy Resources Service On the basis of first embodiment of reason device, this device can also include: position information acquisition module, For obtaining the IP address that this user terminal accesses, and the IP address of this access is analyzed, obtains The positional information of this user terminal;
Then this source obtaining module 17 is specifically for according to described positional information, from meeting this shared resource plan In IP address slightly, select an IP address as first resource call address;Wherein, this first money Distance between positional information and the positional information of this user terminal that source call address is corresponding is less than other IP Distance between positional information and the positional information of this user terminal that address is corresponding, wherein, other IP ground Location refers to the IP address met outside the IP address removing first resource call address of shared resource policy.
Further, in the 4th embodiment of resource processing means of the present invention, in above-mentioned Energy Resources Service On the basis of first embodiment of reason device, transceiver module 11 is additionally operable to receive the registration letter of physical machine Breath, this log-on message includes IP address, machine capability, support type of virtual machine, attaching relation and position Information;
This group of resources management module 12 is additionally operable to according to the attaching relation in the log-on message of this physical machine, This physical machine is carried out packet transaction, obtains group of resources;Wherein, the physical machine pair in this group of resources The attaching relation answered is identical.
It addition, group of resources management module 12 is additionally operable to generate the user account that this user terminal is corresponding, should User account carries attaching relation;
Then group of resources management module 12 is used in the group of resources that this user account got is corresponding, Obtain a kind of specific implementation of the first IP address list mated with the specification information of this application resource For: according to the attaching relation in described user account, obtain the group of resources corresponding with described user account; Again in described group of resources, obtain the IP address column mated with the specification information of described application resource Table.
Present invention also offers a kind of cloud controller, including memorizer and processor, wherein, this memorizer For storing instruction;Processor, couples with this memorizer, and this processor is configured to execution and is stored in this Instruction in memorizer, and this processor be configurable for perform as above-mentioned method for processing resource first To the 5th any embodiment, here is omitted.
The structural representation of first embodiment of the resource processing system that Fig. 4 provides for the present invention, such as Fig. 4 institute Showing, the system of the present embodiment includes multiple physical machine 21 and cloud controller 22, wherein, cloud controller 22, bag Include memorizer and processor.Concrete, this memorizer is used for storing instruction;Processor, couples with this memorizer, This processor is configured to the instruction performing to be stored in this memorizer, and this processor is configurable for performing Such as the first to the 5th any embodiment of above-mentioned method for processing resource, here is omitted.
A virtual machine monitor (Hypervisor) is all disposed, at each virtual machine in physical machine 21 A proxy module (agent) is deployed, by this proxy module, by its physical machine 21 on monitor Log-on message be sent to cloud controller 22, and currency by this physical machine 21 at predetermined time intervals Cloud controller 22 can be sent to.Wherein, each physical machine 11 includes multiple virtual resource.
One of ordinary skill in the art will appreciate that: realize all or part of step of above-mentioned each method embodiment Suddenly can be completed by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer can Read in storage medium.This program upon execution, performs to include the step of above-mentioned each method embodiment;And Aforesaid storage medium includes: ROM, RAM, magnetic disc or CD etc. are various can store program code Medium.
Last it is noted that various embodiments above is only in order to illustrate technical scheme, rather than right It limits;Although the present invention being described in detail with reference to foregoing embodiments, this area common Skilled artisans appreciate that the technical scheme described in foregoing embodiments still can be modified by it, Or the most some or all of technical characteristic is carried out equivalent;And these amendments or replacement, and The essence not making appropriate technical solution departs from the scope of various embodiments of the present invention technical scheme.

Claims (12)

1. a method for processing resource, it is characterised in that including:
Receive the resource bid request carrying parameter information that user terminal sends, described parameter information bag Include user account, the specification information of application resource and the demand information of application resource;Described specification information bag Include: machine capability and/or the type of virtual machine of support;Described demand information includes: price request and/or away from From requiring;
In the group of resources that the described user account got is corresponding, obtain and mate with described specification information The first IP address list;
Query resource group and the mapping relations of third party's resource acquisition strategy, obtain described user account pair Third party's resource acquisition strategy that the group of resources answered is corresponding;
As current overall performance corresponding to the group of resources that described user account is corresponding and/or a described IP The current performance of the physical machine that all IP addresses in address list are corresponding meets described third party's resource acquisition During strategy, the Resources list is shared in inquiry, obtains and being total to that described specification information and described demand information mate Enjoy group of resources;
Query resource group and the mapping relations of shared resource policy, obtain and described shared group of resources pair The shared resource policy answered;
When the current performance of physical machine corresponding to IP address some or all of in described shared group of resources is full During the described shared resource policy of foot, from meeting, the IP address sharing resource policy selects an IP address As first resource call address, and call in the physical machine that described first resource call address is corresponding One resource acquisition interface, to obtain first resource by described first resource interface;
Described first resource is sent to described user terminal.
Method for processing resource the most according to claim 1, it is characterised in that described third party's resource Acquisition strategy includes that the one or two kinds of in following strategy combines: the current globality that group of resources is corresponding Can be more than the current performance of first threshold and/or physical machine more than Second Threshold;
Current overall performance that group of resources that described user account is corresponding is corresponding and/or a described IP ground The current performance of the physical machine that all IP addresses in the list of location are corresponding meets described third party's resource acquisition plan Slightly, specifically include:
Current overall performance corresponding to group of resources that described user account is corresponding is more than described first threshold; Or,
The current performance of the physical machine that all IP addresses in described first IP address list are corresponding is all higher than Described Second Threshold;Or,
Current overall performance corresponding to group of resources that described user account is corresponding more than described first threshold, And the current performance of physical machine corresponding to all IP addresses in described first IP address list is all higher than institute State Second Threshold.
Method for processing resource the most according to claim 1, it is characterised in that farther include:
Obtain the IP address that described user terminal accesses, and the IP address of described access be analyzed, Obtain the positional information of described user terminal;
Select an IP address as first resource from the IP address meeting shared resource policy described in then Call address, specifically includes:
According to described positional information, from the IP address meeting described shared resource policy, select an IP Address is as first resource call address;Wherein, the positional information that described first resource call address is corresponding The positional information corresponding less than other IP addresses with the distance between the positional information of described user terminal and institute Stating the distance between the positional information of user terminal, wherein, other IP addresses described refer to described satisfied Share the IP address outside the IP address removing first resource call address of resource policy.
Method for processing resource the most according to claim 1, it is characterised in that farther include:
Receiving the log-on message of physical machine, described log-on message includes IP address, machine capability, support void Plan machine type, attaching relation and positional information;
The attaching relation in log-on message according to described physical machine, carries out packet transaction to described physical machine, Obtain group of resources;Wherein, the attaching relation that the physical machine in described group of resources is corresponding is identical.
Method for processing resource the most according to claim 4, it is characterised in that farther include:
Generating the user account that described user terminal is corresponding, described user account carries attaching relation;
Then described in the group of resources that the described user account got is corresponding, obtain and described application money First IP address list of the specification information coupling in source, including:
According to the attaching relation in described user account, obtain the group of resources corresponding with described user account;
In described group of resources, obtain the IP address mated with the specification information of described application resource List.
6. a resource processing means, it is characterised in that including:
Transceiver module, for receiving the resource bid request carrying parameter information that user terminal sends, Described parameter information includes user account, the specification information of application resource and the demand information of application resource, Described specification information includes: machine capability and/or the type of virtual machine of support;Described demand information includes: Price request and/or required distance;
Group of resources management module, is used in the group of resources that the described user account got is corresponding, Obtain the first IP address list mated with described specification information;
Third party's resource acquisition policy management module, for query resource group and third party's resource acquisition plan Mapping relations slightly, obtain third party's resource acquisition plan that group of resources corresponding to described user account is corresponding Slightly;
Group of resources capabilities processing module, for judging that the group of resources that described user account is corresponding is corresponding Working as of the physical machine that all IP addresses in current overall performance and/or described first IP address list are corresponding Whether front performance meets described third party's resource acquisition strategy;
Share group of resources management module, for processing when group of resources performance corresponding to described user account Module is judged in current overall performance corresponding to described group of resources and/or described first IP address list The current performance of physical machine corresponding to all IP addresses when meeting described third party's resource acquisition strategy, look into Ask and share the Resources list, obtain the shared group of resources mated with described specification information and described demand information;
Share resource policy management module, for query resource group and the mapping relations of shared resource policy, Obtain the shared resource policy corresponding with described shared group of resources;
Described group of resources capabilities processing module is additionally operable to judge in described shared group of resources part or complete Whether the current performance of the physical machine that IP address, portion is corresponding meets described shared resource policy;
Source obtaining module, for judging described shared resource when described group of resources capabilities processing module In group, the current performance of the physical machine that some or all of IP address is corresponding meets described shared resource policy Time, the IP address sharing resource policy select an IP address call ground as first resource from meeting Location, and call the first resource acquisition interface in the physical machine that described first resource call address is corresponding, then First resource is obtained by described first resource interface;
Described transceiver module is additionally operable to send described first resource to described user terminal.
Resource processing means the most according to claim 6, it is characterised in that described third party's resource Acquisition strategy includes that the one or two kinds of in following strategy combines: the current globality that group of resources is corresponding Can be more than the current performance of first threshold and/or physical machine more than Second Threshold;
The resource population that the most described group of resources capabilities processing module is corresponding specifically for judging described user account Whether the current overall performance of group correspondence is more than described first threshold;Or,
Described group of resources capabilities processing module is specifically for judging owning in described first IP address list Whether the current performance of the physical machine that IP address is corresponding is all higher than described Second Threshold;Or,
The group of resources that described group of resources capabilities processing module is corresponding specifically for judging described user account Whether corresponding current overall performance is more than the institute in described first threshold, and described first IP address list Whether the current performance having physical machine corresponding to IP address is all higher than described Second Threshold.
Resource processing means the most according to claim 6, it is characterised in that also include:
Position information acquisition module, for obtaining the IP address that described user terminal accesses, and connects described The IP address entered is analyzed, and obtains the positional information of described user terminal;
The most described source obtaining module is specifically for according to described positional information, from meeting described shared resource In the IP address of strategy, select an IP address as first resource call address;Wherein, described Distance between positional information and the positional information of described user terminal that one resource transfer address is corresponding is less than Distance between positional information and the positional information of described user terminal that other IP addresses are corresponding, wherein, Other IP addresses described refer to the described IP address removing first resource meeting shared resource policy and call IP address outside address.
Resource processing means the most according to claim 6, it is characterised in that described transceiver module is additionally operable to Receiving the log-on message of physical machine, described log-on message includes IP address, machine capability, support virtual machine Type, attaching relation and positional information;
The ownership that described group of resources management module is additionally operable in the log-on message according to described physical machine is closed System, carries out packet transaction to described physical machine, obtains group of resources;Wherein, in described group of resources Attaching relation corresponding to physical machine is identical.
Resource processing means the most according to claim 9, it is characterised in that described group of resources Management module is additionally operable to generate the user account that described user terminal is corresponding, and described user account carries returns Genus relation;And according to the attaching relation in described user account, obtain the money corresponding with described user account Source group;Again in described group of resources, obtain first mated with the specification information of described application resource IP address list.
11. 1 kinds of cloud controllers, it is characterised in that including: memorizer, are used for storing instruction;
Processor, couples with described memorizer, and described processor is configured to execution and is stored in described storage Instruction in device, and described processor be configurable for perform as described in claim 1 to 5 is arbitrary Method for processing resource.
12. 1 kinds of resource processing systems, including: physical machine and cloud controller as claimed in claim 11.
CN201210223045.6A 2012-06-30 2012-06-30 Method for processing resource and system and device Active CN103516763B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210223045.6A CN103516763B (en) 2012-06-30 2012-06-30 Method for processing resource and system and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210223045.6A CN103516763B (en) 2012-06-30 2012-06-30 Method for processing resource and system and device

Publications (2)

Publication Number Publication Date
CN103516763A CN103516763A (en) 2014-01-15
CN103516763B true CN103516763B (en) 2016-09-28

Family

ID=49898789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210223045.6A Active CN103516763B (en) 2012-06-30 2012-06-30 Method for processing resource and system and device

Country Status (1)

Country Link
CN (1) CN103516763B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125297A (en) * 2014-08-06 2014-10-29 华为技术有限公司 Virtual resource sharing method, device and system
JP6599546B2 (en) * 2015-08-13 2019-10-30 コンヴィーダ ワイヤレス, エルエルシー How to enable unroot resource discovery in the service layer
CN105827448A (en) * 2016-03-31 2016-08-03 乐视控股(北京)有限公司 Resource distribution method and apparatus
CN108632321A (en) * 2017-03-23 2018-10-09 中国联合网络通信集团有限公司 Treating method and apparatus based on scheduling of resource under big data platform
CN108234646B (en) * 2017-12-29 2020-09-22 北京神州绿盟信息安全科技股份有限公司 Method and device for distributing cloud security resources
CN108718327B (en) * 2018-04-03 2021-02-26 北京景行锐创软件有限公司 License resource scheduling method and system
CN110808853B (en) * 2019-10-24 2022-09-06 浙江大华技术股份有限公司 Cloud computing product-oriented unified operation and maintenance method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6466980B1 (en) * 1999-06-17 2002-10-15 International Business Machines Corporation System and method for capacity shaping in an internet environment
CN1547128A (en) * 2003-12-10 2004-11-17 中国科学院计算技术研究所 Partition lease method for cluster system resource management
CN102457507A (en) * 2010-10-29 2012-05-16 中兴通讯股份有限公司 Secure sharing method, device and system for cloud computing resources

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6466980B1 (en) * 1999-06-17 2002-10-15 International Business Machines Corporation System and method for capacity shaping in an internet environment
CN1547128A (en) * 2003-12-10 2004-11-17 中国科学院计算技术研究所 Partition lease method for cluster system resource management
CN102457507A (en) * 2010-10-29 2012-05-16 中兴通讯股份有限公司 Secure sharing method, device and system for cloud computing resources

Also Published As

Publication number Publication date
CN103516763A (en) 2014-01-15

Similar Documents

Publication Publication Date Title
CN103516763B (en) Method for processing resource and system and device
US8914469B2 (en) Negotiating agreements within a cloud computing environment
CN109150607A (en) Classification management-control method and device for block chain network
CN103366135B (en) The security system driven by tenant in storage cloud and method
CN105450705B (en) Business data processing method and equipment
CN104038401A (en) Interoperability for distributed overlay virtual environments
CN102684903A (en) Management platform, system and method for realizing access of multiple cloud storage resource nodes
CN105765556A (en) Customer-directed networking limits in distributed systems
CN107317712A (en) A kind of creation method and device of network section
CN108345659A (en) A kind of data processing method, device, equipment and computer readable storage medium
CN110535679A (en) Management method, framework, network slice sales platform and the management system of slice
CN109902075A (en) A kind of distributed cloud storage management platform system based on IPFS and block chain
CN106302640A (en) Data request processing method and device
CN109462508A (en) Node deployment method, device and storage medium
CN109074287A (en) Infrastructure resources state
CN109087151A (en) A kind of block catenary system based on General integral
CN109561054A (en) A kind of data transmission method, controller and access device
CN108418752B (en) A kind of creation method and device of aggregation group
CN108563697A (en) A kind of data processing method, device and storage medium
CN106856441A (en) VIM systems of selection and device in NFVO
CN109474544A (en) A kind of distribution method and system interconnecting cloud resource
CN104166581B (en) A kind of virtual method towards increment manufacturing equipment
CN106302368A (en) Transaction methods and device
CN108289086A (en) Request processing method and device, server
CN110363638A (en) The method for processing business, device and electronic equipment of non-targeted user in financial business

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant