Search Images Maps Play YouTube News Gmail Drive More »
Sign in
Screen reader users: click this link for accessible mode. Accessible mode has the same essential features but works better with your reader.

Patents

  1. Advanced Patent Search
Publication numberCN103516763 B
Publication typeGrant
Application numberCN 201210223045
Publication date28 Sep 2016
Filing date30 Jun 2012
Priority date30 Jun 2012
Also published asCN103516763A
Publication number201210223045.6, CN 103516763 B, CN 103516763B, CN 201210223045, CN-B-103516763, CN103516763 B, CN103516763B, CN201210223045, CN201210223045.6
Inventors陈齐标
Applicant华为技术有限公司
Export CitationBiBTeX, EndNote, RefMan
External Links: SIPO, Espacenet
资源处理方法和系统以及装置 Processing method and system resources, and means translated from Chinese
CN 103516763 B
Abstract  translated from Chinese
本发明提供一种资源处理方法和系统以及装置,该方法包括接收用户终端发送的携带有参数信息的资源申请请求,参数信息包括用户账号、申请资源的规格信息和申请资源的需求信息;在获取到的用户账号对应的资源群组中获取与申请资源的规格信息匹配的第一IP地址列表;当用户账号对应的资源群组对应的当前整体性能和/或第一IP地址列表中的所有IP地址对应的物理机的当前性能满足第三方资源获取策略时,查询共享资源列表获取与规格信息和需求信息匹配的共享资源群组;当从满足共享资源策略的IP地址中选择一个IP地址作为第一资源调用地址;并调用第一资源调用地址对应的物理机上的第一资源获取接口,获取第一资源并发送给用户终端。 The present invention provides a method and system for processing resources and means, the method includes receiving user terminal sends a message carrying the resource application request parameters, parameter information includes user accounts, apply for sources of information, specification information and application resources; obtaining the first list of IP addresses that match the specification information acquisition and application of resources to the user account corresponding resource groups; when a user account corresponding resource group corresponding to the current overall performance and / or the first IP address list of all IP the current address of the corresponding physical machine performance to meet third-party resource acquisition strategy, the query to obtain a list of shared resources and information and specifications match demand information shared resource groups; when selecting an IP address from the shared resource strategies to meet the IP address as the first a resource call address; and call the first call address resources for the first resource corresponding physical machine access interface to obtain a first resource sent to the user terminal.
Claims(12)  translated from Chinese
1. 一种资源处理方法,其特征在于,包括: 接收用户终端发送的携带有参数信息的资源申请请求,所述参数信息包括用户账号、 申请资源的规格信息和申请资源的需求信息;所述规格信息包括:机器能力和/或支持的虚拟机类型;所述需求信息包括:价格要求和/或距离要求; 在获取到的所述用户账号对应的资源群组中,获取与所述规格信息匹配的第一IP地址列表; 查询资源群组和第三方资源获取策略的映射关系,获取所述用户账号对应的资源群组对应的第三方资源获取策略; 当所述用户账号对应的资源群组对应的当前整体性能和/或所述第一IP地址列表中的所有IP地址对应的物理机的当前性能满足所述第三方资源获取策略时,查询共享资源列表,获取与所述规格信息和所述需求信息匹配的共享资源群组; 查询资源群组和共享资源策略的映射关系,获取与所述共享资源群组对应的共享资源策略; 当所述共享资源群组中部分或者全部IP地址对应的物理机的当前性能满足所述共享资源策略时,从满足共享资源策略的IP地址中选择一个IP地址作为第一资源调用地址,并调用所述第一资源调用地址对应的物理机上的第一资源获取接口,以通过所述第一资源接口获取第一资源; 向所述用户终端发送所述第一资源。 A resource processing method comprising: receiving a user carrying the terminal sends information resource application request parameter, the parameter information includes user account information needs, the application resource specification information and application resources; the specifications include: machine capability and / or supported virtual machine type; the demand information includes: price requirements and / or distance requirements; obtaining the user account to the corresponding resource group, acquires the specification information a list of addresses that match the first IP; query resource group and third-party resources to get the mapping strategy, third-party resources to obtain the corresponding user account resource group corresponding acquisition policy; when the user account corresponding resource group third-party resources to meet the current performance of the corresponding current overall performance and / or the first IP address list of all the IP address corresponding to the physical machine when the acquisition policy, the query list of shared resources, access to information and the specification of the said shared resource demand information matching the group; mapping relational query resource group and shared resources strategy, access the shared resource group corresponds with shared resources strategy; when the shared resource groups some or all of the corresponding IP address current performance to meet the physical machine when the shared resource policy, select an IP address from the shared resource strategies to meet the IP address as a first resource call address, and invoking the first call to the address corresponding to the first resource on the physical machine resource acquisition interface in order to interface to get the first resource by the first resource; the first terminal to send resources to the user.
2. 根据权利要求1所述的资源处理方法,其特征在于,所述第三方资源获取策略包括如下策略中的一种或者两种组合:资源群组对应的当前整体性能大于第一阈值和/或物理机的当前性能大于第二阈值; 所述用户账号对应的资源群组对应的当前整体性能和/或所述第一IP地址列表中的所有IP地址对应的物理机的当前性能满足所述第三方资源获取策略,具体包括: 所述用户账号对应的资源群组对应的当前整体性能大于所述第一阈值;或者, 所述第一IP地址列表中的所有IP地址对应的物理机的当前性能均大于所述第二阈值; 或者, 所述用户账号对应的资源群组对应的当前整体性能大于所述第一阈值,且所述第一IP 地址列表中的所有IP地址对应的物理机的当前性能均大于所述第二阈值。 2. Resource processing method according to claim 1, characterized in that the third party resource acquisition strategy includes the following policies in one or two combinations: resource group corresponding to the current overall performance than the first threshold value and / current performance than the physical machine or a second threshold; current performance to meet the user account corresponding resource group corresponding to the current overall performance and / or the first IP address list of all the IP address of the corresponding physical machine Third-party resource acquisition strategies, including: the user account corresponding resource group corresponding to the current overall performance is greater than the first threshold; or, the current IP address of the first in the list of all IP addresses corresponding to the physical machine performance is greater than the second threshold; or the user account corresponding resource group corresponding to the current overall performance is greater than the first threshold value, and the first IP address list of all the IP address corresponding to the physical machine current performance is greater than the second threshold value.
3. 根据权利要求1所述的资源处理方法,其特征在于,进一步包括: 获取所述用户终端接入的IP地址,并对所述接入的IP地址进行分析,获取所述用户终端的位置信息; 则所述从满足共享资源策略的IP地址中选择一个IP地址作为第一资源调用地址,具体包括: 根据所述位置信息,从满足所述共享资源策略的IP地址中,选择一个IP地址作为第一资源调用地址;其中,所述第一资源调用地址对应的位置信息与所述用户终端的位置信息之间的距离小于其他IP地址对应的位置信息与所述用户终端的位置信息之间的距离,其中,所述其他IP地址指的是所述满足共享资源策略的IP地址除去第一资源调用地址之外的IP地址。 3. Resource processing method according to claim 1, characterized by further comprising: obtaining an IP address of the user terminal access, and the IP address of the access is analyzed to obtain the location of the user terminal information; then select an IP address from the shared resource strategies to meet the IP address as a first call address resources, including: Depending on the position information from the shared resource strategies to meet the IP address, select an IP address as the first resource call address; wherein the distance between the position information of the first resource call address corresponding to the location information and the user terminal position information is less than other IP address corresponding to the location information between the user terminal distance, wherein the other IP address is the IP address of the shared resource policy is removed outside the first call to address IP address resource of the meet.
4. 根据权利要求1所述的资源处理方法,其特征在于,进一步包括: 接收物理机的注册信息,所述注册信息包括IP地址、机器能力、支持虚拟机类型、归属关系和位置信息; 根据所述物理机的注册信息中的归属关系,对所述物理机进行分组处理,获取资源群组;其中,所述资源群组中的物理机对应的归属关系相同。 4. Resource processing method according to claim 1, characterized in that, further comprising: receiving registration information of a physical machine, the registration information includes IP addresses, machine capacity to support the virtual machine type, the relationship between the home and location information; according to attribution of registration information in the physical machine for the physical machine packet processing, access to resources group; wherein the same physical machine resource group corresponding home relationship.
5. 根据权利要求4所述的资源处理方法,其特征在于,进一步包括: 生成所述用户终端对应的用户账号,所述用户账号携带有归属关系; 则所述在获取到的所述用户账号对应的资源群组中,获取与所述申请资源的规格信息匹配的第一IP地址列表,包括: 根据所述用户账号中的归属关系,获取与所述用户账号对应的资源群组; 在所述资源群组中,获取与所述申请资源的规格信息匹配的第一IP地址列表。 5. The resource processing method according to claim 4, characterized in that, further comprising: generating a user terminal corresponding to the user account, the user account carries correlate; is acquired in the account of the user the corresponding resource group, acquire and apply the resources to match the specifications of the first list of IP addresses, comprising: the attribution of the user account in, access to the user account corresponding resource group; in the said resource group, acquire and apply the first IP address list of resources that match the specification information.
6. -种资源处理装置,其特征在于,包括: 收发模块,用于接收用户终端发送的携带有参数信息的资源申请请求,所述参数信息包括用户账号、申请资源的规格信息和申请资源的需求信息,所述规格信息包括:机器能力和/或支持的虚拟机类型;所述需求信息包括:价格要求和/或距离要求; 资源群组管理模块,用于在获取到的所述用户账号对应的资源群组中,获取与所述规格信息匹配的第一IP地址列表; 第三方资源获取策略管理模块,用于查询资源群组和第三方资源获取策略的映射关系,获取所述用户账号对应的资源群组对应的第三方资源获取策略; 资源群组性能处理模块,用于判断所述用户账号对应的资源群组对应的当前整体性能和/或所述第一IP地址列表中的所有IP地址对应的物理机的当前性能是否满足所述第三方资源获取策略; 共享资源群组管理模块,用于当所述用户账号对应的资源群组性能处理模块判断出所述资源群组对应的当前整体性能和/或所述第一IP地址列表中的所有IP地址对应的物理机的当前性能满足所述第三方资源获取策略时,查询共享资源列表,获取与所述规格信息和所述需求信息匹配的共享资源群组; 共享资源策略管理模块,用于查询资源群组和共享资源策略的映射关系,获取与所述共享资源群组对应的共享资源策略; 所述资源群组性能处理模块还用于判断所述共享资源群组中部分或者全部IP地址对应的物理机的当前性能是否满足所述共享资源策略; 资源获取模块,用于当所述资源群组性能处理模块判断出所述共享资源群组中部分或者全部IP地址对应的物理机的当前性能满足所述共享资源策略时,从满足共享资源策略的IP地址中选择一个IP地址作为第一资源调用地址,并调用所述第一资源调用地址对应的物理机上的第一资源获取接口,再通过所述第一资源接口获取第一资源; 所述收发模块还用于向所述用户终端发送所述第一资源。 6. - kind resource processing device, characterized by comprising: a transceiver module, for receiving a user carrying the terminal sends information resource application request parameters, the parameters including user account information, application information and application specifications of the resource and demand information, the specification information includes: machine capability and / or supported virtual machine type; the demand information includes: price requirements and / or distance requirements; resource group management module for the user to get account the corresponding resource group, to obtain a first list of IP addresses and matching the specification information; third party sources policy management module for querying resource groups and third-party resources to get the mapping strategy to obtain the user account third-party resources corresponding resource group corresponding to the acquisition policy; resource group performance processing module, for determining whether the user accounts corresponding to all resource group corresponding to the overall performance of the current / or the first IP address in the list and IP address corresponding to the physical resources of the current performance of the third party meets the acquisition policy; shared resource group management module for user accounts when the corresponding resource group performance processing module determines that the corresponding resource group the current performance of the overall performance of the current and / or the first IP address list of all the IP address corresponding to the physical machine to meet the third party resource acquisition strategy, the query list of shared resources, access to the information and the needs and specifications shared resource information matching the group; shared resource policy management module for mapping relational query resource group and shared resources strategy, access the shared resource group corresponds with shared resources strategy; the resource group performance processing module also used to determine the current performance of the shared resource groups some or all of the IP address corresponding to the physical machine meets the shared resource strategies; resource acquisition module for, when the resource group performance processing module determines that the shared resources to meet the current performance of the group in part or all of the IP address corresponding to the physical machine when the shared resource policy, select an IP address as the first address from the calling resource strategies to meet the shared resources of the IP address, and the first call the first resource a resource call address corresponding to the physical machine to obtain the interface, and then interface to get the first resource by the first resource; the transceiver module is further configured terminal sends the first resource to the user.
7. 根据权利要求6所述的资源处理装置,其特征在于,所述第三方资源获取策略包括如下策略中的一种或者两种组合:资源群组对应的当前整体性能大于第一阈值和/或物理机的当前性能大于第二阈值; 则所述资源群组性能处理模块具体用于判断所述用户账号对应的资源群组对应的当前整体性能是否大于所述第一阈值;或者, 所述资源群组性能处理模块具体用于判断所述第一IP地址列表中的所有IP地址对应的物理机的当前性能是否均大于所述第二阈值;或者, 所述资源群组性能处理模块具体用于判断所述用户账号对应的资源群组对应的当前整体性能是否大于所述第一阈值,且所述第一IP地址列表中的所有IP地址对应的物理机的当前性能是否均大于所述第二阈值。 7. Resource processing apparatus according to claim 6, wherein the third party resource acquisition strategy includes the following policies in one or two combinations: resource group corresponding to the current overall performance than the first threshold value and / current performance than the physical machine or a second threshold value; the performance of the processing module specific resource group for judging whether the user account corresponding to the resource group corresponding to the overall performance of the current is greater than the first threshold; or the are the current performance of specific resource group performance processing module for determining the first IP address list of all the IP address corresponding to the physical machine are greater than the second threshold value; or, the resource group with specific performance processing module to determine whether the user account corresponding resource group corresponding to the current overall performance is greater than the first threshold value, and the current performance of the first IP address list of all the IP address corresponding to the physical machine if greater than the first second threshold value.
8. 根据权利要求6所述的资源处理装置,其特征在于,还包括: 位置信息获取模块,用于获取所述用户终端接入的IP地址,并对所述接入的IP地址进行分析,获取所述用户终端的位置信息; 则所述资源获取模块具体用于根据所述位置信息,从满足所述共享资源策略的IP地址中,选择一个IP地址作为第一资源调用地址;其中,所述第一资源调用地址对应的位置信息与所述用户终端的位置信息之间的距离小于其他IP地址对应的位置信息与所述用户终端的位置信息之间的距离,其中,所述其他IP地址指的是所述满足共享资源策略的IP地址除去第一资源调用地址之外的IP地址。 8. A resource handling apparatus according to claim 6, characterized in that, further comprising: a position information acquisition module for acquiring the IP address of the user terminal access, and the IP address of the access analysis, Get the user terminal position information; the access to resources is based on the module for specific location information from the shared resource strategies to meet the IP address, select an IP address as the first resource call address; wherein the said first location information from the resource call address corresponding to the location information of the user terminal is smaller than the distance between the position information of the other IP address corresponding to the location information of the user terminal between, wherein the other IP address refers to a shared resource policy IP address resource is removed outside the first call to address the IP address of the meet.
9. 根据权利要求6的资源处理装置,其特征在于,所述收发模块还用于接收物理机的注册信息,所述注册信息包括IP地址、机器能力、支持虚拟机类型、归属关系和位置信息; 所述资源群组管理模块还用于根据所述物理机的注册信息中的归属关系,对所述物理机进行分组处理,获取资源群组;其中,所述资源群组中的物理机对应的归属关系相同。 9. The resource processing apparatus according to claim 6, wherein the transceiver module is further configured to receive a physical machine's information, the registration information includes IP address, machine capability, support for the virtual machine type, the relationship between the home and location information ; the resource group management module is further configured to correlate registration information according to the physical machine in for the physical packet processing, access to resources group; wherein the resource group corresponding to the physical machine the attribution of the same.
10. 根据权利要求9所述的资源处理装置,其特征在于,所述资源群组管理模块还用于生成所述用户终端对应的用户账号,所述用户账号携带有归属关系;并根据所述用户账号中的归属关系,获取与所述用户账号对应的资源群组;再在所述资源群组中,获取与所述申请资源的规格信息匹配的第一IP地址列表。 10. A resource handling apparatus according to claim 9, wherein said resource group management module is further used to generate the user terminal corresponding to the user account, the user account carries correlate; in accordance with the the attribution of a user account to obtain user account with the corresponding resource groups; and then in the resource group, acquire and apply the first IP address list of resources that match the specification information.
11. 一种云控制器,其特征在于,包括:存储器,用于存储指令; 处理器,与所述存储器耦合,所述处理器被配置为执行存储在所述存储器中的指令,且所述处理器被配置为用于执行如权利要求1至5任一所述的资源处理方法。 A cloud controller comprising: a memory for storing instructions; a processor coupled to the memory, the processor configured to execute instructions stored in the memory, and the the processor is configured to perform as claimed in any one of 1 to 5 according to a method of processing resource requirements.
12. -种资源处理系统,包括:物理机和如权利要求11所述的云控制器。 12. - kind resources processing system, comprising: a cloud controller 11 and the physical machine as claimed in claim.
Description  translated from Chinese
资源处理方法和系统从及装置 Resource processing method and system and device from

