CN118301151A - Equipment allocation method, device and resource arrangement system - Google Patents

Equipment allocation method, device and resource arrangement system Download PDF

Info

Publication number
CN118301151A
CN118301151A CN202211687809.7A CN202211687809A CN118301151A CN 118301151 A CN118301151 A CN 118301151A CN 202211687809 A CN202211687809 A CN 202211687809A CN 118301151 A CN118301151 A CN 118301151A
Authority
CN
China
Prior art keywords
cluster
network arrangement
target
tenant
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211687809.7A
Other languages
Chinese (zh)
Inventor
曾华平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN202211687809.7A priority Critical patent/CN118301151A/en
Publication of CN118301151A publication Critical patent/CN118301151A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides a device allocation method, a device and a resource arrangement system, wherein the method is applied to a gateway cluster and comprises the following steps: responding to a service request triggered by a target tenant, and determining a network arrangement cluster corresponding to the target tenant based on a preset corresponding relation; and sending the service request to a corresponding network arrangement cluster, so that the corresponding network arrangement cluster distributes target service equipment for the target tenant from a plurality of service equipment of a target resource cluster corresponding to the service request after receiving the service request. The method reduces the data relevance among different network arrangement clusters, simplifies the processing logic of the gateway cluster, and improves the processing performance of the resource arrangement system; the number of network arrangement clusters can be flexibly set according to actual application scenes, and the flexibility of the resource arrangement system is improved.

Description

