A tenant management method, device, controller and storage medium

By allocating computing resources in the controller and creating VXLAN, it solves the complex problems of large-scale tenant traffic control and ACL rule configuration, achieves efficient tenant isolation and resource management, and supports multi-tenant identification capabilities.

CN118400339BActive Publication Date: 2024-09-20NEW H3C TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410851674.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-09-20
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively support traffic control for large-scale tenants, and ACL rule configuration is cumbersome and complex, unable to meet tenant isolation requirements for high-performance computing resources.

Method used

By receiving resource application requests from tenants in the controller, allocating computing resource units, and creating an extensible virtual local area network (VXLAN) within the preset network of each device, isolation between tenants is achieved and rule configuration is simplified.

Benefits of technology

It implements traffic control support for large-scale tenants, simplifies tenant isolation rule configuration, supports the identification capability of up to 16M tenants, and improves the efficiency of dynamic application and release of computing resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118400339B
    Figure CN118400339B
Patent Text Reader

Abstract

The embodiment of the present application provides a tenant management method, device, controller and storage medium, which relates to the field of artificial intelligence technology and is applied to a controller. The method includes: receiving a resource application request from a tenant, the resource application request indicating that the number of requested computing resource units is a first number; allocating a first number of computing resource units to the tenant, at least two computing resource units in the first number of computing resource units are connected to the same device; creating a VXLAN for the tenant to connect the first number of computing resource units in a preset network corresponding to each device connected to the first number of computing resource units. Applying the technical solution provided in the embodiment of the present application can support traffic control for large-scale tenants and simplify the configuration of tenant isolation rules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a tenant management method, device, controller and storage medium. Background Art

[0002] With the rapid development of artificial intelligence (AI) technology, the demand for AI computing power in various industries is growing, and the leasing of computing resource units such as graphics processing unit (GPU) computing power, parameter network card, storage network card, etc. has become an urgent need. For providers of computing power services using remote direct memory access over converged Ethernet (RoCE) networks, supporting tenant division of computing power resources has become an urgent problem to be solved.

[0003] Currently, users use access control lists (ACLs) to control traffic and achieve tenant isolation. However, the ACL specifications of devices are limited, which makes the ACL rules of devices unable to support traffic control for large-scale tenants. In addition, users need to configure the ACL rules corresponding to each computing resource unit one by one, which makes the ACL rule configuration more cumbersome and complicated. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a tenant management method, device, controller and storage medium to support traffic control for large-scale tenants and simplify the rule configuration for tenant isolation. The specific technical solution is as follows:

[0005] In a first aspect, an embodiment of the present application provides a tenant management method, which is applied to a controller, and the method includes:

[0006] Receive a resource application request from a tenant, where the resource application request indicates that the number of computing resource units requested is a first number;

[0007] Allocating the first number of computing resource units to the tenant, wherein at least two computing resource units in the first number of computing resource units are connected to the same device;

[0008] In a preset network corresponding to each device connected to the first number of computing resource units, an extensible virtual local area network (Virtual eXtensible Local Area Network, VXLAN) connected to the first number of computing resource units is created for the tenant.

[0009] In some embodiments, the step of allocating the first number of computing resource units to the tenant includes:

[0010] Determine a first device group from the multiple device groups, the number of available computing resource units connected to the first device group being greater than or equal to the first number;

[0011] The first number of available computing resource units connected to the first device group are allocated to the tenant.

[0012] In some embodiments, the method further comprises:

[0013] Determine a plurality of second device groups from the plurality of device groups, wherein the number of available computing resource units connected to the plurality of second device groups is greater than or equal to the first number;

[0014] The first number of available computing resource units connected to the plurality of second device groups are allocated to the tenant.

[0015] In some embodiments, the resource application request includes a first number and a second number of requesting hosts; the number of available computing resource units included in the second number of hosts connected to the first device group is greater than or equal to the first number;

[0016] The step of allocating the first number of available computing resource units connected to the first device group to the tenant includes:

[0017] The first number of available computing resource units included in the second number of hosts connected to the first device group are allocated to the tenant.

[0018] In some embodiments, the step of allocating the first number of computing resource units to the tenant includes:

[0019] Determining, according to the resource application request, a second number of requesting hosts corresponding to the first number;

[0020] Determine a third device group from the multiple device groups, the number of available hosts connected to the third device group that are not occupied by tenants is greater than or equal to a second number, and the second number of available hosts includes the first number of computing resource units;

[0021] The second number of available hosts connected to the third device group is allocated to the tenant.

[0022] In some embodiments, the method further comprises:

[0023] If the third device group does not exist in the multiple device groups, determine multiple fourth device groups from the multiple device groups, and the number of available hosts not occupied by tenants connected to the multiple fourth device groups is greater than or equal to the second number;

[0024] The second number of available hosts connected to the plurality of fourth device groups are allocated to the tenant.

[0025] In some embodiments, the method further comprises:

[0026] If there is no third device group among the multiple device groups, and there are no multiple fourth device groups, determining a first device group from the multiple device groups, the number of available computing resource units connected to the first device group being greater than or equal to the first number;

[0027] The first number of available computing resource units connected to the first device group are allocated to the tenant.

[0028] In some embodiments, the step of determining, according to the resource application request, a second number of requesting hosts corresponding to the first number includes:

[0029] When the resource application request includes the first number, calculating the divisor of the first number and a preset number to obtain a second number of requesting hosts, where the preset number is the number of computing resource units included in a preset single host; or

[0030] When the resource application request includes a second number of requesting hosts, extracting the second number from the resource application request as the second number of requesting hosts corresponding to the first number; or

[0031] When the resource application request includes a second number of requested hosts and a target host type, the second number is extracted from the resource application request as the second number of requested hosts corresponding to the first number, and the target host type of the requested host is extracted; the number of available hosts of the target host type not occupied by tenants connected to the third device group is greater than or equal to the second number.

[0032] In some embodiments, the multiple devices included in the multiple device groups are connected via a VXLAN tunnel;

[0033] The step of creating a VXLAN connected to the first number of computing resource units for the tenant in a preset network corresponding to each device connected to the first number of computing resource units includes:

[0034] In the preset network corresponding to each device connected to the first number of computing resource units, a VXLAN belonging to each device, a VXLAN gateway connecting the computing resource units connected to each device, and a virtual router connecting the VXLANs belonging to every two devices are created for the tenant, and a mapping relationship between the virtual local area network (VLAN) VLAN to which the first number of computing resource units belong and the VXLAN is configured.

[0035] In some embodiments, the address of the VXLAN gateway corresponding to each device is a preset address in the network segment of the preset network corresponding to the device.

[0036] In a second aspect, an embodiment of the present application provides a tenant management device, which is applied to a controller, and the device includes:

[0037] A receiving module, configured to receive a resource application request from a tenant, wherein the resource application request indicates that the number of computing resource units requested is a first number;

[0038] an allocation module, configured to allocate the first number of computing resource units to the tenant, wherein at least two computing resource units in the first number of computing resource units are connected to the same device;

[0039] A creation module is used to create a VXLAN connecting the first number of computing resource units for the tenant within a preset network corresponding to each device connected to the first number of computing resource units.

[0040] In some embodiments, the allocation module is specifically used to:

[0041] Determine a first device group from the multiple device groups, the number of available computing resource units connected to the first device group being greater than or equal to the first number;

[0042] The first number of available computing resource units connected to the first device group are allocated to the tenant.

[0043] In some embodiments, the allocation module is further configured to:

[0044] Determine a plurality of second device groups from the plurality of device groups, wherein the number of available computing resource units connected to the plurality of second device groups is greater than or equal to the first number;

