Network resource management method and device, equipment and storage medium
Through the combination of network data management platform and springboard machine, the network resources of cloud computing data centers are automatically allocated, solving the problems of low efficiency and high labor costs in the existing technology, and achieving efficient and low-cost resource management.
Patent Information
- Application Number
- CN202310682058.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-08
- Publication Date
- 2024-12-10
AI Technical Summary
In the prior art, the network resource management of cloud computing data centers is inefficient and relies on human operation and maintenance, resulting in low efficiency and high labor costs.
Manage network resources of cloud computing data centers through the network data management platform, and use springboard machines to communicate and connect with the cluster, automatically allocate network resources, reduce human participation, and standardize management processes.
It realizes the automated allocation of network resources, improves allocation efficiency, reduces human operation and maintenance costs, standardizes management processes, and improves the efficiency and rationality of allocation through reasonable division of network resources.
Smart Images

Figure CN119109928A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a network resource management method, apparatus, device and storage medium. Background Art
[0002] A cloud computing data center can be understood as a data center based on cloud computing. A cloud computing data center usually manages many clusters, such as multiple kubernetes clusters, referred to as K8s clusters. Each cluster consumes a certain amount of network resources, so it is necessary to allocate network resources in the network resource pool of the cloud computing data center to each cluster.
[0003] Currently, network resource management is usually done by computer room operation and maintenance personnel, who manually plan network resources for clusters and allocate the planned network resources to clusters by writing a large number of programs. This is inefficient and has high labor costs. Summary of the invention
[0004] The embodiments of the present application provide a network resource management method, apparatus, device and storage medium, which can improve the management efficiency of network resources and reduce labor costs.
[0005] In a first aspect, an embodiment of the present application provides a network resource management method, which is applied to a network resource management platform, including:
[0006] Determining a target number of network resources required by a first cluster, where the first cluster is one of a plurality of clusters corresponding to a cloud computing data center;
[0007] Selecting the target number of idle network resources from a network resource database, wherein the network resource database includes a plurality of network resources obtained by performing network partitioning on a network resource pool of the cloud computing data center based on device distribution of the cloud computing data center;
[0008] The resource configuration information is sent to the first cluster via a jump board, the jump board is respectively connected to the network resource management platform and the plurality of clusters for communication, the resource configuration information includes the target number of idle network resources.
[0009] In a second aspect, an embodiment of the present application provides a network resource management method, which is applied to a jump server, wherein the jump server is respectively connected to a network resource management platform and multiple clusters corresponding to a cloud computing data center for communication, and the method includes:
[0010] Receive resource configuration information sent by a network resource management platform, wherein the resource configuration information includes a target number of idle network resources, wherein the target number of idle network resources is selected by the network resource management platform from a network resource database of a cloud computing data center based on the number of network resources required by a first cluster, wherein the network resource database includes a plurality of network resources obtained by performing network partitioning on a network resource pool of the cloud computing data center based on equipment distribution of the cloud computing data center, wherein the first cluster is one of a plurality of clusters corresponding to the cloud computing data center;
[0011] Send the resource configuration information to the first cluster
[0012] In a third aspect, an embodiment of the present application provides a network resource management device, which is applied to a network resource management platform, including:
[0013] a determining unit, configured to determine a target number of network resources required by a first cluster, wherein the first cluster is one of a plurality of clusters corresponding to a cloud computing data center;
[0014] A screening unit, configured to select the target number of idle network resources from a network resource database, wherein the network resource database includes a plurality of network resources obtained by performing network partitioning on a network resource pool of the cloud computing data center based on device distribution of the cloud computing data center;
[0015] A configuration unit is used to send resource configuration information to the first cluster through a jump machine, the jump machine is respectively connected to the network resource management platform and the multiple clusters for communication, and the resource configuration information includes the target number of idle network resources.
[0016] In a fourth aspect, an embodiment of the present application provides a network resource management device, which is applied to a jump server, including:
[0017] a receiving unit, configured to receive resource configuration information sent by a network resource management platform, wherein the resource configuration information includes a target number of idle network resources, wherein the target number of idle network resources is selected by the network resource management platform from a network resource database of a cloud computing data center based on the number of network resources required by a first cluster, wherein the network resource database includes a plurality of network resources obtained by performing network partitioning on a network resource pool of the cloud computing data center based on equipment distribution of the cloud computing data center, wherein the first cluster is one of a plurality of clusters corresponding to the cloud computing data center;
[0018] A sending unit is used to send the resource configuration information to the first cluster.
[0019] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to execute the method of the first aspect or the second aspect.
[0020] In a sixth aspect, an embodiment of the present application provides a network resource management system, including: a network resource management platform and a jump server, wherein the network resource management platform and the jump server are used to execute the method of the first aspect or the second aspect.
[0021] In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium for storing a computer program, which enables a computer to execute the method of the first aspect or the second aspect.
[0022] In an eighth aspect, an embodiment of the present application provides a chip for implementing the method of the first aspect or the second aspect. Specifically, the chip includes: a processor for calling and running a computer program from a memory so that a device equipped with the chip executes the method of the first aspect or the second aspect.
[0023] In a ninth aspect, an embodiment of the present application provides a computer program product, comprising computer program instructions, wherein the computer program instructions enable a computer to execute the method of the first aspect or the second aspect above.
[0024] In the tenth aspect, an embodiment of the present application provides a computer program, which, when executed on a computer, enables the computer to execute the method of the first aspect or the second aspect mentioned above.
[0025] In summary, in the present application, the network resources of the cloud computing data center are managed through a network data management platform, and the network data management platform is connected to the cluster communication under the cloud computing data center through a jump server. In this way, the network data management platform determines the target number of network resources required for the first cluster under the cloud computing data center, and selects the target number of idle network resources from the network resource database of the cloud computing data center, and then sends the idle network resources to the first cluster through the jump server in the form of resource configuration information, thereby realizing the automatic allocation of network resources, reducing the participation of human operation and maintenance, improving the allocation efficiency of network resources, and standardizing the management process of network resources. In addition, the embodiment of the present application is based on the equipment distribution of the cloud computing data center, and the network resource pool of the cloud computing data center is network-divided to obtain multiple network resources, so as to realize the reasonable division of network resources. In this way, when the network resources are allocated based on the reasonably divided network resources, the efficiency and rationality of the allocation can be further improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0027] Figure 1 A schematic diagram of the relationship between a cloud computing data center and a cluster involved in an embodiment of the present application;
[0028] Figure 2 A schematic diagram of an implementation environment of an embodiment of the present application;
[0029] Figure 3 A flowchart of a network resource management method provided in one embodiment of the present application;
[0030] Figure 4 A schematic diagram of a network data management system involved in an embodiment of the present application;
[0031] Figure 5 A schematic diagram of network division involved in an embodiment of the present application;
[0032] Fig. 6A A schematic diagram of dividing a root network involved in an embodiment of the present application;
[0033] Figure 6B A schematic diagram of network division involved in an embodiment of the present application;
[0034] Figure 6C This is another network division schematic diagram involved in an embodiment of the present application;
[0035] Fig.6D A schematic diagram of the status of an IP address involved in an embodiment of the present application;
[0036] Figure 7 A schematic diagram of network resource allocation involved in an embodiment of the present application;
[0037] Figure 8 A flowchart of a network resource management method provided in one embodiment of the present application;
[0038] Fig. 9 A schematic diagram of releasing network resources involved in an embodiment of the present application;
[0039] Fig.10 A flowchart of a network resource management method provided in one embodiment of the present application;
[0040] Fig.11 A schematic diagram of network resource allocation and release involved in an embodiment of the present application;
[0041] Fig.12 A schematic diagram of data processing of a jump server involved in an embodiment of the present application;
[0042] Fig.13 A schematic diagram of the structure of a network resource management device provided in one embodiment of the present application;
[0043] Fig.14 A schematic diagram of the structure of a network resource management device provided in one embodiment of the present application;
[0044] Fig.15 is a schematic block diagram of an electronic device provided in an embodiment of the present application;
[0045] Fig.16 A schematic diagram of a network resource management system provided in accordance with an embodiment of the present application. DETAILED DESCRIPTION
[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0047] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products, or devices.
[0048] The embodiment of the present application provides a network resource management method, which realizes automatic allocation of network resources when multiple clusters use network resources in a cloud computing data center, reduces the participation of human operation and maintenance, improves the allocation efficiency of network resources, and standardizes the management process of network resources.
[0049] The network resource management method provided in the embodiment of the present application can be applied to cloud computing, the Internet of Things, data centers and other fields to achieve efficient and low-cost management of network resources.
[0050] In order to facilitate understanding of the embodiments of the present application, the relevant concepts involved in the embodiments of the present application are first introduced:
[0051] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The backend services of the technical network system require a large amount of computing and storage resources, such as video websites, picture websites and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own identification mark, which needs to be transmitted to the backend system for logical processing. Data of different levels will be processed separately. All kinds of industry data need strong system backing support, which can only be achieved through cloud computing.
[0052] Cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, allowing various application systems to obtain computing power, storage space and information services as needed. The network that provides resources is called a "cloud". From the user's perspective, the resources in the "cloud" are infinitely scalable and can be obtained at any time, used on demand, expanded at any time, and paid for by use.
[0053] Cloud computing data center can be understood as the data center corresponding to cloud computing. A data center is a dedicated facility that integrates computing and storage resources to provide shared applications and data required for daily business operations.
[0054] The Internet of Things (IoT) refers to the use of various devices and technologies such as information sensors, radio frequency identification technology, global positioning system, infrared sensors, laser scanners, etc. to collect real-time information on any object or process that needs to be connected or interacted, including sound, light, heat, electricity, mechanics, chemistry, biology, location, etc., and to achieve ubiquitous connection between objects and objects, and between objects and people through various possible network accesses, and to realize intelligent perception, identification, and management of objects and processes.
[0055] A cluster is a collection of independent computers. A computer is called a node. The nodes are connected through a high-performance network. In addition to being a single computing resource for users, each node can also work together and be represented as a single, centralized computing resource for parallel computing tasks. A cluster is an architecture that is inexpensive, easy to build, and has good scalability. Cluster technology, specifically in cloud computing, is to connect multiple servers to form a large server cluster through a cluster software system (COS) to provide services to customers. All computers become a whole, and through this whole, a highly reliable, highly available, and continuous platform is provided, so that all resources such as data or application software can be shared through clients. The cloud computing platform uses cluster technology to ensure that users' business is continuous and has the characteristics of sustainable high availability, thereby minimizing business failures and providing high availability guarantees. A cluster has the following important features: each node in the cluster is a complete computer system. A node can be a workstation, a computer, or a symmetric multi-processor (SMP). Network connections usually use commercial network equipment such as Ethernet, Fiber Distributed Data Interface (FDDI), and optical fiber. Some commercial clusters also use dedicated networks for interconnection. The network interface is loosely coupled to the node's I / O bus. Each node has a local disk. Each node has its own independent operating system. The cluster also includes a set of central management software for unified management of the resources, tasks, and fault tolerance of the nodes in the cluster.
[0056] Kubernetes, or K8s for short, is an abbreviation that uses 8 to replace the eight characters in the middle of the name, "ubernete". It is an open source containerized application management framework for multiple hosts in a cloud platform. The goal of Kubernetes is to make the deployment of containerized applications simple and powerful. Kubernetes provides a mechanism for application deployment, planning, updating, and maintenance.
[0057] With the development of virtualization technology, multiple virtual machines can be virtualized on a server to provide external services. This method can greatly improve resource utilization.
[0058] A data center is a place where servers are centrally stored and run. It is a large-scale cluster. With the development of cloud computing and big data, cloud computing data center applications have emerged.
[0059] In the embodiments of the present application, IP allocation can be understood as the process of binding an IP address to a specific instance, such as a pod, a virtual machine, etc.
[0060] Figure 1 Schematic diagram of the relationship between a cloud computing data center and a cluster involved in an embodiment of the present application. Figure 1 As shown in the figure, a cloud technology data center usually manages many clusters. Each cluster consumes a certain amount of network resources, so the network resources of the cloud computing data center need to be configured for the cluster. Currently, network resources are still delivered to operation and maintenance personnel and computer room operation and maintenance personnel for manual operation and maintenance configuration management. However, network resources must be planned before deploying cloud products in a cluster. When the planning and configuration of these network resources are all operated and maintained by humans, the efficiency is low and the labor cost is high.
[0061] In order to solve this technical problem, an embodiment of the present application provides a network resource management method, which manages the network resources of a cloud computing data center through a network data management platform, and connects the network data management platform to the cluster communication under the cloud computing data center through a jump server. In this way, the network data management platform determines the target number of network resources required by the first cluster under the cloud computing data center, and selects the target number of idle network resources from the network resource database of the cloud computing data center, and then sends the idle network resources to the first cluster through the jump server in the form of resource configuration information, thereby realizing the automatic allocation of network resources, reducing the participation of human operation and maintenance, improving the allocation efficiency of network resources, and standardizing the management process of network resources. In addition, based on the equipment distribution of the cloud computing data center, the embodiment of the present application divides the network resource pool of the cloud computing data center into multiple network resources to achieve reasonable division of network resources, so that when network resources are allocated based on the reasonably divided network resources, the efficiency and rationality of allocation can be further improved.
[0062] The following introduces an implementation environment of the network resource management method of an embodiment of the present application.
[0063] Figure 2 Schematic diagram of an implementation environment of the present application embodiment. Figure 2 As shown, it includes a cloud computing data center 101, a network resource management platform 102, a jump server 103, and multiple clusters 104. The clusters 104 are some equipment clusters in the cloud computing data center 101, the cloud computing data center 101 is connected to the network resource management platform 102, the network resource management platform 102 is connected to the jump server 103, and the jump server 103 is connected to the multiple clusters 104.
[0064] In some embodiments, the network resource management platform 102 may be deployed in the cloud computing data center 101 to manage network resources in the cloud computing data center 101. In other words, the network resource management platform 102 is mounted on a device in the cloud computing data center 101.
[0065] In some embodiments, the network resource management platform 102 may be installed on other devices outside the cloud computing data center 101 .
[0066] In some embodiments, the jump server 103 is a device in the cloud computing data center 101, such as a server.
[0067] In some embodiments, the jump server 103 is a device outside the cloud computing data center 101 .
[0068] In some embodiments, the network resource management platform 102 first divides the network resource pool of the cloud computing data center 101. Specifically, based on the equipment distribution of the cloud computing data center, for example, based on the number of computer rooms and the number of switches included in each computer room in the cloud computing data center, the network resource pool of the cloud computing data center is divided into multiple network resources, and the multiple network resources may include IP addresses, etc. The embodiment of the present application divides the network resource pool of the cloud computing data center into multiple network resources based on the equipment distribution of the cloud computing data center, so as to realize the reasonable division of network resources, so that when the network resources are allocated based on the reasonably divided network resources, the efficiency and rationality of the allocation can be further improved.
[0069] When allocating network resources, when any one of the clusters 104 (for example, the first cluster) needs network resources, it sends a resource allocation request to the jump server 103, and the jump server 103 sends the resource allocation request to the network resource management platform 102. The network resource management platform 102 selects the target number of idle network resources from the network resource database of the cloud computing data center 101 (the network resource database includes the multiple network resources obtained by the above division). Then, the network resource management platform 102 carries the target number of idle network resources in the resource configuration information and sends it to the jump server 103. The jump server 103 sends the resource configuration information to the first cluster, so as to realize the automatic allocation of network resources, reduce the participation of human operation and maintenance, improve the allocation efficiency of network resources, and standardize the management process of network resources.
[0070] In some embodiments, the jump server 102 may be a server.
[0071] In some embodiments, the cluster 104 may include at least one of a server and a terminal device.
[0072] As mentioned above, the server can be one or more. When there are multiple servers, there are at least two servers for providing different services, and / or there are at least two servers for providing the same service, such as providing the same service in a load balancing manner, which is not limited in the embodiments of the present application. Among them, the above-mentioned server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The server can also become a node of the blockchain.
[0073] The terminal devices mentioned above include but are not limited to: desktop computers, laptops, smart phones, tablet computers, IoT devices and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Terminal devices are often equipped with display devices, which can also be displays, display screens, touch screens, etc., and touch screens can also be touch screens, touch panels, etc.
[0074] It should be noted that the application scenarios of the embodiments of the present application include but are not limited to Figure 1 shown.
[0075] The technical solutions of the embodiments of the present application are described in detail below through some embodiments. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0076] Figure 3 A flowchart of a network resource management method provided in one embodiment of the present application.
[0077] like Figure 3 As shown, the method comprises the following steps:
[0078] S101. A network resource management platform determines a target number of network resources required by a first cluster.
[0079] The first cluster is one of the multiple clusters corresponding to the cloud computing data center.
[0080] In the embodiments of the present application, Figure 4As shown, a network resource management system is proposed, including a network data management platform, a jump server and a cluster. The network resource management platform is connected to the jump server in communication, and the cluster under the cloud computing data center is connected to the jump server in communication. In this way, for each cluster in the cloud computing data center, the jump server is used to synchronize data with the network data management platform.
[0081] In some embodiments, Figure 4 As shown, the network data management platform includes a main program and a database, wherein the database may include a network resource database, which includes a plurality of network resources obtained by dividing the network resource pool of the cloud computing data center. Figure 4 As shown, the network resource database includes multiple network segments obtained by dividing the network resource pool of the cloud computing data center based on the equipment distribution in the cloud computing data center, for example, including network segment 1, network segment 2, network segment 3...network segment m, these m network segments.
[0082] In some embodiments, at least one of the m network segments can be divided into multiple IP addresses. That is to say, the network resource database of the embodiment of the present application includes multiple IP addresses, for example, multiple idle IP addresses. The main program manages the status of the IP addresses in the network resource database on the one hand, and allocates IP addresses to the cluster on the other hand.
[0083] In the embodiment of the present application, the cloud computing data center includes at least one computer room, and the network of each computer room is independent. In order to synchronize network resource data to different clusters in different computer rooms, an intermediate node is required to communicate with the network of each computer room. Therefore, the embodiment of the present application uses a jump server as an intermediate node, one end of which is connected to the network data management platform, and the other end is connected to the network of each computer room.
[0084] In some embodiments, Figure 4 As shown, the jump board includes an agent, which acts as a communication link between the network resource management platform and the cluster, and exposes the resource synchronization interface service to both sides. The network data management platform is mainly composed of a main program and a database.
[0085] The embodiment of the present application does not limit the type of cluster.
[0086] In some embodiments, the cluster is a kubernetes cluster.
[0087] In some embodiments, Figure 4As shown, each cluster includes a configuration management database (CMDB). The network resources of each cluster are stored in the CMDB in the cluster. The CMDB manages the status of the network resources within the cluster, such as the status of the IP addresses within the cluster. Exemplarily, the consumption of IP addresses can include being used to allocate to virtual machine sub-machines, or binding them to domain names as VIPs, as resources for externally exposed services, or binding to pods, etc.
[0088] In an embodiment of the present application, before allocating network resources, the network resource pool of the cloud computing data center is first divided into a plurality of network resources.
[0089] The embodiments of the present application do not limit the division of network resources into specific execution entities.
[0090] In some embodiments, the network resource management platform may perform network partitioning on the network resource pool of the cloud computing data center, and store the multiple network resources obtained by the partitioning in a network resource database.
[0091] In some embodiments, other devices outside the network resource management platform can perform network partitioning on the network resource pool of the cloud computing data center and send the multiple network resources obtained by the partitioning to the network resource management platform, so that the network resource management platform saves the multiple network resources obtained by the partitioning in the network resource database.
[0092] In the embodiment of the present application, in order to facilitate the description of the network resource management platform as the execution entity, the network partitioning process of the network resource pool is introduced.
[0093] In the embodiment of the present application, the network resource pool of the cloud computing data center is divided into networks based on the equipment distribution of the cloud computing data center, so that the division of network resources is more reasonable. In this way, when network resources are allocated based on the reasonably divided network resources, the efficiency and rationality of the allocation can be further improved.
[0094] The embodiments of the present application do not limit the specific method of network partitioning of the network resource pool of the cloud computing data center based on the equipment distribution of the cloud computing data center.
[0095] In some embodiments, based on the equipment distribution level of the cloud computing data center, the network resource pool of the cloud computing data center can be divided layer by layer, and finally a plurality of network resources are obtained.
[0096] For example, the network resource pool of the cloud computing data center is used as the root pool, and the root pool is divided layer by layer based on the device distribution level of the cloud computing data center. Figure 5As shown, the root pool is divided into multiple root network segments, the root network segment is divided into multiple first-level network segments, the first-level network segment is divided into multiple second-level network segments, and the second-level network segment is divided into multiple IP addresses. Figure 5 Four divisions are shown, which can be included according to actual needs. Figure 5 More or fewer divisions are determined based on the equipment distribution level of the cloud computing data center.
[0097] In some embodiments, network segmentation may be achieved by the following steps 1 and 2:
[0098] Step 1: Obtain a network resource pool of a cloud computing data center, the number of computer rooms included in the cloud computing data center, and the number of switches included in each computer room;
[0099] Step 2: Use the network resource pool as the root pool, divide the network resource pool into different groups based on the number of computer rooms and the number of switches included in each computer room, and obtain multiple IP addresses.
[0100] In this embodiment, since the network resource management platform is deployed at the cloud computing data center, or is connected to the cloud computing data center in communication, the equipment distribution and network resource pool of the cloud computing data center can be obtained. That is, the network resource management platform can obtain the network resource pool of the cloud computing data center, as well as the number of computer rooms included in the cloud computing data center and the number of switches included in each computer room from the cloud computing data center. In this way, the network resource management platform divides the network resource pool according to the number of computer rooms included in the cloud computing data center and the number of switches included in each computer room, and obtains multiple network resources, such as multiple IP addresses.
[0101] The embodiment of the present application does not limit the specific method of obtaining multiple IP addresses by dividing the network resource pool based on the number of computer rooms and the number of switches included in each computer room.
[0102] In some embodiments, the network resource pool of the cloud computing data center is divided into multiple root network segments, wherein two or more computer rooms with fewer switches correspond to one root network segment, and a computer room with more switches corresponds to one root network segment. Then, according to the number of switches included in the computer room under the root network segment, the root network segment is further divided to obtain multiple IP addresses.
[0103] In some embodiments, the above step 2 includes the following steps 21 and 22:
[0104] Step 21: Based on the number of computer rooms, multiple root network segments are divided from the network resource pool, where one computer room corresponds to one root network segment;
[0105] Step 22: For the ith computer room in the cloud computing data center, based on the number of switches included in the ith computer room, at least one IP address is allocated from the ith root network segment corresponding to the ith computer room, where i is a positive integer.
[0106] In this implementation, based on the number of computer rooms, the cloud computing data center network resource pool is used as the root pool and divided into multiple root network segments. Fig. 6A As shown, the cloud computing data center includes n computer rooms, and the network resource pool of the cloud computing data center is divided into n root network segments as a root pool, and one computer room corresponds to one root network segment.
[0107] In the embodiment of the present application, in step 11, dividing the network resource pool into multiple root network segments based on the number of computer rooms includes at least the following implementation methods:
[0108] Method 1: Based on the number of computer rooms included in the cloud computing data center, the network resource pool of the cloud computing data center is evenly divided into multiple root network segments. For example, if the cloud computing data center includes n computer rooms, the network resource pool of the cloud computing data center is evenly divided into n root network segments, and the resource volume of each root network is the same.
[0109] Method 2: Based on the number of computer rooms and the number of switches included in each computer room, multiple root network segments are divided from the network resource pool, where the amount of root network segment resources corresponding to the computer room with a large number of switches is greater than the amount of root network segment resources corresponding to the computer room with a small number of switches.
[0110] For example, a cloud computing data center includes two computer rooms, of which the first computer room includes more switches and the second computer room includes fewer switches. In this case, the network resource pool of the cloud computing data center can be divided into two root network segments. The network resource volume of the root network segment corresponding to the first computer room is greater than that of the root network segment corresponding to the second computer room.
[0111] Based on the above steps, after the network resource pool is divided into multiple root network segments, the above step 22 is performed to divide the root network segment corresponding to each computer room based on the number of switches included in each computer room to obtain multiple IP addresses. The process of dividing the root network segment corresponding to each computer room is basically the same. For ease of description, the i-th computer room is used as an example for description.
[0112] Assuming that the root network segment corresponding to the i-th computer room is recorded as the i-th root network segment, at least one IP address can be divided from the i-th root network segment corresponding to the i-th computer room based on the number of switches included in the i-th computer room.
[0113] In one possible implementation, Figure 6BAs shown, the i-th root network segment corresponding to the i-th computer room can be divided to obtain multiple secondary network segments, and the multiple secondary network segments are allocated to multiple switches under the i-th computer room, so that at least one secondary network segment corresponds to one switch. Then, these secondary network segments are divided to obtain at least one IP address. This implementation method can be executed when the number of switches included in the i-th computer room is small. In other words, if the number of switches included in the i-th computer room is small, the i-th root network segment can be directly corresponded to a small number of switches, so that multiple secondary network segments are configured on each switch, and then the secondary network segments are divided to obtain at least one IP address.
[0114] In a possible implementation, the above step 22 includes the following steps 221 and 222:
[0115] Step 221: divide a plurality of first-level network segments from the i-th root network segment, wherein each first-level network segment corresponds to at least one switch in the i-th computer room;
[0116] Step 222: for each of the plurality of primary network segments, divide the primary network segment into a plurality of secondary network segments, and assign the plurality of secondary network segments to at least one switch corresponding to the primary network segment, so that at least one secondary network segment corresponds to one switch;
[0117] Step 223: For each of the multiple secondary network segments, divide at least one IP address from the secondary network segment.
[0118] In this implementation, the i-th root network segment can be first divided into multiple first-level network segments, and then the switches in the i-th computer room correspond to the multiple first-level network segments, and at least one interactive machine corresponds to one first-level network segment. Then, each first-level network segment is further divided to obtain multiple second-level network segments, and these multiple second-level network segments are allocated to multiple switches in the i-th computer room, wherein each switch corresponds to at least one second-level network segment. Taking the first-level network segment 1 among the multiple first-level network segments as an example, assuming that the first-level network segment corresponds to 10 switches, the first-level network segment 1 is divided into 20 second-level network segments according to actual needs, wherein the second-level network segments can also be called second-level subnets. Then, these 20 second-level network segments are allocated to the above-mentioned 10 switches, so that each of the 10 switches corresponds to at least one second-level network segment. Finally, each second-level network segment is divided to obtain at least one IP address.
[0119] For example, Figure 6CAs shown, first, according to the number n of computer rooms included in the cloud computing data center, the network resource pool of the cloud computing data center is divided into n root network segments as a root pool, and one computer room corresponds to one root network segment. For the ith computer room among the n computer rooms, the ith root network segment corresponding to the ith computer room is divided into multiple first-level network segments, wherein each first-level network segment corresponds to at least one switch in the ith computer room, for example, one first-level network segment corresponds to m switches. Then, for each of the multiple first-level network segments, the first-level network segment is divided into multiple second-level network segments, and the multiple second-level network segments are assigned to the multiple switches under the first-level network segment. For example Figure 6C As shown, one primary network segment corresponds to m switches, the primary network segment is divided into multiple secondary network segments, and secondary network segments 1 to p in the multiple secondary network segments are allocated to switch 1.
[0120] In the embodiment of the present application, the implementation methods of dividing multiple first-level network segments from the i-th root network segment include but are not limited to the following:
[0121] Mode 1: Based on a first preset number, the i-th root network segment is divided into a first preset number of first-level network segments. For example, the i-th root network segment is evenly divided into 10 first-level network segments.
[0122] Method 2: Based on the number of switches included in the ith computer room, the ith root network segment is divided into multiple first-level network segments. For example, the switches included in the ith computer room are divided into N groups of switches, each group of switches includes at least one switch, and N is a positive integer; based on the N groups of switches, N first-level network segments are divided from the ith root network segment, and one first-level network segment corresponds to a group of switches. For example, assuming that the ith computer room includes 100 switches, assuming that every 10 switches are divided into a group, 10 groups of switches can be obtained, and then the ith root network segment can be divided into 10 first-level network segments, and each of the 10 groups of switches corresponds to one of the 10 first-level network segments.
[0123] When a primary network segment is divided into multiple secondary network segments in an embodiment of the present application, the primary network segment can be divided into multiple secondary network segments based on the business scenario and / or the number of network devices connected to the switch corresponding to the primary network segment. For example, when the number of network devices included in the switch corresponding to the primary network segment is large, the primary network segment can be divided into a larger number of secondary network segments.
[0124] In some embodiments, the most directly used network resource is an IP address. In the embodiment of the present application, the above step 223 divides at least one IP address from the secondary network segment and includes at least the following implementation methods:
[0125] Method 1: Based on a second preset number, the secondary network segment is divided into a second preset number of IP addresses.
[0126] Method 2, based on the preset usage scenario of the secondary network segment, at least one IP address is divided from the secondary network segment, wherein the status of each IP address in the at least one IP address includes one of idle, allocated, occupied and reserved.
[0127] In this method 2, if Fig.6D As shown in the figure, each secondary network segment can be used for different purposes. The IP addresses split from the secondary network segment will have four states, namely, free, allocated, occupied, and reserved. Each state has a corresponding scenario.
[0128] For example, for a secondary network segment, a secondary network segment can be understood as an IP network segment, also known as an IP address, and a subnet mask is usually used to constrain its range. For example, it is assumed that the IP network segment can be an IPv4 network segment, and the IPv4 network segment is a part of the range of 0.0.0.0-255.255.255.255.
[0129] In some embodiments, the first five addresses of the secondary network segment are the addresses of the network device, and the status is occupied, so when the network device needs to be configured, the first five addresses can be directly configured to the network device. For example, the first address of the five addresses is the gateway address, and the second to fifth addresses are broadcast addresses, etc.
[0130] In some embodiments, if the secondary network segment is used for installation services, a portion of the IP addresses (i.e., IP addresses) of the secondary network segment will be reserved for installation services, and the status is reserved. For example, several IP addresses (i.e., IP addresses) near the end of the secondary network segment, such as 9 addresses from 120 to 128, can be reserved for installation services.
[0131] In some embodiments, in addition to the IP addresses in the above-mentioned occupied and reserved states, other IP addresses (i.e., IP addresses) in the secondary network segment can be allocated to services. For example, the IP addresses (i.e., IP addresses) that have been allocated to the cluster in the secondary network segment have a state of allocated. The remaining unused IP addresses (i.e., IP addresses) in the secondary network segment can be marked as idle, and these idle IP addresses (i.e., IP addresses) can be allocated to other clusters for use.
[0132] As can be seen from the above, in the embodiment of the present application, firstly, based on the equipment distribution of the cloud computing data center, the network resource pool of the cloud computing data center is network partitioned, so that the division of network resources is more reasonable. The most direct management of network resources is reflected in the management of IP addresses. On the basis of the reasonably divided network resources (such as IP addresses), subsequent network resource (such as IP addresses) management can improve the efficiency and rationality of network resource management.
[0133] The following is an introduction to the configuration process of network resources.
[0134] In the embodiment of the present application, it can be seen from the above that the cluster under the cloud computing data platform is communicated with the jump server, so that the network resource management platform can configure network resources to the first cluster through the jump server.
[0135] Specifically, the network resource management platform determines a target number of network resources required by the first cluster.
[0136] In some embodiments, the network resources may include an IP address and related information corresponding to the IP address, such as network segment information corresponding to the IP address and device information such as a switch.
[0137] In some embodiments, the target number of network resources required by the first cluster can be understood as the number of IP addresses required by the first cluster. For example, the first cluster needs to create two virtual sub-machines, each of which requires an IP address, so it can be determined that the number of IP addresses required by the first cluster is 2.
[0138] In some embodiments, network resources also include other network-related resources, which is not limited in this embodiment of the present application.
[0139] The embodiment of the present application does not limit the specific manner in which the network resource management platform determines the target number of network resources required by the first cluster.
[0140] In some embodiments, the network resource management platform is a visualization platform, and users, such as network architects, can view the usage of network resources in the network resource management platform, and can also actively configure network resources for each cluster under the cloud computing data center. For example, the network architect determines the number of network resources required by the first cluster based on the network planning requirements of the first cluster and the current network resource situation, and records it as the target number. Then, the network architect enters the determined number of network resources, that is, the target number, into the input box corresponding to the network resource management platform, and the network resource management platform executes the following steps S102 and S103, selects the target number of idle network resources in the network resource database, and sends them to the first cluster through the jump server. In this implementation method, the network architect only needs to enter the number of required network resources, and no other operations are required, which greatly reduces the workload of the network architect and improves the configuration speed of network resources.
[0141] In some embodiments, the above S101 includes the following steps:
[0142] S101-A1, the first cluster sends a resource allocation request to the jump server;
[0143] S101-A2, the jump server sends a resource allocation request to the network resource management platform;
[0144] S101 -A3 . The network resource management platform determines a target number of network resources required by the first cluster based on the resource allocation request.
[0145] The resource allocation request is used to request a target number of network resources.
[0146] In this embodiment, when the first cluster among the multiple clusters needs network resources, for example, the first cluster creates a virtual sub-machine, and the virtual sub-machine may require external access, so the virtual sub-machine needs to be assigned an IP address that can access the external network. The first cluster sends a resource allocation request to the jump server, and the resource allocation request is used to request a target number of network resources (such as IP addresses).
[0147] In some embodiments, the number of network resources required by the first cluster (ie, the target number) carried in the resource allocation request may be determined by a cluster operation and maintenance personnel corresponding to the first cluster, or may be determined by a CMDB service in the first cluster.
[0148] In some embodiments, the resource allocation request may be sent by the CMDB service in the first cluster to the jump server.
[0149] It should be noted that the jump server may receive resource allocation requests sent by multiple clusters under the cloud computing data center at the same time. For each resource allocation request sent by each cluster, the processing process of the jump server and the network resource management platform is basically the same. For the sake of ease of description, here we take one cluster, i.e., the first cluster, sending a resource allocation request as an example.
[0150] As can be seen from the above, the jump server is in communication connection with the first cluster and the network resource management platform. Therefore, after the first cluster sends the resource allocation request to the jump server, the jump server sends the resource allocation request to the network resource management platform.
[0151] After the network resource management platform determines the target number of network resources required by the first cluster based on the above steps, it executes the following step S102.
[0152] S102: The network resource management platform selects a target number of idle network resources from the network resource database of the cloud computing data center.
[0153] As can be seen from the above, when the network resource pool of the cloud computing data center is divided into networks, the status of each of the multiple network resources (such as IP addresses) obtained by the division is marked, for example, the network resources are marked as idle, allocated, occupied or reserved. In this way, after the network resource management platform determines the target number of network resources required by the first cluster, it selects idle network resources, such as idle IP addresses, with the target number of idle states from the network resource database.
[0154] In a possible implementation, the network resource management platform selects a target number of idle IP addresses from idle IP addresses in a secondary network segment, and configures the addresses to the first cluster.
[0155] For example, assuming that the first cluster is a cluster under switch a, and switch a corresponds to multiple secondary network segments, a target number of idle IP addresses can be selected from the idle IP addresses under a certain secondary network segment among the multiple secondary network segments corresponding to switch a, and configured to the first cluster.
[0156] In a possible implementation, the network resource management platform may select a target number of idle IP addresses from the idle IP addresses under multiple secondary network segments, and configure the idle IP addresses to the first cluster.
[0157] Continuing with the above example, assuming that the first cluster is a cluster under switch a, and switch a corresponds to multiple secondary network segments. A target number of idle IP addresses can be selected from the idle IP addresses under two or more secondary network segments among the multiple secondary network segments corresponding to switch a, and configured to the first cluster.
[0158] S103: The network resource management platform sends resource configuration information to the jump server.
[0159] S104. The jump server sends the resource configuration information to the first cluster.
[0160] The resource configuration information includes a target number of idle network resources.
[0161] In an embodiment of the present application, the network resource management platform selects a target number of idle network resources from the network resource database of the cloud computing data center based on the above steps, carries the idle network resources in the resource configuration information, and then forwards the resource configuration information to the first cluster via the jump server.
[0162] It should be noted that the idle network resources in the embodiment of the present application include not only the idle IP address, but also the network segment information and switch information corresponding to the idle IP address. The network segment information and switch information corresponding to the idle IP address can be determined based on the above network division method. For example, assuming that the idle IP address required by the first cluster determined above is Figure 6C When it is an idle IP address under the secondary network segment 1 shown, the network segment information corresponding to the idle IP address includes relevant information of the secondary network segment 1, and the switch information corresponding to the idle IP address includes relevant information of switch 1, etc.
[0163] In some embodiments, the network resource management platform directly carries the target number of idle network resources in the resource configuration information without processing, and the resource configuration information also includes the identification information of the first cluster. The optional identification information of the first cluster can be obtained by the network resource management platform parsing from the resource allocation request. That is to say, in addition to the target number of network resources to be requested, the resource allocation request also includes the identification information of the first cluster. In this way, based on the above steps, after determining the target number of idle network resources, the network resource management platform carries the target number of idle network resources and the identification information of the first cluster in the resource configuration information and sends it to the jump server. The jump server sends the resource configuration information to the first cluster based on the identification information of the first cluster carried in the resource configuration information.
[0164] In some embodiments, before sending the target number of idle network resources to the first cluster, the network resource management platform first encapsulates the target number of idle network resources. Specifically, the network resource management platform obtains the version information of the first cluster, and based on the version information of the first cluster, encapsulates the target number of idle network resources, and then carries the encapsulated idle network resources in the resource configuration information and sends it to the jump server, so that the jump server sends the resource configuration information to the first cluster.
[0165] In the embodiment of the present application, the network resource management platform obtains the version information of the first cluster in at least the following ways:
[0166] In mode 1, the resource configuration request sent by the first cluster includes the version information of the first cluster, so that the network resource management platform can obtain the version information of the first cluster from the resource configuration request.
[0167] In mode 2, the resource configuration request sent by the first cluster includes the version type of the first cluster. At this time, the network resource management platform can search the cluster database for the version information of the first cluster based on the version type of the first cluster. Exemplarily, the cluster database can be located on the network resource management platform, or the cluster database is located on other devices, and the network resource management platform can access the cluster database.
[0168] In an example of this embodiment, since the resource configuration information includes idle network resources encapsulated based on the version information of the first cluster, the jump server can find the first cluster based on the version information of the first cluster and then send the resource configuration information to the first cluster.
[0169] In an example of this embodiment, similar to the above embodiment, the resource configuration information includes encapsulated idle network resources and identification information of the first cluster. In this way, the jump server can query the first cluster based on the identification information of the first cluster, and then send the resource configuration information to the first cluster.
[0170] In some embodiments, Figure 7 As shown, the network resource management platform includes a converter, which can encapsulate and decapsulate network resources based on the version information of the cluster. Figure 7 As shown, after the network resource management platform determines the target number of idle network resources from the network resource database, the target number of idle network resources is encapsulated through a converter. Specifically, the converter obtains version information of the first cluster from the cluster database, and uses the version information of the first cluster to encapsulate the target number of idle network resources, and carries the encapsulated idle network resources in the resource configuration information to the agent in the jump server, and the agent sends the resource configuration information to the CMDB service in the first cluster for resource allocation.
[0171] In some embodiments, after the network resource management platform successfully sends the target number of idle network resources to the first cluster, the network resource management platform updates the status of the target number of idle network resources in the network resource management database, that is, updates the status of the network resources from an idle state to an allocated state, thereby completing the allocation of network resources.
[0172] The above describes in detail the process of allocating network resources to the first cluster in an automated and standardized manner by the network resource management platform.
[0173] The network resource management method provided in the embodiment of the present application manages the network resources of the cloud computing data center through a network data management platform, and connects the network data management platform to the cluster communication under the cloud computing data center through a jump server. In this way, the network data management platform determines the target number of network resources required by the first cluster under the cloud computing data center, and selects the target number of idle network resources from the network resource database of the cloud computing data center, and then sends the idle network resources to the first cluster through the jump server in the form of resource configuration information, thereby realizing the automatic allocation of network resources, reducing the participation of human operation and maintenance, improving the allocation efficiency of network resources, and standardizing the management process of network resources. In addition, based on the equipment distribution of the cloud computing data center, the embodiment of the present application divides the network resource pool of the cloud computing data center into multiple network resources to achieve reasonable division of network resources, so that when network resources are allocated based on the reasonably divided network resources, the efficiency and rationality of allocation can be further improved.
[0174] The above describes the process of configuring network resources for a cluster by the network resource management platform. In the embodiment of the present application, the network resource management platform can also recycle network resources, thereby realizing the full life cycle management of network resources.
[0175] Figure 8 A flowchart of a network resource management method provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the network resource recovery process of the embodiment of the present application includes:
[0176] S201. The second cluster sends a resource release request to the jump server.
[0177] The resource release request includes a first network resource to be released, and the second cluster is one of multiple clusters corresponding to the cloud computing data center.
[0178] In some embodiments, the second cluster is the same as the first cluster.
[0179] In an embodiment of the present application, if one or more network resources in the second cluster are used up, for example, a virtual sub-machine created by the second cluster is used up, the network resources corresponding to the virtual sub-machine are released. At this time, the second cluster can send a resource release request to the jump server to request the recovery of the first network resources released by the second cluster, so that the recovered first network resources can be used for other clusters or other services, thereby improving the efficiency of network resource use.
[0180] In some embodiments, the resource release request is actively initiated by the second cluster, that is, when the second cluster determines that one or more network resources in the second cluster have been used up, the second cluster actively sends a resource release request to the jump server.
[0181] In some embodiments, the resource release request is initiated by the operation and maintenance personnel of the second cluster. For example, the operation and maintenance personnel of the second cluster determines that one or more network resources in the second cluster have been used up, and then determines the one or more network resources as the first network resources to be released, and then controls the second cluster to send a resource release request to the jump server, and the resource release request includes the first network resources to be released in the second cluster determined by the operation and maintenance personnel.
[0182] In some embodiments, Fig. 9 As shown, the second cluster includes a CMDB service, and the second cluster can send a resource release request to the jump server through the CMDB service.
[0183] S202: The jump server sends a resource release request to the network resource management platform.
[0184] S203: The network resource management platform reclaims the first network resource based on the resource release request.
[0185] In an embodiment of the present application, the second cluster sends the first network resource to be reclaimed to the network resource management platform through a jump server, and the network resource management platform reclaims the first network resource.
[0186] In some embodiments, Fig. 9 As shown, the jump server includes an agent, and the CMDB service in the second cluster sends the resource release request to the agent in the jump server, and the agent sends the resource release request to the network resource management platform.
[0187] In some embodiments, as can be seen from the above, when the network resource management platform configures network resources for a cluster, it encapsulates the network resources based on the version information of the cluster, so that the network resources used by the cluster are encapsulated network resources. Based on this, the first network resource included in the resource release request sent by the second cluster is the encapsulated first network cluster, and at this time, the above S203 includes the following steps:
[0188] S203-A1, obtaining version information of the second cluster;
[0189] S203-A2: Decapsulate the encapsulated first network resource based on the version information of the second cluster, and update the state of the first network resource to an idle state.
[0190] In this embodiment, if the resource release request includes the encapsulated first network cluster, the network resource management platform needs to obtain the version information of the second cluster, and decapsulate the encapsulated first network resource based on the version information, obtain the decapsulated first network resource, obtain the first network resource, and update the status of the first network resource to an idle state.
[0191] In some embodiments, Fig. 9 As shown, the network resource management platform includes a converter, so that the agent in the jump server sends the resource release request to the converter in the network resource management platform, and the converter decapsulates the encapsulated first network resource based on the version information of the second cluster to obtain the decapsulated first network resource.
[0192] In some embodiments, if the network resource database includes the first network resource, but the state of the first network resource is an allocated state, then the network resource management platform obtains the decapsulated first network resource based on the above steps, searches for the first network resource in the network resource database based on the decapsulated first network resource, and updates the state of the first network resource from the allocated state to the idle state.
[0193] In some embodiments, if the network resource management platform deletes the first network resource from the network resource database after allocating the first network resource to the second cluster, the network resource management platform obtains the decapsulated first network resource based on the above steps, saves the first network resource back into the network resource database, and sets the state of the first network resource to an idle state.
[0194] The embodiment of the present application introduces the process of recycling network resources. Through a jump server and a network resource management platform, timely recycling of network resources that have been used up in a cluster can be achieved so that the recycled network resources can be used for other clusters or other businesses, thereby improving the utilization rate of network resources. The entire recycling process is an automated process, which reduces labor costs and further improves the management efficiency of network resources.
[0195] In order to further illustrate the management process of network resources by the network resource management method provided in the embodiment of the present application, the embodiment of the present application introduces the configuration and recovery process of the network resources of the first cluster.
[0196] Fig.10 A flowchart of a network resource management method provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the method of the embodiment of the present application includes:
[0197] S301. The network resource management platform divides the network resource pool of the cloud computing data center based on the equipment distribution of the cloud computing data center to obtain multiple network resources.
[0198] In an embodiment of the present application, before configuring and recycling network resources, the network resource pool of the cloud computing data center is first divided into networks to obtain multiple network resources, such as multiple IP addresses.
[0199] In the embodiment of the present application, the network resource management platform divides the network resource pool of the cloud computing data center based on the equipment distribution of the cloud computing data center, so that the division of network resources is more reasonable. In this way, when network resources are allocated based on the reasonably divided network resources, the efficiency and rationality of the allocation can be further improved.
[0200] It should be noted that the embodiment of the present application uses the network resource management platform as the execution subject to introduce the process of network partitioning of the network resource pool of the cloud computing data center. However, in some embodiments, the network resource pool of the cloud computing data center can also be network partitioned through other devices, that is, the embodiment of the present application does not limit the specific execution subject of the network partition, as long as the network partition is based on the device distribution of the cloud computing data center.
[0201] The embodiment of the present application does not limit the specific method of obtaining multiple network resources by performing network partitioning on the network resource pool of the cloud computing data center based on the equipment distribution of the network resource management platform.
[0202] Exemplarily, the network resource management platform obtains the network resource pool of the cloud computing data center, the number of computer rooms included in the cloud computing data center, and the number of switches included in each computer room; takes the network resource pool as the root pool, and divides the network resource pool into networks based on the number of computer rooms and the number of switches included in each computer room to obtain multiple IP addresses.
[0203] For example, based on the number of computer rooms, multiple root network segments are divided from the network resource pool, with one computer room corresponding to one root network segment; for each computer room, based on the number of switches included in the computer room, at least one IP address is divided from the root network segment corresponding to the computer room.
[0204] The specific implementation process of the above S301 can refer to the relevant description of the above steps 1 to 2, which will not be repeated here.
[0205] The above is an introduction to the process of dividing network resources. The following is an introduction to the process of allocating network resources.
[0206] S302: The network resource management platform determines a target number of network resources required by the first cluster.
[0207] The first cluster is one of the multiple clusters corresponding to the cloud computing data center.
[0208] For example, the network architect determines the number of network resources required by the first cluster based on the network planning requirements of the first cluster and the current network resource situation, which is recorded as the target number.
[0209] For another example, the first cluster sends a resource allocation request to the jump server; the jump server sends the resource allocation request to the network resource management platform; the network resource management platform determines the target number of network resources required by the first cluster based on the resource allocation request.
[0210] The specific implementation process of the above S302 can refer to the relevant description of the above S101, which will not be repeated here.
[0211] S303: The network resource management platform selects a target number of idle network resources from the network resource database of the cloud computing data center.
[0212] S304: The network resource management platform sends resource configuration information to the jump server.
[0213] S305: The jump server sends the resource configuration information to the first cluster.
[0214] In some embodiments, before sending the target number of idle network resources to the first cluster, the network resource management platform first encapsulates the target number of idle network resources. Specifically, the network resource management platform obtains the version information of the first cluster, and based on the version information of the first cluster, encapsulates the target number of idle network resources, and then carries the encapsulated idle network resources in the resource configuration information and sends it to the jump server, so that the jump server sends the resource configuration information to the first cluster.
[0215] For example, Fig.11 As shown, after the network resource management platform determines the target number of idle network resources from the network resource database, the target number of idle network resources is encapsulated through a converter. Specifically, the converter obtains version information of the first cluster from the cluster database, and uses the version information of the first cluster to encapsulate the target number of idle network resources, and carries the encapsulated idle network resources in the resource configuration information to the agent in the jump server, and the agent sends the resource configuration information to the CMDB service in the first cluster for resource allocation.
[0216] The specific implementation process of the above S303 to S305 can refer to the relevant description of the above S102 to S104, which will not be repeated here.
[0217] The above S303 to S305 are the process of allocating network resources. The following is an introduction to the process of recovering network resources.
[0218] S306: The first cluster sends a resource release request to the jump server.
[0219] The resource release request includes the first network resource to be released.
[0220] In this embodiment, it is assumed that the second cluster is the first cluster as an example, and the network resource allocation and network resource recovery process of the first cluster is introduced.
[0221] In some embodiments, the first network resource may be a target number of network resources allocated to the first cluster by the network resource management platform.
[0222] The specific implementation process of the above S306 can refer to the relevant description of the above S201, which will not be repeated here.
[0223] S307: The jump server sends a resource release request to the network resource management platform.
[0224] S308: The network resource management platform reclaims the first network resource based on the resource release request.
[0225] In some embodiments, if the first network resource included in the above resource release request is an encapsulated first network cluster, the network resource management platform needs to obtain the version information of the second cluster; based on the version information of the second cluster, the encapsulated first network resource is decapsulated, and the state of the first network resource is updated to an idle state.
[0226] For example, Fig.11 As shown, the CMDB service in the first cluster sends a resource release request to the agent in the jump server, and the agent sends the resource release request to the converter in the network resource management platform. The converter queries the version information of the first cluster in the cluster database, and decapsulates the encapsulated first network resource based on the version information of the first cluster to obtain the decapsulated first network resource, and finally updates the state of the first network resource in the network resource database to an idle state, thereby realizing the release and recovery of the network resource.
[0227] The specific implementation process of the above S307 and S308 can refer to the relevant description of the above S202 and S203, which will not be repeated here.
[0228] As can be seen from the above, the jump server performs receiving and sending processing on the above-mentioned resource configuration request, resource configuration information and resource release request. In the embodiment of the present application, the jump server processes at least one of the resource configuration request, resource configuration information and resource release request in a consistent manner. For ease of description, the resource configuration request, resource configuration information and resource release request are recorded as the first information, that is, the first information is the above-mentioned resource allocation request or resource configuration information or resource release request. The following is an introduction to the jump server's processing of the first information, which specifically includes the following steps:
[0229] Step A: The jump server receives a first request sent by the target object;
[0230] Step B: the jump server creates the first request as a request task and puts the request task into a request task queue;
[0231] Step C: The jump server periodically pulls the request task from the request task queue and creates a child process to execute the pulled request task.
[0232] The target object is the first cluster or the network resource management platform or the second cluster, and the first request is a resource allocation request or resource configuration information or a resource release request.
[0233] Specifically, if the target object is the first cluster, the first request may be a resource allocation request, that is, the first cluster sends a resource allocation request to the jump server, and the jump server sends the resource allocation request to the network resource management platform.
[0234] If the target object is a network resource management platform, the first request may be resource configuration information. The network resource management platform sends the resource configuration information to the jump server, and the jump server sends the resource configuration information to the first cluster.
[0235] If the target object is the second cluster, the first request may be a resource release request. The second cluster sends the resource release request to the jump server, and the jump server sends the resource release request to the network resource management platform.
[0236] In an embodiment of the present application, the process of the jump machine processing the above-mentioned resource allocation request or resource configuration information or resource release request is consistent. Therefore, for the convenience of description, the above-mentioned resource allocation request or resource configuration information or resource release request is recorded as the first request, and the jump machine processing the first request is taken as an example for explanation.
[0237] In the embodiment of the present application, the number of clusters corresponding to the cloud computing data center is relatively large, and the amount of data that the jump server needs to process at the same time is relatively large. For example, the jump server may receive resource release requests sent by multiple clusters, resource allocation requests sent by multiple clusters, and resource configuration information sent by the network resource management platform to multiple clusters at the same time. In order to prevent information congestion, such as Fig.12 As shown, the jump server creates each request information received, such as the first request, as a request task, and adds the request task to the request task queue. In this way, the jump server can regularly pull request tasks from the request task queue for execution, ensuring the orderly processing of the received request tasks.
[0238] In one example, the jump server includes a client, a request task queue, and a server, wherein the client creates a request scheduling process, receives a first request sent by a target device, parses the first request, creates a request task, and adds the created request task to the request task queue. Then, the server creates a task execution process, periodically pulls request tasks from the request task queue, creates a child process, executes the request task, and sends out the first request corresponding to the request task.
[0239] In some embodiments, if the request task pulled by the jump board is completed, the task status of the request task in the task request queue is updated to a completed state. Exemplarily, the subprocess executing the request task in the jump board updates the task status of the request task in the task request queue to a completed state.
[0240] In some embodiments, if the request task is completed, the execution result of the request task is saved in the task request queue. Exemplarily, after the subprocess executing the request task in the jump server completes the request task, the execution result of the request task is written into the task request queue. The execution result of the request task includes success, failure, etc.
[0241] In some embodiments, when the jump server creates the first request as a request task, it sends the task identifier of the request task to the target device. In this way, the target device can query at least one of the execution result and the task status of the request task in the task request queue regularly based on the task identifier.
[0242] In some embodiments, if the target device finds out that the execution status of the request task is completed in the task request queue based on the task identifier, the jump board is controlled to delete the request task in the request task queue. Then, the target device sends a deletion request to the jump board for the request task in the request task queue whose task status is completed. The jump board deletes the request task in the request task queue whose task status is completed based on the deletion request, so as to achieve slimming of the request task queue and save space resources of the jump board.
[0243] The network resource management method provided in the embodiment of the present application manages the allocation and recovery of network resources of a cloud computing data center through a network data management platform, and connects the network data management platform to the cluster communication under the cloud computing data center through a jump server. In this way, the network data management platform determines the target number of network resources required by the first cluster under the cloud computing data center, and selects the target number of idle network resources from the network resource database of the cloud computing data center, and then sends the idle network resources to the first cluster through the jump server in the form of resource configuration information. At the same time, the second cluster can send a resource release request to the network data management platform through the jump server, so that the network data management platform recovers the first network resource based on the resource release request. It can be seen that the embodiment of the present application realizes the automatic allocation and recovery of network resources, reduces the participation of human operation and maintenance, improves the management efficiency of network resources, and standardizes the management process of network resources. In addition, based on the equipment distribution of the cloud computing data center, the embodiment of the present application divides the network resource pool of the cloud computing data center into multiple network resources to achieve reasonable division of network resources, so that when network resource management is performed based on the reasonably divided network resources, the efficiency and rationality of management can be further improved.
[0244] It should be understood that Figures 3 to 12 This is only an example of the present application and should not be construed as limiting the present application.
[0245] The preferred embodiments of the present application are described in detail above in conjunction with the accompanying drawings. However, the present application is not limited to the specific details in the above embodiments. Within the technical concept of the present application, the technical solution of the present application can be subjected to a variety of simple modifications, and these simple modifications all belong to the protection scope of the present application. For example, the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present application will not further explain various possible combinations. For another example, the various different embodiments of the present application can also be arbitrarily combined, as long as they do not violate the ideas of the present application, they should also be regarded as the contents disclosed in the present application.
[0246] Combination of the above Figures 3 to 12, a method embodiment of the present application is described in detail, and an apparatus embodiment of the present application is described in detail below.
[0247] Fig.13 The network resource management device 10 is applied to a network resource management platform.
[0248] like Fig.13 As shown, the network resource management device 10 includes:
[0249] A determination unit 11 is used to determine a target number of network resources required by a first cluster, where the first cluster is one of a plurality of clusters corresponding to a cloud computing data center;
[0250] A screening unit 12 is used to select the target number of idle network resources from a network resource database, wherein the network resource database includes a plurality of network resources obtained by network partitioning a network resource pool of the cloud computing data center based on device distribution of the cloud computing data center;
[0251] The configuration unit 13 is used to send resource configuration information to the first cluster through a jump machine, the jump machine is respectively connected to the network resource management platform and the multiple clusters for communication, and the resource configuration information includes the target number of idle network resources.
[0252] In some embodiments, the network resources include IP addresses, and the configuration unit 13 is also used to obtain the network resource pool of the cloud computing data center, the number of computer rooms included in the cloud computing data center, and the number of switches included in each computer room; the network resource pool is used as a root pool, and based on the number of computer rooms and the number of switches included in each computer room, the network resource pool is divided into networks to obtain multiple IP addresses.
[0253] In some embodiments, the configuration unit 13 is specifically used to divide a plurality of root network segments from the network resource pool based on the number of computer rooms, wherein one computer room corresponds to one root network segment; for the i-th computer room in the cloud computing data center, based on the number of switches included in the i-th computer room, at least one IP address is divided from the i-th root network segment corresponding to the i-th computer room, where i is a positive integer.
[0254] In some embodiments, the configuration unit 13 is specifically used to divide a plurality of root network segments from the network resource pool based on the number of computer rooms and the number of switches included in each computer room, wherein the amount of resources of the root network segments corresponding to computer rooms with a large number of switches is greater than the amount of resources of the root network segments corresponding to computer rooms with a small number of switches.
[0255] In some embodiments, the configuration unit 13 is specifically used to divide a plurality of first-level network segments from the i-th root network segment, wherein each first-level network segment corresponds to at least one switch in the i-th computer room; for each of the plurality of first-level network segments, a plurality of second-level network segments are divided from the first-level network segment, and the plurality of second-level network segments are assigned to at least one switch corresponding to the first-level network segment, so that at least one second-level network segment corresponds to one switch; for each of the plurality of second-level network segments, at least one IP address is divided from the second-level network segment.
[0256] In some embodiments, the configuration unit 13 is specifically used to divide the switches included in the i-th computer room into N groups of switches, each group of switches includes at least one switch, and N is a positive integer; based on the N groups of switches, N first-level network segments are divided from the i-th root network segment, and one first-level network segment corresponds to a group of switches.
[0257] In some embodiments, the configuration unit 13 is specifically used to divide at least one IP address from the secondary network segment based on a preset usage scenario of the secondary network segment, and the status of each of the at least one IP address includes one of idle, allocated, occupied and reserved.
[0258] In some embodiments, the configuration unit 13 is specifically used to receive a resource allocation request for the first cluster sent by the jump server, wherein the resource allocation request is used to request the target number of network resources; based on the resource allocation request, determine the target number of network resources required by the first cluster.
[0259] In some embodiments, the configuration unit 13 is further used to obtain version information of the first cluster before sending the resource configuration information to the first cluster through the jump machine, and encapsulate the target number of idle network resources based on the version information of the first cluster; send the resource configuration information to the jump machine so that the jump machine sends the resource configuration information to the first cluster, and the resource configuration information includes the encapsulated idle network resources.
[0260] In some embodiments, the resource allocation request includes a version type of the first cluster, and the configuration unit 13 is specifically configured to search for version information of the first cluster in a cluster database based on the version type of the first cluster.
[0261] In some embodiments, the configuration unit 13 is also used to receive a resource release request of the second cluster sent by the jump server, the resource release request includes a first network resource to be released, and the second cluster is one of the multiple clusters; based on the resource release request, the first network resource is recovered.
[0262] In some embodiments, the configuration unit 13 is specifically configured to obtain version information of the second cluster; based on the version information of the second cluster, decapsulate the encapsulated first network resource, and update the state of the first network resource to an idle state.
[0263] In some embodiments, the configuration unit 13 is specifically configured to search for the version information of the second cluster in the cluster database based on the version type of the second cluster.
[0264] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be described here. Specifically, Fig.13 The device 10 shown can execute the above-mentioned network resource management platform side method embodiment, and the aforementioned and other operations and / or functions of each module in the device 10 are respectively for realizing the above-mentioned method embodiment, which will not be repeated here for the sake of brevity.
[0265] Fig.14 The schematic diagram of the structure of the network resource management device provided by an embodiment of the present application is as follows: The network resource management device 20 is applied to a jump board, and the jump board is respectively connected to a network resource management platform and a plurality of clusters corresponding to a cloud computing data center.
[0266] like Fig.14 As shown, the network resource management device 20 includes:
[0267] A receiving unit 21 is used to receive resource configuration information sent by a network resource management platform, wherein the resource configuration information includes a target number of idle network resources, and the target number of idle network resources is selected by the network resource management platform from a network resource database of a cloud computing data center based on the number of network resources required by a first cluster, wherein the network resource database includes a plurality of network resources obtained by performing network partitioning on a network resource pool of the cloud computing data center based on equipment distribution of the cloud computing data center, and the first cluster is one of a plurality of clusters corresponding to the cloud computing data center;
[0268] The sending unit 22 is configured to send the resource configuration information to the first cluster.
[0269] In some embodiments, before receiving the resource configuration information sent by the network resource management platform, the receiving unit 21 is also used to receive a resource allocation request sent by the first cluster, and the resource allocation request is used to request a target number of network resources; and send the resource allocation request to the network resource management platform so that the network resource management platform selects the target number of idle network resources from the network resource database of the cloud computing data center.
[0270] In some embodiments, the receiving unit 21 is also used to receive a resource release request sent by the second cluster, and the resource release request includes the first network resource to be released; the sending unit 22 is also used to send the resource release request to the network resource management platform so that the network resource management platform can reclaim the first network resource.
[0271] In some embodiments, the receiving unit 21 is also used to receive a first request sent by a target object, where the target object is the first cluster or the network resource management platform or the second cluster, and the first request is a resource allocation request or resource configuration information or a resource release request; create the first request as a request task, and place the request task in a request task queue; periodically pull request tasks from the request task queue, and create a subprocess to execute the pulled request task.
[0272] In some embodiments, the receiving unit 21 is further configured to update the task status of the request task in the task request queue to a completed status if the pulled request task is executed.
[0273] In some embodiments, the sending unit 22 is further configured to save the execution result of the request task into the task request queue if the execution of the request task is completed.
[0274] In some embodiments, the sending unit 22 is also used to send the task identifier of the request task to the target device when the first request is created as a request task, so that the target device can periodically query at least one of the execution result and task status of the request task in the task request queue based on the task identifier.
[0275] In some embodiments, the sending unit 22 is also used to receive a deletion request from the target device for a request task in the request task queue whose task status is completed; based on the deletion request, the request task in the request task queue whose task status is completed is deleted.
[0276] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be described here. Specifically, Fig.14 The device 20 shown can execute the above-mentioned jump machine side method embodiment, and the aforementioned and other operations and / or functions of each module in the device 20 are respectively for realizing the above-mentioned method embodiment, and for the sake of brevity, they are not repeated here.
[0277] The above describes the device of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.
[0278] Fig.15 It is a schematic block diagram of an electronic device provided in an embodiment of the present application, and the electronic device may be the above-mentioned network resource management platform or jump server.
[0279] like Fig.15 As shown, the electronic device 40 may include:
[0280] The memory 41 and the processor 42 are used to store the computer program and transmit the program code to the memory 41. In other words, the memory 41 can call and run the computer program from the processor 42 to implement the method in the embodiment of the present application.
[0281] For example, the memory 41 may be used to execute the above method embodiments according to the instructions in the computer program.
[0282] In some embodiments of the present application, the memory 41 may include but is not limited to:
[0283] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0284] In some embodiments of the present application, the processor 42 includes but is not limited to:
[0285] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM bus random access memory (DR RAM).
[0286] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the processor 42 and executed by the memory 41 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the video production device.
[0287] like Fig. 9 As shown, the electronic device 40 may further include:
[0288] The transceiver 43 may be connected to the memory 41 or the processor 42 .
[0289] The memory 41 may control the transceiver 43 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 43 may include a transmitter and a receiver. The transceiver 43 may further include an antenna, and the number of antennas may be one or more.
[0290] It should be understood that the various components in the video production device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0291] Fig.16 A schematic diagram of a network resource management system provided by an embodiment of the present application, such as Fig.16 The network resource management system 50 shown includes a network resource management platform 51 and a jump server 52, wherein the network resource management platform 51 is used to execute the method embodiment of the network resource management platform side, and the jump server 52 is used to execute the method embodiment of the jump server side.
[0292] The present application also provides a computer storage medium on which a computer program is stored. When the computer program is executed by a computer, the computer is enabled to execute the method of the above method embodiment.
[0293] The embodiment of the present application also provides a computer program product comprising instructions, which, when executed by a computer, enables the computer to perform the method of the above method embodiment.
[0294] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function of the embodiment of the present application is executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0295] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0296] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0297] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0298] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A network resource management method, characterized in that: Applied to a network resource management platform, the method comprises: Determining a target number of network resources required by a first cluster, where the first cluster is one of a plurality of clusters corresponding to a cloud computing data center; Selecting the target number of idle network resources from a network resource database, wherein the network resource database includes a plurality of network resources obtained by performing network partitioning on a network resource pool of the cloud computing data center based on device distribution of the cloud computing data center; The resource configuration information is sent to the first cluster via a jump board, the jump board is respectively connected to the network resource management platform and the plurality of clusters for communication, the resource configuration information includes the target number of idle network resources.
2. The method according to claim 1, characterized in that The network resource includes an IP address, and the method further includes: Acquire a network resource pool of the cloud computing data center, as well as the number of computer rooms included in the cloud computing data center and the number of switches included in each computer room; The network resource pool is used as a root pool, and network division is performed on the network resource pool based on the number of computer rooms and the number of switches included in each computer room to obtain multiple IP addresses.
3. The method according to claim 2, characterized in that The network resource pool is used as a root pool, and based on the number of computer rooms and the number of switches included in each computer room, the network resource pool is divided into networks to obtain multiple IP addresses, including: Based on the number of the computer rooms, a plurality of root network segments are divided from the network resource pool, wherein one computer room corresponds to one root network segment; For the i-th computer room in the cloud computing data center, based on the number of switches included in the i-th computer room, at least one IP address is divided from the i-th root network segment corresponding to the i-th computer room, where i is a positive integer.
4. The method according to claim 3, characterized in that The dividing of multiple root network segments from the network resource pool based on the number of computer rooms includes: Based on the number of computer rooms and the number of switches included in each computer room, multiple root network segments are divided from the network resource pool, wherein the amount of resources of the root network segments corresponding to computer rooms with a large number of switches is greater than the amount of resources of the root network segments corresponding to computer rooms with a small number of switches.
5. The method according to claim 3, characterized in that: The dividing, based on the number of switches included in the i-th computer room, of at least one IP address from the i-th root network segment corresponding to the i-th computer room comprises: Dividing a plurality of first-level network segments from the i-th root network segment, wherein each first-level network segment corresponds to at least one switch in the i-th computer room; For each of the plurality of primary network segments, divide the primary network segment into a plurality of secondary network segments, and assign the plurality of secondary network segments to at least one switch corresponding to the primary network segment, so that at least one secondary network segment corresponds to one switch; For each of the multiple secondary network segments, at least one IP address is divided from the secondary network segment.
6. The method according to claim 5, characterized in that The step of dividing a plurality of first-level network segments from the i-th root network segment includes: Divide the switches included in the i-th computer room into N groups of switches, each group of switches includes at least one switch, and N is a positive integer; Based on the N groups of switches, N first-level network segments are divided from the i-th root network segment, and one first-level network segment corresponds to a group of switches.
7. The method according to claim 5, characterized in that The dividing at least one IP address from the secondary network segment includes: Based on a preset usage scenario of the secondary network segment, at least one IP address is divided from the secondary network segment, and a status of each of the at least one IP address includes one of idle, allocated, occupied and reserved.
8. The method according to any one of claims 1 to 7, characterized in that: The determining a target number of network resources required by the first cluster includes: receiving a resource allocation request of the first cluster sent by the jump server, wherein the resource allocation request is used to request the target number of network resources; Based on the resource allocation request, a target number of network resources required by the first cluster is determined.
9. The method according to any one of claims 1 to 7, characterized in that: Before sending the resource configuration information to the first cluster through the jump server, the method further includes: Obtaining version information of the first cluster, and encapsulating the target number of idle network resources based on the version information of the first cluster; The sending resource configuration information to the first cluster through the jump server includes: The resource configuration information is sent to the jump board machine, so that the jump board machine sends the resource configuration information to the first cluster, wherein the resource configuration information includes the encapsulated idle network resources.
10. The method according to claim 9, characterized in that The resource allocation request includes a version type of the first cluster, and obtaining the version information of the first cluster includes: Based on the version type of the first cluster, version information of the first cluster is searched in a cluster database.
11. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: receiving a resource release request of a second cluster sent by the jump server, wherein the resource release request includes a first network resource to be released, and the second cluster is one of the multiple clusters; Based on the resource release request, the first network resource is reclaimed.
12. The method according to claim 11, characterized in that The resource release request includes the encapsulated first network resource, and the reclaiming the first network resource based on the resource release request includes: Obtaining version information of the second cluster; Based on the version information of the second cluster, the encapsulated first network resource is decapsulated, and the state of the first network resource is updated to an idle state.
13. A network resource management method, characterized in that: Applied to a jump board, the jump board is respectively connected to a plurality of clusters corresponding to a network resource management platform and a cloud computing data center for communication, the method comprising: Receive resource configuration information sent by a network resource management platform, wherein the resource configuration information includes a target number of idle network resources, wherein the target number of idle network resources is selected by the network resource management platform from a network resource database of a cloud computing data center based on the number of network resources required by a first cluster, wherein the network resource database includes a plurality of network resources obtained by performing network partitioning on a network resource pool of the cloud computing data center based on equipment distribution of the cloud computing data center, wherein the first cluster is one of a plurality of clusters corresponding to the cloud computing data center; The resource configuration information is sent to the first cluster.
14. The method according to claim 13, characterized in that Before receiving the resource configuration information sent by the network resource management platform, the method further includes: receiving a resource allocation request sent by the first cluster, where the resource allocation request is used to request a target number of network resources; The resource allocation request is sent to the network resource management platform, so that the network resource management platform selects the target number of idle network resources from the network resource database of the cloud computing data center.
15. The method according to claim 13, characterized in that The method further comprises: receiving a resource release request sent by the second cluster, wherein the resource release request includes a first network resource to be released; The resource release request is sent to the network resource management platform, so that the network resource management platform reclaims the first network resource.
16. The method according to any one of claims 13 to 15, characterized in that The method further comprises: receiving a first request sent by a target object, where the target object is the first cluster or the network resource management platform or the second cluster, and the first request is a resource allocation request or resource configuration information or a resource release request; Creating the first request as a request task, and placing the request task into a request task queue; Periodically pull request tasks from the request task queue, and create a subprocess to execute the pulled request tasks.
17. A network resource management device, characterized in that: Applied to network resource management platform, including: A determining unit, configured to determine a target number of network resources required by a first cluster, wherein the first cluster is one of a plurality of clusters corresponding to a cloud computing data center; A screening unit, configured to select the target number of idle network resources from a network resource database, wherein the network resource database includes a plurality of network resources obtained by performing network partitioning on a network resource pool of the cloud computing data center based on device distribution of the cloud computing data center; A configuration unit is used to send resource configuration information to the first cluster through a jump machine, the jump machine is respectively connected to the network resource management platform and the multiple clusters for communication, and the resource configuration information includes the target number of idle network resources.
18. A network resource management device, characterized in that: Applicable to springboard machines, including: a receiving unit, configured to receive resource configuration information sent by a network resource management platform, wherein the resource configuration information includes a target number of idle network resources, wherein the target number of idle network resources is selected by the network resource management platform from a network resource database of a cloud computing data center based on the number of network resources required by a first cluster, wherein the network resource database includes a plurality of network resources obtained by performing network partitioning on a network resource pool of the cloud computing data center based on equipment distribution of the cloud computing data center, wherein the first cluster is one of a plurality of clusters corresponding to the cloud computing data center; A sending unit is used to send the resource configuration information to the first cluster.
19. An electronic device, characterized in that: include: A processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 12 or 13 to 16.
20. A computer-readable storage medium, characterized in that: Used to store a computer program, the computer program causing a computer to execute the method according to any one of claims 1 to 12 or 13 to 16.
Citation Information
Cited By
Cloud computing service system, cloud computing service providing method, storage medium and product
CN120343030A