Equipment allocation method, device and resource arrangement system
Technical Field
The embodiment of the application relates to the technical field of Internet, in particular to a device allocation method, a device and a resource arrangement system.
Background
With the development of internet technology, an internet technology (english: internet Technology, abbreviated: IT) system architecture is developed from a physical machine architecture to a cloud computing architecture. In the cloud computing architecture, network resources of a cloud data center are uniformly managed through a network arrangement cluster.
In the related art, network resources of a cloud data center are uniformly managed through a single network arrangement cluster. In a single orchestration cluster architecture, service requests of all tenants are handled by one orchestration cluster.
Because of the limited processing power of a set of network orchestration clusters; in addition, in order to ensure that the tenant service is issued and processed according to the needs and the processing time sequence, the tenant lock is adopted inside, and the service cannot be processed in parallel, so that the single network arrangement cluster processing efficiency is lower.
Disclosure of Invention
The embodiment of the application provides a device allocation method, a device and a resource arrangement system, which are used for improving the processing efficiency of the resource arrangement system.
In a first aspect, an embodiment of the present application provides a first device allocation method, which is applied to a gateway cluster in a resource scheduling system; the method comprises the following steps:
Responding to a service request triggered by a target tenant, and determining a network arrangement cluster corresponding to the target tenant based on a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
And sending the service request to a corresponding network arrangement cluster, so that the corresponding network arrangement cluster distributes target service equipment for the target tenant from a plurality of service equipment of a target resource cluster corresponding to the service request after receiving the service request.
According to the scheme, the service requests of different tenants are processed in parallel through the plurality of network arrangement clusters, so that the processing efficiency is improved; by setting the corresponding relation between the network arrangement clusters and the tenants in the gateway clusters, one tenant corresponds to a unique network arrangement cluster, and after the gateway clusters receive service requests triggered by target tenants, the network arrangement clusters corresponding to the target tenants are determined based on the preset corresponding relation, namely the gateway clusters only need to maintain the corresponding relation between the network arrangement clusters and the tenants, all service requests of the same tenant are sent to the same network arrangement cluster, so that the data relevance among different network arrangement clusters is reduced, the gateway clusters do not need to maintain the arrangement data of all network arrangement clusters, the processing logic of the gateway clusters is simplified, and the processing performance of a resource arrangement system is improved; in addition, the network arrangement clusters are not deployed according to AZ, the number of the network arrangement clusters can be flexibly set according to actual application scenes, the resource waste of the network arrangement clusters is reduced, and the flexibility of a resource arrangement system is improved.
In some optional embodiments, determining the network orchestration cluster corresponding to the target tenant based on a preset correspondence includes:
determining whether the target tenant is contained in the tenants in the preset corresponding relationship;
If yes, determining a network arrangement cluster corresponding to the target tenant from the preset corresponding relation; otherwise, based on the state parameters of each network arrangement cluster, selecting the network arrangement cluster corresponding to the target tenant from all network arrangement clusters, and updating the preset corresponding relation based on the target tenant and the selected network arrangement cluster.
According to the scheme, after the gateway cluster receives the service request triggered by the target tenant, if the gateway cluster contains the target tenant, the target tenant is not the first trigger service request, the network arrangement cluster is already allocated to the tenant, and the network arrangement cluster corresponding to the target tenant can be accurately and efficiently determined from the preset corresponding relation; if the target tenant is not included, the target tenant is indicated to trigger a service request for the first time, network arrangement clusters are not allocated to the tenant yet, network arrangement clusters corresponding to the target tenant are selected from all network arrangement clusters based on state parameters of the network arrangement clusters, and the preset corresponding relation is updated based on the target tenant and the selected network arrangement clusters, so that all service requests triggered by the target tenant can be corresponding to the network arrangement clusters.
In some optional embodiments, the state parameter includes a first number and/or a second number, where the first number is a number of tenants corresponding to each network orchestration cluster, and the second number is a number of tenant service ports corresponding to each network orchestration cluster; based on the state parameters of each network arrangement cluster, selecting the network arrangement cluster corresponding to the target tenant from all network arrangement clusters, wherein the network arrangement cluster comprises:
Selecting a network arrangement cluster with the minimum first number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
Selecting a network arrangement cluster with the minimum second number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
For any network arrangement cluster, determining a weighted number of a first number and a second number of the network arrangement clusters based on a preset weight; and selecting the network arrangement cluster with the smallest weighted quantity from all the network arrangement clusters as the network arrangement cluster corresponding to the target tenant.
In the above scheme, when the gateway cluster allocates network orchestration clusters for the target tenant, the gateway cluster selects the network orchestration cluster with smaller associated tenants (i.e. selects the network orchestration cluster with the smallest first number as the network orchestration cluster corresponding to the target tenant); or a network orchestration cluster with a smaller number of associated tenant traffic ports (i.e. selecting the network orchestration cluster with the smallest number of second network orchestration clusters as the network orchestration cluster corresponding to the target tenant); or selecting network arrangement clusters with fewer associated tenants and fewer associated tenant service ports (selecting the network arrangement cluster with the smallest weighted number as the network arrangement cluster corresponding to the target tenant), so that the network arrangement clusters in the resource arrangement system keep the state balanced as much as possible, reduce the resource waste of the network arrangement clusters, and ensure the processing performance of the network arrangement clusters in different application scenes.
In some alternative embodiments, the method further comprises:
If the number of the available network arrangement clusters is smaller than the preset number, notifying a message for characterizing to add the network arrangement clusters in a preset notification mode; the available network arrangement clusters are network arrangement clusters with processing performance parameters smaller than preset parameters.
According to the scheme, when the number of the network arrangement clusters available in the resource arrangement system is smaller than the preset number, the fact that the number of the network arrangement clusters available in the resource arrangement system is too small is indicated, and the network arrangement clusters need to be added in the resource arrangement system; and notifying the message representing the increased network arrangement cluster by a preset notification mode so that related personnel can timely know the condition that the available network arrangement cluster in the resource arrangement system is too few.
In some optional embodiments, after notifying the message characterizing the increased network orchestration cluster by a preset notification manner, the method further includes:
And responding to the network arrangement cluster increasing instruction, and determining the configuration information of the newly-added network arrangement cluster in the network arrangement cluster increasing instruction.
According to the scheme, after the information representing the increased network arrangement clusters is notified through the preset notification mode, related personnel can timely acquire the condition that the available network arrangement clusters in the resource arrangement system are too few, further trigger the network arrangement cluster increase instruction carrying the configuration information of the newly increased network arrangement clusters, and after receiving the network arrangement cluster increase instruction, gateway equipment determines the configuration information of the newly increased network arrangement clusters and transversely expands the network arrangement clusters in the resource arrangement system so as to ensure the processing performance of the network arrangement clusters and provide better services for subsequent tenants.
In a second aspect, an embodiment of the present application provides a second device allocation method, which is applied to any network arrangement cluster in a resource arrangement system; the method comprises the following steps:
Determining a target resource cluster corresponding to the service request; the service request is sent after the gateway cluster determines a network arrangement cluster corresponding to a target tenant triggering the service request based on a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
And distributing target business service equipment for the target tenant from a plurality of business service equipment of the target resource cluster based on the type of the business request.
According to the scheme, the service requests of different tenants are processed in parallel through the plurality of network arrangement clusters, so that the processing efficiency is improved; by setting the corresponding relation between the network arrangement clusters and the tenants in the gateway clusters, one tenant corresponds to a unique network arrangement cluster, and after the gateway clusters receive service requests triggered by target tenants, the network arrangement clusters corresponding to the target tenants are determined based on the preset corresponding relation, namely the gateway clusters only need to maintain the corresponding relation between the network arrangement clusters and the tenants, all service requests of the same tenant are sent to the same network arrangement cluster, so that the data relevance among different network arrangement clusters is reduced, the gateway clusters do not need to maintain the arrangement data of all network arrangement clusters, the processing logic of the gateway clusters is simplified, and the processing performance of a resource arrangement system is improved; in addition, the network arrangement clusters are not deployed according to AZ, the number of the network arrangement clusters can be flexibly set according to actual application scenes, the resource waste of the network arrangement clusters is reduced, and the flexibility of a resource arrangement system is improved.
In some optional embodiments, obtaining a service request sent by a gateway cluster in the resource allocation system includes:
And receiving a service request sent by the gateway cluster through a Message Queue (abbreviated as MQ) of the network arrangement cluster, and acquiring the service request from the MQ.
According to the scheme, each network arrangement cluster receives the service request through the independent MQ, so that the service requests of the same tenant are further guaranteed to be distributed to the same network arrangement cluster.
In some optional embodiments, after the target service device is allocated to the target tenant, the method further includes:
and storing the information representing the target tenant and the information representing the target business service equipment in a database of the network orchestration cluster.
According to the scheme, each network arrangement cluster independently stores data, and the data relevance of the same tenant is further guaranteed.
In some optional embodiments, based on the type of the service request, distributing a target service device for the target tenant from a plurality of service devices in the target resource cluster, including:
determining candidate business service equipment corresponding to the type of the business request from a plurality of business service equipment of the target resource cluster;
And selecting the target business service equipment from all candidate business service equipment based on the load parameters of the candidate business service equipment.
In the above scheme, since each resource cluster generally includes a plurality of optional devices providing the same service; different types of service requests need to use different cloud network resources and also correspond to different service devices; and determining candidate business service equipment matched with the type of the business request from the target resource cluster, so that the target business service equipment matched with the type of the business request is selected from the candidate business service equipment.
In some alternative embodiments, selecting the target service device from all candidate service devices based on the load parameter of each candidate service device includes:
and determining the candidate business service equipment with the minimum load parameter as the target business service equipment.
According to the scheme, when the network arrangement cluster distributes the target business service equipment for the target tenant, the business service equipment in the resource arrangement system is kept balanced by selecting the candidate business service equipment with the minimum load parameter, so that the resource waste of the business service equipment is reduced.
In some alternative embodiments, the method further comprises:
if other tenants associated with the target tenant exist, sending the arrangement data of the target tenant to a shared data unit; obtaining the arrangement data of other tenants associated with the target tenant from the shared data unit; wherein the orchestration data includes tenant information, distributed business service equipment information, and shared information.
In the above scheme, for the case of sharing resource allocation among multiple tenants, since the tenants are related to each other, the tenants are not necessarily allocated in the same network scheduling cluster; by setting the shared data unit, the network arrangement cluster sends the arrangement data of the associated tenant to the shared data unit, and acquires the arrangement data of other tenants associated with the tenant from the shared data unit, so that the association of the data of the same tenant is ensured, and the association of the data of different tenants but associated with each other is also ensured.
In a third aspect, an embodiment of the present application provides a resource orchestration system, including: the system comprises a gateway cluster, a plurality of network arrangement clusters and a plurality of resource clusters, wherein a plurality of business service devices are arranged in any one of the resource clusters;
The gateway cluster is used for responding to a service request triggered by a target tenant, determining a network arrangement cluster corresponding to the target tenant based on a preset corresponding relation, and sending the service request to the corresponding network arrangement cluster; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
The network arrangement cluster is used for determining a target resource cluster corresponding to the service request after the service request is acquired; and distributing target business service equipment for the target tenant from a plurality of business service equipment of the target resource cluster based on the type of the business request.
In some alternative embodiments, the gateway cluster is specifically configured to:
determining whether the target tenant is contained in the tenants in the preset corresponding relationship;
If yes, determining a network arrangement cluster corresponding to the target tenant from the preset corresponding relation; otherwise, based on the state parameters of each network arrangement cluster, selecting the network arrangement cluster corresponding to the target tenant from all network arrangement clusters, and updating the preset corresponding relation based on the target tenant and the selected network arrangement cluster.
In some optional embodiments, the state parameter includes a first number and/or a second number, where the first number is a number of tenants corresponding to each network orchestration cluster, and the second number is a number of tenant service ports corresponding to each network orchestration cluster; the gateway cluster is specifically configured to:
Selecting a network arrangement cluster with the minimum first number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
Selecting a network arrangement cluster with the minimum second number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
For any network arrangement cluster, determining a weighted number of a first number and a second number of the network arrangement clusters based on a preset weight; and selecting the network arrangement cluster with the smallest weighted quantity from all the network arrangement clusters as the network arrangement cluster corresponding to the target tenant.
In some alternative embodiments, the gateway cluster is further configured to:
If the number of the available network arrangement clusters is smaller than the preset number, notifying a message for characterizing to add the network arrangement clusters in a preset notification mode; the available network arrangement clusters are network arrangement clusters with processing performance parameters smaller than preset parameters.
In some optional embodiments, after notifying the message characterizing the network orchestration cluster by a preset notification manner, the gateway cluster is further configured to:
And responding to the network arrangement cluster increasing instruction, and determining the configuration information of the newly-added network arrangement cluster in the network arrangement cluster increasing instruction.
In some alternative embodiments, the network orchestration cluster is specifically configured to:
determining candidate business service equipment corresponding to the type of the business request from a plurality of business service equipment of the target resource cluster;
And selecting the target business service equipment from all candidate business service equipment based on the load parameters of the candidate business service equipment.
In some alternative embodiments, the network orchestration cluster is specifically configured to:
and determining the candidate business service equipment with the minimum load parameter as the target business service equipment.
In some alternative embodiments, the network orchestration cluster is further configured to:
if other tenants associated with the target tenant exist, sending the arrangement data of the target tenant to a shared data unit; obtaining the arrangement data of other tenants associated with the target tenant from the shared data unit; wherein the orchestration data includes tenant information, distributed business service equipment information, and shared information.
In a fourth aspect, an embodiment of the present application provides a first device allocation apparatus, which is applied to a gateway cluster in a resource scheduling system; the device comprises:
A network arrangement cluster determining module, configured to determine, based on a preset correspondence, a network arrangement cluster corresponding to a target tenant in response to a service request triggered by the target tenant; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
and the request sending module is used for sending the service request to a corresponding network arrangement cluster so that the corresponding network arrangement cluster can allocate target service equipment for the target tenant from a plurality of service equipment of a target resource cluster corresponding to the service request after receiving the service request.
In some alternative embodiments, the network orchestration cluster determination module is specifically configured to:
determining whether the target tenant is contained in the tenants in the preset corresponding relationship;
If yes, determining a network arrangement cluster corresponding to the target tenant from the preset corresponding relation; otherwise, based on the state parameters of each network arrangement cluster, selecting the network arrangement cluster corresponding to the target tenant from all network arrangement clusters, and updating the preset corresponding relation based on the target tenant and the selected network arrangement cluster.
In some optional embodiments, the state parameter includes a first number and/or a second number, where the first number is a number of tenants corresponding to each network orchestration cluster, and the second number is a number of tenant service ports corresponding to each network orchestration cluster; the network arrangement cluster determining module is specifically configured to:
Selecting a network arrangement cluster with the minimum first number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
Selecting a network arrangement cluster with the minimum second number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
For any network arrangement cluster, determining a weighted number of a first number and a second number of the network arrangement clusters based on a preset weight; and selecting the network arrangement cluster with the smallest weighted quantity from all the network arrangement clusters as the network arrangement cluster corresponding to the target tenant.
In some alternative embodiments, the apparatus further comprises a capacity expansion processing module configured to:
If the number of the available network arrangement clusters is smaller than the preset number, notifying a message for characterizing to add the network arrangement clusters in a preset notification mode; the available network arrangement clusters are network arrangement clusters with processing performance parameters smaller than preset parameters.
In some optional embodiments, after notifying the message characterizing the increased network orchestration cluster by a preset notification manner, the capacity expansion processing module is further configured to:
And responding to the network arrangement cluster increasing instruction, and determining the configuration information of the newly-added network arrangement cluster in the network arrangement cluster increasing instruction.
In a fifth aspect, an embodiment of the present application provides a second device allocation apparatus, which is applied to any network scheduling cluster in a resource scheduling system; the device comprises:
The resource cluster acquisition module is used for determining a target resource cluster corresponding to the service request; the service request is sent after the gateway cluster determines a network arrangement cluster corresponding to a target tenant triggering the service request based on a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
and the resource arrangement module is used for distributing target business service equipment for the target tenant from a plurality of business service equipment of the target resource cluster based on the type of the business request.
In some optional embodiments, the resource cluster acquisition module is specifically configured to:
And receiving a service request sent by the gateway cluster through the MQ of the network arrangement cluster, and acquiring the service request from the MQ.
In some optional embodiments, after the target tenant is assigned a target business service device, the resource orchestration module is further configured to:
and storing the information representing the target tenant and the information representing the target business service equipment in a database of the network orchestration cluster.
In some alternative embodiments, the resource orchestration module is specifically configured to:
determining candidate business service equipment corresponding to the type of the business request from a plurality of business service equipment of the target resource cluster;
And selecting the target business service equipment from all candidate business service equipment based on the load parameters of the candidate business service equipment.
In some alternative embodiments, the resource orchestration module is specifically configured to:
and determining the candidate business service equipment with the minimum load parameter as the target business service equipment.
In some alternative embodiments, the apparatus further comprises a shared processing module for:
if other tenants associated with the target tenant exist, sending the arrangement data of the target tenant to a shared data unit; obtaining the arrangement data of other tenants associated with the target tenant from the shared data unit; wherein the orchestration data includes tenant information, distributed business service equipment information, and shared information.
In a sixth aspect, an embodiment of the present application provides a gateway cluster, including at least one processor and at least one memory, where the memory stores a computer program, and when the program is executed by the processor, causes the processor to perform the device allocation method according to any one of the first aspects.
In a seventh aspect, an embodiment of the present application provides a network orchestration cluster, including at least one processor and at least one memory, where the memory stores a computer program that, when executed by the processor, causes the processor to perform the device allocation method according to any one of the second aspects.
In an eighth aspect, an embodiment of the present application provides a computer readable storage medium storing a computer program executable by a processor, which when run on the processor, causes the processor to perform the device allocation method according to any one of the first or second aspects.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a system architecture diagram of a first resource orchestration system according to an embodiment of the present application;
FIG. 2 is a system architecture diagram of a second resource orchestration system according to an embodiment of the present application;
FIG. 3 is a system architecture diagram of a third resource orchestration system according to an embodiment of the present application;
FIG. 4 is a system architecture diagram of a fourth resource orchestration system according to an embodiment of the present application;
fig. 5 is an interaction flow chart of a first device allocation method according to an embodiment of the present application;
fig. 6 is an interaction flow chart of a second device allocation method according to an embodiment of the present application;
fig. 7 is an interaction flow chart of a third device allocation method according to an embodiment of the present application;
Fig. 8 is a flowchart of a first device allocation method according to an embodiment of the present application;
Fig. 9 is a flow chart of a second device allocation method according to an embodiment of the present application;
Fig. 10 is a schematic structural diagram of a first device distribution apparatus according to an embodiment of the present application;
FIG. 11 is a schematic structural diagram of a second device distribution apparatus according to an embodiment of the present application;
Fig. 12 is a schematic structural diagram of a gateway cluster according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, unless otherwise indicated, the meaning of "a plurality" is two or more.
In the description of the present application, it should be noted that, unless explicitly stated and limited otherwise, the term "connected" should be interpreted broadly, and for example, it may be directly connected, or it may be indirectly connected through an intermediate medium, or it may be communication between two devices. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art according to the specific circumstances.
In the cloud computing architecture, network resources of a cloud data center are uniformly managed through a network orchestration cluster (such as a Neutron component based on an OpenStack framework, where OpenStack is an open-source large-scale cloud computing architecture, and Neutron is a component responsible for providing virtual network services). Referring to fig. 1, in a single orchestration cluster architecture, service requests of all tenants are processed through one orchestration cluster.
Due to the limited processing power of a set of network orchestration clusters, MQ blocking between plug in and Agent of the network orchestration cluster is often caused. In addition, in order to ensure that the tenant service is issued and processed according to the needs and the processing time sequence, the tenant lock is adopted inside, the service cannot be processed in parallel, and the processing efficiency is low.
A single network orchestration cluster cannot support large-scale cloud network service deployment and cannot flexibly expand capacity. As the scale of cloud network service increases, the single network arrangement cluster is difficult to meet the requirements of the cloud network service, and a network arrangement cluster cascading scheme appears.
Referring to fig. 2, in some embodiments, domain network arrangement clusters corresponding to AZs are set, and all domain network arrangement clusters are managed by a central network arrangement cluster. That is, the network arrangement clusters are arranged through the network arrangement clusters, and a plurality of domain network arrangement clusters are connected in a cascading manner for unified management.
However, the domain network arrangement clusters are deployed by resource clusters, and the services of the same tenant may be divided into different domain network arrangement clusters, and because the data of the same tenant has relevance (such as distributing IP addresses in the tenant through multiple service requests), the central network arrangement cluster needs to perform not only the domain network arrangement cluster distribution, but also the arrangement data of all domain network arrangement clusters needs to be reserved, so that the processing performance of the resource arrangement system is affected. When the traffic scale is large, the processing performance of the central network orchestration cluster will be severely degraded. In addition, the domain network arrangement clusters are deployed according to the resource clusters, and when the traffic of the resource clusters is very small, a whole set of network arrangement clusters are required to be deployed, so that the resource waste of the network arrangement clusters is caused.
Referring to fig. 3, in some embodiments, network element arrangement, authentication, charging, and other functions are integrated in a cloud management platform, and are mainly used for managing a huge number of network function virtualization (abbreviated as NFV) network elements. The network element is controlled by a software defined network (English: software Defined Network, abbreviated: SDN) controller in the gateway control layer, and the network element is forwarded by the network element forwarding layer.
The above approach relies on high-performance databases, message queue middleware, etc., and is not applicable to the OpenStack framework.
In view of this, an embodiment of the present application provides a device allocation method, a device, and a resource scheduling system, so as to improve the processing performance and flexibility of the resource scheduling system.
Referring to fig. 4, the resource arrangement system provided in this embodiment includes a gateway cluster, a plurality of network arrangement clusters, and a plurality of resource clusters, where a plurality of service devices are disposed in any one of the resource clusters, and the same resource cluster belongs to the same AZ;
The gateway cluster is used for responding to a service request triggered by a target tenant, determining a network arrangement cluster corresponding to the target tenant based on a preset corresponding relation, and sending the service request to the corresponding network arrangement cluster; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
The network arrangement cluster is used for determining a target resource cluster corresponding to the service request after the service request is acquired; and distributing target business service equipment for the target tenant from a plurality of business service equipment of the target resource cluster based on the type of the business request.
Illustratively, the gateway cluster may employ an open source gateway architecture, such as Zuul (an application programming interface gateway), nmginx (a high-performance hypertext transfer protocol and reverse proxy web server), and the like. In implementation, the gateway cluster includes a certain number of servers, and the number of member servers in the gateway cluster can be extended according to an actual application scenario, that is, the embodiment supports the lateral extension of the servers in the gateway cluster.
In this embodiment, since the gateway cluster only needs to maintain the correspondence (key-value type data) between the network orchestration cluster and the tenants, and does not need to maintain the orchestration data of all the network orchestration clusters, the processing logic of the gateway cluster is simplified, so that the gateway cluster can adopt dis (a lightweight buffer) to perform data caching; or a CACHE (a kind of CACHE) is selected as the storage scheme for fast access.
In this embodiment, the specific number of network arrangement clusters in the resource arrangement system is not limited, and fig. 4 illustrates M network arrangement clusters, in implementation, more or fewer network arrangement clusters may be set, and in a use process, the network arrangement clusters may be laterally expanded (i.e., the number of network arrangement clusters is increased).
According to the scheme, the service requests of different tenants are processed in parallel through the plurality of network arrangement clusters, so that the processing efficiency is improved; by setting the corresponding relation between the network arrangement clusters and the tenants in the gateway clusters, one tenant corresponds to a unique network arrangement cluster, and after the gateway clusters receive service requests triggered by target tenants, the network arrangement clusters corresponding to the target tenants are determined based on the preset corresponding relation, namely the gateway clusters only need to maintain the corresponding relation between the network arrangement clusters and the tenants, all service requests of the same tenant are sent to the same network arrangement cluster, so that the data relevance among different network arrangement clusters is reduced, the gateway clusters do not need to maintain the arrangement data of all network arrangement clusters, the processing logic of the gateway clusters is simplified, and the processing performance of a resource arrangement system is improved; in addition, the network arrangement clusters are not deployed according to AZ, the number of the network arrangement clusters can be flexibly set according to actual application scenes, the resource waste of the network arrangement clusters is reduced, and the flexibility of a resource arrangement system is improved.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems with reference to the drawings and specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 5 is an interaction flow chart of a first device allocation method according to an embodiment of the present application, as shown in fig. 5, including the following steps:
Step S501: and the gateway cluster responds to the service request triggered by the target tenant, and determines the network arrangement cluster corresponding to the target tenant based on a preset corresponding relation.
The preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster.
According to the embodiment, the network arrangement clusters are not deployed according to the resource clusters, but one tenant is associated with a unique network arrangement cluster, after the gateway cluster receives the service request triggered by the target tenant, the network arrangement cluster corresponding to the target tenant is determined based on the preset corresponding relation, namely, the gateway cluster only needs to maintain the corresponding relation between the network arrangement clusters and the tenants, all the service requests of the same tenant are sent to the same network arrangement cluster, the data relevance among different network arrangement clusters is reduced, the gateway cluster does not need to maintain the arrangement data of all the network arrangement clusters, the processing logic of the gateway cluster is simplified, and the processing performance of the resource arrangement system is improved.
In implementation, all service requests of the same tenant need to be sent to the same network arrangement cluster, so that the same tenant in the preset corresponding relationship corresponds to the same network arrangement cluster, that is, the relationship between the tenant and the network arrangement cluster is one-to-one or many-to-one.
Step S502: and the gateway cluster sends the service request to the corresponding network arrangement cluster.
In this embodiment, the gateway cluster only needs to maintain the correspondence between the network orchestration cluster and the tenant, and the actual resource orchestration needs to be implemented by the network orchestration cluster, based on which the gateway cluster needs to send the service request to the corresponding network orchestration cluster.
Step S503: the network arrangement cluster determines a target resource cluster corresponding to the service request.
Determining the target resource cluster corresponding to the service request comprises the following steps:
If the service request carries the identification information of the target resource cluster, the target resource cluster is based on the identification information of the target resource cluster;
otherwise, determining the resource cluster of the virtual machine of the tenant as the target resource cluster.
For example, the tenant may directly specify the target resource cluster, for example, the identification information of the target resource cluster is placed in the service request, and then the target resource cluster may be determined directly based on the identification information of the target resource cluster; or the tenant does not specify the target resource cluster, and the resource cluster where the virtual machine (i.e. the service host of the tenant) allocated by the cloud computing platform is located is determined as the target resource cluster.
Step S504: and the network arrangement cluster allocates target business service equipment for the target tenant from a plurality of business service equipment of the target resource cluster based on the type of the business request.
In this embodiment, different types of service requests need to use different cloud network resources, and also correspond to different network service entities (i.e. the service devices mentioned above, which are used as computing nodes in the cloud data center).
Exemplary cloud Network resources include routers (english: router), computer networks (english: network), subnets (english: subnet), interfaces (english: port), security groups, security group policies, quality of service (english: quality of Service, abbreviation: qoS), firewall policies, network address translation (english: network Address Translation, abbreviation: NAT), virtual private networks (english: virtual Private Network, abbreviation: VPN), and the like.
Based on this, the network orchestration cluster needs to allocate, from among the multiple service devices of the target resource cluster, a target service device with a type matching, based on the type of the service request.
According to the scheme, the service requests of different tenants are processed in parallel through the plurality of network arrangement clusters, so that the processing efficiency is improved; by setting the corresponding relation between the network arrangement clusters and the tenants in the gateway clusters, one tenant corresponds to a unique network arrangement cluster, and after the gateway clusters receive service requests triggered by target tenants, the network arrangement clusters corresponding to the target tenants are determined based on the preset corresponding relation, namely the gateway clusters only need to maintain the corresponding relation between the network arrangement clusters and the tenants, all service requests of the same tenant are sent to the same network arrangement cluster, so that the data relevance among different network arrangement clusters is reduced, the gateway clusters do not need to maintain the arrangement data of all network arrangement clusters, the processing logic of the gateway clusters is simplified, and the processing performance of a resource arrangement system is improved; in addition, the network arrangement clusters are not deployed according to AZ, the number of the network arrangement clusters can be flexibly set according to actual application scenes, the resource waste of the network arrangement clusters is reduced, and the flexibility of a resource arrangement system is improved.
In practice, network organization clusters are isolated by using a private network (English: virtual Private Cloud, abbreviated as VPC), and each network organization cluster is respectively clustered by using an independent database (such as MySql database) and a message queue (such as RabbitMQ).
In some alternative embodiments, the network orchestration cluster receives the service requests sent by the gateway cluster through its own MQ, and sequentially obtains the service requests from the MQ.
In some alternative embodiments, after step S504 above, the network orchestration cluster further performs:
And storing the information representing the target tenant and the information representing the target business service equipment in a database of the network arrangement cluster.
That is, the network orchestration cluster performs data management independently, and ensures the data relevance of the same tenant.
Fig. 6 is an interaction flow chart of a second device allocation method according to an embodiment of the present application, as shown in fig. 6, including the following steps:
step S601: and the gateway cluster responds to a service request triggered by a target tenant, and determines whether the target tenant is contained in the tenants in the preset corresponding relationship.
The preset corresponding relation in the gateway equipment is established based on the historical service request, after the gateway equipment receives the service request triggered by the tenant for the first time, a network arrangement cluster is allocated to the tenant, the corresponding relation between the tenant and the network arrangement cluster is established, and all the service requests of the tenant are sent to the network arrangement cluster subsequently;
Based on the above, after receiving the service request triggered by the target tenant, the gateway cluster needs to determine whether the target tenant is included in the tenants in the preset corresponding relationship, if so, it indicates that the target tenant is not the first triggering service request, and network arrangement clusters have been allocated to the tenant, and needs to determine the network arrangement cluster corresponding to the target tenant from the preset corresponding relationship;
If the target tenant is not included, the target tenant is indicated to trigger a service request for the first time, network arrangement clusters are not allocated to the tenant yet, the network arrangement cluster corresponding to the target tenant needs to be selected from all network arrangement clusters based on state parameters of each network arrangement cluster, and the preset corresponding relation is updated based on the target tenant and the selected network arrangement cluster, so that all service requests triggered by the target tenant can be corresponding to the network arrangement cluster.
Step S602: if yes, determining a network arrangement cluster corresponding to the target tenant from the preset corresponding relation; otherwise, based on the state parameters of each network arrangement cluster, selecting the network arrangement cluster corresponding to the target tenant from all network arrangement clusters, and updating the preset corresponding relation based on the target tenant and the selected network arrangement cluster.
For example, the preset correspondence may be shown in the following table 1:
TABLE 1
If the target tenant is tenant 3, the tenant 3 in the preset corresponding relationship includes tenant 3, and according to the preset corresponding relationship, it can be determined that the target tenant corresponds to network orchestration cluster 1.
Taking the table 1 as an example, if the target tenant is the tenant 12, the tenant 12 is not included in the tenant in the preset corresponding relationship, and the network arrangement cluster corresponding to the tenant 12 needs to be selected from the 5 network arrangement clusters according to the state parameters of the 5 network arrangement clusters, for example, the network arrangement cluster 5 is selected as the network arrangement cluster corresponding to the tenant 12;
the preset correspondence relationship needs to be updated based on the tenant 12 and the network orchestration cluster 5, and the updated preset correspondence relationship can be shown in table 2:
TABLE 2
Network orchestration cluster 1 Tenant 1, tenant 2, tenant 3
Network orchestration cluster 2 Tenant 4, tenant 5
Network orchestration cluster 3 Tenant 6, tenant 7
Network orchestration cluster 4 Tenant 8, tenant 9, tenant 10
Network orchestration cluster 5 Tenant 11, tenant 12
The original preset corresponding relation and the updated preset corresponding relation are only exemplary, and the application is not limited thereto.
Step S603: and the gateway cluster sends the service request to the corresponding network arrangement cluster.
Step S604: the network arrangement cluster determines a target resource cluster corresponding to the service request.
Step S605: and the network arrangement cluster allocates target business service equipment for the target tenant from a plurality of business service equipment of the target resource cluster based on the type of the business request.
The specific implementation of steps S603 to S605 may refer to the above embodiment, and will not be described herein.
According to the scheme, after the gateway cluster receives the service request triggered by the target tenant, if the gateway cluster contains the target tenant, the target tenant is not the first trigger service request, the network arrangement cluster is already allocated to the tenant, and the network arrangement cluster corresponding to the target tenant can be accurately and efficiently determined from the preset corresponding relation; if the target tenant is not included, the target tenant is indicated to trigger a service request for the first time, network arrangement clusters are not allocated to the tenant yet, network arrangement clusters corresponding to the target tenant are selected from all network arrangement clusters based on state parameters of the network arrangement clusters, and the preset corresponding relation is updated based on the target tenant and the selected network arrangement clusters, so that all service requests triggered by the target tenant can be corresponding to the network arrangement clusters.
In some optional embodiments, the state parameter includes a first number and/or a second number, where the first number is a number of tenants corresponding to each network orchestration cluster, and the second number is a number of tenant service ports corresponding to each network orchestration cluster;
Correspondingly, the step S603 may be implemented by, but not limited to, the following ways:
Selecting a network arrangement cluster with the minimum first number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
Selecting a network arrangement cluster with the minimum second number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
For any network arrangement cluster, determining a weighted number of a first number and a second number of the network arrangement clusters based on a preset weight; and selecting the network arrangement cluster with the smallest weighted quantity from all the network arrangement clusters as the network arrangement cluster corresponding to the target tenant.
For example, the network arrangement clusters in the resource arrangement system need to be kept in a state balance as much as possible, so that the resource waste of the network arrangement clusters is reduced, and the processing performance of the network arrangement clusters is ensured;
Based on this, when the gateway cluster allocates network orchestration clusters for the target tenant, a network orchestration cluster with a smaller number of associated tenants needs to be selected (i.e. a network orchestration cluster with a minimum first number is selected as the network orchestration cluster corresponding to the target tenant); or a network orchestration cluster with a smaller number of associated tenant traffic ports (virtual machines) (i.e. selecting the network orchestration cluster with the smallest second number as the network orchestration cluster corresponding to the target tenant); or simultaneously, the network arrangement clusters with less associated tenants and less associated tenant service ports are selected (the network arrangement cluster with the smallest weighted number is selected as the network arrangement cluster corresponding to the target tenant).
The foregoing is merely illustrative, and in practice, it is sufficient to balance the operating states of all network orchestration clusters.
Fig. 7 is an interaction flow chart of a third device allocation method according to an embodiment of the present application, as shown in fig. 7, including the following steps:
Step S701: and the gateway cluster responds to the service request triggered by the target tenant, and determines the network arrangement cluster corresponding to the target tenant based on a preset corresponding relation.
Step S702: and the gateway cluster sends the service request to the corresponding network arrangement cluster.
Step S703: the network arrangement cluster determines a target resource cluster corresponding to the service request.
The specific implementation manner of the steps S701 to S703 may refer to the above embodiment, and will not be described herein.
Step S704: and the network arrangement cluster determines candidate business service equipment corresponding to the type of the business request from a plurality of business service equipment of the target resource cluster.
In this embodiment, a resource cluster generally includes a plurality of optional devices that provide the same service; different types of service requests need to use different cloud network resources and also correspond to different service devices.
Based on this, this embodiment needs to determine candidate service devices matching the type of the service request from the target resource cluster, and then select the target service device from the candidate service devices.
Step S705: the network orchestration cluster selects the target business service device from all candidate business service devices based on the load parameters of each candidate business service device.
For example, one resource cluster generally includes a plurality of optional devices that provide the same service, where the load conditions of the plurality of optional devices are different, and in order to improve the subsequent service processing efficiency, a target service device with a smaller load needs to be selected from all candidate service devices based on the load parameters of each candidate service device.
In some alternative embodiments, this step may be accomplished by, but not limited to, the following:
and determining the candidate business service equipment with the minimum load parameter as the target business service equipment.
In some optional embodiments, on the basis of any of the foregoing embodiments, the gateway cluster further performs the following steps:
If the number of the available network arrangement clusters is smaller than the preset number, notifying a message for characterizing to add the network arrangement clusters in a preset notification mode; the available network arrangement clusters are network arrangement clusters with processing performance parameters smaller than preset parameters.
As described above, the network orchestration clusters may be laterally expanded (i.e. the number of network orchestration clusters is increased) during use, based on which, if the number of network orchestration clusters available in the resource orchestration system is smaller than the preset number, it is indicated that the number of network orchestration clusters available in the resource orchestration system is too small, and the network orchestration clusters need to be increased in the resource orchestration system to ensure the processing performance of the network orchestration clusters, so as to provide better services for subsequent tenants;
based on the above, the message characterizing the increased network arrangement cluster needs to be notified in a preset notification manner, so that related personnel can timely learn that the available network arrangement cluster in the resource arrangement system is too few.
For example, the above-mentioned available network orchestration cluster is a network orchestration cluster with a processing performance parameter smaller than a preset parameter, that is, if the processing performance parameter of the network orchestration cluster is smaller than the preset parameter, no new tenant is associated for the network orchestration cluster.
The processing performance parameter is an index capable of representing the residual processing capacity of the network arrangement cluster, and information such as the residual memory, reading speed, CPU performance and the like of the network arrangement cluster can be comprehensively obtained.
In some alternative embodiments, after notifying the message characterizing the added network orchestration cluster by a preset notification manner, the gateway cluster further performs the following steps:
And responding to the network arrangement cluster increasing instruction, and determining the configuration information of the newly-added network arrangement cluster in the network arrangement cluster increasing instruction.
By way of example, after notifying the message characterizing the addition of the network orchestration cluster by a preset notification manner, the relevant personnel can timely learn that the available network orchestration cluster in the resource orchestration system is too few. And triggering a network arrangement cluster adding instruction carrying configuration information of the newly-added network arrangement cluster, and after receiving the network arrangement cluster adding instruction, the gateway equipment determines the configuration information of the newly-added network arrangement cluster and transversely expands the network arrangement cluster in the resource arrangement system.
In some alternative embodiments, the network orchestration cluster further performs the following steps on the basis of any of the above embodiments:
if other tenants associated with the target tenant exist, sending the arrangement data of the target tenant to a shared data unit; obtaining the arrangement data of other tenants associated with the target tenant from the shared data unit; wherein the orchestration data includes tenant information, allocated business service device information, and shared information (resources that need to be shared).
In practice, there may be allocation of shared resources among multiple tenants, such as floating IP addresses (FIPs), virtual local area network accounts (VLAN IDs), etc., which are associated with each other, but not necessarily allocated in the same network orchestration cluster;
Based on this, in this embodiment, by setting the shared data unit, the network orchestration cluster sends the orchestration data of the associated tenant to the shared data unit, and obtains the orchestration data of other tenants associated with the tenant from the shared data unit, which not only ensures the relevance of the data of the same tenant, but also ensures the relevance of the data of different tenants associated with each other.
The specific implementation manner of the shared data unit is not limited in this embodiment, and may be set in any network arrangement cluster of the resource arrangement system, or may be set in the resource arrangement system independently.
In implementation, besides the user of the tenant identity, a user of the administrator identity may also appear, and correspondingly, on the basis of any embodiment, the gateway cluster further performs the following steps:
Responding to a read request triggered by an administrator, and determining a first network arrangement cluster corresponding to the read request; after first read data is acquired from the first network arrangement cluster, the first read data is spliced to obtain first spliced data;
responding to a writing request triggered by an administrator, and determining a second network arrangement cluster corresponding to the writing request; and writing the data carried by the writing request in the second network arrangement cluster.
The administrator has the authority of reading and writing to all network arrangement clusters, so that the administrator can trigger a reading request when needing to read part or all of the data in the network arrangement clusters, and the gateway cluster acquires the first reading data from the corresponding first network arrangement cluster and performs splicing when receiving the reading request;
When the manager needs to write data in part or all of the network arrangement clusters, the manager can trigger a write request, and when the gateway cluster receives the write request, the data carried by the write request is written in the corresponding second network arrangement cluster.
In some alternative embodiments, to ensure the security of the resource orchestration system, the gateway cluster needs to authenticate the tenant, and this step may be performed by KeyStone (the unit responsible for authentication, service rules, and service tokens in the openstack framework) of the gateway cluster.
In the embodiment of the application, as shown in fig. 8, a device allocation method executed by a gateway cluster in a resource scheduling system includes the following steps:
Step S801: responding to a service request triggered by a target tenant, and determining a network arrangement cluster corresponding to the target tenant based on a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
Step S802: and sending the service request to a corresponding network arrangement cluster, so that the corresponding network arrangement cluster distributes target service equipment for the target tenant from a plurality of service equipment of a target resource cluster corresponding to the service request after receiving the service request.
In some optional embodiments, determining the network orchestration cluster corresponding to the target tenant based on a preset correspondence includes:
determining whether the target tenant is contained in the tenants in the preset corresponding relationship;
If yes, determining a network arrangement cluster corresponding to the target tenant from the preset corresponding relation; otherwise, based on the state parameters of each network arrangement cluster, selecting the network arrangement cluster corresponding to the target tenant from all network arrangement clusters, and updating the preset corresponding relation based on the target tenant and the selected network arrangement cluster.
In some optional embodiments, the state parameter includes a first number and/or a second number, where the first number is a number of tenants corresponding to each network orchestration cluster, and the second number is a number of tenant service ports corresponding to each network orchestration cluster; based on the state parameters of each network arrangement cluster, selecting the network arrangement cluster corresponding to the target tenant from all network arrangement clusters, wherein the network arrangement cluster comprises:
Selecting a network arrangement cluster with the minimum first number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
Selecting a network arrangement cluster with the minimum second number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
For any network arrangement cluster, determining a weighted number of a first number and a second number of the network arrangement clusters based on a preset weight; and selecting the network arrangement cluster with the smallest weighted quantity from all the network arrangement clusters as the network arrangement cluster corresponding to the target tenant.
In some alternative embodiments, the method further comprises:
If the number of the available network arrangement clusters is smaller than the preset number, notifying a message for characterizing to add the network arrangement clusters in a preset notification mode; the available network arrangement clusters are network arrangement clusters with processing performance parameters smaller than preset parameters.
In some optional embodiments, after notifying the message characterizing the increased network orchestration cluster by a preset notification manner, the method further includes:
And responding to the network arrangement cluster increasing instruction, and determining the configuration information of the newly-added network arrangement cluster in the network arrangement cluster increasing instruction.
In the embodiment of the application, the device allocation method executed by any network scheduling cluster in the resource scheduling system is shown in fig. 9, and includes the following steps:
step S901: determining a target resource cluster corresponding to the service request; the service request is sent after the gateway cluster determines a network arrangement cluster corresponding to a target tenant triggering the service request based on a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
Step S902: and distributing target business service equipment for the target tenant from a plurality of business service equipment of the target resource cluster based on the type of the business request.
In some optional embodiments, obtaining a service request sent by a gateway cluster in the resource allocation system includes:
And receiving a service request sent by the gateway cluster through the MQ of the network arrangement cluster, and acquiring the service request from the MQ.
In some optional embodiments, after the target service device is allocated to the target tenant, the method further includes:
and storing the information representing the target tenant and the information representing the target business service equipment in a database of the network orchestration cluster.
In some optional embodiments, based on the type of the service request, distributing a target service device for the target tenant from a plurality of service devices in the target resource cluster, including:
determining candidate business service equipment corresponding to the type of the business request from a plurality of business service equipment of the target resource cluster;
And selecting the target business service equipment from all candidate business service equipment based on the load parameters of the candidate business service equipment.
In some alternative embodiments, selecting the target service device from all candidate service devices based on the load parameter of each candidate service device includes:
and determining the candidate business service equipment with the minimum load parameter as the target business service equipment.
In some alternative embodiments, the method further comprises:
if other tenants associated with the target tenant exist, sending the arrangement data of the target tenant to a shared data unit; obtaining the arrangement data of other tenants associated with the target tenant from the shared data unit; wherein the orchestration data includes tenant information, distributed business service equipment information, and shared information.
The specific implementation of the embodiments of fig. 8 to 9 may refer to the implementation of the above interaction method, and the repetition is not repeated.
As shown in fig. 10, based on the same inventive concept as the device allocation method shown in fig. 8, an embodiment of the present application provides a first device allocation apparatus 1000, applied to a gateway cluster in a resource scheduling system, including:
A network orchestration cluster determining module 1001, configured to determine, in response to a service request triggered by a target tenant, a network orchestration cluster corresponding to the target tenant based on a preset correspondence; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
The request sending module 1002 is configured to send the service request to a corresponding network arrangement cluster, so that the corresponding network arrangement cluster allocates a target service device for the target tenant from a plurality of service devices of a target resource cluster corresponding to the service request after receiving the service request.
In some alternative embodiments, the network orchestration cluster determination module 1001 is specifically configured to:
determining whether the target tenant is contained in the tenants in the preset corresponding relationship;
If yes, determining a network arrangement cluster corresponding to the target tenant from the preset corresponding relation; otherwise, based on the state parameters of each network arrangement cluster, selecting the network arrangement cluster corresponding to the target tenant from all network arrangement clusters, and updating the preset corresponding relation based on the target tenant and the selected network arrangement cluster.
In some optional embodiments, the state parameter includes a first number and/or a second number, where the first number is a number of tenants corresponding to each network orchestration cluster, and the second number is a number of tenant service ports corresponding to each network orchestration cluster; the network orchestration cluster determination module 1001 is specifically configured to:
Selecting a network arrangement cluster with the minimum first number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
Selecting a network arrangement cluster with the minimum second number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
For any network arrangement cluster, determining a weighted number of a first number and a second number of the network arrangement clusters based on a preset weight; and selecting the network arrangement cluster with the smallest weighted quantity from all the network arrangement clusters as the network arrangement cluster corresponding to the target tenant.
In some alternative embodiments, the apparatus further comprises a capacity expansion processing module 1003 configured to:
If the number of the available network arrangement clusters is smaller than the preset number, notifying a message for characterizing to add the network arrangement clusters in a preset notification mode; the available network arrangement clusters are network arrangement clusters with processing performance parameters smaller than preset parameters.
In some optional embodiments, after notifying the message characterizing the incremental network orchestration cluster by a preset notification manner, the capacity expansion processing module 1003 is further configured to:
And responding to the network arrangement cluster increasing instruction, and determining the configuration information of the newly-added network arrangement cluster in the network arrangement cluster increasing instruction.
As shown in fig. 11, based on the same inventive concept as the device allocation method shown in fig. 9, an embodiment of the present application provides a second device allocation apparatus 1100, applied to any network scheduling cluster in a resource scheduling system, including:
A resource cluster acquisition module 1101, configured to determine a target resource cluster corresponding to the service request; the service request is sent after the gateway cluster determines a network arrangement cluster corresponding to a target tenant triggering the service request based on a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
The resource orchestration module 1102 is configured to allocate, based on the type of the service request, a target service device for the target tenant from a plurality of service devices in the target resource cluster.
In some alternative embodiments, the resource cluster acquisition module 1101 is specifically configured to:
And receiving a service request sent by the gateway cluster through the MQ of the network arrangement cluster, and acquiring the service request from the MQ.
In some optional embodiments, after the target tenant is assigned the target business service device, the resource orchestration module 1102 is further configured to:
and storing the information representing the target tenant and the information representing the target business service equipment in a database of the network orchestration cluster.
In some alternative embodiments, resource orchestration module 1102 is specifically configured to:
determining candidate business service equipment corresponding to the type of the business request from a plurality of business service equipment of the target resource cluster;
And selecting the target business service equipment from all candidate business service equipment based on the load parameters of the candidate business service equipment.
In some alternative embodiments, resource orchestration module 1102 is specifically configured to:
and determining the candidate business service equipment with the minimum load parameter as the target business service equipment.
In some optional embodiments, the apparatus further includes a shared processing module 1103 for:
if other tenants associated with the target tenant exist, sending the arrangement data of the target tenant to a shared data unit; obtaining the arrangement data of other tenants associated with the target tenant from the shared data unit; wherein the orchestration data includes tenant information, distributed business service equipment information, and shared information.
The specific implementation of the embodiments of fig. 10 to 11 may refer to the implementation of the above interaction method, and the repetition is not repeated.
Based on the same technical concept, the embodiment of the present application further provides a gateway cluster 1200 in a resource scheduling system, as shown in fig. 12, including at least one processor 1201 and a memory 1202 connected to the at least one processor, where in the embodiment of the present application, a specific connection medium between the processor 1201 and the memory 1202 is not limited, and in fig. 12, a connection between the processor 1201 and the memory 1202 is exemplified by a bus 1203. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one thick line is shown in fig. 12, but not only one bus or one type of bus.
Wherein processor 1201 is a control center of a gateway cluster in a resource orchestration system, various interfaces and lines may be utilized to connect various portions of the gateway cluster in the resource orchestration system, through execution or execution of instructions stored in memory 1202 and invocation of data stored in memory 1202, to effect data processing. Alternatively, the processor 1201 may include one or more processing units, and the processor 1201 may integrate an application processor and a modem processor, wherein the application processor primarily processes operating systems, user interfaces, application programs, etc., and the modem processor primarily processes issuing instructions. It will be appreciated that the modem processor described above may not be integrated into the processor 1201. In some embodiments, processor 1201 and memory 1202 may be implemented on the same chip, or they may be implemented separately on separate chips in some embodiments.
The processor 1201 may be a general purpose processor such as a central processing unit (English: central Processing Unit; abbreviated CPU), digital signal processor, application SPECIFIC INTEGRATED Circuit (ASIC), field programmable gate array or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, and may implement or execute the methods, steps, and logic blocks disclosed in embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of a method disclosed in connection with an embodiment of a method for assigning devices may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in a processor for execution.
Memory 1202 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 1202 may include at least one type of storage medium, and may include, for example, flash Memory, a hard disk, a multimedia card, a card-type Memory, random access Memory (english: random Access Memory, abbreviated: RAM), static random access Memory (english: static Random Access Memory, abbreviated: SRAM), programmable Read-Only Memory (english: programmable Read Only Memory, abbreviated: PROM), read-Only Memory (english: ROM), charged erasable programmable Read-Only Memory (english: ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory, abbreviated: EEPROM), magnetic Memory, magnetic disk, optical disk, and the like. Memory 1202 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 1202 in embodiments of the present application may also be circuitry or any other device capable of performing storage functions for storing program instructions and/or data.
In an embodiment of the present application, the memory 1202 stores a computer program that, when executed by the processor 1201, causes the processor 1201 to perform:
Responding to a service request triggered by a target tenant, and determining a network arrangement cluster corresponding to the target tenant based on a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
And sending the service request to a corresponding network arrangement cluster, so that the corresponding network arrangement cluster distributes target service equipment for the target tenant from a plurality of service equipment of a target resource cluster corresponding to the service request after receiving the service request.
In some alternative embodiments, processor 1201 performs:
determining whether the target tenant is contained in the tenants in the preset corresponding relationship;
If yes, determining a network arrangement cluster corresponding to the target tenant from the preset corresponding relation; otherwise, based on the state parameters of each network arrangement cluster, selecting the network arrangement cluster corresponding to the target tenant from all network arrangement clusters, and updating the preset corresponding relation based on the target tenant and the selected network arrangement cluster.
In some optional embodiments, the state parameter includes a first number and/or a second number, where the first number is a number of tenants corresponding to each network orchestration cluster, and the second number is a number of tenant service ports corresponding to each network orchestration cluster; the processor 1201 specifically performs:
Selecting a network arrangement cluster with the minimum first number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
Selecting a network arrangement cluster with the minimum second number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
For any network arrangement cluster, determining a weighted number of a first number and a second number of the network arrangement clusters based on a preset weight; and selecting the network arrangement cluster with the smallest weighted quantity from all the network arrangement clusters as the network arrangement cluster corresponding to the target tenant.
In some alternative embodiments, processor 1201 also performs:
If the number of the available network arrangement clusters is smaller than the preset number, notifying a message for characterizing to add the network arrangement clusters in a preset notification mode; the available network arrangement clusters are network arrangement clusters with processing performance parameters smaller than preset parameters.
In some alternative embodiments, after notifying the message characterizing the added network orchestration cluster by a preset notification mode, the processor 1201 further performs:
And responding to the network arrangement cluster increasing instruction, and determining the configuration information of the newly-added network arrangement cluster in the network arrangement cluster increasing instruction.
Based on the same technical concept, the embodiment of the present application further provides any network orchestration cluster in a resource orchestration system, including at least one processor and at least one memory, wherein the memory stores a computer program, which when executed by the processor, causes the processor to perform:
Determining a target resource cluster corresponding to the service request; the service request is sent after the gateway cluster determines a network arrangement cluster corresponding to a target tenant triggering the service request based on a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
And distributing target business service equipment for the target tenant from a plurality of business service equipment of the target resource cluster based on the type of the business request.
In some alternative embodiments, the processor performs in particular:
And receiving a service request sent by the gateway cluster through the MQ of the network arrangement cluster, and acquiring the service request from the MQ.
In some optional embodiments, after the target tenant is assigned the target business service device, the processor further performs:
and storing the information representing the target tenant and the information representing the target business service equipment in a database of the network orchestration cluster.
In some alternative embodiments, the processor performs in particular:
determining candidate business service equipment corresponding to the type of the business request from a plurality of business service equipment of the target resource cluster;
And selecting the target business service equipment from all candidate business service equipment based on the load parameters of the candidate business service equipment.
In some alternative embodiments, the processor performs in particular:
and determining the candidate business service equipment with the minimum load parameter as the target business service equipment.
In some alternative embodiments, the processor further performs:
if other tenants associated with the target tenant exist, sending the arrangement data of the target tenant to a shared data unit; obtaining the arrangement data of other tenants associated with the target tenant from the shared data unit; wherein the orchestration data includes tenant information, distributed business service equipment information, and shared information.
Based on the same technical idea, the embodiments of the present application also provide a computer-readable storage medium storing a computer program executable by a processor, which when run on the processor, causes the processor to perform the steps of the above-described device allocation method.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present application without departing from the spirit or scope of the application. Thus, it is intended that the present application also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (17)

