Cloud platform resource management method, device and equipment and readable storage medium
By obtaining and connecting the application programming interfaces of various cloud platforms and obtaining and pushing cloud resource data to the storage server, unified monitoring and management in a multi-cloud environment is achieved, complex problems of resource dispersion and management are solved, cost reduction and increase Resource usage efficiency.
Patent Information
- Application Number
- CN202411187795.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-28
- Publication Date
- 2024-11-22
AI Technical Summary
In multi-cloud environments, the problems of resource dispersion, complex management and increased costs are difficult to achieve unified monitoring and management.
By obtaining application programming interface documents of each cloud platform, connecting, calling the application programming interface of the cloud platform to obtain cloud resource data, and pushing it to the cloud platform storage server, achieving unified monitoring and management of cross-cloud resources.
It reduces the complexity and cost of resource management of multi-cloud platform, supports cross-cloud resources scheduling and orchestration, and improves the flexibility and efficiency of resource use.
Smart Images

Figure CN119011642A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing technology, and in particular to a cloud platform resource management method, device, equipment and computer-readable storage medium. Background Art
[0002] Cloud computing has attracted the favor of many enterprises and individuals with its advantages of elastic scalability, on-demand allocation, and cost savings. More and more enterprises and organizations are migrating their businesses to the cloud. However, as the scale of business expands, a single cloud platform can no longer meet the needs of enterprises for high availability, data security, and flexibility. Therefore, multi-cloud strategy has gradually become the mainstream choice for enterprise IT architecture.
[0003] Multi-cloud refers to multiple cloud platform vendors. With the rapid development of multi-cloud resource services, it is becoming increasingly important to unify and integrate and effectively manage computing, storage, network, security and other resources in a multi-cloud environment. However, the multi-cloud environment also brings problems such as scattered resources, complex management and increased costs.
[0004] In summary, how to effectively solve the problems of dispersed resources, complex management, and increased costs in a multi-cloud environment is an issue that technical personnel in this field urgently need to solve. Summary of the invention
[0005] The purpose of this application is to provide a cloud platform resource management method, which realizes unified monitoring and management of cross-cloud resources, reduces the complexity of multi-cloud platform resource management, and reduces costs; another purpose of this application is to provide a cloud platform resource management device, equipment and computer-readable storage medium.
[0006] In order to solve the above technical problems, this application provides the following technical solutions:
[0007] A cloud platform resource management method, applied to a multi-cloud monitoring system, comprising:
[0008] Obtain the application programming interface documentation for each cloud platform;
[0009] Connect with the API of each cloud platform according to the API documents;
[0010] Call the application programming interface of each cloud platform to obtain the cloud resource data of each cloud platform;
[0011] The application programming interface of the cloud platform storage server is called to push the cloud resource data to the cloud platform storage server, so that the cloud platform storage server manages the cloud resources of each cloud platform according to the cloud resource data.
[0012] In a specific implementation of the present application, after calling the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server, it also includes:
[0013] When receiving a task to be processed, determining resource information required to process the task to be processed;
[0014] Calling the application programming interface of the cloud platform storage server to retrieve the cloud resource corresponding to the resource information from the cloud platform storage server;
[0015] The cloud resources are used to process the tasks to be processed.
[0016] In a specific implementation of the present application, it also includes:
[0017] When the cloud resource corresponding to the resource information is not successfully retrieved from the cloud platform storage server, determining whether a preset cloud resource retrieval retry limit is reached;
[0018] When it is determined that the cloud resource retrieval retry upper limit has not been reached, the step of calling the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server is re-executed.
[0019] In a specific implementation of the present application, when a task to be processed is received, determining resource information required to process the task to be processed includes:
[0020] Parsing the received pending tasks to obtain authority information of the task sender of the pending tasks and resource information required to process the pending tasks;
[0021] Correspondingly, calling the application programming interface of the cloud platform storage server to retrieve the cloud resource corresponding to the resource information from the cloud platform storage server includes:
[0022] Filtering the available cloud resource set corresponding to the task sender's authority information from the cloud platform storage server;
[0023] The application programming interface of the cloud platform storage server is called to retrieve the cloud resource corresponding to the resource information from the available cloud resource set.
[0024] In a specific implementation of the present application, calling the application programming interface of the cloud platform storage server to retrieve the cloud resource corresponding to the resource information from the cloud platform storage server includes:
[0025] The application programming interface of the cloud platform storage server is called to retrieve the cloud resources corresponding to the resource information from the cloud platform storage server according to the load balancing principle.
[0026] In a specific implementation of the present application, it also includes:
[0027] The call data of the application programming interface of the cloud platform storage server is monitored; wherein the call data includes response time, number of calls and error rate.
[0028] In a specific implementation of the present application, calling the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server includes:
[0029] Encrypting the cloud resource data using the HTTP protocol to obtain encrypted cloud resource data;
[0030] The application programming interface of the cloud platform storage server is called to push the encrypted cloud resource data to the cloud platform storage server.
[0031] A cloud platform resource management device, applied to a multi-cloud monitoring system, comprising:
[0032] An interface document acquisition module is used to obtain the application programming interface documents of each cloud platform respectively;
[0033] The interface docking module is used to dock with the application programming interface of each cloud platform according to each application programming interface document;
[0034] A cloud resource data calling module is used to call the application programming interface of each cloud platform to obtain the cloud resource data of each cloud platform;
[0035] The resource management module is used to call the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server, so that the cloud platform storage server manages the cloud resources of each cloud platform according to the cloud resource data.
[0036] A cloud platform resource management device, comprising:
[0037] Memory for storing computer programs;
[0038] A processor is used to implement the steps of the cloud platform resource management method as described above when executing the computer program.
[0039] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the cloud platform resource management method as described above.
[0040] The cloud platform resource management method provided in the present application is applied to a multi-cloud supervision system, including: obtaining the application programming interface documents of each cloud platform respectively; connecting with the application programming interface of each cloud platform according to each application programming interface document; calling the application programming interface of each cloud platform to obtain the cloud resource data of each cloud platform; calling the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server, so that the cloud platform storage server manages the cloud resources of each cloud platform according to the cloud resource data.
[0041] It can be seen from the above technical solution that the multi-cloud supervision system obtains the application programming interface documents of each cloud platform, connects with the application programming interface of each cloud platform according to each application programming interface document, calls the application programming interface of each cloud platform to obtain the cloud resource data of each cloud platform, and calls the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server. In this way, data from different cloud platforms can be integrated, unified monitoring and management of cross-cloud resources can be achieved, the complexity of multi-cloud platform resource management can be reduced, and costs can be reduced. It helps enterprises to fully understand the use of cloud resources. The system supports the scheduling and orchestration of cross-cloud resources, flexibly allocates resources according to business needs, and improves the flexibility and efficiency of resource use.
[0042] Correspondingly, the present application also provides a cloud platform resource management device, equipment and computer-readable storage medium corresponding to the above-mentioned cloud platform resource management method, which has the above-mentioned technical effects and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 This is an implementation flow chart of the cloud platform resource management method in the embodiment of the present application;
[0045] Figure 2 Another implementation flow chart of the cloud platform resource management method in the embodiment of the present application;
[0046] Figure 3 This is an architecture diagram of a cloud platform system in an embodiment of the present application;
[0047] Figure 4 This is a structural block diagram of a cloud platform resource management device in an embodiment of the present application;
[0048] Figure 5 This is a structural block diagram of a cloud platform resource management device in an embodiment of the present application;
[0049] Figure 6 A schematic diagram of the specific structure of a cloud platform resource management device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0050] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0051] See also Figure 1 , Figure 1 This is an implementation flow chart of the cloud platform resource management method in the embodiment of the present application, which is applied to a multi-cloud supervision system. The method may include the following steps:
[0052] S101: Obtain application programming interface documents of each cloud platform respectively.
[0053] Each cloud platform contains its own corresponding Application Programming Interface (API) document. The multi-cloud supervision system obtains the API documents of each cloud platform. You can also pay attention to the update and change notifications of the API documents to keep abreast of the upgrade and iteration of the API. Update and maintain the interface as needed to ensure the compatibility and stability of the application.
[0054] Various cloud platforms can include public cloud, private cloud, and hybrid cloud.
[0055] S102: Connecting with the application programming interface of each cloud platform according to each application programming interface document.
[0056] After obtaining the application programming interface documents of each cloud platform, docking with the application programming interface of each cloud platform is performed according to each application programming interface document. For example, code can be written according to each application programming interface document to achieve docking of the application programming interface.
[0057] S103: Calling the application programming interface of each cloud platform to obtain cloud resource data of each cloud platform.
[0058] After the multi-cloud supervision system is connected with the application programming interface of each cloud platform, it calls the application programming interface of each cloud platform to obtain the cloud resource data of each cloud platform.
[0059] The acquired cloud resource data may include basic resource data, such as the operating status of hardware resources such as the server central processing unit (CPU), memory, disk, and network, and may also include resource monitoring data, such as business indicators such as application host, server central processing unit, memory, disk, network utilization, throughput, and read and write rates.
[0060] S104: calling the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server, so that the cloud platform storage server manages the cloud resources of each cloud platform according to the cloud resource data.
[0061] After obtaining the cloud resource data of each cloud platform, the cloud platform storage server's application programming interface is called to push the cloud resource data to the cloud platform storage server, so that the cloud platform storage server can manage the cloud resources of each cloud platform based on the cloud resource data. The resource information of each cloud platform can also be synchronized to the multi-cloud supervision system regularly to ensure the real-time and accuracy of the data. The multi-cloud supervision system can also support the scheduling and arrangement of cross-cloud resources, flexibly allocate resources according to business needs, and improve the flexibility and efficiency of resource use.
[0062] For the acquired cloud resource data, different storage methods are selected according to different data displays to improve the read and write efficiency and performance, such as database storage, cache, and resource monitoring data storage. The basic cloud resource data (cloud host, hard disk, network, security and other resources) is stored in the MySQL database, the request authentication information is stored in the Redis cache according to different application programming interfaces and the expiration time is set, and the performance monitoring data is stored in InfluxDB to increase the query and storage speed. Use the cache mechanism to reduce unnecessary application programming interface calls and improve the performance of the application. For data that does not change frequently, it can be cached locally or on the server. The stored data can be processed and analyzed through the data analysis service, and reports and visual charts can be generated to support efficient query and indexing. The acquired cloud resource data can also be displayed in an interface with a concise and clear interface design that is easy for users to understand and operate. It can also support multiple devices and screen sizes to ensure good display in different environments. It can also provide a variety of operation options and shortcut keys to improve user operation efficiency.
[0063] It can be seen from the above technical solutions that the multi-cloud supervision system obtains the application programming interface documents of each cloud platform, connects with the application programming interface of each cloud platform according to each application programming interface document, calls the application programming interface of each cloud platform to obtain the cloud resource data of each cloud platform, and calls the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server. In this way, data from different cloud platforms can be integrated, unified monitoring and management of cross-cloud resources can be achieved, the complexity of multi-cloud platform resource management can be reduced, and the cost can be reduced. It helps enterprises to fully understand the use of cloud resources. The system supports the scheduling and orchestration of cross-cloud resources, flexibly allocates resources according to business needs, and improves the flexibility and efficiency of resource use.
[0064] It should be noted that, based on the above embodiments, the embodiments of the present application also provide corresponding improved solutions. In the subsequent embodiments, the same steps or corresponding steps as those in the above embodiments can be referenced to each other, and the corresponding beneficial effects can also be referenced to each other, which will not be repeated one by one in the following improved embodiments.
[0065] See also Figure 2 , Figure 2 This is another implementation flow chart of the cloud platform resource management method in the embodiment of the present application. The method may include the following steps:
[0066] S201: Obtain the application programming interface documents of each cloud platform respectively.
[0067] S202: Connecting with the application programming interface of each cloud platform according to each application programming interface document.
[0068] Keep the API keys, appKey, appSecret and other credential information of each cloud platform properly to avoid leaking to others. Do not hardcode this sensitive information in the code, and use environment variables or configuration files to manage it. Verify and authorize interface docking requests to ensure that only authorized requests can access the API of the cloud platform. You can use authentication and authorization mechanisms such as OAuth, JWT, and LDAP to improve security.
[0069] S203: Calling the application programming interface of each cloud platform to obtain cloud resource data of each cloud platform.
[0070] S204: Encrypt the cloud resource data using the HTTP protocol to obtain encrypted cloud resource data.
[0071] After obtaining the cloud resource data of each cloud platform, the cloud resource data is encrypted using the HTTP protocol to obtain the encrypted cloud resource data.
[0072] S205: Calling the application programming interface of the cloud platform storage server to push the encrypted cloud resource data to the cloud platform storage server, so that the cloud platform storage server manages the cloud resources of each cloud platform according to the cloud resource data.
[0073] After the cloud resource data is encrypted using the HTTP protocol and the encrypted cloud resource data is obtained, the application programming interface of the cloud platform storage server is called to push the encrypted cloud resource data to the cloud platform storage server. By encrypting the transmitted cloud resource data using the HTTP protocol, the plain text transmission of sensitive information is avoided, ensuring that the request and response data of the application programming interface are secure during the transmission process.
[0074] S206: When a task to be processed is received, resource information required to process the task to be processed is determined.
[0075] After the cloud platform storage server manages the cloud resources of each cloud platform according to the cloud resource data, when the multi-cloud supervision system receives a task to be processed, it determines the resource information required to process the task to be processed, such as the central processing unit, memory, disk, network and other resource information required to process the task to be processed.
[0076] S207: Calling the application programming interface of the cloud platform storage server to retrieve the cloud resources corresponding to the resource information from the cloud platform storage server.
[0077] After determining the resource information required for processing the task to be processed, the application programming interface of the cloud platform storage server is called to retrieve the cloud resources corresponding to the resource information from the cloud platform storage server.
[0078] In a specific implementation of the present application, step S206 may include the following steps:
[0079] Parse the received pending tasks to obtain the authority information of the task sender of the pending tasks and the resource information required to process the pending tasks;
[0080] Accordingly, step S207 may include the following steps:
[0081] Step 1: Filter the available cloud resource set corresponding to the task sender's permission information from the cloud platform storage server;
[0082] Step 2: Call the application programming interface of the cloud platform storage server to retrieve the cloud resource corresponding to the resource information from the available cloud resource set.
[0083] For the convenience of description, the above steps can be combined for explanation.
[0084] Predefine different roles, assign corresponding permissions to each role, and configure role-based access control, such as setting up management user account information, including user name, password, email, etc., and perform user permission control through user account information. After receiving the pending tasks, the multi-cloud supervision system parses the received pending tasks to obtain the permission information of the task sender of the pending tasks and the resource information required to process the pending tasks. After parsing the permission information of the task sender, filter the available cloud resource set corresponding to the permission information of the task sender from the cloud platform storage server, and call the application programming interface of the cloud platform storage server to retrieve the cloud resources corresponding to the resource information from the available cloud resource set. Ensure the security of the system by assigning different permissions according to user roles.
[0085] In a specific implementation of the present application, step S207 may include the following steps:
[0086] The application programming interface of the cloud platform storage server is called to retrieve the cloud resources corresponding to the resource information from the cloud platform storage server according to the load balancing principle.
[0087] After determining the resource information required to process the pending tasks, the application programming interface of the cloud platform storage server is called to retrieve the cloud resources corresponding to the resource information from the cloud platform storage server according to the load balancing principle. By retrieving cloud resources from the cloud platform storage server according to the load balancing principle, the multi-cloud supervision system can automatically adjust the load balancing according to the actual use of resources, ensuring that the resources between each cloud platform are evenly utilized and avoiding single point overload.
[0088] By abstracting and pooling the computing, storage, and network resources of different cloud platforms to form a unified resource pool, flexible scheduling and dynamic allocation of resources are achieved.
[0089] S208: Utilize cloud resources to process the task to be processed.
[0090] After the cloud resources corresponding to the resource information are retrieved from the cloud platform storage server, the cloud resources are used to process the tasks to be processed.
[0091] S209: When the cloud resources corresponding to the resource information are not successfully retrieved from the cloud platform storage server, determine whether the preset cloud resource retrieval retry limit is reached. If so, end the task processing flow; if not, return to execute step S207.
[0092] Pre-set the upper limit of cloud resource retrieval retries. After retrieving the cloud resources corresponding to the resource information from the cloud platform storage server, determine whether the cloud resources corresponding to the resource information are successfully retrieved from the cloud platform storage server. If the cloud resources corresponding to the resource information are not successfully retrieved from the cloud platform storage server, determine whether the preset upper limit of cloud resource retrieval retries is reached. If so, it means that there are no cloud resources that meet the resource information, and the task processing flow ends. If not, it means that the failure of cloud resource retrieval may be caused by network fluctuations or unstable application programming interface services. Re-call the application programming interface of the cloud platform storage server to retrieve the cloud resources corresponding to the resource information from the cloud platform storage server. By setting a reasonable request timeout and retry strategy, you can cope with network fluctuations or unstable application programming interface services, and ensure that you can automatically retry or take other remedial measures when the request fails.
[0093] Requesting data usually includes steps such as building an HTTP request, setting a request header, sending a request, and processing a response. Various programming languages and tools can be used to complete this task, such as Python's requests library and Java's HttpClient. Parse the response data returned by the application programming interface and extract the required information. The response data is usually returned in formats such as JSON and XML, and needs to be processed using the corresponding parsing library. Reasonably set the request parameters to avoid sending invalid or redundant requests. For operations such as paging queries, the paging parameters should be reasonably set to reduce the amount of data transmitted. Detailed log information can also be recorded, including the requested URL (Uniform Resource Locator), request header, request body, return results, etc., to help troubleshoot and analyze problems when they occur.
[0094] The embodiment of the present application realizes unified management and scheduling of resources across multiple cloud platforms by unified access and management of resources on different cloud platforms, thereby improving resource utilization, operation and maintenance efficiency, and reducing operating costs. It also supports on-demand expansion and customization to meet the business needs of enterprises at different stages. It is also possible to design a "year, month, day, hour, minute, and volume" billing model to match the billing model corresponding to different cloud platform resources, flexibly adjust resources according to actual needs, and provide billing data of different organizations under each cloud resource for users to organize and analyze.
[0095] You can also set up multi-cloud resource monitoring alarms to promptly detect and respond to potential security threats, enhance the security of the cloud environment, which is of great significance to improving the operating efficiency and stability of cloud servers, and plays a key role in helping managers track, manage, and allocate resources.
[0096] See also Figure 3 , Figure 3This is an architecture diagram of a cloud platform system in the embodiment of this application. The multi-cloud supervision system includes several core modules, including tenant management, resource management, resource monitoring, resource analysis, service catalog, billing management, bill management, report analysis, security management, etc. The multi-cloud supervision system will become an important tool for enterprises to improve resource utilization, reduce operating costs and ensure business security.
[0097] In a specific implementation of the present application, the method may further include the following steps:
[0098] Monitor the call data of the application programming interface of the cloud platform storage server; the call data includes response time, number of calls and error rate.
[0099] The cloud platform resource management method provided in the embodiment of the present application may also include monitoring the response time, call times, error rates and other call data of the application programming interface of the cloud platform storage server. By using monitoring tools to monitor the response time, call times, error rates and other indicators of the application programming interface in real time, the stability and availability of the interface can be ensured, helping enterprises to reasonably allocate resources and reduce operating costs.
[0100] The multi-cloud monitoring system can also generate detailed billing reports to show the resource usage and expense expenditures of enterprises on different cloud services. Billing reports help enterprises understand the cost structure of cloud services and identify potential savings opportunities. Through cost analysis, enterprises can optimize resource allocation strategies to reduce cloud service costs and improve return on investment.
[0101] By integrating the application programming interfaces of different cloud platforms, a unified monitoring and management interface is built, enabling the operation and maintenance team to view and manage the status and performance of all cloud resources on a single platform. Adapters and plug-ins can also be developed to achieve seamless integration and interoperability between different cloud service providers, ensuring consistency and synergy across cloud environments. It can also display a list of basic data for all cloud resources, including servers, storage, networks, security, and other resources. By collecting and analyzing the performance data of cloud resources in real time, the system can help enterprises promptly discover and resolve potential performance issues, thereby optimizing application performance and improving user experience.
[0102] It can also display real-time monitoring data of various cloud resources, including CPU, memory, disk, network, etc. Performance monitoring data is usually presented in quantitative form, such as percentage, rate, usage rate, etc. These quantitative data help to understand the performance status of the system or application more accurately and formulate corresponding optimization measures. It supports custom alarm rules, including thresholds, alarm methods, recipients, etc., and issues alarms in time when anomalies are detected so that administrators can respond quickly. When the monitoring data meets the alarm rules, the alarm service triggers an alarm notification and sends it to the designated recipient through the alarm configuration. All alarm information is recorded to facilitate viewing of alarm information, whether it is responded to and resolved in time, and supports query by time, type, status and other conditions. The multi-cloud supervision system can monitor the security status of cloud resources in real time, detect and report security incidents and potential threats in a timely manner, and help enterprises take effective measures to ensure the security of data and applications.
[0103] It can also record user operations and system logs, conduct regular security audits and vulnerability scans, patch system vulnerabilities in a timely manner, and support query and audit by time, user, operation type, and other conditions.
[0104] Corresponding to the above method embodiments, the present application also provides a cloud platform resource management device. The cloud platform resource management device described below and the cloud platform resource management method described above can refer to each other.
[0105] See also Figure 4 , Figure 4 This is a structural block diagram of a cloud platform resource management device in an embodiment of the present application, which is applied to a multi-cloud monitoring system. The device may include:
[0106] The interface document acquisition module 41 is used to respectively acquire the application programming interface documents of each cloud platform;
[0107] The interface docking module 42 is used to dock with the application programming interface of each cloud platform according to each application programming interface document;
[0108] The cloud resource data calling module 43 is used to call the application programming interface of each cloud platform to obtain the cloud resource data of each cloud platform;
[0109] The resource management module 44 is used to call the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server, so that the cloud platform storage server manages the cloud resources of each cloud platform according to the cloud resource data.
[0110] It can be seen from the above technical solutions that the multi-cloud supervision system obtains the application programming interface documents of each cloud platform, connects with the application programming interface of each cloud platform according to each application programming interface document, calls the application programming interface of each cloud platform to obtain the cloud resource data of each cloud platform, and calls the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server. In this way, data from different cloud platforms can be integrated to achieve unified monitoring and management of cross-cloud resources, reducing the complexity of multi-cloud platform resource management and reducing costs. It helps enterprises to fully understand the use of cloud resources. The system supports the scheduling and orchestration of cross-cloud resources, flexibly allocates resources according to business needs, and improves the flexibility and efficiency of resource use.
[0111] In a specific embodiment of the present application, the device may further include:
[0112] A resource information determination module, used for determining resource information required for processing a task to be processed when receiving the task to be processed;
[0113] A cloud resource retrieval module is used to call the application programming interface of the cloud platform storage server to retrieve the cloud resources corresponding to the resource information from the cloud platform storage server;
[0114] The task processing module is used to process the pending tasks using cloud resources.
[0115] In a specific embodiment of the present application, the device may further include:
[0116] A judgment module, used to judge whether a preset cloud resource retrieval retry limit is reached when the cloud resource corresponding to the resource information is not successfully retrieved from the cloud platform storage server;
[0117] The repeated execution module is used to re-execute the step of calling the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server when it is determined that the cloud resource retrieval retry upper limit has not been reached.
[0118] In a specific implementation of the present application, the resource information determination module is specifically a module that parses the received pending tasks to obtain the task sender authority information of the pending tasks and the resource information required to process the pending tasks;
[0119] The cloud resource retrieval module includes:
[0120] The available cloud resource screening submodule is used to screen the available cloud resource set corresponding to the task sender's permission information from the cloud platform storage server;
[0121] The cloud resource retrieval submodule is used to call the application programming interface of the cloud platform storage server to retrieve the cloud resources corresponding to the resource information from the available cloud resource set.
[0122] In a specific implementation of the present application, the cloud resource retrieval module is specifically a module that calls the application programming interface of the cloud platform storage server to retrieve the cloud resources corresponding to the resource information from the cloud platform storage server according to the load balancing principle.
[0123] In a specific embodiment of the present application, the device may further include:
[0124] The call data monitoring module is used to monitor the call data of the application programming interface of the cloud platform storage server; wherein the call data includes response time, number of calls and error rate.
[0125] In a specific implementation of the present application, the resource management module 44 includes:
[0126] The data encryption submodule is used to encrypt the cloud resource data using the HTTP protocol to obtain the encrypted cloud resource data;
[0127] The data push submodule is used to call the application programming interface of the cloud platform storage server to push the encrypted cloud resource data to the cloud platform storage server.
[0128] Corresponding to the above method embodiment, see Figure 5 , Figure 5 This is a schematic diagram of the cloud platform resource management device provided in this application, which may include:
[0129] A memory 332, for storing computer programs;
[0130] The processor 322 is used to implement the steps of the cloud platform resource management method of the above method embodiment when executing the computer program.
[0131] For details, please refer to Figure 6 , Figure 6A specific structural diagram of a cloud platform resource management device provided for this embodiment, the cloud platform resource management device may have relatively large differences due to different configurations or performances, and may include a processor (central processing units, CPU) 322 (for example, one or more processors) and a memory 332, and the memory 332 stores one or more computer programs 342 or data 344. Among them, the memory 332 can be a temporary storage or a permanent storage. The program stored in the memory 332 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the data processing device. Furthermore, the processor 322 can be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the cloud platform resource management device 301.
[0132] The cloud platform resource management device 301 may also include one or more power supplies 326 , one or more wired or wireless network interfaces 350 , one or more input and output interfaces 358 , and / or one or more operating systems 341 .
[0133] The steps in the cloud platform resource management method described above can be implemented by the structure of the cloud platform resource management device.
[0134] Corresponding to the above method embodiment, the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the following steps can be implemented:
[0135] Obtain the application programming interface documents of each cloud platform respectively; connect with the application programming interface of each cloud platform according to the application programming interface documents; call the application programming interface of each cloud platform to obtain the cloud resource data of each cloud platform; call the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server, so that the cloud platform storage server can manage the cloud resources of each cloud platform according to the cloud resource data.
[0136] The computer-readable storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.
[0137] For an introduction to the computer-readable storage medium provided in this application, please refer to the above method embodiment, and this application will not go into details here.
[0138] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the devices, equipment and computer-readable storage media disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0139] Specific examples are used herein to illustrate the principles and implementation methods of the present application, and the description of the above embodiments is only used to help understand the technical solution and core ideas of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the present application.
Claims
1. A cloud platform resource management method, characterized in that: Applied to multi-cloud monitoring systems, including: Obtain the application programming interface documentation for each cloud platform; Connect with the API of each cloud platform according to the API documents; Call the application programming interface of each cloud platform to obtain the cloud resource data of each cloud platform; The application programming interface of the cloud platform storage server is called to push the cloud resource data to the cloud platform storage server, so that the cloud platform storage server manages the cloud resources of each cloud platform according to the cloud resource data.
2. The cloud platform resource management method according to claim 1, characterized in that: After calling the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server, the method further includes: When receiving a task to be processed, determining resource information required to process the task to be processed; Calling the application programming interface of the cloud platform storage server to retrieve the cloud resource corresponding to the resource information from the cloud platform storage server; The cloud resources are used to process the tasks to be processed.
3. The cloud platform resource management method according to claim 2, characterized in that: Also includes: When the cloud resource corresponding to the resource information is not successfully retrieved from the cloud platform storage server, determining whether a preset cloud resource retrieval retry limit is reached; When it is determined that the cloud resource retrieval retry upper limit has not been reached, the step of calling the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server is re-executed.
4. The cloud platform resource management method according to claim 2, characterized in that: When receiving a task to be processed, determining resource information required to process the task to be processed includes: Parsing the received pending tasks to obtain authority information of the task sender of the pending tasks and resource information required to process the pending tasks; Correspondingly, calling the application programming interface of the cloud platform storage server to retrieve the cloud resource corresponding to the resource information from the cloud platform storage server includes: Filtering the available cloud resource set corresponding to the task sender's authority information from the cloud platform storage server; The application programming interface of the cloud platform storage server is called to retrieve the cloud resource corresponding to the resource information from the available cloud resource set.
5. The cloud platform resource management method according to claim 2, characterized in that: Calling the application programming interface of the cloud platform storage server to retrieve the cloud resource corresponding to the resource information from the cloud platform storage server includes: The application programming interface of the cloud platform storage server is called to retrieve the cloud resources corresponding to the resource information from the cloud platform storage server according to the load balancing principle.
6. The cloud platform resource management method according to any one of claims 2 to 5, characterized in that: Also includes: The call data of the application programming interface of the cloud platform storage server is monitored; wherein the call data includes response time, number of calls and error rate.
7. The cloud platform resource management method according to claim 1, characterized in that: Calling the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server includes: Encrypting the cloud resource data using the HTTP protocol to obtain encrypted cloud resource data; The application programming interface of the cloud platform storage server is called to push the encrypted cloud resource data to the cloud platform storage server.
8. A cloud platform resource management device, characterized in that: Applied to multi-cloud monitoring systems, including: An interface document acquisition module is used to obtain the application programming interface documents of each cloud platform respectively; The interface docking module is used to dock with the application programming interface of each cloud platform according to each application programming interface document; A cloud resource data calling module is used to call the application programming interface of each cloud platform to obtain the cloud resource data of each cloud platform; The resource management module is used to call the application programming interface of the cloud platform storage server to push the cloud resource data to the cloud platform storage server, so that the cloud platform storage server manages the cloud resources of each cloud platform according to the cloud resource data.
9. A cloud platform resource management device, characterized in that: include: Memory for storing computer programs; A processor, used to implement the steps of the cloud platform resource management method as described in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the cloud platform resource management method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Unified management method for heterogeneous cloud platform
CN114629770A
Multi-cloud data unified processing method and multi-cloud data management platform
CN116360880A
Multi-cloud platform operation and maintenance method
CN118245235A
Heterogeneous cloud platform resource management system and method, electronic equipment and storage medium
CN118400172A
Cited By
System, method and device for collaborative optimization of data quality of regulation and control cloud platform and medium
CN119886954A
Cloud resource arrangement method, system and device based on LLM model, and medium
CN119922172A
