Centralized management method, device, electronic device and storage medium for multi-region services
By introducing front-end, scheduling, and response components into the cloud computing system, unified management and query of high-performance elastic computing service nodes in different regions are achieved, solving the problems of decentralized resource management and low query efficiency, improving management efficiency, and achieving compatibility with service nodes of different versions.
Patent Information
- Application Number
- CN202111436098.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2041-11-29
AI Technical Summary
High-performance elastic computing services in different regions cannot be managed uniformly and have poor compatibility, resulting in decentralized resource management and low query efficiency.
The front-end component is used to generate a target node query request for the high-performance elastic computing service node under the target management area. The query request is dispatched and forwarded to the high-performance elastic computing service node under the target management area through the scheduling component, and the query result is displayed by the response component to realize unified management and query entry.
It realizes unified management and query of high-performance elastic computing service nodes in different management areas, solves the problems of decentralized resource management and repeated login, improves query efficiency, and is compatible with different versions of high-performance elastic computing service nodes.
Smart Images

Figure CN114116847B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of cloud computing technology, and in particular to a method, device, electronic device, and storage medium for centralized management of multi-region services. Background Art
[0002] As the scale of cloud services continues to grow, the number of cloud host nodes distributed around the world continues to increase. The distribution area is wide and new regions are constantly expanding. In addition, high-performance elastic computing services in different regions may have different service versions to meet different user needs. As a result, data management of different versions of high-performance elastic computing services in different regions becomes difficult, resulting in problems such as the inability to unify management and poor compatibility. Summary of the Invention
[0003] Embodiments of the present invention provide a method, apparatus, electronic device, and storage medium for centralized management of multi-region services to achieve unified management of high-performance elastic computing services of different versions in different regions and improve compatibility.
[0004] In a first aspect, an embodiment of the present invention provides a method for centralized management of multi-region services, the method comprising:
[0005] Use the front-end component to generate a target node query request for the high-performance elastic computing service node under the target management area;
[0006] Using a scheduling component to schedule and forward the target node query request to at least some of the high-performance elastic computing service nodes under the target management area, so as to indicate the return of the query result for the high-performance elastic computing service node;
[0007] The response component is used to display the query results returned by the high-performance elastic computing service node.
[0008] In a second aspect, an embodiment of the present invention further provides a centralized management device for multi-region services, the device comprising:
[0009] A front-end component module, configured to generate a target node query request for a high-performance elastic computing service node under a target management area using a front-end component;
[0010] A scheduling component module, which uses a scheduling component to schedule and forward the target node query request to at least some high-performance elastic computing service nodes under the target management area to indicate the return of the query result for the high-performance elastic computing service node;
[0011] The response component module is used to display the query results returned by the high-performance elastic computing service node using the response component.
[0012] In a third aspect, an embodiment of the present invention further provides an electronic device, including:
[0013] one or more processing devices;
[0014] a storage device for storing one or more programs;
[0015] When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the method for centralized management of multi-region services provided in any embodiment of the present invention.
[0016] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processing device, implements the centralized management method for multi-area services provided in any embodiment of the present invention.
[0017] An embodiment of the present invention provides a centralized management method for multi-region services. A front-end component is used to generate a target node query request for a high-performance elastic computing service node in a target management region. A scheduling component is used to schedule and forward the target node query request to at least some of the high-performance elastic computing service nodes in the target management region, indicating the return of query results for the high-performance elastic computing service node. A response component is used to display the query results returned by the high-performance elastic computing service node. This application solution provides a unified management and query portal, solving the problems of decentralized resource management, repeated logins, and low query efficiency, and enabling unified management and query of different versions of high-performance elastic computing service nodes in different management regions.
[0018] The above content of the invention is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Other features, objects, and advantages of the present invention will become more apparent upon reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered as limiting the present invention. Like reference characters are used throughout the drawings to denote like parts. In the drawings:
[0020] Figure 1 is a flow chart of a centralized management method for multi-region services provided in an embodiment of the present invention;
[0021] Figure 2 This is a schematic diagram of a centralized management page for a multi-region service provided in an embodiment of the present invention;
[0022] Figure 3is a flow chart of another method for centralized management of multi-region services provided in an embodiment of the present invention;
[0023] Figure 4 This is a structural block diagram of a centralized management device for multi-region services provided in an embodiment of the present invention;
[0024] Figure 5 It is a structural diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0025] The present invention will be further described in detail below with reference to the accompanying drawings and examples. It will be understood that the specific embodiments described herein are intended only to illustrate the present invention and are not intended to limit the present invention. It should also be noted that, for ease of description, the accompanying drawings only illustrate portions relevant to the present invention, not all structures.
[0026] Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the various operations (or steps) as sequential processes, many of the operations (or steps) therein can be implemented in parallel, concurrently, or simultaneously. In addition, the order of the various operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.
[0027] The centralized management method, device, electronic device, and storage medium for multi-region services provided in this application are described in detail below through the following embodiments and their optional solutions.
[0028] Figure 1 This is a flowchart of a centralized management method for multi-region services provided in an embodiment of the present invention. The embodiment of the present invention is applicable to the case of unified management of high-performance elastic computing service nodes in different regions. The method can be executed by a centralized management device for multi-region services, which can be implemented in software and / or hardware and integrated into any electronic device with network communication capabilities. Figure 1 As shown, the centralized management method of multi-region services provided in the embodiment of the present application may include the following steps:
[0029] S110: Using a front-end component, generate a target node query request for a high-performance elastic computing service node under a target management area.
[0030] See also Figure 2The front-end component can provide a page-based query portal for selecting a management area, developed and deployed through a front-end visualization framework. Users can use the page-based query portal to enter the management area to be queried and managed, as well as the high-performance elastic computing service nodes under the corresponding management area. The front-end visualization framework can be the VUE front-end visualization development tool.
[0031] Optionally, the high-performance elastic computing service node is built based on the highly available and scalable cloud computing framework CloudStack. For example, the high-performance elastic computing service node can be a node compatible with the CloudStack protocol interface, used to manage computing resource pools and support large-scale computing. The cloud computing framework CloudStack is an open-source cloud computing platform with high availability and scalability. For example, it is compatible with the open-source CloudStack multi-version management and supports multiple versions of CloudStack, such as CloudStack 4.8-4.15.
[0032] See also Figure 2 The target management area can be one or more areas selected from multiple areas, and different areas can be divided according to regions. The front-end component can generate a target node query request for viewing and managing different high-performance elastic computing service nodes under the target management area based on the target management area entered by the user through the page query portal, thereby realizing unified and centralized viewing and management of different high-performance elastic computing service nodes under the target management area, solving the problems of decentralized resource management, repeated logins, and low query efficiency.
[0033] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected via a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.
[0034] The electronic devices mentioned above may be terminal devices and servers, etc. The server may be an independent server 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, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0035] S120: Use a scheduling component to schedule and forward the target node query request to at least some high-performance elastic computing service nodes under the target management area to instruct to return the query result of the high-performance elastic computing service node.
[0036] When implementing a centralized display of data from multiple high-performance elastic computing service nodes, if a centralized database solution is adopted, the data of high-performance elastic computing service nodes in various regions must be synchronized to the centralized database in real time. This may lead to data interruption scenarios. For example, node version upgrades involve operations that change the database table structure, which will cause synchronization interruptions and require manual intervention to restore synchronization. Users will not be able to query the latest data. In addition, database table synchronization requires understanding the underlying table structure of the high-performance elastic computing service node, which is difficult.
[0037] Based on the above analysis, after receiving the target node query request generated by the front-end component, the configured scheduling component can be used to schedule forwarding to different high-performance elastic computing service nodes in the target management area. Based on the target node query request forwarding, data can be directly obtained from the high-performance elastic computing service node in real time. At the same time, the target node query request can also be used to wait for the high-performance elastic computing service node version upgrade to complete and then retrieve it again. As can be seen, by obtaining data based on request forwarding, data can be retrieved after the version upgrade is completed. The latest data can be queried without manual intervention, and no data is temporarily stored, so data query is delay-free.
[0038] S130: Use a response component to display the query results returned by the high-performance elastic computing service node.
[0039] In one possible implementation of this embodiment, displaying the query results returned by the high-performance elastic computing service node may include the following steps:
[0040] According to the node version of the high-performance elastic computing service node corresponding to the returned query result, the query result is configured to be displayed in a preset format to achieve multi-version compatibility and shield the underlying version differences.
[0041] The versions of high-performance elastic computing service nodes in different regions may vary, and the versions of different high-performance elastic computing service nodes in the same region may also vary. Therefore, after the response component receives the query results returned by the high-performance elastic computing service node in the target management area, it needs to check whether the version type of the high-performance elastic computing service node meets the preset format requirements. If the version type of the high-performance elastic computing service node meets the preset format requirements, the query results returned by the high-performance elastic computing service node will be transparently transmitted and displayed; if the version type of the high-performance elastic computing service node does not meet the preset format requirements, the query results returned by the high-performance elastic computing service node will be rewritten to the preset format and displayed.
[0042] Using this optional method, based on the different versions of the high-performance elastic computing service nodes being dispatched, the synchronized version is distributed through the interface parameter transmission. The returned query results are adaptively transmitted or the response content is rewritten, shielding the underlying version differences. This allows the same interface to be used with different high-performance elastic computing service node versions, returning content in a unified format and shielding the underlying version differences. This achieves multi-version compatibility of the high-performance elastic computing service node and compatibility of the underlying versions. Furthermore, the compatible interface implements request forwarding and response content processing, eliminating the need to understand the underlying structure and requiring only the stability of the API interface.
[0043] According to the centralized management method for multi-region services provided in an embodiment of the present invention, a unified management and query portal is provided, and a front-end component is used to generate a target node query request for the high-performance elastic computing service node under the target management area, thereby solving the problems of decentralized resource management, repeated login, and low query efficiency, and realizing unified management and query of high-performance elastic computing service nodes of different versions in different management areas.
[0044] Figure 3 This is a flow chart of another centralized management method for multi-region services provided in an embodiment of the present invention. The embodiment of the present invention further optimizes the above embodiment based on the above embodiment. The embodiment of the present invention can be combined with various optional solutions in one or more of the above embodiments. Figure 3 As shown, the centralized management method of multi-region services provided in the embodiment of the present application may include the following steps:
[0045] S310: Generate a target node query request for a high-performance elastic computing service node under a target management area using a front-end component.
[0046] In a possible implementation of this embodiment, a front-end component is used to generate a target node query request for a high-performance elastic computing service node under a target management area, which may include steps A1-A2:
[0047] Step A1: Determine the target management area based on the area selection trigger operation on the front-end component.
[0048] Step A2: Add the area information of the target management area to the request header field of the preset Web request to obtain a target node query request for querying and managing different high-performance elastic computing service nodes.
[0049] See also Figure 2 The page-based query entry provided by the front-end component corresponds to a high-performance elastic computing service node management page. The high-performance elastic computing service node management page includes a high-performance elastic computing service node control panel. The high-performance elastic computing service node control panel may include a region selection window or region selection list for selecting a management area. By triggering the control of the region selection window or region selection list, at least one selected management area can be determined. Optionally, the region selection triggering operation includes entering one or more management areas to be viewed and managed in the region selection window or clicking to select one or more management areas to be viewed and managed in the region selection list.
[0050] After obtaining the target management area, obtain the area information of the target management area (such as area tag, area address, area number, and other information that can represent the area identity), add the area information of the target management area to the request header field header of the preset Web request, and generate a node query request that meets the query management requirements of different high-performance elastic computing service nodes by adding the preset Web request with area information.
[0051] Optionally, in addition to the High-Performance Elastic Computing Service Node control panel, the High-Performance Elastic Computing Service Node management page may also include windows for management indicators such as infrastructure, computing, storage, network, image, and service plans. Optionally, the controls in the windows under management indicators can be triggered, and after triggering, the management parameters under the triggered management indicators are displayed on the High-Performance Elastic Computing Service Node management page supported by the front-end component.
[0052] S320: Using the scheduling component, extract the area information of the target management area from the request header field of the target node query request.
[0053] S330 : Based on the extracted area information of the target management area, the target node query request is dispatched and forwarded to at least some high-performance elastic computing service nodes under the target management area.
[0054] Node query requests allow real-time querying of different HPC service nodes. Data from all HPC service nodes need not be aggregated. Instead, node query requests can be sent to individual HPC service nodes, allowing them to provide feedback on their own, alleviating platform pressure. Furthermore, regional information for the managed area is placed in the header, allowing it to be directly retrieved and used later, without affecting the original request path and resources, enabling clear scheduling and forwarding of requests.
[0055] In a possible implementation of this embodiment, scheduling and forwarding the target node query request to at least some high-performance elastic computing service nodes under the target management area may include the following steps B1-B2:
[0056] Step B1: Use the authentication component to convert the target node query request so that the converted target node query request complies with the preset authentication method of the high-performance elastic computing service node.
[0057] Step B2: dispatch and forward the converted target node query request to different high-performance elastic computing service nodes under the target management area.
[0058] The authentication component may include a component that performs authentication based on JWT (JSON WEB TOKEN) and RBAC (Role-Based Access Control). The authentication component is used to convert the target node query request, which may specifically include: based on the API key and Secert key of the high-performance elastic computing service node, converting the target node query request into a node query request that complies with the preset authentication and certification method of the high-performance elastic computing service node. For example, based on the API key and Secert key of the high-performance elastic computing service node, the node query request from the front-end component is encoded into a method that complies with the authentication and certification of the high-performance elastic computing service node, so as to obtain a query request that meets the requirements and is compatible with the original API key and secert key authentication method of the high-performance elastic computing service node.
[0059] The above optional method ensures that node query requests are compatible with the original high-performance elastic computing service node API-key and secert-key authentication methods without the need for underlying adaptation. At the same time, it is compatible with the centralized management platform's own RBAC-based authentication and authorization, achieving ECSP multi-version compatibility and underlying version compatibility.
[0060] In a possible implementation of this embodiment, scheduling and forwarding the target node query request to at least some high-performance elastic computing service nodes under the target management area may include steps C1-C3:
[0061] Step C1: Use the forwarding component to encapsulate the target node query request based on the reverse proxy service built into the Golang standard library.
[0062] Step C2: forward the encapsulated target node query request to different high-performance elastic computing service nodes in the target management area using traffic for response.
[0063] The centralized management solution for multi-regional high-performance elastic computing service nodes also includes a forwarding component. This component, based on the Golang standard library's httputil.ReverseProxy, encapsulates target node query requests from the front-end component and forwards these encapsulated target node query requests to the different high-performance elastic computing service nodes in the target management region. This Golang-based implementation of httputil.ReverseProxy offers high performance and stability.
[0064] S340: Use the response component to display the query results returned by the high-performance elastic computing service node.
[0065] In one possible implementation of this embodiment, the authentication component can filter the parameter types in the query results for the high-performance elastic computing service node displayed by the front-end component, controlling the display of management indicator parameters that match the role's permissions. Furthermore, based on the query results returned for the high-performance elastic computing service node, the page-based query portal provided by the front-end component is configured with a high-performance elastic computing service node management page that displays the specific parameters and values of the management indicators that match the role's permissions.
[0066] According to the centralized management method of multi-region services provided in an embodiment of the present invention, a unified management and query entry is provided, which solves the problems of decentralized resource management, repeated login, and low query efficiency, and realizes unified management and query of high-performance elastic computing service nodes of different versions in different management areas; interface compatibility based on node query requests has the following advantages: regional information is added to the request header to achieve clear scheduling and forwarding; it is implemented based on Golang's httputil.ReverseProxy, with high performance and stability; it is compatible with the original high-performance elastic computing service node's api-key and secert-key authentication methods, and does not require underlying adaptation; it is compatible with the centralized management platform's own RBAC-based authentication and authorization; the interface request response value is rewritten to achieve multi-version compatibility of high-performance elastic computing service nodes and underlying version compatibility, solving the problem of data isolation; the compatible interface realizes request forwarding and response content processing, without the need to understand the underlying structure, only the stability of the API interface needs to be maintained; it realizes the management of nodes across high-performance elastic computing service nodes and across availability zones, thereby improving management efficiency.
[0067] Figure 4 This is a structural block diagram of a centralized management device for multi-region services provided in an embodiment of the present invention. The embodiment of the present invention is applicable to the case of unified management of high-performance elastic computing service nodes in different regions. The device can be implemented in software and / or hardware and integrated into any electronic device with network communication function. Figure 4 As shown, the centralized management device for multi-region services provided in the embodiment of the present application may include the following: a front-end module 410, a scheduling module 420, and a response module 430. Among them:
[0068] Front-end module 410, configured to generate a target node query request for a high-performance elastic computing service node under a target management area using a front-end component;
[0069] The scheduling module 420 uses a scheduling component to schedule and forward the target node query request to at least some high-performance elastic computing service nodes under the target management area to indicate the return of the query result for the high-performance elastic computing service node;
[0070] The response module 430 is used to display the query results returned by the high-performance elastic computing service node using the response component.
[0071] Based on the above embodiment, optionally, the front-end component provides a page-based query portal developed and deployed through a front-end visualization framework and used to select a management area; the high-performance elastic computing service node is built based on the high-availability and scalability cloud computing framework CloudStack.
[0072] Based on the above embodiment, optionally, the front-end module 410 includes:
[0073] Triggering operations based on the area selection on the front-end component to determine the target management area;
[0074] The area information of the target management area is added to the request header field of the preset web request to obtain a target node query request for querying and managing different high-performance elastic computing service nodes.
[0075] Based on the above embodiment, optionally, the scheduling module 420 includes:
[0076] Using the scheduling component to extract the area information of the target management area from the request header field of the target node query request;
[0077] According to the extracted area information of the target management area, the target node query request is dispatched and forwarded to at least some high-performance elastic computing service nodes under the target management area.
[0078] Based on the above embodiment, optionally, scheduling and forwarding the target node query request to at least some high-performance elastic computing service nodes under the target management area includes:
[0079] Use the authentication component to convert the target node query request so that the converted target node query request complies with the preset authentication method of the high-performance elastic computing service node;
[0080] The converted target node query request is dispatched and forwarded to different high-performance elastic computing service nodes under the target management area.
[0081] Based on the above embodiment, optionally, an authentication component is used to convert the target node query request, including:
[0082] According to the API key and Secert key of the high-performance elastic computing service node, the target node query request is converted into a node query request that complies with the preset authentication method of the high-performance elastic computing service node.
[0083] Based on the above embodiment, optionally, scheduling and forwarding the target node query request to at least some high-performance elastic computing service nodes under the target management area includes:
[0084] Use forwarding components to encapsulate target node query requests based on the built-in reverse proxy service in the Golang standard library;
[0085] The encapsulated target node query request is forwarded to different high-performance elastic computing service nodes in the target management area using traffic for response.
[0086] Based on the above embodiment, optionally, displaying the query results returned by the high-performance elastic computing service node includes:
[0087] According to the node version of the high-performance elastic computing service node corresponding to the returned query result, the query result is configured to be displayed in a preset format to achieve multi-version compatibility and shield the underlying version differences.
[0088] The centralized management device for multi-region services provided in the embodiments of the present invention can execute the centralized management method for multi-region services provided in any of the above embodiments of the present invention, and has the corresponding functions and beneficial effects of executing the centralized management method for multi-region services. For detailed processes, please refer to the relevant operations of the centralized management method for multi-region services in the above embodiments.
[0089] Figure 5This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. As shown in the structure, the electronic device provided in an embodiment of the present invention includes: one or more processors 510 and a storage device 520; the processor 510 in the electronic device can be one or more, Figure 5 In the embodiment, a processor 510 is taken as an example; the storage device 520 is used to store one or more programs; the one or more programs are executed by the one or more processors 510, so that the one or more processors 510 implement the centralized management method of multi-region services as described in any one of the embodiments of the present invention.
[0090] The electronic device may further include an input device 530 and an output device 540 .
[0091] The processor 510, storage device 520, input device 530 and output device 540 in the electronic device can be connected via a bus or other means. Figure 5 The bus connection is taken as an example.
[0092] The storage device 520 in the electronic device serves as a computer-readable storage medium and can be used to store one or more programs. These programs can be software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the method for centralized management of multi-region services provided in the embodiments of the present invention. The processor 510 executes the software programs, instructions, and modules stored in the storage device 520 to execute various functional applications and data processing of the electronic device, thereby implementing the method for centralized management of multi-region services in the aforementioned method embodiments.
[0093] The storage device 520 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and application programs required for at least one function; the data storage area may store data created based on the use of the electronic device, etc. In addition, the storage device 520 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 520 may further include a memory remotely located relative to the processor 510, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0094] The input device 530 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 540 may include a display device such as a display screen.
[0095] Furthermore, when one or more programs included in the electronic device are executed by the one or more processors 510, the programs perform the following operations:
[0096] Use the front-end component to generate a target node query request for the high-performance elastic computing service node under the target management area;
[0097] Using a scheduling component to schedule and forward the target node query request to at least some of the high-performance elastic computing service nodes under the target management area, so as to indicate the return of the query result for the high-performance elastic computing service node;
[0098] The response component is used to display the query results returned by the high-performance elastic computing service node.
[0099] Of course, those skilled in the art will appreciate that when one or more programs included in the electronic device are executed by the one or more processors 510, the programs may also perform relevant operations in the method for centralized management of multi-region services provided in any embodiment of the present invention.
[0100] An embodiment of the present invention provides a computer-readable medium having a computer program stored thereon. When the program is executed by a processor, the program is used to perform a centralized management method for multi-region services. The method includes:
[0101] Use the front-end component to generate a target node query request for the high-performance elastic computing service node under the target management area;
[0102] Using a scheduling component to schedule and forward the target node query request to at least some of the high-performance elastic computing service nodes under the target management area, so as to indicate the return of the query result for the high-performance elastic computing service node;
[0103] The response component is used to display the query results returned by the high-performance elastic computing service node.
[0104] The computer storage medium of the embodiment of the present invention may adopt any combination of one or more computer-readable media. The computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination thereof. The computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device.
[0105] A computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0106] The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.
[0107] Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0108] Throughout this specification, reference to terms such as "one embodiment," "some embodiments," "examples," "specific examples," or "some examples" means that a specific feature, structure, material, or characteristic described in conjunction with that embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
[0109] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.
Claims
1. A centralized management method for multi-region services, characterized in that: The method comprises: The front-end component is used to generate a target node query request for the high-performance elastic computing service node under the target management area, including: Triggering operations based on the area selection on the front-end component to determine the target management area; Adding the region information of the target management region to the request header field of the preset web request to obtain a target node query request for querying and managing different high-performance elastic computing service nodes; Using a scheduling component to schedule and forward the target node query request to at least some of the high-performance elastic computing service nodes under the target management area, so as to indicate the return of the query result for the high-performance elastic computing service node; Use the response component to display the query results returned by the high-performance elastic computing service node; The method of using a scheduling component to schedule and forward the target node query request to at least some high-performance elastic computing service nodes under the target management area includes: Using the scheduling component to extract the area information of the target management area from the request header field of the target node query request; Dispatching and forwarding the target node query request to at least some of the high-performance elastic computing service nodes under the target management area based on the extracted area information of the target management area; The step of scheduling and forwarding the target node query request to at least some of the high-performance elastic computing service nodes under the target management area includes: Use the forwarding component to encapsulate the target node query request based on the built-in reverse proxy service in the Golang standard library; The encapsulated target node query request is forwarded to different high-performance elastic computing service nodes in the target management area using traffic for response.
2. The method according to claim 1, characterized in that The front-end component provides a page-based query portal developed and deployed through a front-end visualization framework and used to select a management area; the high-performance elastic computing service node is built based on the high-availability and scalability cloud computing framework CloudStack.
3. The method according to claim 1, characterized in that Scheduling and forwarding the target node query request to at least some of the high-performance elastic computing service nodes under the target management area includes: Use the authentication component to convert the target node query request so that the converted target node query request complies with the preset authentication method of the high-performance elastic computing service node; The converted target node query request is dispatched and forwarded to different high-performance elastic computing service nodes under the target management area.
4. The method according to claim 3, characterized in that The authentication component is used to convert the target node query request, including: According to the API key and Secert key of the high-performance elastic computing service node, the target node query request is converted into a node query request that complies with the preset authentication method of the high-performance elastic computing service node.
5. The method according to claim 1, wherein Displays query results returned by high-performance elastic computing service nodes, including: According to the node version of the high-performance elastic computing service node corresponding to the returned query result, the query result is configured to be displayed in a preset format to achieve multi-version compatibility and shield the underlying version differences.
6. A centralized management device for multi-region services, characterized in that: The device comprises: A front-end module, configured to generate a target node query request for a high-performance elastic computing service node under a target management area using a front-end component; A scheduling module, which uses a scheduling component to schedule and forward the target node query request to at least some of the high-performance elastic computing service nodes under the target management area to indicate the return of the query result for the high-performance elastic computing service node; The response module is used to display the query results returned by the high-performance elastic computing service node using the response component; The front-end module includes: Triggering operations based on the area selection on the front-end component to determine the target management area; Adding the region information of the target management region to the request header field of the preset web request to obtain a target node query request for querying and managing different high-performance elastic computing service nodes; The scheduling module includes: Using the scheduling component to extract the area information of the target management area from the request header field of the target node query request; Dispatching and forwarding the target node query request to at least some of the high-performance elastic computing service nodes under the target management area based on the extracted area information of the target management area; The method of scheduling and forwarding target node query requests to at least some high-performance elastic computing service nodes under the target management area includes: using a forwarding component to encapsulate the target node query request based on the reverse proxy service built into the Golang standard library; and forwarding the encapsulated target node query request to different high-performance elastic computing service nodes in the target management area using traffic for response.
7. An electronic device, characterized in that: include: one or more processing devices; a storage device for storing one or more programs; When the one or more programs are executed by the one or more processing devices, the one or more processing devices implement the method for centralized management of multi-region services according to any one of claims 1 to 5.
8. A computer-readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processing device, the centralized management method for multi-region services described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Access control method and device, computer equipment and storage medium
CN111488598A
Heterogeneous data management method, device and equipment and computer readable storage medium
CN112364052A
Hybrid cloud resource data management method and device, equipment and medium
CN112367370A