[0045] The first number of available computing resource units connected to the plurality of second device groups are allocated to the tenant.

[0046] In some embodiments, the resource application request includes a first number and a second number of requesting hosts; the number of available computing resource units included in the second number of hosts connected to the first device group is greater than or equal to the first number;

[0047] The allocation module is specifically used for:

[0048] The first number of available computing resource units included in the second number of hosts connected to the first device group are allocated to the tenant.

[0049] In some embodiments, the allocation module is specifically used to:

[0050] Determining, according to the resource application request, a second number of requesting hosts corresponding to the first number;

[0051] Determine a third device group from the multiple device groups, the number of available hosts connected to the third device group that are not occupied by tenants is greater than or equal to a second number, and the second number of available hosts includes the first number of computing resource units;

[0052] The second number of available hosts connected to the third device group is allocated to the tenant.

[0053] In some embodiments, the allocation module is further configured to:

[0054] If the third device group does not exist in the multiple device groups, determine multiple fourth device groups from the multiple device groups, and the number of available hosts not occupied by tenants connected to the multiple fourth device groups is greater than or equal to the second number;

[0055] The second number of available hosts connected to the plurality of fourth device groups are allocated to the tenant.

[0056] In some embodiments, the allocation module is further configured to:

[0057] If there is no third device group among the multiple device groups, and there are no multiple fourth device groups, determining a first device group from the multiple device groups, the number of available computing resource units connected to the first device group being greater than or equal to the first number;

[0058] The first number of available computing resource units connected to the first device group are allocated to the tenant.

[0059] In some embodiments, the allocation module is specifically used to:

[0060] When the resource application request includes a first quantity, calculating a divisor of the first quantity and a preset quantity to obtain a second quantity of requesting hosts, wherein the preset quantity is a preset number of computing resource units included in a single host; or

[0061] When the resource application request includes a second number of requesting hosts, extracting the second number from the resource application request as the second number of requesting hosts corresponding to the first number; or

[0062] When the resource application request includes a second number of requested hosts and a target host type, the second number is extracted from the resource application request as the second number of requested hosts corresponding to the first number, and the target host type of the requested host is extracted; the number of available hosts of the target host type not occupied by tenants connected to the third device group is greater than or equal to the second number.

[0063] In some embodiments, the multiple devices included in the multiple device groups are connected via a VXLAN tunnel;

[0064] The creation module is specifically used for:

[0065] In the preset network corresponding to each device connected to the first number of computing resource units, a VXLAN belonging to each device, a VXLAN gateway connecting the computing resource units connected to each device, and a virtual router connecting the VXLANs belonging to every two devices are created for the tenant, and a mapping relationship between the VLANs belonging to the first number of computing resource units and the VXLAN is configured.

[0066] In some embodiments, the address of the VXLAN gateway corresponding to each device is a preset address in the network segment of the preset network corresponding to the device.

[0067] In a third aspect, an embodiment of the present application provides a controller comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method described in the first aspect above.

[0068] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0069] In another embodiment provided in the present application, a computer program product comprising instructions is also provided, which, when executed on a computer, enables the computer to execute the method described in the first aspect above.

[0070] Beneficial effects of the embodiments of the present application:

[0071] In the technical solution provided in the embodiment of the present application, a network is pre-planned for each device, that is, the preset network corresponding to the device. When a tenant applies for resources, after the controller allocates a computing resource unit to the tenant, a VXLAN connected to the computing resource unit is created for the tenant according to the preset network corresponding to the device connected to the computing resource unit, thereby avoiding the interconnection between the computing resource unit outside the connected VXLAN and the computing resource unit within the connected VXLAN, thereby achieving tenant isolation. In addition, the number of VXLANs reaches 16M, which enables the technical solution provided in the embodiment of the present application to achieve the identification capability of up to 16M tenants, and supports the flow control of large-scale tenants.

[0072] In addition, in an embodiment of the present application, the network corresponding to each device is pre-planned. When the devices connected to at least two computing resource units are the same, the controller only needs to create a VXLAN for the at least two computing resource units once, without having to create a VXLAN for each computing resource unit separately, thereby simplifying the configuration of tenant isolation rules.

[0073] Of course, implementing any product or method of the present application does not necessarily require achieving all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0075] Figure 1 A schematic diagram of autonomous distributed data center networking;

[0076] Figure 2 A schematic diagram of a first process flow of a tenant management method provided in an embodiment of the present application;

[0077] Figure 3a A first schematic diagram of a controller user interface provided in an embodiment of the present application;

[0078] Figure 3b A second schematic diagram of a controller user interface provided in an embodiment of the present application;

[0079] Figure 3c A third schematic diagram of a controller user interface provided in an embodiment of the present application;

[0080] Figure 3d A fourth schematic diagram of a controller user interface provided in an embodiment of the present application;

[0081] Figure 3e A fifth schematic diagram of a controller user interface provided in an embodiment of the present application;

[0082] Figure 3f A sixth schematic diagram of a controller user interface provided in an embodiment of the present application;

[0083] Figure 4 A schematic diagram of a device group provided in an embodiment of the present application;

[0084] Figure 5 A second flow chart of the tenant management method provided in the embodiment of the present application;

[0085] Figure 6 A first schematic diagram of a connection between a host and a device group provided in an embodiment of the present application;

[0086] Figure 7a A first schematic diagram of host allocation provided in an embodiment of the present application;

[0087] Figure 7b A second schematic diagram of host allocation provided in an embodiment of the present application;

[0088] Figure 8 A third flow chart of the tenant management method provided in the embodiment of the present application;

[0089] Fig. 9 A second schematic diagram of the connection between a host and a device group provided in an embodiment of the present application;

[0090] Fig.10 A fourth flow chart of the tenant management method provided in the embodiment of the present application;

[0091] Fig.11 A schematic diagram of the structure of a tenant management device provided in an embodiment of the present application;

[0092] Fig.12 A schematic diagram of the structure of a controller provided in an embodiment of the present application. DETAILED DESCRIPTION

[0093] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.

[0094] Autonomic Distributed Center (ADDC) is a network that uses RoCE network to provide computing services, such as Figure 1As shown. ADDC includes leaf devices and spine devices. Each leaf device is connected to the spine device to achieve intercommunication between leaf devices and form ADDC. The host accesses ADDC through the leaf device. Taking the computing resource unit as GPU as an example, a host can include multiple GPUs. The number of GPUs included in hosts of different host types is different. The number of GPUs included in the host can be configured according to actual needs. For example, a host can include 2, 4, 8 or 16 GPUs, corresponding to different host types.

[0095] exist Figure 1 In the network shown, users configure ACL rules corresponding to each tenant on the Leaf device, and then the Leaf device controls the traffic of each tenant through the ACL rules to achieve tenant isolation. However, the ACL specifications of the device are limited, which makes the ACL rules of the Leaf device unable to support the traffic control of large-scale tenants. In addition, users need to configure the ACL rules corresponding to each GPU one by one, which makes the ACL rule configuration more cumbersome and complicated.

[0096] To solve the above problems, the present application provides a tenant management method, which can be applied to a controller, such as Figure 2 As shown, the method comprises the following steps:

[0097] Step S21, receiving a resource application request from a tenant, where the resource application request indicates that the number of computing resource units requested is a first number;

[0098] Step S22, allocating a first number of computing resource units to the tenant, wherein at least two computing resource units in the first number of computing resource units are connected to the same device;

[0099] Step S23, within the preset network corresponding to each device connected to the first number of computing resource units, create a VXLAN connecting the first number of computing resource units for the tenant.