技术领域 TECHNICAL FIELD

[0001] 本发明设及计算机技术,尤其设及一种资源处理方法和系统W及装置。 [0001] The present invention is provided and computer technology, and in particular set up a resource processing method and system W and devices.

背景技术 Background technique

[0002] 目前,大企业不同部口采用的物理机都统一部署在一个云化的互联网数据中屯、 (Internet Data Center;简称:IDC)中,各个部口都只负责自己部口的机器购置预算。 [0002] Currently, large companies use different parts of the mouth of the physical machines in a cloud Tuen unified deployment of Internet data, (Internet Data Center; abbreviation: IDC), each responsible for its own section only port on the mouth of the machine purchase budget.

[0003] 但是,每个企业或者每个企业之间相互独立的部口的资源是无法共享的,从而给用户的使用带来了不便。 [0003] However, independent of each other between each enterprise or each business unit port resources can not be shared, giving the user's inconvenience.

发明内容 SUMMARY

[0004] 本发明提供一种用于资源处理方法和系统W及装置,用W解决现有技术中企业之间或者企业中各个相互独立的部口的资源无法共享的问题。 [0004] The present invention provides a method and system for processing resources and apparatus for W, with W between the prior art to solve the enterprise or individual independent of each other on the mouth of the resources can not be shared problems.