1. A device allocation method, applied to a gateway cluster in a resource orchestration system, the method comprising:
Responding to a service request triggered by a target tenant, and determining a network arrangement cluster corresponding to the target tenant based on a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
And sending the service request to a corresponding network arrangement cluster, so that the corresponding network arrangement cluster distributes target service equipment for the target tenant from a plurality of service equipment of a target resource cluster corresponding to the service request after receiving the service request.
2. The method of claim 1, wherein determining the network orchestration cluster corresponding to the target tenant based on a preset correspondence comprises:
determining whether the target tenant is contained in the tenants in the preset corresponding relationship;
If yes, determining a network arrangement cluster corresponding to the target tenant from the preset corresponding relation;
If not, selecting the network arrangement cluster corresponding to the target tenant from all network arrangement clusters based on the state parameters of the network arrangement clusters, and updating the preset corresponding relation based on the target tenant and the selected network arrangement cluster.
3. The method according to claim 2, wherein the status parameter comprises a first number and/or a second number, the first number being the number of tenants respectively corresponding to each network orchestration cluster, the second number being the number of tenant traffic ports respectively corresponding to each network orchestration cluster; based on the state parameters of each network arrangement cluster, selecting the network arrangement cluster corresponding to the target tenant from all network arrangement clusters, wherein the network arrangement cluster comprises:
Selecting a network arrangement cluster with the minimum first number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
Selecting a network arrangement cluster with the minimum second number from all network arrangement clusters as the network arrangement cluster corresponding to the target tenant; or alternatively
For any network arrangement cluster, determining a weighted number of a first number and a second number of the network arrangement clusters based on a preset weight; and selecting the network arrangement cluster with the smallest weighted quantity from all the network arrangement clusters as the network arrangement cluster corresponding to the target tenant.
4. The method of claim 1, wherein the method further comprises:
If the number of the available network arrangement clusters is smaller than the preset number, notifying a message for characterizing to add the network arrangement clusters in a preset notification mode; the available network arrangement clusters are network arrangement clusters with processing performance parameters smaller than preset parameters.
5. The method of claim 4, further comprising, after notifying the message characterizing the incremental network orchestration cluster by a preset notification scheme:
And responding to the network arrangement cluster increasing instruction, and determining the configuration information of the newly-added network arrangement cluster in the network arrangement cluster increasing instruction.
6. A device allocation method, characterized by being applied to any network orchestration cluster in a resource orchestration system; the method comprises the following steps:
Determining a target resource cluster corresponding to the service request; the service request is sent after a gateway cluster determines a network arrangement cluster corresponding to a target tenant triggering the service request based on a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
And distributing target business service equipment for the target tenant from a plurality of business service equipment of the target resource cluster based on the type of the business request.
7. The method of claim 6, wherein obtaining the service request sent by the gateway cluster in the resource orchestration system comprises:
and receiving a service request sent by the gateway cluster through a Message Queue (MQ) of the network arrangement cluster, and acquiring the service request from the MQ.
8. The method of claim 6, further comprising, after assigning the target tenant with the target business service device:
and storing the information representing the target tenant and the information representing the target business service equipment in a database of the network orchestration cluster.
9. The method of claim 6, wherein assigning the target tenant with a target business service device from a plurality of business service devices of the target resource cluster based on the type of the business request comprises:
determining candidate business service equipment corresponding to the type of the business request from a plurality of business service equipment of the target resource cluster;
And selecting the target business service equipment from all candidate business service equipment based on the load parameters of the candidate business service equipment.
10. The method of claim 8, wherein selecting the target business service device from all candidate business service devices based on the load parameter of each candidate business service device comprises:
and determining the candidate business service equipment with the minimum load parameter as the target business service equipment.
11. The method according to any one of claims 6 to 10, further comprising:
if other tenants associated with the target tenant exist, sending the arrangement data of the target tenant to a shared data unit; obtaining the arrangement data of other tenants associated with the target tenant from the shared data unit; wherein the orchestration data includes tenant information, distributed business service equipment information, and shared information.
12. A resource orchestration system, comprising: the system comprises a gateway cluster, a plurality of network arrangement clusters and a plurality of resource clusters, wherein a plurality of business service devices are arranged in any one of the resource clusters;
The gateway cluster is used for responding to a service request triggered by a target tenant, determining a network arrangement cluster corresponding to the target tenant based on a preset corresponding relation, and sending the service request to the corresponding network arrangement cluster; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
The network arrangement cluster is used for determining a target resource cluster corresponding to the service request after the service request is acquired; and distributing target business service equipment for the target tenant from a plurality of business service equipment of the target resource cluster based on the type of the business request.
13. A device allocation apparatus, characterized by being applied to a gateway cluster in a resource orchestration system; the device comprises:
A network arrangement cluster determining module, configured to determine, based on a preset correspondence, a network arrangement cluster corresponding to a target tenant in response to a service request triggered by the target tenant; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
and the request sending module is used for sending the service request to a corresponding network arrangement cluster so that the corresponding network arrangement cluster can allocate target service equipment for the target tenant from a plurality of service equipment of a target resource cluster corresponding to the service request after receiving the service request.
14. A device allocation apparatus, characterized by being applied to any network orchestration cluster in a resource orchestration system; the device comprises:
The resource cluster acquisition module is used for determining a target resource cluster corresponding to the service request; the service request is sent after the gateway cluster determines a network arrangement cluster corresponding to a target tenant triggering the service request based on a preset corresponding relation; the preset corresponding relation comprises a corresponding relation between a network arrangement cluster and a tenant, and the same tenant in the preset corresponding relation corresponds to the same network arrangement cluster;
and the resource arrangement module is used for distributing target business service equipment for the target tenant from a plurality of business service equipment of the target resource cluster based on the type of the business request.
15. A gateway cluster comprising at least one processor and at least one memory, wherein the memory stores a computer program which, when executed by the processor, causes the processor to perform the method of any of claims 1-5.
16. A network orchestration cluster comprising at least one processor and at least one memory, wherein the memory stores a computer program that, when executed by the processor, causes the processor to perform the method according to any one of claims 6-11.
17. A computer readable storage medium, characterized in that it stores a computer program executable by a computer, which when run on the computer causes the computer to perform the method according to any one of claims 1-5 or claims 6-11.
CN202211687809.7A 2022-12-27 2022-12-27 Equipment allocation method, device and resource arrangement system Pending CN118301151A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211687809.7A CN118301151A (en) 2022-12-27 2022-12-27 Equipment allocation method, device and resource arrangement system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211687809.7A CN118301151A (en) 2022-12-27 2022-12-27 Equipment allocation method, device and resource arrangement system