[0100] In the technical solution provided in the embodiment of the present application, a network is pre-planned for each device, that is, the preset network corresponding to the device. When a tenant applies for resources, after the controller allocates a computing resource unit to the tenant, a VXLAN connected to the computing resource unit is created for the tenant according to the preset network corresponding to the device connected to the computing resource unit, thereby avoiding the interconnection between the computing resource unit outside the connected VXLAN and the computing resource unit within the connected VXLAN, thereby achieving tenant isolation. In addition, the number of VXLANs reaches 16M, which enables the technical solution provided in the embodiment of the present application to achieve the identification capability of up to 16M tenants, and supports the flow control of large-scale tenants.

[0101] In addition, in an embodiment of the present application, the network corresponding to each device is pre-planned. When the devices connected to at least two computing resource units are the same, the controller only needs to create a VXLAN for the at least two computing resource units once, without having to create a VXLAN for each computing resource unit separately, thereby simplifying the configuration of tenant isolation rules.

[0102] In the above step S21, the resource application request is a request for requesting the controller to allocate a computing resource unit, and the computing resource unit is a unit that provides computing services, such as a GPU, a network card, a memory, a central processing unit (CPU), etc.

[0103] In the embodiment of the present application, the first quantity may be information carried by the resource application request, or may be information calculated based on the information carried by the resource application request. For example, the number of requesting hosts carried by the resource application request is the second quantity; at this time, the number of computing resource units (i.e., the preset number) included in a single host of the preset default host type is used for calculation, and the controller calculates the product of the second quantity and the preset quantity to obtain the first quantity. The preset number may be 4, 8, or 16, etc., and is not limited to this.

[0104] Accordingly, the user can directly input the first number of requested computing resource units, or the second number of requested hosts, or the first number of requested computing resource units and the second number of requested hosts, or the second number of requested hosts and the host type of the requested hosts (i.e., the target host type), and there is no limitation on this.

[0105] Based on the user input, the controller can obtain the tenant's resource application request in any of the following ways:

[0106] Method 1: The user uses a command line to input a resource application request to the controller. For example, the user directly inputs a command line indicating a resource application request to the controller; or the user inputs a command line indicating a resource application request on another device, and the other device sends the command line indicating a resource application request to the controller.

[0107] The command line may be expressed as: allocate 16 computing resource units to tenant A. The command line may also be expressed in other ways, as long as the command line can indicate the number of computing resource units, and there is no limitation on this.

[0108] In method 2, the user inputs a resource application request to the controller based on the user interface.

[0109] In one example, the controller has a display screen, and the controller displays a user interface on the display screen. The user inputs information on the user interface displayed by the controller, and then the controller generates a resource application request based on the user input information.

[0110] For example, the controller displays the following on the display: Figure 3a~Figure 3c The user interface shown in the figure, the user enters the number of computing resource units and / or the number of hosts according to the information displayed on the user interface, such as the user in Figure 3a In the user interface shown, the number of computing resource units entered is 16. Figure 3b In the user interface shown, enter the number of hosts as 2. Figure 3c In the user interface shown in FIG. 1 , the number of hosts entered is 2 and the number of computing resource units is 8. For another example, the controller displays the following on the display screen: Figure 3d The user interface shown in the figure, the user enters the number of hosts and the target host type according to the information displayed on the user interface. Figure 3d The number of hosts input in the user interface is 2, and the target host type (ie, the number of computing resource units included in the corresponding host) is 4. The controller generates a resource application request for the corresponding tenant based on the information input by the user.

[0111] In the embodiment of the present application, the target host type may be one or more. When it is necessary to request computing resource units on hosts of multiple target host types, a button for adding target host types may be set on the user interface, such as Figure 3e The “+” button in the user interface shown in the figure can be used to add target host types by clicking the “+” button. Figure 3f The user can continue to enter the number of hosts and the target host type according to the information displayed on the user interface. Figure 3f In the user interface shown, the number of hosts entered is 4, and the target host type is 2. In this way, the user can apply for computing resource units on multiple target host types, which improves the flexibility of computing resource unit allocation.

[0112] In another example, other devices such as applications (APP), cloud, and World Wide Web (Web) provide user interfaces, and users input information on the user interfaces provided by other devices, and then other devices generate resource application requests based on the user input information and send them to the controller; or other devices send the user input information to the controller, and then the controller generates resource application requests based on the received information. There is no limitation on the way the controller obtains the resource application request.

[0113] In the above step S22, a computing resource pool can be configured in ADDC, and the computing resource pool includes multiple hosts, and each host includes multiple computing resource units. Among them, the computing resource units not occupied by any tenant are available computing resource units, and the hosts including computing resource units not occupied by any tenant are available hosts. The hosts in the computing resource pool are connected to ADDC through devices (such as the above Leaf devices), wherein one computing resource unit of the host is connected to one device.

[0114] The controller obtains a first number of computing resource units to be requested based on the resource application request; obtains a corresponding first number of available computing resource units in the computing resource pool, and allocates the first number of computing resource units to the tenants.

[0115] For example, the resource application request indicates a first number of computing resource units to be acquired, but does not limit a second number of hosts to be acquired. The controller selects a first number of available computing resource units from the available computing resource units included in the computing resource pool, and allocates the first number of computing resource units to the tenant.

[0116] For another example, the resource application request indicates a first number of computing resource units to be acquired and a second number of hosts to be acquired. The controller selects a second number of hosts from the available hosts included in the computing resource pool, selects a first number of available computing resource units from the available computing resource units included in the second number of hosts, and allocates the first number of computing resource units to the tenant.

[0117] The specific method of allocating computing resource units can be set according to actual needs.

[0118] In the above step S23, the device connected to the computing resource unit represents the device that enables the computing resource unit to access ADDC, such as Figure 1 Leaf devices in. A network is pre-planned for each device, namely, the preset network corresponding to the device. For each device connected to the first number of computing resource units, a VXLAN is created in the preset network corresponding to the device, and the VXLAN is interconnected with the VXLANs on other devices connected to the first number of computing resource units, thereby achieving interconnection between the first number of computing resource units and completing isolation from computing resource units of other tenants, that is, realizing tenant isolation.

[0119] In some embodiments, to facilitate the management of the computing resource pool, the multiple devices included in the ADDC can be divided into multiple device groups, and the computing resource units in the computing resource pool are managed in device groups. Figure 4As shown in the device group, ADDC includes 16 device groups (Pods), each of which includes 8 Leaf devices. Each Leaf device corresponds to a preset network, such as Figure 4 In the example, the 8 Leaf devices in device group 1 correspond to the 8 networks 12.117.1.0 / 24 to 12.117.8.0 / 24, the 8 Leaf devices in device group 2 correspond to the 8 networks 12.117.9.0 / 24 to 12.117.16.0 / 24, the 8 Leaf devices in device group 3 correspond to the 8 networks 12.117.17.0 / 24 to 12.117.24.0 / 24, and so on. The number of devices in a device group can be set according to actual needs. Figure 4 The following is only an example of 8 devices in one device group, which is not limiting.

[0120] By using device groups, the controller can manage the computing resource pool more conveniently. For example, it can give priority to allocating computing resource units connected to the same device group.

[0121] Based on the device group, the controller can allocate computing resource units to tenants on a host basis, or on a computing resource unit basis.

[0122] When allocating computing resource units to tenants based on hosts, such as Figure 5 As shown, the tenant management method provided in an embodiment of the present application may include the following steps.

[0123] Step S51, receiving a resource application request from a tenant, wherein the resource application request indicates that the number of computing resource units requested is a first number. This is the same as the above step S21, and will not be described again here.

[0124] Step S52: Determine a second number of requesting hosts corresponding to the first number according to the resource application request.

[0125] Step S53, determining whether there is a device group in the plurality of device groups whose number of available hosts connected to the devices that are not occupied by tenants is greater than or equal to the second number. If so, executing step S54; if not, executing step S56.

[0126] Step S54, determining a third device group from multiple device groups, the number of available hosts connected to the third device group that are not occupied by tenants is greater than or equal to a second number, and the second number of hosts includes a first number of computing resource units.

[0127] Step S55: Allocate a second number of available hosts connected to the third device group and not occupied by tenants to the tenants.

[0128] Step S56: determining a plurality of fourth device groups from the plurality of device groups, wherein the number of available hosts not occupied by tenants connected to the plurality of fourth device groups is greater than or equal to the second number.

[0129] Step S57: allocating a second number of available hosts not occupied by tenants and connected to the plurality of fourth device groups to the tenants.

[0130] Step S58, in the preset network corresponding to each device connected to the first number of computing resource units, a VXLAN connected to the first number of computing resource units is created for the tenant. This is the same as the above step S23 and will not be repeated here.

[0131] In the technical solution provided in the embodiment of the present application, the controller preferentially allocates the computing resource units connected to a device group to each tenant, which facilitates the management of the computing resource units of the tenant. In addition, the user can set other device groups to an offline state, or not connect the host / computing resource unit to other device groups, thereby saving equipment costs. In addition, the controller preferentially allocates the computing resource units connected to a device group to each tenant. When communication is abnormal, the problem can be located by checking a device group, which improves the efficiency of problem location.

[0132] In addition, as tenant resource allocation is released, the host allocation status changes at any time. The controller can allocate computing resource units connected by multiple device groups to tenants, ensuring the allocation of tenant resources.

[0133] In the above step S52, the controller can determine the second number of requesting hosts corresponding to the first number based on the information carried in the resource application request or information calculated based on the information carried in the resource application request. Depending on the different information carried in the resource application request, it can be specifically divided into the following three situations.

[0134] Case 1: the resource application request includes a first quantity.

[0135] In the embodiment of the present application, the controller extracts the first quantity from the resource application request, calculates the divisor of the first quantity and the preset quantity, and obtains the second quantity of the requesting host. Figure 3a Taking the input of the number of computing power resource units as 16 in the user interface shown as an example, the controller generates a resource application request including the number of computing power resource units (i.e., the first number) based on the information input by the user, and extracts the first number as 16 from the resource application request; when the host of the default host type includes 8 GPUs, i.e., the preset number is 8, the controller calculates 16 / 8=2, and obtains the second number of the requested host as 2.

[0136] Case 2: the resource application request includes a second number of requesting hosts.

[0137] In the embodiment of the present application, the controller extracts the second number from the resource application request as the second number of requesting hosts corresponding to the first number. Figure 3b Taking the input of the host quantity 2 in the user interface as an example, the controller generates a resource application request including the host quantity (ie, the second quantity) based on the information input by the user, and extracts the second quantity 2 from the resource application request.

[0138] Case 3: The resource application request includes the second number of requesting hosts and the target host type.

[0139] In the embodiment of the present application, the controller extracts the second number from the resource application request as the second number of requesting hosts corresponding to the first number, and extracts the target host type of the requesting host. Figure 3d Taking the input of the host number as 2 and the target host type as 4 in the user interface as an example, the controller generates a resource application request including the host number (i.e., the second number) and the target host type based on the information input by the user, and extracts the second number as 2 and the target host type as 4 from the resource application request, and determines that the number of computing resource units included in the searched host is 4.

[0140] In the above step S53, the host connected to the device group means that the computing resource units included in the host are all connected to the devices included in the device group. Different computing resource units included in a host can be connected to different devices included in the device group, such as Figure 6 As shown in the figure, host 1 to host 4 include 8 GPUs, GPU1 to GPU8, respectively, and the device group includes 8 devices, Leaf1 to Leaf8. GPU1 included in host 1 to host 4 is connected to Leaf1, GPU2 included in host 1 to host 4 is connected to Leaf2, and so on. Here, one device corresponds to one communication track, such as Figure 6 Ens1~Ens8 in the figure, the computing resource units connected to the same device can be understood as using the same communication track for data transmission.

[0141] In order to facilitate the management of hosts connected to the device group, the number of computing resource units included in the host is the same as the number of devices included in the device group. Figure 6 As shown, a host includes 8 GPUs and a device group includes 8 devices.

[0142] In the embodiment of the present application, the available host not occupied by the tenant represents a host whose computing resource units are not occupied by the tenant. The first number is the product of the second number and the number of computing resource units included in the host.

[0143] After receiving the resource application request, the controller detects whether there is a device group in the multiple device groups whose number of available hosts not occupied by tenants is greater than or equal to the second number. If so, the controller executes step S54 to determine a device group, such as the third device group, from the multiple device groups whose number of available hosts not occupied by tenants is greater than or equal to the second number. If not, the controller executes step S56 to determine multiple device groups, such as multiple fourth device groups, from the multiple device groups whose number of available hosts not occupied by tenants is greater than or equal to the second number. In order to facilitate the management of computing resource units, the number of fourth device groups should be as small as possible.

[0144] In the embodiment of the present application, when the resource application request includes the second number of requesting hosts and the target host type (i.e., the above-mentioned situation 3), the number of available hosts of the target host type not occupied by the tenant connected to the third device group is greater than or equal to the second number, that is, after receiving the resource application request, the controller detects whether there is a device group in the multiple device groups whose number of available hosts of the target host type not occupied by the tenant connected is greater than or equal to the second number. If so, the controller executes step S54, and determines from the multiple device groups, a device group whose number of available hosts of the target host type not occupied by the tenant connected is greater than or equal to the second number, such as the third device group, and allocates the second number of available hosts not occupied by the tenant connected to the third device group to the tenant. If not, the controller executes step S56, and determines from the multiple device groups, multiple device groups whose number of available hosts of the target host type not occupied by the tenant connected is greater than or equal to the second number, such as multiple fourth device groups, and allocates the second number of available hosts not occupied by the tenant connected to the multiple fourth device groups to the tenant.

[0145] In some embodiments, the controller searches for a preset number of device groups from multiple device groups, the total number of available hosts that are not occupied by tenants is greater than or equal to the second number; if found, the preset number of device groups found is used as the third device group or the fourth device group, and then step S55 or step S57 is executed; if not found, the preset number is accumulated plus 1, and the controller searches for a preset number of device groups from multiple device groups, the total number of available hosts that are not occupied by tenants is greater than or equal to the second number, until the preset number of device groups, the total number of available hosts that are not occupied by tenants is greater than or equal to the second number, is found. The initial value of the preset number is 1.

[0146] For example, the controller searches for a device group from multiple device groups, the number of available hosts that are not occupied by tenants being connected is greater than or equal to a second number; if found, the found device group is used as the third device group; if not found, the controller searches for two device groups from multiple device groups, the total number of available hosts that are not occupied by tenants being connected is greater than or equal to the second number; if found, the two found device groups are used as the fourth device group; if not found, the controller searches for three device groups from multiple device groups, the total number of available hosts that are not occupied by tenants being connected is greater than or equal to the second number; if found, the three found device groups are used as the fourth device group; if not found, the controller searches for four device groups from multiple device groups, the total number of available hosts that are not occupied by tenants being connected is greater than or equal to the second number, and so on, until multiple device groups are found, the total number of available hosts that are not occupied by tenants being connected is greater than or equal to the second number.

[0147] When the third device group is determined, the controller may allocate a second number of available hosts not occupied by tenants and connected to the third device group to the tenants, that is, allocate all computing resource units included in the second number of available hosts not occupied by tenants to the tenants.

[0148] For example, Figure 7a The host allocation diagram is shown. Tenant A requests 2 hosts, and tenant B requests 2 hosts. Device group 1 includes 8 Leaf devices, namely Leaf1 to Leaf8. Device group 1 is connected to 4 hosts, namely host 1 to host 4. These 4 hosts are all available hosts that are not occupied by tenants. When obtaining the resource application request of tenant A, 2<4, that is, the number of hosts requested by tenant A is less than the number of available hosts connected to device group 1 that are not occupied by tenants. The controller can allocate the two available hosts connected to device group 1 that are not occupied by tenants to tenant A, as shown in Figure 7a In the example, host 1 and host 2 connected to device group 1 are allocated to tenant A, that is, the 8 GPUs included in host 1 and host 2 are allocated to tenant A. At this time, host 1 and host 2 are occupied by tenant A and are available hosts that are not occupied by tenants.

[0149] When obtaining the resource application request of tenant B, 2=4-2, that is, the number of hosts requested by tenant B is equal to the available hosts connected to device group 1 that are not occupied by tenants. The controller can allocate the two available hosts connected to device group 1 that are not occupied by tenants to tenant B, such as Figure 7a In the example, host 3 and host 4 connected to device group 1 are allocated to tenant B, that is, the 8 GPUs included in host 3 and host 4 are allocated to tenant B.

[0150] When multiple fourth device groups are determined, the controller can allocate a second number of available hosts not occupied by tenants connected to the multiple fourth device groups to the tenants, that is, allocate all computing resource units included in the second number of available hosts not occupied by tenants to the tenants.

[0151] For example, Figure 7b The host allocation diagram is shown. Tenant A requests 2 hosts, tenant B requests 2 hosts, and tenant C requests 4 hosts. Device group 1 and device group 2 include 8 Leaf devices, namely Leaf1~Leaf16. Device group 1 is connected to 4 hosts, namely host 1~host 4, and device group 2 is connected to 4 hosts, namely host 5~host 8. These 8 hosts are all available hosts not occupied by tenants. When the resource application request of tenant A is obtained, 2<4, that is, the number of hosts requested by tenant A is less than the number of available hosts not occupied by tenants connected to device group 1 or device group 2. The controller can allocate the two available hosts not occupied by tenants connected to device group 1 to tenant A, as shown in Figure 7b In the example, host 1 and host 2 connected to device group 1 are allocated to tenant A, that is, the 8 GPUs included in host 1 and host 2 are allocated to tenant A. At this time, host 1 and host 2 are occupied by tenant A and are available hosts that are not occupied by tenants.

[0152] When obtaining the resource application request of tenant B, 2=4-2, 2<4, that is, the number of hosts requested by tenant B is equal to the available hosts connected to device group 1 that are not occupied by tenants, and the number of hosts requested by tenant B is equal to the available hosts connected to device group 2 that are not occupied by tenants. The controller can allocate the two available hosts connected to device group 1 that are not occupied by tenants to tenant B, or allocate the two available hosts connected to device group 2 that are not occupied by tenants to tenant B, such as Figure 7b In the example, host 5 to host 6 connected to device group 2 are allocated to tenant B, that is, the 8 GPUs included in host 5 to host 6 are allocated to tenant B. At this time, host 5 to host 6 are occupied by tenant B and are available hosts that are not occupied by tenants.

[0153] When obtaining the resource application request of tenant C, both device group 1 and device group 2 have only 2 hosts that are not occupied by tenants. 2<4, that is, the number of hosts requested by tenant C is greater than the available hosts that are not occupied by tenants connected to device group 1 or device group 2. The controller can allocate the two available hosts that are not occupied by tenants connected to device group 1 to tenant C, and allocate the two available hosts that are not occupied by tenants connected to device group 2 to tenant C, such as Figure 7bIn the example, host 3 to host 4 connected to device group 1 are assigned to tenant C, and host 7 to host 8 connected to device group 2 are assigned to tenant C. That is, the 8 GPUs included in host 3 to host 4 are assigned to tenant C, and the 8 GPUs included in host 7 to host 8 are assigned to tenant C.

[0154] When allocating computing resource units to tenants in units of computing resource units, such as Figure 8 As shown, the tenant management method provided in an embodiment of the present application may include the following steps.

[0155] Step S81, receiving a resource application request from a tenant, the resource application request indicating that the number of computing resource units requested is a first number. This is the same as the above step S21, and will not be repeated here.

[0156] Step S82, determining whether there is a device group among the multiple device groups whose number of connected available computing resource units is greater than or equal to the first number. If so, executing step S83; if not, executing step S85.

[0157] Step S83: determine a first device group from multiple device groups, and the number of available computing resource units connected to the first device group is greater than or equal to a first number.

[0158] Step S84: Allocate a first number of available computing resource units connected to the first device group to the tenant.

[0159] Step S85, determining multiple second device groups from the multiple device groups, wherein the number of available computing resource units connected to the multiple second device groups is greater than or equal to the first number.

[0160] Step S86: Allocate a first number of available computing resource units connected to the plurality of second device groups to the tenant.

[0161] Step S87, in the preset network corresponding to each device connected to the first number of computing resource units, a VXLAN connected to the first number of computing resource units is created for the tenant. This is the same as the above step S23 and will not be repeated here.

[0162] In the technical solution provided in the embodiment of the present application, the controller preferentially allocates the computing resource units connected to a device group to each tenant, which facilitates the management of the computing resource units of the tenant. In addition, the user can set other device groups to an offline state, or not connect the host / computing resource unit to other device groups, thereby saving equipment costs. In addition, the controller preferentially allocates the computing resource units connected to a device group to each tenant. When communication is abnormal, the problem can be located by checking a device group, which improves the efficiency of problem location.

[0163] In addition, as tenant resource allocation is released, the host allocation status changes at any time. The controller can allocate computing resource units connected by multiple device groups to tenants, ensuring the allocation of tenant resources.

[0164] In the above step S82, the first device group and the second device group are determined in units of computing resource units. In the embodiment of the present application, multiple computing resource units included in a host can be connected to multiple devices included in a device group, or can be connected to multiple devices included in multiple device groups. For example, Fig. 9 As shown, host 1 includes 8 GPUs, namely GPU1 to GPU8, device group 1 includes 8 devices, namely Leaf1 to Leaf8, and device group 2 includes 8 devices, namely Leaf9 to Leaf16. GPU1 to GPU4 included in host 1 are connected to Leaf5 to Leaf8, and GPU5 to GPU8 included in host 1 are connected to Leaf9 to Leaf12.

[0165] In the embodiment of the present application, after receiving the resource application request, the controller detects whether there is a device group in the multiple device groups whose number of connected available computing power resource units is greater than or equal to the first number. If so, the controller executes step S83 to determine a device group, such as the first device group, from the multiple device groups. If not, the controller executes step S85 to determine multiple device groups, such as multiple second device groups, from the multiple device groups whose number of connected available computing power resource units is greater than or equal to the first number. In order to facilitate the management of computing power resource units, the number of second device groups is as small as possible.

[0166] In some embodiments, the controller searches for a preset number of device groups whose total number of connected available computing power resource units is greater than or equal to the first number from multiple device groups; if found, the preset number of device groups found are used as the first device group or the second device group, and then step S84 or step S86 is executed; if not found, the preset number is accumulated plus 1, and the controller searches for a preset number of device groups whose total number of connected available computing power resource units is greater than or equal to the first number from multiple device groups again, until the preset number of device groups whose total number of connected available computing power resource units is greater than or equal to the first number is found. The initial value of the preset number is 1.

[0167] For example, the controller searches for a device group from multiple device groups whose total number of connected available computing power resource units is greater than or equal to a first number; if found, the found device group is used as the first device group; if not found, the controller searches for two device groups from multiple device groups whose total number of connected available computing power resource units is greater than or equal to the first number; if found, the two found device groups are used as the second device group; if not found, the controller searches for three device groups from multiple device groups whose total number of connected available computing power resource units is greater than or equal to the first number; if found, the three found device groups are used as the second device group; if not found, the controller searches for four device groups from multiple device groups whose total number of connected available computing power resource units is greater than or equal to the first number, and so on, until multiple device groups whose total number of connected available computing power resource units is greater than or equal to the first number are found.

[0168] When the first device group is determined, the controller may allocate the first number of available computing resource units connected to the first device group to the tenant. When multiple second device groups are determined, the controller may allocate the first number of available computing resource units connected to the multiple second device groups to the tenant.

[0169] In some embodiments, when the resource application request includes a first quantity and a second quantity of requesting hosts, the controller can allocate computing resource units to the tenant in units of computing resource units and hosts at the same time. In this case, the number of available computing resource units included in the second number of hosts connected to the first device group is greater than or equal to the first number; the above step S84 can be: allocating the first number of available computing resource units included in the second number of hosts connected to the first device group to the tenant.

[0170] Based on the resource application request, the controller obtains the first number of requested computing power resource units and the second number of requested hosts, and detects whether there is a device group in the multiple device groups whose number of connected available computing power resource units is greater than or equal to the first number and whose connected available hosts are greater than or equal to the second number. If so, the controller executes step S83, determines a device group, such as the first device group, from the multiple device groups, whose number of connected available computing power resource units is greater than or equal to the first number and whose connected available hosts are greater than or equal to the second number, and allocates the first number of available computing power resource units included in the second number of hosts connected to the first device group to the tenant. If not, the controller executes step S85, determines multiple device groups, such as multiple second device groups, from the multiple device groups, whose number of connected available computing power resource units is greater than or equal to the first number and whose connected available hosts are greater than or equal to the second number, and allocates the first number of available computing power resource units included in the second number of hosts connected to the multiple second device groups to the tenant.

[0171] Based on the user Figure 3cTaking the input of the number of hosts as 2 and the number of computing power resource units as 8 in the user interface shown as an example, the controller generates a resource application request including the number of hosts (i.e., the first number) and the number of computing power resource units (i.e., the second number) based on the information input by the user, and extracts the first number as 8 and the second number as 2 from the resource application request. The controller determines a device group from multiple device groups, in which the number of connected available computing power resource units is greater than or equal to 8 and the number of connected available hosts is greater than or equal to 2, and allocates the 8 available computing power resource units included in the 2 hosts connected to the device group to the tenant.

[0172] In an embodiment of the present application, the available host may be an available host that is not occupied by a tenant, that is, the computing power resource units included are not occupied by tenants; the available host may also be an available host that is partially not occupied by a tenant, that is, the computing power resource units included are partially occupied by tenants, and the remaining parts are not occupied by tenants, and there is no limitation on this.

[0173] In some embodiments, when allocating computing power resource units to tenants on a host basis, if there is no third device group among the multiple device groups and there are no multiple fourth device groups, the controller may allocate computing power resource units to the tenant on a computing power resource unit basis, that is, determine a first device group from the multiple device groups and allocate a first number of available computing power resource units connected to the first device group to the tenant.

[0174] In the embodiment of the present application, the controller may execute the above step S82 before determining the first device group, detect whether there is a device group in the multiple device groups whose number of connected available computing resource units is greater than or equal to the first number, and execute step S83 or step S85 according to the detection result. For details, see the above step S83 or step S85. Figure 8 The relevant description will not be repeated here.

[0175] In the embodiment of the present application, the controller may also use other methods to allocate computing resource units to tenants, which is not limited to this.

[0176] In some embodiments, multiple devices included in multiple device groups are connected via VXLAN tunnels. Fig.10 As shown, the above tenant management method may include the following steps.

[0177] Step S101, receiving a resource application request from a tenant, the resource application request indicating that the number of computing resource units requested is a first number. This is the same as the above step S21, and will not be repeated here.

[0178] Step S102, allocating a first number of computing resource units to the tenant, wherein at least two computing resource units in the first number of computing resource units are connected to the same device. This is the same as the above step S22 and will not be described in detail here.

[0179] Step S103, in the preset network corresponding to each device connected to the first number of computing resource units, creates a VXLAN belonging to each device for the tenant, a VXLAN gateway connecting the computing resource units connected to each device, and a virtual router connecting the VXLANs belonging to every two devices, and configures the mapping relationship between the VLANs belonging to the first number of computing resource units and the VXLANs.

[0180] In the embodiment of the present application, for each communication track (i.e., a device), the controller designs a VXLAN, and each VXLAN uses a virtual switch instance (Virtual Switch Instance, VSI) interface as the gateway of the VXLAN (such as the above-mentioned VXLAN gateway). Figure 4 In the preset network shown, one device group corresponds to 8 networks. Accordingly, one device group requires 8 VXLANs, 8 VSI interfaces, and 8 VXLAN gateways.

[0181] When allocating computing resources to a tenant, the controller determines the device group corresponding to the tenant, that is, divides multiple preset networks for the tenant, creates VXLAN, VXLAN gateway, and virtual router, and configures the mapping relationship between VLAN and VXLAN, wherein the VXLAN gateway and virtual router can be configured on the Leaf device or on the Spine device; VLAN can be configured on the computing resource unit, that is, the request message sent by the computing resource unit carries the VLAN identifier, and VLAN can be configured on the Leaf device, that is, the data message sent by the computing resource unit does not carry the VLAN identifier. After the Leaf device receives the data message sent by the computing resource unit, it marks the data message with a VLAN identifier based on the interface that receives the data message.

[0182] After creating a VXLAN gateway, computing resource units in the same VXLAN can communicate with each other. After creating a virtual router, computing resource units in different VXLANs of the same tenant can communicate with each other. After configuring the mapping relationship between VLAN and VXLAN, the data packets sent by the computing resource units of the tenant can be converted into VXLAN packets for transmission in VXLAN.

[0183] Still Figure 7a Take this as an example. Tenant A occupies host 1 and host 2. The controller can create VXLAN1 corresponding to Leaf1, and GPU1 included in host 1 and GPU1 included in host 2 are connected to VXLAN1 respectively; create VXLAN2 corresponding to Leaf2, and GPU2 included in host 1 and GPU2 included in host 2 are connected to VXLAN2 respectively, and so on.

[0184] The controller creates a VXLAN1 gateway on Leaf1, a VXLAN2 gateway on Leaf2, and so on. Taking the VXLAN1 gateway as an example, the VXLAN1 gateway can connect GPU1 included in host 1 and GPU1 included in host 2, such as forwarding data packets sent by GPU1 included in host 1 to GPU1 included in host 2, and forwarding data packets sent by GPU1 included in host 2 to GPU1 included in host 1.

[0185] The controller creates virtual router 1 corresponding to tenant A on the Spine device connected to Leaf1~Leaf8 at the upper layer. Virtual router 1 can connect to the VXLAN corresponding to tenant A to achieve traffic interconnection between the GPUs included in tenant A, such as forwarding data packets sent by GPU1 included in host 1 to GPU2 included in host 2, and forwarding data packets sent by GPU2 included in host 2 to GPU1 included in host 1.

[0186] In addition, the controller configures a mapping relationship between VLAN and VXLAN on each interface of Leaf1~Leaf8 connecting each GPU included in host 1 and each GPU included in host 2, so as to convert data packets sent by each GPU included in host 1 and each GPU included in host 2 into VXLAN packets, and convert VXLAN packets into data packets and send them to the corresponding GPUs.

[0187] Similarly, tenant B occupies host 3 and host 4. The controller can create VXLAN11 corresponding to Leaf1, and GPU1 included in host 3 and GPU1 included in host 4 are respectively connected to VXLAN11; create VXLAN12 corresponding to Leaf2, and GPU2 included in host 3 and GPU2 included in host 4 are respectively connected to VXLAN12, and so on.

[0188] The controller creates a VXLAN11 gateway on Leaf1, a VXLAN12 gateway on Leaf2, and so on. Taking the VXLAN11 gateway as an example, the VXLAN11 gateway can connect GPU1 included in host 3 and GPU1 included in host 4.

[0189] The controller creates virtual router 2 corresponding to tenant B on the spine device connected to Leaf1~Leaf8. Virtual router 2 can connect to the VXLAN corresponding to tenant B to achieve traffic interconnection between the GPUs included in tenant B.

[0190] In addition, the controller configures a mapping relationship between VLAN and VXLAN on each interface of Leaf1~Leaf8 connecting each GPU included in host 3 and each GPU included in host 4, so as to convert data packets sent by each GPU included in host 3 and each GPU included in host 4 into VXLAN packets, and convert VXLAN packets into data packets and send them to the corresponding GPUs.

[0191] In an embodiment of the present application, when creating a VXLAN, the controller can also allocate an Internet Protocol (IP) address to the computing resource unit connected to the device within the preset network corresponding to each device. Here, different computing resource units of the same tenant connected to a device have different IP addresses, and different computing resource units of different tenants connected to a device can have the same or different IP addresses. In this way, when IP address resources are limited, the specifications of tenants can be further expanded.

[0192] Still Figure 7a Take this as an example. In device group 1, the preset network corresponding to Leaf1 is 12.117.1.0 / 24, the preset network corresponding to Leaf2 is 12.117.2.0 / 24, ..., and the preset network corresponding to Leaf8 is 12.117.8.0 / 24. The controller assigns an IP address of 12.117.1.1 to GPU1 included in host 1 corresponding to tenant A, and an IP address of 12.117.1.2 to GPU1 included in host 2 corresponding to tenant A; an IP address of 12.117.1.1 to GPU1 included in host 3 corresponding to tenant B, and an IP address of 12.117.1.2 to GPU1 included in host 4 corresponding to tenant B. Figure 7a The first half of the IP address of each GPU (i.e. 12.117) is omitted as x. The IP addresses of other GPUs can be found in Figure 7a As shown, no further description is given here.

[0193] Still Figure 7b For example, in device group 1, the preset network corresponding to Leaf1 is 12.117.1.0 / 24, the preset network corresponding to Leaf2 is 12.117.2.0 / 24, ..., the preset network corresponding to Leaf8 is 12.117.8.0 / 24. In device group 2, the preset network corresponding to Leaf1 is 12.117.9.0 / 24, the preset network corresponding to Leaf2 is 12.117.10.0 / 24, ..., the preset network corresponding to Leaf8 is 12.117.16.0 / 24, Figure 7bIn the example, the first half of the IP address of each GPU (i.e. 12.117) is omitted as x. The IP addresses assigned by the controller to each GPU corresponding to tenants A to C can be found in Figure 7b As shown, no further description is given here.

[0194] In the embodiment of the present application, in order to facilitate the management of tenants, the address of the VXLAN gateway corresponding to each device is a preset address in the network segment of the preset network corresponding to the device. Figure 7a and Figure 7b As shown in the figure, the address of the VXLAN gateway is the maximum address in the network segment of the preset network corresponding to each Leaf device, such as Figure 7a In the figure, 12.117.1.254 is the IP address of the VXLAN gateway on Leaf1. The device group includes 8 Leaf devices, 8 VSI interfaces, and 8 VXLAN gateways. The IP addresses of the VXLAN gateways are 12.117.1.254 to 12.117.8.254. The IP addresses of the VXLAN gateways corresponding to different tenants can be the same, because the corresponding VXLANs are different, so there will be no address conflict even if the IP addresses of the VXLAN gateways are the same.

[0195] In the technical solution provided in the embodiment of the present application, the controller uses VXLAN technology to divide and isolate computing resources in the RoCE network. While avoiding the pressure on device ACL rule resources under the VLAN network, it also utilizes VXLAN's fast and complete tenant resource management method, greatly improving the efficiency of ADDC in dynamically applying for and releasing computing resources at the tenant granularity.

[0196] Corresponding to the above tenant management method, the present application embodiment also provides a tenant management device, such as Fig.11 , applied to a controller, the above device comprises:

[0197] A receiving module 111 is configured to receive a resource application request from a tenant, where the resource application request indicates that the number of computing resource units requested is a first number;

[0198] An allocation module 112 is configured to allocate a first number of computing resource units to the tenant, wherein at least two computing resource units in the first number of computing resource units are connected to the same device;

[0199] The creation module 113 is used to create a VXLAN connecting the first number of computing resource units for the tenant in a preset network corresponding to each device connected to the first number of computing resource units.

[0200] In the technical solution provided in the embodiment of the present application, a network is pre-planned for each device, that is, the preset network corresponding to the device. When a tenant applies for resources, after the controller allocates a computing resource unit to the tenant, a VXLAN connected to the computing resource unit is created for the tenant according to the preset network corresponding to the device connected to the computing resource unit, thereby avoiding the interconnection between the computing resource unit outside the connected VXLAN and the computing resource unit within the connected VXLAN, thereby achieving tenant isolation. In addition, the number of VXLANs reaches 16M, which enables the technical solution provided in the embodiment of the present application to achieve the identification capability of up to 16M tenants, and supports the flow control of large-scale tenants.

[0201] In addition, in an embodiment of the present application, the network corresponding to each device is pre-planned. When the devices connected to at least two computing resource units are the same, the controller only needs to create a VXLAN for the at least two computing resource units once, without having to create a VXLAN for each computing resource unit separately, thereby simplifying the configuration of tenant isolation rules.

[0202] In some embodiments, the allocation module 112 is specifically configured to:

[0203] Determine a first device group from the multiple device groups, the number of available computing resource units connected to the first device group being greater than or equal to a first number;

[0204] A first number of available computing resource units connected to the first device group are allocated to the tenant.

[0205] In some embodiments, the allocation module 112 is further configured to:

[0206] Determine a plurality of second device groups from the plurality of device groups, wherein the number of available computing resource units connected to the plurality of second device groups is greater than or equal to the first number;

[0207] A first number of available computing resource units connected to the plurality of second device groups are allocated to the tenant.

[0208] In some embodiments, the resource application request includes a first number and a second number of requesting hosts; the number of available computing resource units included in the second number of hosts connected to the first device group is greater than or equal to the first number;

[0209] The allocation module 112 is specifically used for:

[0210] A first number of available computing resource units included in a second number of hosts connected to the first device group are allocated to tenants.

[0211] In some embodiments, the allocation module 112 is specifically used to:

[0212] Determine, according to the resource application request, a second number of requesting hosts corresponding to the first number;

[0213] Determine a third device group from the multiple device groups, the number of available hosts connected to the third device group that are not occupied by tenants is greater than or equal to a second number, and the second number of available hosts includes the first number of computing resource units;

[0214] A second number of available hosts to which the third device group is connected are allocated to the tenant.

[0215] In some embodiments, the allocation module 112 is further configured to:

[0216] If the third device group does not exist in the multiple device groups, determine multiple fourth device groups from the multiple device groups, and the number of available hosts not occupied by the tenants connected to the multiple fourth device groups is greater than or equal to the second number;

[0217] A second number of available hosts to which the plurality of fourth device groups are connected are allocated to the tenant.

[0218] In some embodiments, the allocation module 112 is further configured to:

[0219] If the third device group does not exist among the multiple device groups, and there are no multiple fourth device groups, determining a first device group from the multiple device groups, the number of available computing resource units connected to the first device group being greater than or equal to the first number;

[0220] A first number of available computing resource units connected to the first device group are allocated to the tenant.

[0221] In some embodiments, the allocation module 112 is specifically used to:

[0222] When the resource application request includes a first quantity, calculating a divisor of the first quantity and a preset quantity to obtain a second quantity of requesting hosts, where the preset quantity is a preset number of computing resource units included in a single host; or

[0223] When the resource application request includes a second number of requesting hosts, extracting the second number from the resource application request as the second number of requesting hosts corresponding to the first number; or

[0224] When the resource application request includes the second number of requested hosts and the target host type, the second number is extracted from the resource application request as the second number of requested hosts corresponding to the first number, and the target host type of the requested hosts is extracted; the number of available hosts of the target host type not occupied by tenants connected to the third device group is greater than or equal to the second number.

[0225] In some embodiments, the multiple devices included in the multiple device groups are connected via VXLAN tunnels; the creation module 113 is specifically used to:

[0226] In the preset network corresponding to each device connected to the first number of computing resource units, a VXLAN belonging to each device, a VXLAN gateway connecting the computing resource units connected to each device, and a virtual router connecting the VXLANs belonging to every two devices are created for the tenant, and a mapping relationship between the VLANs belonging to the first number of computing resource units and the VXLAN is configured.

[0227] In some embodiments, the address of the VXLAN gateway corresponding to each device is a preset address in the network segment of the preset network corresponding to the device.

[0228] The present application also provides a controller, such as Fig.12 As shown, it includes a processor 121 and a machine-readable storage medium 122. The machine-readable storage medium 122 stores machine-executable instructions that can be executed by the processor 121. The processor 121 is prompted by the machine-executable instructions to implement any of the above tenant management methods.

[0229] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, any of the above-mentioned tenant management methods is implemented.

[0230] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any tenant management method in the above embodiments.

[0231] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0232] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0233] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, controller, storage medium, and program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0234] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A tenant management method, characterized in that: Applied to a controller, the method comprises: Receive a resource application request from a tenant, where the resource application request indicates that the number of computing resource units requested is a first number; Allocate the first number of computing resource units to the tenant, wherein at least two of the first number of computing resource units are connected to the same device in the autonomous distributed data center, and the multiple devices included in the autonomous distributed data center are divided into multiple device groups, and the multiple devices included in the multiple device groups are connected through VXLAN tunnels; In a preset network corresponding to each device connected to the first number of computing resource units, create a VXLAN connected to the first number of computing resource units for the tenant, and when the devices connected to the at least two computing resource units are the same, the controller creates a VXLAN for the at least two computing resource units once; The step of allocating the first number of computing resource units to the tenant includes: According to the resource application request, determine a second number of requesting hosts corresponding to the first number; determine a third device group from multiple device groups, the number of available hosts connected to the third device group that are not occupied by tenants is greater than or equal to the second number, and the second number of available hosts includes the first number of computing resource units; allocate the second number of available hosts connected to the third device group to the tenant; The step of creating a VXLAN connected to the first number of computing resource units for the tenant in a preset network corresponding to each device connected to the first number of computing resource units includes: In the preset network corresponding to each device connected to the first number of computing resource units, a VXLAN belonging to each device, a VXLAN gateway connecting the computing resource units connected to each device, and a virtual router connecting the VXLANs belonging to every two devices are created for the tenant, and a mapping relationship between the VLANs belonging to the first number of computing resource units and the VXLAN is configured.

2. The method according to claim 1, characterized in that The step of allocating the first number of computing resource units to the tenant also includes: Determine a first device group from the multiple device groups, the number of available computing resource units connected to the first device group being greater than or equal to the first number; The first number of available computing resource units connected to the first device group are allocated to the tenant.

3. The method according to claim 2, characterized in that The method further comprises: Determine a plurality of second device groups from the plurality of device groups, wherein the number of available computing resource units connected to the plurality of second device groups is greater than or equal to the first number; The first number of available computing resource units connected to the plurality of second device groups are allocated to the tenant.

4. The method according to claim 2, characterized in that: The resource application request includes a first number and a second number of requesting hosts; the number of available computing resource units included in the second number of hosts connected to the first device group is greater than or equal to the first number; The step of allocating the first number of available computing resource units connected to the first device group to the tenant includes: The first number of available computing resource units included in the second number of hosts connected to the first device group are allocated to the tenant.

5. The method according to claim 1, characterized in that The method further comprises: If the third device group does not exist in the multiple device groups, determine multiple fourth device groups from the multiple device groups, and the number of available hosts not occupied by tenants connected to the multiple fourth device groups is greater than or equal to the second number; The second number of available hosts connected to the plurality of fourth device groups are allocated to the tenant.

6. The method according to claim 5, characterized in that The method further comprises: If there is no third device group among the multiple device groups, and there are no multiple fourth device groups, determining a first device group from the multiple device groups, the number of available computing resource units connected to the first device group being greater than or equal to the first number; The first number of available computing resource units connected to the first device group are allocated to the tenant.

7. The method according to claim 1, characterized in that The step of determining, according to the resource application request, a second number of requesting hosts corresponding to the first number, comprises: When the resource application request includes the first number, calculating the divisor of the first number and a preset number to obtain a second number of requesting hosts, where the preset number is the number of computing resource units included in a preset single host; or When the resource application request includes a second number of requesting hosts, extracting the second number from the resource application request as the second number of requesting hosts corresponding to the first number; or When the resource application request includes a second number of requested hosts and a target host type, the second number is extracted from the resource application request as the second number of requested hosts corresponding to the first number, and the target host type of the requested host is extracted; the number of available hosts of the target host type not occupied by tenants connected to the third device group is greater than or equal to the second number.

8. The method according to claim 1, characterized in that The address of the VXLAN gateway corresponding to each device is a preset address in the network segment of the preset network corresponding to the device.

9. A tenant management device, characterized in that: Applied to a controller, the device comprises: A receiving module, configured to receive a resource application request from a tenant, wherein the resource application request indicates that the number of computing resource units requested is a first number; An allocation module, used to allocate the first number of computing power resource units to the tenant, at least two of the first number of computing power resource units are connected to the same device in the autonomous distributed data center, the multiple devices included in the autonomous distributed data center are divided into multiple device groups, and the multiple devices included in the multiple device groups are connected through VXLAN tunnels; the step of allocating the first number of computing power resource units to the tenant includes: determining a second number of requesting hosts corresponding to the first number according to the resource application request; determining a third device group from multiple device groups, the number of available hosts connected to the third device group that are not occupied by the tenant is greater than or equal to the second number, and the second number of available hosts includes the first number of computing power resource units; allocating the second number of available hosts connected to the third device group to the tenant; A creation module is used to create a VXLAN connected to the first number of computing resource units for the tenant in the preset network corresponding to each device connected to the first number of computing resource units. When the devices connected to the at least two computing resource units are the same, the controller creates a VXLAN once for the at least two computing resource units. The step of creating a VXLAN connected to the first number of computing resource units for the tenant in the preset network corresponding to each device connected to the first number of computing resource units includes: creating a VXLAN belonging to each device, a VXLAN gateway connecting the computing resource unit connected to each device, and a virtual router connecting the VXLANs belonging to every two devices for the tenant in the preset network corresponding to each device connected to the first number of computing resource units, and configuring a mapping relationship between the VLANs belonging to the first number of computing resource units and the VXLANs.

10. A controller, characterized in that: The method comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method described in any one of claims 1 to 8.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.