[0005] 本发明的第一个方面是提供一种资源处理方法,包括: [0005] The first aspect of the present invention is to provide a resource processing method comprising:

[0006] 接收用户终端发送的携带有参数信息的资源申请请求,所述参数信息包括用户账号、申请资源的规格信息和申请资源的需求信息; [0006] carries parameter information resource application request, the parameter receiving terminal sends the user information includes user accounts, apply for sources of information, specification information and application resources;

[0007] 在获取到的所述用户账号对应的资源群组中,获取与所述规格信息匹配的第一IP 地址列表; [0007] In obtaining the user account to the corresponding resource group, acquires the specification information list of addresses that match the first IP;

[000引查询资源群组和第S方资源获取策略的映射关系,获取所述用户账号对应的资源群组对应的第=方资源获取策略; [000 inquiries cited resource groups and resources to get the mapping S party policy, obtaining the corresponding user account resource group corresponding to the first party = resource acquisition strategy;

[0009] 当所述用户账号对应的资源群组对应的当前整体性能和/或所述第一IP地址列表中的所有IP地址对应的物理机的当前性能满足所述第=方资源获取策略时,查询共享资源列表,获取与所述规格信息和所述需求信息匹配的共享资源群组; [0009] When the current performance of the user account corresponding resource group corresponding to the current overall performance and / or the first IP address list of all the IP address corresponding to the physical machine satisfies the first party resource acquisition strategy = query list of shared resources, access to information and the specification information matches the needs of a group of shared resources;

[0010] 查询资源群组和共享资源策略的映射关系,获取与所述共享资源群组对应的共享资源策略; [0010] mapping relational query resource group and shared resources strategy, access the shared resource group corresponds with shared resources strategy;

[0011] 当所述共享资源群组中部分或者全部IP地址对应的物理机的当前性能满足所述共享资源策略时,从满足共享资源策略的IP地址中选择一个IP地址作为第一资源调用地址,并调用所述第一资源调用地址对应的物理机上的第一资源获取接口,W通过所述第一资源接口获取第一资源; [0011] When the current performance of the shared resource groups meet some or all of the IP address corresponding to the physical machine in the shared resource policy, select an IP address from the shared resource strategies to meet the IP address as a first call address resource the first resource and invoking the first call to address resource corresponding physical machine access interfaces, W interface to get the first resource by the first resource;

[0012] 向所述用户终端发送所述第一资源。 [0012] transmitting the first resource to the user terminal.

[0013] 本发明的另一个方面是提供一种资源处理装置,包括: [0013] Another aspect of the present invention is to provide a resource processing device, comprising:

[0014] 收发模块,用于接收用户终端发送的携带有参数信息的资源申请请求,所述参数信息包括用户账号、申请资源的规格信息和申请资源的需求信息; [0014] transceiver module, for receiving a user terminal sends a message carrying the resource application request parameter, said parameter including user account information, sources of information, application information and application resource specifications;

[0015] 资源群组管理模块,用于在获取到的所述用户账号对应的资源群组中,获取与所述规格信息匹配的第一IP地址列表; [0015] resource group management module for obtaining the user account to the corresponding resource group, acquires the specification information list of addresses that match the first IP;

[0016] 第=方资源获取策略管理模块,用于查询资源群组和第=方资源获取策略的映射关系,获取所述用户账号对应的资源群组对应的第=方资源获取策略; [0016] The first party = resource access policy management module for querying resource groups and resources = party gets mapping strategy to obtain the user account corresponding resource group corresponding to the first party = resource acquisition strategy;

[0017] 资源群组性能处理模块,用于判断所述用户账号对应的资源群组对应的当前整体性能和/或所述第一IP地址列表中的所有IP地址对应的物理机的当前性能是否满足所述第=方资源获取策略; [0017] resource group performance processing module for judging the performance of the current user account corresponding resource group corresponding to the current overall performance and / or the first IP address list of all the IP address corresponding to the physical machine whether = party satisfies the first resource acquisition strategy;

[0018] 共享资源群组管理模块,用于当所述用户账号对应的资源群组性能处理模块判断出所述资源群组对应的当前整体性能和/或所述第一IP地址列表中的所有IP地址对应的物理机的当前性能满足所述第=方资源获取策略时,查询共享资源列表,获取与所述申请资源的规格信息和申请资源的需求信息匹配的一个共享资源群组; [0018] a shared resource group management module for user accounts when the corresponding resource group performance processing module determines that the first list of IP addresses and / or the resource group corresponding to the current overall performance of all when the current IP address corresponding to the physical properties of the machine satisfies the first party = resource acquisition strategy, the query list of shared resources, access to information resources with the needs of the application specification information and application resources in a shared resource group matches;

[0019] 共享资源策略管理模块,用于查询资源群组和共享资源策略的映射关系,获取与所述共享资源群组对应的共享资源策略; [0019] a shared resource policy management module, used to query the mapping between resource groups and shared resources strategy, access the shared resource group corresponds with shared resources strategy;

[0020] 所述资源群组性能处理模块还用于判断所述共享资源群组中部分或者全部IP地址对应的物理机的当前性能是否满足所述共享资源策略; [0020] The resource group performance processing module is further configured to determine the current performance of the shared resource groups some or all of the IP address corresponding to the physical machine meets the shared resource strategies;

[0021] 资源获取模块,用于当所述资源群组性能处理模块判断出所述共享资源群组中部分或者全部IP地址对应的物理机的当前性能满足所述共享资源策略时,从满足共享资源策略的IP地址中选择一个IP地址作为第一资源调用地址,并调用所述第一资源调用地址对应的物理机上的第一资源获取接口,再通过所述第一资源接口获取第一资源; When [0021] resource acquisition module for, when the resource group performance processing module determines that the shared resource groups some or all of the IP address corresponding to a physical machine to meet the current performance of the shared resource policy, from our shared IP address resource policy, select an IP address as a first address resource call, and call the first resource to the first resource to call on the address of the corresponding physical machine access interface through the first resource interface to obtain a first resource;

[0022] 所述收发模块还用于向所述用户终端发送所述第一资源。 [0022] The transceiver module is further configured terminal sends the first resource to the user.

[0023] 本发明的又一个方面是提供一种云控制器,包括:存储器,用于存储指令; [0023] A further aspect of the present invention is to provide a cloud controller comprising: a memory for storing instructions;

[0024] 处理器,与所述存储器禪合,所述处理器被配置为执行存储在所述存储器中的指令,且所述处理器被配置为用于执行如上述所述的资源处理方法。 [0024] The processor, together with the Zen memory, the processor is configured to execute the instructions stored in the memory, and the processor is configured to resources such as the above-described processing method for performing.

[0025] 本发明的还一个方面是提供一种资源处理系统,包括:物理机和上述所述的云控制器。 Yet another aspect of the [0025] The present invention is to provide a resource processing system, comprising: a physical and said the cloud controller.

[0026] 本发明的技术效果是:当接收到用户终端发送的携带有参数信息的资源申请请求时,在获取到的该参数信息中的用户账号对应的资源群组中,获取与该参数信息中申请资源的规格信息匹配的第一IP地址列表,从而实现了当该资源群组对应的当前整体性能和/ 或该第一IP地址列表中的所有IP地址对应的物理机的当前性能满足该资源群组对应的第S方资源获取策略时,即在用户账号对应的资源群组中无法获取资源时,可W进一步查询共享资源列表,获取与该申请资源的规格信息和该参数信息中的申请资源需求信息匹配的共享资源群组,并从满足该共享资源群组对应的共享资源策略的IP地址作为第一资源调用地址,W根据该第一资源调用地址,获取资源并返回给用户终端,即可W共享其他资源群组中的资源,即实现了资源的共享。 [0026] Technical effects of the present invention is: when the user terminal receives the transmitted carries parameter information resource application request, to get the parameter information in the user account corresponding resource group, acquires the parameter information the first IP address list application specification information resource matching, enabling current performance while satisfying the resource group corresponding to the current overall performance and / or the first IP address list of all the IP address corresponding to the physical machine resource group corresponding first s party resource acquisition strategies, ie when the user account can not access resources in the corresponding resource group, W may further inquiry list of shared resources, access to information and the parameters and specifications of the information in the application resource shared resource application resource group match demand information, and meet the shared resource from the group shared resource policy corresponding IP address as the first resource call address, W according to the first call to address resource, access to resources and returns to the user terminal , W can be shared with other resources in the resource group, namely, the achievement of shared resources.

附图说明 BRIEF DESCRIPTION

[0027] 图1为本发明资源处理方法的第一个实施例的流程图; [0027] Figure 1 is a flowchart of the invention the resource processing method of the first embodiment;

[0028] 图2为本发明资源处理方法的第五个实施例的流程图; [0028] FIG. 2 is a schematic flow diagram of resource processing method of the fifth embodiment;

[0029] 图3为本发明资源处理装置的第一个实施例的结构示意图; [0029] FIG. 3 of the present invention the first resource processing device structural diagram of an embodiment;

[0030] 图4为本发明提供的资源处理系统的第一个实施例的结构示意图。 The first structural diagram of an embodiment of [0030] FIG. 4 of the present invention to provide a system resource handling.

具体实施方式 detailed description

[0031] 图1为本发明资源处理方法的第一个实施例的流程图,如图1所示,本实施例的方法包括: A flow chart of the first embodiment [0031] Figure 1 of the present invention, the resource processing method, shown in Figure 1, the method of the present embodiment comprises:

[0032] 步骤101、接收用户终端发送的携带有参数信息的资源申请请求,该参数信息包括用户账号、申请资源的规格信息和申请资源的需求信息。 [0032] step 101, the user terminal receives the transmitted carries parameter information resource application request, the parameter information includes the information needs of the user account, application resource specification information and application resources.

[0033] 在本实施例中,申请资源的规格信息可W包括:机器能力和/或支持的虚拟机类型;申请资源的需求信息可W包括:价格要求和/或距离要求等。 [0033] In the present embodiment, the application resource specification information may include W: machine capability and / or supported virtual machine type; demand information resources application may include W: price requirements and / or distance requirements.

[0034] 步骤102、在获取到的该用户账号对应的资源群组中,获取与该申请资源的规格信息匹配的第一IP地址列表。 [0034] Step 102, in the user account to obtain the corresponding resource group, to obtain a first list of IP addresses and the specifications of the application resource information matches.

[0035] 步骤103、查询资源群组和第S方资源获取策略的映射关系,获取该用户账号对应的资源群组对应的第=方资源获取策略。 [0035] Step 103, the query resource groups and resources S party gets mapping strategy to obtain the user account corresponding resource group corresponding to the first party = resource acquisition strategy.

[0036] 在本实施例中,第S方资源获取策略可W由平台运营商或者资源归属方进行设置。 [0036] In this embodiment, the first party resource acquisition strategy S W can be set by the platform operator or resources attributable party.

[0037] 优选地,该第=方资源获取策略可W包括如下策略中的一种或者两种组合:资源群组对应的当前整体性能大于第一阔值和物理机的当前性能大于第二阔值。 [0037] Preferably, the first party resources = W acquisition strategies may include the following policy in one or two combinations: resource group corresponding to the current overall performance is greater than a first threshold value and the physical properties of the current is greater than the second width value. 其中,资源群组对应的当前整体性能可W具体为虚拟机整体使用率;物理机的当前性能可W具体为物理机中的中央处理器(Central Processing Unit;简称:CPU)的利用率。 Among them, the resource group corresponding to the current overall performance can be embodied as a virtual machine W overall usage; current performance may be physical machine to physical machine W specific central processor (Central Processing Unit; abbreviation: CPU) utilization.

[0038] 步骤104、当该用户账号对应的资源群组对应的当前整体性能和/或该第一IP地址列表中的所有IP地址对应的物理机的当前性能满足该第=方资源获取策略时,查询共享资源列表,获取与该申请资源的规格信息和申请资源的需求信息匹配的共享资源群组。 [0038] Step 104, when the current performance of the user account corresponding resource group corresponding to the current overall performance and / or the first IP address list of all the IP address corresponding to the physical machine meets the first party resource acquisition strategy is = query list of shared resources, access to information and application resources with the specifications of the application resource demand information matches the shared resource group.

[0039] 在本实施例中,资源群组的对应的当前整体性能可W具体为资源群组的整体性能,例如:虚拟机整体使用率;物理机的当前性能可W具体为CPU的利用率。 [0039] In the present embodiment, corresponding to the current overall performance resource group W may be embodied as overall performance resource groups, such as: Virtual Machine overall usage; current performance may be physical machine specifically CPU utilization W .

[0040] 优选地,该用户账号对应的资源群组对应的当前整体性能和/或该第一IP地址列表中的所有IP地址对应的物理机的当前性能满足该第=方资源获取策略的具体实现方式有如下几种: Current performance [0040] Preferably, the user account corresponding resource group corresponding to the current overall performance and / or the first IP address list of all the IP address corresponding to the physical machine to meet the party = s access to resources specific policy there are several ways to achieve:

[0041] 用户账号对应的资源群组对应的当前整体性能大于所述第一阔值;或者, [0041] user account corresponding resource group corresponding to the current overall performance is greater than the first threshold value; or,

[0042] 第一IP地址列表中的所有IP地址对应的物理机的当前性能均大于第二阔值;或者, [0042] The first IP address list of all the IP address corresponding to the current performance of the physical machine are greater than the second threshold value; or,

[0043] 用户账号对应的资源群组对应的当前整体性能大于第一阔值,且第一IP地址列表中的所有IP地址对应的物理机的当前性能均大于第二阔值。 [0043] user account corresponding resource group corresponding to the current overall performance is greater than a first threshold value, and the first performance of the current IP address list of all the IP address corresponding to the physical machine are greater than the second threshold value.

[0044] 另外,更为优选地,查询共享资源列表,获取与该申请资源的规格信息和申请资源的需求信息匹配的一个共享资源群组的具体实现方式为:获取与该申请资源的规格信息和申请资源的需求信息匹配的共享资源规格信息,在获取与该共享资源规格信息对应的共享资源群组。 [0044] In addition, more preferably, the query list of shared resources, access to demand information and specification information and resources to apply the resources of the application matches a shared resource group specific implementation is: Get in touch with the specifications of the application resource information demand information and to apply resources to match the specifications of the shared resource information in the shared resource access and specification information corresponding to the shared resource group.

[0045] 步骤105、查询资源群组和共享资源策略的映射关系,获取与该共享资源群组对应的共享资源策略。 [0045] Step 105, the query resource group mapping between resources and sharing strategy, and get the shared resource group corresponding shared resource policy.

[0046] 在本实施例中,共享资源策略也可W由平台运营商或者资源归属方进行设置。 [0046] In the present embodiment, the shared resource strategies can also be set by the W platform operator or resources attributable party.

[0047] 优选地,该共享资源策略可W包括:物理机的性能小于第=阔值。 [0047] Preferably, the shared resource strategies may include W: native performance = less than the first threshold value. 其中,物理机的性能可W具体为物理机中的CPU的利用率。 Among them, the physical machine performance can be W specific physical machine CPU utilization.

[004引步骤106、当该共享资源群组中部分或者全部IP地址对应的物理机的当前性能满足该共享资源策略时,从满足共享资源策略的IP地址中选择一个IP地址作为第一资源调用地址,并调用该第一资源调用地址对应的物理机上的第一资源获取接口,W通过该第一资源接口获取第一资源。 [004 cited step 106, when the current performance to meet the shared resource policy for the shared resource groups some or all of the IP address corresponding to a physical machine, select an IP address from the shared resource strategies to meet the IP address of the call as a first resource address, and call the first resource to the first call address corresponding resource on the physical machine access interfaces, W Being the first resource by the first resource interface.

[0049] 步骤107、向用户终端发送该第一资源。 [0049] Step 107, the terminal sends the first resource to the user.

[0050] 在本实施例中,当接收到用户终端发送的携带有参数信息的资源申请请求时,在获取到的该参数信息中的用户账号对应的资源群组中,获取与该参数信息中申请资源的规格信息匹配的第一IP地址列表,从而实现了当该资源群组对应的当前整体性能和/或该第一IP地址列表中的所有IP地址对应的物理机的当前性能满足该资源群组对应的第=方资源获取策略时,即在用户账号对应的资源群组中无法获取资源时,可W进一步查询共享资源列表,获取与该申请资源的规格信息和该参数信息中的申请资源需求信息匹配的共享资源群组,并从满足该共享资源群组对应的共享资源策略的IP地址作为第一资源调用地址, W根据该第一资源调用地址,获取资源并返回给用户终端,即可W共享其他资源群组中的资源,即实现了资源的共享。 [0050] In the present embodiment, when receiving the user terminal that carries parameter information resource application request, the acquired parameter information in the user account corresponding resource group, to obtain the parameter information the first IP address list application specification information resource matching, enabling the performance of the resource group when the current corresponding to the current overall performance and / or the first IP address list of all the IP address corresponding to the physical machine to meet the resource the first group corresponds = party resource acquisition strategies, ie when the user account can not access resources in the corresponding resource group, W may further inquiry list of shared resources, access to application and specification information and the parameter information for the application of resources resource requirements match the information shared resource groups and the shared resource group from meeting shared resource policy corresponding IP address as the first resource call address, W according to the first call to address resource, access to resources and returns to the user terminal, W can be shared with other resources in the resource group, namely, the achievement of shared resources.

[0051] 进一步的,在本发明的第二个实施例中,在上述图1所示实施例的基础上,步骤103 之后,该方法还可W包括: [0051] Further, in the second embodiment of the present invention, on the basis of the embodiment shown in figure 1, the following step 103, the method may further comprise W:

[0052] 当该资源群组对应的当前整体性能和该第一IP地址列表中的全部或者部分的IP 地址对应物理机的当前性能不满足该第=方资源策略,或者该第一IP地址列表中的全部或者部分的IP地址对应物理机的当前性能不满足该第=方资源策略时,从获取到的不满足该第=方资源策略的第二IP地址列表中,选择一个IP地址作为第二资源调用地址;并调用该第二资源调用地址对应的物理机上的第二资源获取接口,W通过该第二资源接口获取第二资源; [0052] When the resource group corresponding to the overall performance and the first IP address list of all current or IP address portion corresponding to the physical machine does not meet the current performance of the party = s resources policy, or the first IP address list when the whole or part of the IP address corresponding to a physical machine does not meet the current performance of the first party = resource strategy from the acquired does not satisfy the first = second IP address list party resource policy, select an IP address as a first 2 - resource call address; and call a second call to the resources of the second resource corresponding physical address on the machine to obtain the interface, W to obtain resources through the second second resource interface;

[0053] 向该用户终端发送所述第二资源。 [0053] the user terminal sending said second resource.

[0054] 需要说明的是,上述步骤与步骤104至步骤107属于并列关系,即两个分支。 [0054] Note that, the above-described step 104 to step 107 and the step part parallel relationship, i.e. the two branches.

[0055] 更进一步的,在本发明的第=个实施例中,在上述图1所示实施例的基础上,在步骤105之后,且在步骤106之前,该方法还可W包括: [0055] Further, in the first embodiment of the = present invention, on the basis of the embodiment shown in figure 1, following the step 105 and before step 106, the method may further comprise W:

[0056] 获取该用户终端接入的IP地址,并对该接入的IP地址进行分析,获取该用户终端的位置信息; [0056] to obtain an IP address of the user terminal access, and the IP address of the access were analyzed to obtain location information of the user terminal;

[0057] 则步骤106中从满足共享资源策略的共享资源规格信息中选择一个共享资源规格信息的IP地址作为第一资源调用地址的一种具体实现方式为: [0057] Step 106 is selecting a shared resource specification information from the IP address for the shared resource shared resource policy specification information as a specific implementation of the first call address resource is:

[005引根据该位置信息,从满足该共享资源策略的IP地址中,选择一个IP地址作为第一资源调用地址;其中,该第一资源调用地址对应的位置信息与该用户终端的位置信息之间的距离小于其他IP地址对应的位置信息与该用户终端的位置信息之间的距离,其中,其他IP地址指的是满足共享资源策略的IP地址除去第一资源调用地址之外的IP地址。 [005 primers based on the position information from the shared resource strategies to meet the IP address, select an IP address as the first resource call address; wherein the location information, the location information of the first resource call address corresponding to the user's terminal smaller than the distance between the position information of the other IP address corresponding to the location information between the user terminal and the distance from which the other IP address refers to a shared resource strategies to meet the IP address of the resource is removed outside the first call to address the IP address.

[0059] 在本实施例中,由于可W基于用户终端的位置信息和最短网络路由距离进行资源分配,因此,保证了更优的业务服务质量。 [0059] In the present embodiment, since W based on location information of the user terminal and the shortest route from the network resource allocation, therefore, to ensure better quality of service.

[0060] 更进一步的,在本发明的第四个实施例中,在上述图1所示实施例的基础上,在步骤101之前,该方法还可W包括: [0060] Further, in the fourth embodiment of the present invention, on the basis of the above-described embodiment shown in Figure 1, before the step 101, the method may further comprise W:

[0061] 接收物理机的注册信息,该注册信息包括IP地址、机器能力、支持虚拟机类型、归属关系和位置信息; [0061] receiving a physical machine's information, the registration information includes IP addresses, machine capacity to support the virtual machine type, the relationship between the home and location information;

[0062] 根据该物理机的注册信息中的归属关系,对该物理机进行分组处理,获取资源群组;其中,该资源群组中的物理机对应的归属关系相同。 [0062] According to the attribution of the registration information in the physical machine, the physical packet processing, access to resources group; wherein the same physical machine resource group corresponding home relationship.

[0063] 优选地,在根据该物理机的注册信息中的归属关系,对该物理机进行分组处理,获取资源群组之后,该方法还可W进一步包括: [0063] Preferably, according to the home after the registration of the relationship in the physical machine, the physical packet processing, access to resources group, the method may further comprise W:

[0064] 生成该用户终端对应的用户账号,该用户账号携带有归属关系。 [0064] The user terminal generates a corresponding user account, the user account carries home relationship.

[0065] 则步骤102的一种具体实现方式为: A particular implementation of [0065] at step 102 is:

[0066] 根据该用户账号中的归属关系,获取与该用户账号对应的资源群组。 [0066] According to the attribution of the user account, the user account and get the corresponding resource group.

[0067] 在该资源群组中,获取与该申请资源的规格信息匹配的第一IP地址列表。 [0067] In the resource group, and the application of resources to obtain specification information matches the first address list IP.

[0068] 图2为本发明资源处理方法的第五个实施例的流程图,如图2所示,本实施例的执行主体可W具体为资源处理设备,且需要说明的是,资源处理设备可W接收物理机的注册信息,该注册信息包括IP地址、机器能力、支持虚拟机类型、归属关系和位置信息,并可W根据该物理机的注册信息中的归属关系,对物理机进行分组处理,获取资源群组,其中,该资源群组中的物理机对应的归属关系相同。 A flowchart of a fifth embodiment of the [0068] FIG. 2 is a schematic resource processing method, shown in Figure 2, the Executive body of the present embodiment may be W specific resource processing device, and should be noted that the resource handling equipment W may be receiving a physical machine registration information, the registration information includes IP addresses, machine capacity to support the virtual machine type, the relationship between the home and location information, and W according to the attribution of the registration information in the physical machine, the physical machines are grouped processing, access to resources group, wherein the same physical machine resource group corresponding home relationship.

[0069] 另外,该资源处理设备还可W生成每个用户终端对应的用户账号,该用户账号携带有归属关系,从而可W根据用户账号携带的归属关系,W及资源群组中物理机的归属关系,建立用户账号和资源群组的映射关系。 [0069] In addition, the resource processing device may also be generated for each user terminal W corresponding user account, the user account carries home relationship, which can carry the W based on the user account of the relationship between home, W and resource group of the physical machine home, and setting up the mapping between user accounts and resource groups.

[0070] 还需要说明的是,每个物理机上都部署一个虚拟机监视器化ypervisor),在每一个虚拟机监视器上部署了一个代理模块,通过该代理模块,将其物理机的注册信息发送给资源处理设备,W及每隔预定时间将该物理机的当前性能发送给资源处理设备。 [0070] It is further noted that deployed on each physical machine in a virtual machine monitor of ypervisor), on each virtual machine monitor the deployment of a proxy module, through the agent module, the registration information of the physical machine send to a resource handling equipment, W, and every predetermined time sends the current performance of the physical machine to the resource-processing equipment. 其中,每个物理机上包括多个虚拟资源。 Which includes a plurality of virtual resources on each physical machine.

[0071 ] 则本实施例的方法包括: [0071] the method of the present embodiment comprises:

[0072] 步骤201、接收用户终端发送的携带有参数信息的资源申请请求;该参数信息包括用户账号、申请资源的规格信息和申请资源的需求信息;该用户账号携带有归属关系。 [0072] Step 201, the receiving user terminal sends a message carrying the resource application request parameters; the parameter information includes user accounts, apply for sources of information, specification information and application resources; the user account carries home relationship.

[0073] 步骤202、根据该用户账号中的归属关系,获取与该用户账号对应的资源群组。 [0073] Step 202, based on correlations in user account, access to the user account corresponding resource group.

[0074] 步骤203、在该用户账号对应的资源群组中,获取与该申请资源的规格信息匹配的第一IP地址列表。 [0074] step 203, the user account corresponding resource group, to obtain the application resource specifications matching address list first IP.

[0075] 在本实施例中,举例来说,获取的第一IP地址列表中的所有IP地址对应的物理机的机器能力与申请资源的规格信息中的机器能力匹配。 [0075] In the present embodiment, for example, matching a first list of IP addresses get all the IP address corresponding to the physical machine and the ability to apply resources in machine capability specifications. 所有物理机的支持的虚拟机类型与该申请资源的规格信息中的支持的虚拟机类型匹配。 Match all physical machine to support virtual machine type and specification of the application resource information in support of virtual machine type.

[0076] 步骤204、查询资源群组和第=方资源获取策略的映射关系,获取该用户账号对应的资源群组对应的第=方资源获取策略。 [0076] Step 204, the query resource group and resource = party gets mapping strategy to obtain the user account corresponding resource group corresponding to the first party = resource acquisition strategy.

[0077] 步骤205、判断第一IP地址列表中的所有IP地址对应的物理机的当前性能是否满足第=方资源获取策略;若第一IP地址列表中的所有IP地址对应的物理机的当前性能满足第=方资源获取策略,则执行步骤206;若第一IP地址列表中的全部或者部分IP地址对应的物理机的当前性能不满足第=方资源获取策略,则执行步骤212。 [0077] Step 205, the first party resources = current performance is determined first IP address list of all the IP address corresponding to the physical machine meets the acquisition policy; if the first IP address list of all the IP address corresponding to the current physical machine = performance meets the first party resource acquisition strategy, step 206; if not satisfied with the current performance of the first IP address list of all or part of the IP address corresponding to the first physical side = resource acquisition strategy, step 212.

[0078] 在本实施例中,该第=方资源获取策略包括物理机的性能大于第二阔值。 [0078] In the present embodiment, the first party = resource acquisition strategy includes the performance of physical machines is greater than the second threshold value.

[0079] 步骤206、查询共享资源列表,获取与该申请资源的规格信息和申请资源的需求信息匹配的共享资源群组和该共享资源群组对应的一个共享资源规格信息。 [0079] Step 206, the query list of shared resources, access to information and application resources with the specifications of the application resource demand information matches the shared resource groups and the shared resource group corresponding to a shared resource specifications.

[0080] 步骤207、查询资源群组和共享资源策略的映射关系,获取与该共享资源群组对应的共享资源策略。 [0080] Step 207, the query resource group mapping between resources and sharing strategy, and get the shared resource group corresponding shared resource policy.

[0081] 步骤208、判断共享资源群组的IP地址对应的物理机的当前性能是否满足所述共享资源策略;若判断出共享资源群组中全部或者部分共IP地址对应的物理机的当前性能满足该共享资源策略,则执行步骤209;若共享资源群组中全部IP地址对应的物理的当前性能不满足该共享资源策略,则执行步骤214。 [0081] Step 208, it is determined shared resource group's IP address corresponding to the current performance of the physical machine meets the shared resource policy; if it is determined that the shared resource groups all or part of the IP address corresponding to the total of the current performance of the physical machine meet the shared resource policy, step 209; if the shared resource groups all of the IP address corresponding to the physical properties of the current policy does not meet the shared resource, step 214.

[0082] 步骤209、获取该用户终端接入的IP地址,并对该接入的IP地址进行分析,获取该用户终端的位置信息。 [0082] Step 209, obtain the IP address of the user terminal access, and the IP address of the access were analyzed to obtain location information of the user terminal.

[0083] 步骤210、根据该位置信息,从满足所述共享资源策略的IP地址中,选择一个IP地址作为第一资源调用地址;其中,该第一资源调用地址对应的共享资源规格信息中的位置信息与该用户终端的位置信息之间的距离小于其他共享资源规格信息中的位置信息与该用户终端的位置信息之间的距离。 [0083] Step 210, based on the position information from the shared resource strategies to meet the IP address, select an IP address as the first resource call address; wherein the first resource call address corresponding to the shared resource specifications location information from the location information of the user terminal is less than elsewhere in the specification information shared resources between the location information of the user terminal and the distance.

[0084] 步骤211、调用该第一资源调用地址对应的物理机上的第一资源获取接口,W通过该第一资源接口获取第一资源,并向该用户终端发送给第一资源。 [0084] Step 211, the first call to the first resource resource call address corresponding to the physical machine to obtain the interface, W Being the first resource by the first resource interface, to the user terminal is sent to the first resource. 结束。 End.

[0085] 步骤212、从获取到的不满足所述第=方资源策略的第二IP地址列表中,选择一个IP地址作为第二资源调用地址。 [0085] Step 212, the first party = resource strategy from the acquired IP address does not satisfy the second list, select an IP address as a second resource call address.

[0086] 步骤213、调用该第二资源调用地址对应的物理机上的第二资源获取接口,W通过该第二资源获取接口获取第二资源,并向该用户终端发送该第二资源。 [0086] Step 213, a second call to the resources of the second resource call address corresponding physical machine access interfaces, W to obtain a second interface to get resources through the second resource to the user terminal transmits the second resource. 结束。 End.

[0087] 步骤214、查询共享资源列表,获取与该申请资源的规格信息和申请资源的需求信息匹配的另一个共享资源群组;并执行步骤207。 [0087] Step 214, the query list of shared resources, access to demand information and other specifications and application information resources of the application resource group matches of shared resources; and to step 207.

[0088] 在本实施例中,举例来说,W四个物理机,两个资源群组为例,详细介绍本实施例的技术方案。 [0088] In the present embodiment, for example, W four physical machines, two resource groups, for example, details the technical solutions of the present embodiment. 首先,资源处理设备生成企业A的组织结构树,即生成0级组织实体,组织编码为D_A_00_001,并生成2个1级组织实体,1级组织是0级组织的下级组织,组织编码分别为D_ 八_01_001和0_4_01_002,分别为人力资源部和网络运维部,运两个1级组织是财务独立核算的,并且定义1级组织为资源划分的组织层级,那么归属于组织编码0_4_01_001的资源形成一个资源群组,归属组织编码〇_4_01_002的资源形成一个资源群组。 First, the resource processing device generates firm A Organization tree, which generated 0 organizational entities, organizations encoded as D_A_00_001, and generates two level 1 organizational entities, Level 1 organizations are subordinate organizations 0 organization, organizational coding respectively D_ eight _01_001 and 0_4_01_002, respectively Human resources and the Ministry of network operation and maintenance, transport stage 1 two organizations are independent financial accounting, and the definition of level 1 organizations to resource partitioning organizational level, it belongs to the organization's resources are formed coding 0_4_01_001 a resource group, the home organization coding 〇_4_01_002 resources to form a resource group. 另外,该归属组织编码D_A_01_002所对应的资源群组可W共享资源规格信息有如下四种: In addition, the home organization coding D_A_01_002 corresponding resource group can share resources W specifications have the following four:

[0089] 2 巧巧G/4G/l*1000M、00/01、P_shichuan_chengdou_001、每个小时费用2 人民币; [0089] 2 Qiaoqiao G / 4G / l * 1000M, 00/01, P_shichuan_chengdou_001, every hour costs 2 yuan;

[0090] 4 巧巧G/4G/l*1000M、00/01、P_shichuan_chengdou_001、每小时费用3 人民币; [0090] Qiaoqiao 4 G / 4G / l * 1000M, 00/01, P_shichuan_chengdou_001, costs 3 yuan per hour;

[0091] 2*2*2G/4G/1*1000M、00/01、P_guangdong_guangzhou_001、每个小时费用2.2人民币; [0091] 2 * 2 * 2G / 4G / 1 * 1000M, 00/01, P_guangdong_guangzhou_001, cost 2.2 yuan per hour;

[0092] 4*巧2G/4G/1*1000M、00/01 J_guangdong_guangzhou_001、每小时费用3.2人民币。 [0092] 4 * Qiao 2G / 4G / 1 * 1000M, 00/01 J_guangdong_guangzhou_001, cost 3.2 yuan per hour.

[009引其中,机器能力为乂PU个数*多少核*主频/内存大小/网卡个数*网卡速率"。支持虚拟机类型中的"00"和"or分别代表支持VMware和XEN。 [009 cited wherein machine capacity of PU Yi in the number of how many nuclear * * GHz / memory size / number of NIC * NIC rate. "Supports virtual machine types" 00 "and" or represent support VMware and XEN. 位置信息为"P省编码本地网编码数据中屯、位置序号"。 Location information "P province local network coding data encoded in Tuen, position number." 价格信息为每小时费用多少人民币。 Price information for the cost per hour how much yuan.

[0094] 四个物理机分别部署在两个资源群组中,其均向资源处理设备上报注册信息,其具体注册信息如表一所示: [0094] four physical machine resources are deployed in two groups, which are reported to the resource registration information processing apparatus, the specific registration information as shown in Table 1 below:

[0095] 表一 [0095] Table I

[0096] [0096]

[ [

Figure CN103516763BD00111

[UUW」 其甲,机器能力刃"CPU个数*多少核*主频/巧任大小/例卞个数*例卞速準"。 [UUW "its armor, machine capability Blade," the number of how many core CPU * * GHz / Qiao any size / number * Example Example Bian Bian speed quasi. " 叉巧虚拟机类型中的"00"和%r分别代表支持VMware和XEN。 Fork Qiao virtual machine type in "00" and% r represent support for VMware and XEN. 归属关系为资源群组的组织编码。 Attribution of code resources for the organization of the group. 位置信息为叩_省编码_本地网编码_数据中屯、位置序号"。 Location information is encoded province knock _ _ _ encoded data in the local network Tuen, position number. "

[0099] 另外,资源处理设备还生成一个用户账号A_00001,且运个用户账号有一个属性, 即携带有归属关系,该归属关系为〇_4_01_001,即说明该用户账号归属于企业A的人力资源部,并将该用户账号下发给属于企业A的人力资源部的用户终端。 [0099] In addition, the resource processing device also generates a user account A_00001, and transport a user account has a property that carries the attribution of the relationship 〇_4_01_001 home, indicating that the user account that is attributable to the enterprise A human resources section, and this user account belonging to the enterprise sent to the Human Resources a user terminal.

[0100] 具体的,该用户终端通过IP地址(例如:10.70.95.98)接入该资源处理设备,并向该资源处理设备发送携带有参数信息的资源申请请求,该参数信息包括用户账号(A_ 00001),申请资源的规格信息(支持的虚拟机类型为00)和申请资源的需求信息。 [0100] Specifically, the user terminal through the IP address (for example: 10.70.95.98) access to the resource processing device and sends carries parameter information resource application request for the resource processing devices, this information includes a user account (A_ 00001), the application resource specifications (supported virtual machine type 00) and demand information application resources. 资源处理设备可W根据该IP地址,分析出用户终端所在的位置信息(例如:广东省),且根据该用户账号中的归属关系D_A_01_001,W及申请资源的规格信息,获取与之匹配的资源群组的第一IP地址列表,该第一IP地址列表中包括的IP地址有:10.70.109.122和10.70.109.10。 Resource processing device may W based on the IP address, to analyze the location information of the user terminal is located (for example: Guangdong Province), and in accordance with the user account in the attribution of D_A_01_001, W and application specification information resources, access to matching resources the first group of the list of IP addresses, IP address of the first IP address included in the list are: 10.70.109.122 and 10.70.109.10.

[0101] 查询该D_A_01_001对应的第S方资源获取策略,其中,该第S方资源策略为:所有物理机的CPU利用率超过80%。 [0101] to query the corresponding first S D_A_01_001 party resource acquisition strategy, wherein the first S party resources strategy: CPU utilization of all physical machines more than 80%. 由于每个物理机可W定时向资源处理设备上报资源性能信息,举例来说,该资源性能信息的格式可^为:10.70.109.122、0_4_01_001、90%和2011- 09-2612:00:00,其分别对应IP地址、归属关系、CPU利用率和指标收集时间。 Since each physical machine can be W Regularly report performance information resource to resource processing device, for example, the format of the resource performance information may ^ is: 10.70.109.122,0_4_01_001,90% and 2011-09-2612: 00: 00 which are mapped to IP addresses, home relationship, CPU utilization, and metrics collection time. 因此,可W分析出10.70.109.122和10.70.109.10所对应的当前CPU利用率均满足第S方资源获取策略,即90%大于80%,则查询共享资源列表,获取与该申请资源的规格信息和申请资源的需求信息匹配的共享资源规格信息。 Therefore, the analysis of W corresponding to the current CPU usage 10.70.109.10 10.70.109.122 and meet the first S party resource acquisition strategy, that is 90% greater than 80%, the query list of shared resources, access to resources and the application specification information info request and demand matching resources shared resource specifications. 例如:"4*2*2G/4G/1*1000M、00/01、F*_shichuan_chengdou_ 001、每小时费用3人民币"和"4 巧巧G/4G/ 1*1000M、00/01、P_guangdong_guangzhou_001、每小时费用3.2人民币"。 For example: "4 * 2 * 2G / 4G / 1 * 1000M, 00/01, F * _shichuan_chengdou_ 001, costs 3 yuan per hour" and "How-how 4 G / 4G / 1 * 1000M, 00/01, P_guangdong_guangzhou_001, each hour costs 3.2 yuan. " 且上述资源规格信息对应的资源群组为0_4_01_002。 And said resource specification information corresponding resource group for 0_4_01_002.

[0102] 获取与该0_4_01_002对应的资源群组对应的共享资源策略(共享资源策略为所有物理机的CPU利用率低于40 % ),获取满足共享资源策略的IP地址:10.60.90. 11和10.70.95.60,由于10.70.95.60对应的物理机所对应的位置信息为广东省广州市,离该用户账号所对应的位置信息更近(满足申请资源的需求信息中的距离要求),因此,可W选择10.70.95.60对应的物理机作为第一资源调用地址,从而调用该第一资源调用地址对应的物理机上的第一资源获取接口,并将通过该第一资源接口获取到的第一资源发送给该用户终端。 [0102] Get the 0_4_01_002 corresponding resource group corresponding to the shared resources strategy (shared resources policy for the CPU utilization of all physical machines less than 40%), access to shared resources policy to meet the IP address: 10.60.90 and 11 10.70.95.60, 10.70.95.60 position information due to the corresponding physical machine corresponding to the Guangzhou City, Guangdong province, the location information from the user account corresponding to the closer (to apply resources to meet the needs of the information in the distance requirements), and therefore, Select the first resource W 10.70.95.60 corresponding physical resource as the first call address to call the first resource to the first call address corresponding resource on the physical machine access interface and to get through the first transmission resource interface to the user terminal.

[0103] 图3为本发明资源处理装置的第一个实施例的结构示意图,如图3所示,本实施例的装置包括:收发模块11、资源群组管理模块12、第=方资源获取策略管理模块13、资源群组性能处理模块14、共享资源群组管理模块15、共享资源策略管理模块16和资源获取模块17。 [0103] FIG. 3 of the present invention the first resource processing device structural diagram of the embodiment shown in Figure 3, the apparatus of the present embodiment comprises: a transceiver module 11, a resource group management module 12, = party access to resources policy management module 13, a resource group performance processing module 14, a shared resource group management module 15, shared resource policy and resource access management module 16 module 17. 其中,收发模块11用于接收用户终端发送的携带有参数信息的资源申请请求,该参数信息包括用户账号、申请资源的规格信息和申请资源的需求信息;资源群组管理模块12用于在获取到的该用户账号对应的资源群组中,获取与该申请资源的规格信息匹配的第一IP地址列表;第=方资源获取策略管理模块13用于查询资源群组和第=方资源获取策略的映射关系,获取该用户账号对应的资源群组对应的第=方资源获取策略;资源群组性能处理模块14用于判断该用户账号对应的资源群组对应的当前整体性能和/或该第一IP地址列表中的所有IP地址对应的物理机的当前性能是否满足该第=方资源获取策略;共享资源群组管理模块15用于当该资源群组性能处理模块14判断出该用户账号对应的资源群组对应的当前整体性能和/或该第一IP地址列表中的所有IP地址对应的物理机的当前性能满足该第= 方资源获取策略时,查询共享资源列表,获取与该申请资源的规格信息和申请资源的需求信息匹配的共享资源群组;共享资源群组管理模块15用于查询资源群组和共享资源策略的映射关系,获取与该共享资源群组对应的共享资源策略;资源群组性能处理模块14还用于判断该共享资源群组中部分或者全部IP地址对应的物理机的当前性能是否满足该共享资源策略;资源获取模块17用于当该资源群组性能处理模块14判断出该共享资源群组中部分或者全部IP地址对应的物理机的当前性能满足所述共享资源策略时,从满足共享资源策略的IP地址中选择一个IP地址作为第一资源调用地址,并调用该第一资源调用地址对应的物理机上的第一资源获取接口,再通过该第一资源接口获取第一资源;收发模块11还用于向该用户终端发送该第一资源。 Wherein the transceiver module 11 for receiving a user terminal sends a message carrying the resource application request parameters, the parameter information includes user account information needs to apply for resource specification information and application resources; resource group management module 12 is used to obtain the user account to the corresponding resource group, to obtain the application resource specifications matching address list first IP; s = party resource access policy management module 13 is used to query resource group and resource acquisition strategy side = mapping, to obtain the corresponding user account resource group corresponding to the first party = resource acquisition strategy; resource group performance processing module 14 is used to determine whether the user account corresponding resource group corresponding to the current overall performance and / or the first the first party resources = a performance of the current IP address list of all the IP address corresponding to the physical machine meets the acquisition policy; shared resource group management module 15 is used when the resource group performance processing module 14 determines that the user account corresponding to the current performance of the resource group corresponding to the current overall performance and / or the first IP address list of all the IP address corresponding to the physical machine resources to meet the party = s acquisition policies, query the shared resource list for which the application resource demand information specification information and application resources that match the group shared resources; resource sharing group management module 15 is used to query the mapping between resource groups and shared resources strategy, access to the shared resource group corresponding to the shared resource strategies; resource group performance processing module 14 is also used to judge the current performance of the shared resource policy shared resource groups some or all of the IP address corresponding to the physical machine meets; resource acquisition module 17 is used when the resource group performance processing module 14 judged that the current performance of the shared resource groups meet some or all of the IP address corresponding to the physical machine in the shared resource policy, select an IP address from the shared resource strategies to meet the IP address as a first call address resources, and the first call to the first resource resource call address corresponding physical machine to obtain the interface, and then get the first resource by the first resource interface; transceiver module 11 is further configured to the user terminal transmits the first resource.

[0104] 本实施例的资源处理装置可W执行图1所示方法实施例的技术方案,其实现原理相类似,此处不再寶述。 Resource processing apparatus [0104] The present embodiment can perform the method shown in FIG. 1 W embodiment of the technical solution, the principle is similar, no treasure here said.

[0105] 在本实施例中,当接收到用户终端发送的携带有参数信息的资源申请请求时,在获取到的该参数信息中的用户账号对应的资源群组中,获取与该参数信息中申请资源的规格信息匹配的第一IP地址列表,从而实现了当该资源群组对应的当前整体性能和/或该第一IP地址列表中的所有IP地址对应的物理机的当前性能满足该资源群组对应的第=方资源获取策略时,即在用户账号对应的资源群组中无法获取资源时,可W进一步查询共享资源列表,获取与该申请资源的规格信息和该参数信息中的申请资源需求信息匹配的共享资源群组,并从满足该共享资源群组对应的共享资源策略的IP地址作为第一资源调用地址, W根据该第一资源调用地址,获取资源并返回给用户终端,即可W共享其他资源群组中的资源,即实现了资源的共享。 [0105] In the present embodiment, when receiving the user terminal that carries parameter information resource application request, the acquired parameter information in the user account corresponding resource group, to obtain the parameter information the first IP address list application specification information resource matching, enabling the performance of the resource group when the current corresponding to the current overall performance and / or the first IP address list of all the IP address corresponding to the physical machine to meet the resource the first group corresponds = party resource acquisition strategies, ie when the user account can not access resources in the corresponding resource group, W may further inquiry list of shared resources, access to application and specification information and the parameter information for the application of resources resource requirements match the information shared resource groups and the shared resource group from meeting shared resource policy corresponding IP address as the first resource call address, W according to the first call to address resource, access to resources and returns to the user terminal, W can be shared with other resources in the resource group, namely, the achievement of shared resources.

[0106] 进一步的,在本发明资源处理装置的第二个实施例中,在上述资源处理装置的第一个实施例的基础上,优选地,第=方资源获取策略包括如下策略中的一种或者两种组合: 资源群组对应的当前整体性能大于第一阔值和/或物理机的当前性能大于第二阔值; Base [0106] Further, in the second embodiment of the resource processing device according to the invention, in a first embodiment of the apparatus of the above-described processing resources on, preferably, the first party = resource acquisition strategy includes the following policies in a or a combination of two kinds: resource group corresponding to the current overall performance is greater than a first threshold value and / or physical machine's current performance is greater than the second threshold value;

[0107] 则资源群组性能处理模块14具体用于判断该用户账号对应的资源群组对应的当前整体性能是否大于该第一阔值;或者, [0107] the resource group performance processing module 14 is specifically configured to determine whether the user account corresponding resource group corresponding to the current overall performance is greater than the first threshold value; or,

[0108] 资源群组性能处理模块14具体用于判断该第一IP地址列表中的所有IP地址对应的物理机的当前性能是否均大于该第二阔值;或者, [0108] resource group performance processing module 14 is used to determine the current performance of a specific list of the first IP address of all IP addresses corresponding to the physical machine if greater than the second threshold value; or,

[0109] 资源群组性能处理模块14具体用于判断该用户账号对应的资源群组对应的当前整体性能是否大于该第一阔值,且第一IP地址列表中的所有IP地址对应的物理机的当前性能是否均大于该第二阔值。 [0109] resource group performance processing module 14 is specifically configured to determine whether the user account corresponding resource group corresponding to the current overall performance is greater than the first threshold value, and the first IP address list of all the IP address corresponding to the physical machine the current performance is greater than the second threshold value.

[0110] 更为优选地,资源获取模块17还用于当该用户账号对应的资源群组性能处理模块14判断出该用户账号对应的资源群组对应的当前整体性能和该第一IP地址列表中的全部或者部分的IP地址对应物理机的当前性能不满足该第=方资源策略,或者该第一IP地址列表中的全部或者部分的IP地址对应物理机的当前性能不满足该第=方资源策略时,从获取到的不满足该第=方资源策略的第二IP地址列表中,选择一个IP地址作为第二资源调用地址,并调用该第二资源调用地址对应的物理机上的第二资源获取接口,W通过该第二资源接口获取资源; [0110] More preferably, the resource module 17 is further adapted to obtain user account corresponding to the resource group performance processing module 14 determines that the user account corresponding to the resource group corresponding to the overall performance and the first current list of IP addresses all or part of the IP address corresponding to a physical machine does not meet the current performance of the party = s resources policy, or the first IP address list of all or part of the IP address corresponding to a physical machine does not meet the current performance of the first party = resource strategy from the acquired does not satisfy the first = second IP address list party resource policy, select an IP address as a second address resource call, and call a second call to the second resource corresponding physical address machine resource acquisition interfaces, W access to resources through the second resource interface;

[0111] 该收发模块11还用于向该用户终端发送该第二资源。 [0111] The transceiver module 11 is further configured to transmit to the user terminal of the second resource.

[0112] 更进一步的,在本发明资源处理装置的第=个实施例中,在上述资源处理装置的第一个实施例的基础上,该装置还可W包括:位置信息获取模块,用于获取该用户终端接入的IP地址,并对该接入的IP地址进行分析,获取该用户终端的位置信息; [0112] Further, in the first embodiment of the present invention = resource processing device in the first embodiment described above resource processing device based on the embodiment, the apparatus may further comprise W: location information acquisition module for obtain an IP address of the user terminal access, and the IP address of the access were analyzed to obtain location information of the user terminal;

[0113] 则该资源获取模块17具体用于根据所述位置信息,从满足该共享资源策略的IP地址中,选择一个IP地址作为第一资源调用地址;其中,该第一资源调用地址对应的位置信息与该用户终端的位置信息之间的距离小于其他IP地址对应的位置信息与该用户终端的位置信息之间的距离,其中,其他IP地址指的是满足共享资源策略的IP地址除去第一资源调用地址之外的IP地址。 [0113] the access to resources for specific module 17 based on the position information from the shared resource strategies to meet the IP address, select an IP address as the first resource call address; wherein the first call address corresponding resource location information from the location information of the user terminal is less than other IP address corresponding to the location information with the location information of the distance between the user terminal, wherein the other IP address refers to a shared resource strategies to meet the IP address removing section IP address of a resource beyond the call address.

[0114] 更进一步的,在本发明资源处理装置的第四个实施例中,在上述资源处理装置的第一个实施例的基础上,收发模块11还用于接收物理机的注册信息,该注册信息包括IP地址、机器能力、支持虚拟机类型、归属关系和位置信息; [0114] Further, in the fourth embodiment of the present invention, the resource processing device, based on the first embodiment of the above-described resource processing device, the transceiver module 11 is further configured to receive a physical machine's information, the registration information including IP address, machine capability, support for the virtual machine type, the relationship between the home and location information;

[0115] 该资源群组管理模块12还用于根据该物理机的注册信息中的归属关系,对该物理机进行分组处理,获取资源群组;其中,该资源群组中的物理机对应的归属关系相同。 [0115] The resource group management module 12 also according to the attribution of the registration information in the physical machine, the physical packet processing, access to resources group; wherein the resource group corresponding to the physical machine attribution of the same.

[0116] 另外,资源群组管理模块12还用于生成该用户终端对应的用户账号,该用户账号携带有归属关系; [0116] In addition, the resource group management module 12 is also used to generate the user terminal corresponding to the user account, the user account carries correlate;

[0117] 则资源群组管理模块12用于在获取到的该用户账号对应的资源群组中,获取与该申请资源的规格信息匹配的第一IP地址列表的一种具体实现方式为:根据所述用户账号中的归属关系,获取与所述用户账号对应的资源群组;再在所述资源群组中,获取与所述申请资源的规格信息匹配的第一IP地址列表。 A particular implementation of [0117] the group, the resource management module 12 is used to obtain the account number of the user group corresponding to the resource, and to obtain information matches the specifications of the application of a first resource list of IP addresses is: according to the attribution of the user account to obtain user account with the corresponding resource groups; and then in the resource group, acquire and apply the resources to match specifications address list first IP.

[0118] 本发明还提供了一种云控制器,包括存储器和处理器,其中,该存储器用于存储指令;处理器,与该存储器禪合,该处理器被配置为执行存储在该存储器中的指令,且该处理器被配置为用于执行如上述资源处理方法的第一至第五任一实施例,此处不再寶述。 [0118] The present invention also provides a cloud controller includes a memory and a processor, wherein the memory for storing instructions; a processor, memory, and the meditation together, the processor is configured to execute stored in the memory instruction, and the processor is configured for performing the above-described first through fifth resource processing method according to any one of the embodiments, described herein not Po.

[0119] 图4为本发明提供的资源处理系统的第一个实施例的结构示意图,如图4所示,本实施例的系统包括多个物理机21和云控制器22,其中,云控制器22,包括存储器和处理器。 The first structural diagram of an embodiment of [0119] FIG. 4 of the present invention to provide resources processing system, shown in Figure 4, the system of the present embodiment comprises a plurality of physical machines 21 and the cloud controller 22, which controls the cloud 22, includes a memory and a processor. 具体的,该存储器用于存储指令;处理器,与该存储器禪合,该处理器被配置为执行存储在该存储器中的指令,且该处理器被配置为用于执行如上述资源处理方法的第一至第五任一实施例,此处不再寶述。 Specifically, the memory for storing instructions; a processor, memory, and the meditation together, the processor is configured to execute instructions stored in the memory, and the processor is configured to execute the above method for processing resources any one of the first to fifth embodiment, no treasure here said.

[0120] 物理机21上都部署一个虚拟机监视器化ypervisor),在每一个虚拟机监视器上部署了一个代理模块(agent),通过该代理模块,将其物理机21的注册信息发送给云控制器22, W及每隔预定时间将该物理机21的当前性能发送给云控制器22。 [0120] physical machines are deployed on a virtual machine monitor 21 of ypervisor), on each virtual machine monitor deployed a proxy module (agent), through the agent module sends its physical machine to register information 21 cloud controller 22, W and every predetermined time sends the physical properties of the current 21 to 22 cloud controller. 其中,每个物理机11上包括多个虚拟资源。 Wherein each physical machine 11 includes a plurality of virtual resources.

[0121] 本领域普通技术人员可W理解:实现上述各方法实施例的全部或部分步骤可W通过程序指令相关的硬件来完成。 [0121] Those of ordinary skill in W can be understood: to achieve all or part of the steps to implement the above-described method can be W by a program instructing relevant hardware to complete. 前述的程序可W存储于一计算机可读取存储介质中。 W aforementioned program can be stored in a computer readable storage medium. 该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:R〇M、RAM、磁碟或者光盘等各种可W存储程序代码的介质。 When the program is executed, the steps comprising the above-described embodiments of the method; and the aforementioned storage medium comprising: R〇M, RAM, magnetic disk, or an optical disk at the W medium storing program code.

[0122] 最后应说明的是:W上各实施例仅用W说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可W对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而运些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。 [0122] Finally, it should be noted that: each of the embodiments described W W example only aspect of the present invention, but not intended to limit; although reference to the foregoing embodiments of the present invention has been described in detail, those skilled in the art it should be understood: it can still be W the foregoing technical solution embodiments described modifications, or in which part or all of the technical features equivalent replacements; and shipped some modifications or replacements do not make the essence of corresponding technical solutions depart from the present invention the scope of the technical solutions of the embodiments.

Patent Citations
Cited PatentFiling datePublication dateApplicantTitle
CN1547128A *10 Dec 200317 Nov 2004中国科学院计算技术研究所Partition lease method for cluster system resource management
CN102457507A *29 Oct 201016 May 2012中兴通讯股份有限公司Secure sharing method, device and system for cloud computing resources
US6466980 *17 Jun 199915 Oct 2002International Business Machines CorporationSystem and method for capacity shaping in an internet environment
Classifications
International ClassificationH04L29/12, H04L29/08
Legal Events
DateCodeEventDescription
15 Jan 2014C06Publication
19 Feb 2014C10Entry into substantive examination
28 Sep 2016C14Grant of patent or utility model