Publications (1)

Publication Number Publication Date
CN118301151A true CN118301151A (en) 2024-07-05

Family

ID=91676568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211687809.7A Pending CN118301151A (en) 2022-12-27 2022-12-27 Equipment allocation method, device and resource arrangement system

Country Status (1)

Country Link
CN (1) CN118301151A (en)

Similar Documents

Publication Publication Date Title
US11882017B2 (en) Automated route propagation among networks attached to scalable virtual traffic hubs
US11831600B2 (en) Domain name system operations implemented using scalable virtual traffic hub
US10742446B2 (en) Interconnecting isolated networks with overlapping address ranges via scalable virtual traffic hubs
US10797989B2 (en) Scalable virtual traffic hub interconnecting isolated networks
US11855904B2 (en) Automated migration of compute instances to isolated virtual networks
US11218364B2 (en) Network-accessible computing service for micro virtual machines
US10785146B2 (en) Scalable cell-based packet processing service using client-provided decision metadata
US11088944B2 (en) Serverless packet processing service with isolated virtual network integration
CN108810013B (en) Container-based service access method
CN111404753B (en) Flat network configuration method, computer equipment and storage medium
US11710206B2 (en) Session coordination for auto-scaled virtualized graphics processing
US12047281B2 (en) Scalable network function virtualization service
US11784967B1 (en) Monitoring internet protocol address utilization to apply unified network policy
CN108737591B (en) Service configuration method and device
CN112035244A (en) Deployment of virtual node clusters in a multi-tenant environment
US10951479B1 (en) User controlled fault domains
EP3853708B1 (en) Scalable cell based packet processing service using client provided decision metadata
US11296981B2 (en) Serverless packet processing service with configurable exception paths
CN118301151A (en) Equipment allocation method, device and resource arrangement system
US11909719B1 (en) Managing the allocations and assignments of internet protocol (IP) addresses for computing resource networks
US11683374B2 (en) Containerized gateways and exports for distributed file systems
US11558301B2 (en) Method, device, and computer program product for accessing application system
US10848418B1 (en) Packet processing service extensions at remote premises

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination