Cloud application operation performance optimization method and device and storage medium
By obtaining application information of cloud applications and calling performance tuning tools, cloud instances are optimized, and the problem of how to provide customized operating environments for different cloud applications under hardware resource determination is solved, achieving the effect of improving operational performance and reducing costs.
Patent Information
- Application Number
- CN202311302650.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-09
- Publication Date
- 2025-04-11
AI Technical Summary
In the case of hardware resources determination, how to provide customized operating environments for different types of cloud applications to improve operating performance and avoid the cost of maintaining mirror warehouses with high manpower and high material resources.
By obtaining the application information of the cloud application to be optimized in the cloud instance, obtaining the corresponding optimization plan based on the information, and calling the performance tuning tool to optimize the cloud instance according to the optimization plan.
It realizes that when hardware resources are determined, customized optimization solutions are provided for different cloud applications, improve the operating performance of cloud applications, and reduces the high-cost maintenance needs that rely on mirror warehouses.
Smart Images

Figure CN119806715A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the computer field, and specifically to a method, device and storage medium for optimizing the operating performance of a cloud application. Background Art
[0002] With the development of cloud computing, the demand and volume of cloud applications are increasing, and the types of cloud applications are also increasing. Different types of cloud applications have different loads, so their requirements for hardware resources and operating environment settings are also different. Hardware resources are usually determined when purchasing cloud instances, so they cannot usually be improved through later optimization. So, when the hardware is determined, is there a way to provide special optimization for different cloud applications so that different cloud applications can have a customized operating environment? This is a problem that needs to be solved.
[0003] In the related art, the operating environment of cloud applications is optimized through an image repository. The image repository contains many images, which can provide targeted tuning for different cloud applications, thereby making the cloud applications have better performance.
[0004] However, due to the large number of images in the image repository, a lot of manpower and material resources are required to maintain the image repository, and the investment cost is very high. Summary of the invention
[0005] The present application proposes a method, device and storage medium for optimizing the operating performance of cloud applications, which can alleviate the technical problem in related technologies of low detection accuracy caused by mismatch between the receptive field and the target object size.
[0006] The first embodiment of the present application proposes a method for optimizing the operating performance of a cloud application, including:
[0007] Obtain application information of the cloud application to be optimized in the cloud instance;
[0008] Based on the application information, obtaining an optimization solution corresponding to the cloud application to be optimized;
[0009] A performance tuning tool is called to optimize the cloud instance according to the optimization scheme.
[0010] In some embodiments, obtaining application information of a cloud application to be optimized in a cloud instance includes:
[0011] Obtaining a purchase request for the cloud instance;
[0012] The application information of the cloud application to be optimized is obtained from the purchase request.
[0013] In some embodiments, calling a performance tuning tool and optimizing the cloud instance according to the optimization scheme includes:
[0014] In the case where it is determined that the cloud application to be optimized is automatically installed on the cloud instance in response to the purchase request, calling the performance tuning tool and optimizing the resources of the cloud instance and the application configuration of the cloud application to be optimized according to the optimization scheme;
[0015] In the case where the cloud application to be optimized is manually installed on the cloud instance by a user, the performance tuning tool is called and the resources of the cloud instance are optimized according to the optimization scheme.
[0016] In some embodiments, determining that the cloud application to be optimized is automatically installed on the cloud instance in response to the purchase request includes:
[0017] Obtaining installation parameters carried in the purchase request;
[0018] In a case where the installation parameter indicates that the cloud application to be optimized is automatically installed in the cloud instance, it is determined that the cloud application to be optimized is automatically installed in the cloud instance in response to the purchase request.
[0019] In some embodiments, obtaining application information of a cloud application to be optimized in a cloud instance includes:
[0020] In the case where the user manually installs the cloud application to be optimized, in response to detecting a tuning call request from the user to the performance tuning tool, application information of the cloud application to be optimized is obtained from the tuning call request.
[0021] In some embodiments, calling a performance tuning tool and optimizing the cloud instance according to the optimization scheme further includes:
[0022] In response to detecting a rollback call request from a user to the performance tuning tool, the optimization of the cloud instance is canceled through the performance tuning tool.
[0023] In some embodiments, the application information includes an application type and an application name, and based on the application information, obtaining an optimization solution corresponding to the cloud application to be optimized includes:
[0024] If there is a target optimization solution whose name is consistent with the application name, determine that the target optimization solution is the optimization solution corresponding to the cloud application to be optimized;
[0025] In the absence of the target optimization solution, a general optimization solution corresponding to the application type is determined as the optimization solution corresponding to the cloud application to be optimized.
[0026] The second embodiment of the present application proposes a system for optimizing the operating performance of a cloud application, including:
[0027] Service equipment and terminal equipment;
[0028] The terminal device is used to send a purchase request for a cloud instance to the service device, wherein the purchase request includes application information of the cloud application to be optimized;
[0029] The service device is used to obtain an optimization solution corresponding to the cloud application to be optimized based on the application information; call a performance tuning tool and optimize the cloud instance according to the optimization solution.
[0030] The third aspect of the present application provides a device for optimizing the operating performance of a cloud application, including:
[0031] A first acquisition module is used to acquire application information of a cloud application to be optimized in a cloud instance;
[0032] A second acquisition module, configured to acquire an optimization solution corresponding to the cloud application to be optimized based on the application information;
[0033] The optimization module is used to call the performance tuning tool and optimize the cloud instance according to the optimization scheme.
[0034] An embodiment of the fourth aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect above.
[0035] An embodiment of the fifth aspect of the present application provides a computer-readable storage medium on which a computer program is stored, and the program is executed by a processor to implement the method described in the first aspect above.
[0036] The fields and usage scenarios of each image are generally marked on the image name, which makes the name very long. At the same time, some customized images are not named in a standard way, which makes it difficult for users to choose a suitable image.
[0037] The technical solution provided in the embodiments of the present application has at least the following technical effects or advantages:
[0038] In the embodiment of the present application, for the cloud application to be optimized in the cloud instance, the optimization scheme corresponding to the cloud application to be optimized can be obtained based on the application information of the cloud application to be optimized, and the performance tuning tool can be called to optimize the cloud instance according to the optimization scheme. It can be seen that the scheme of this embodiment can achieve the optimization of the cloud application to be optimized without the help of the image warehouse, so it can alleviate the problem of high manpower and material resources when using the image warehouse to optimize the cloud application.
[0039] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] By reading the detailed description of the preferred embodiment below, various other advantages and benefits will become clear to those of ordinary skill in the art. The accompanying drawings are only used for the purpose of illustrating the preferred embodiment and are not considered to be limitations of the present application. In addition, the same reference symbols are used to represent the same components throughout the accompanying drawings.
[0041] In the attached picture:
[0042] Figure 1 A schematic diagram of a process of optimizing a cloud application operating performance provided by an embodiment of the present application is shown;
[0043] Figure 2 Another schematic diagram of a process for optimizing the cloud application running performance provided by an embodiment of the present application is shown;
[0044] Figure 3 Another schematic diagram of a process for optimizing the cloud application running performance provided by an embodiment of the present application is shown;
[0045] Figure 4 A schematic diagram showing the structure of a system for optimizing the operating performance of cloud applications provided in an embodiment of the present application is shown;
[0046] Figure 5 A schematic diagram showing the structure of a device for optimizing cloud application running performance provided by an embodiment of the present application is shown;
[0047] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present application is shown;
[0048] Figure 7 A schematic diagram of a storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0049] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0050] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.
[0051] With the development of cloud computing, the demand and volume of cloud applications are increasing, and the types of cloud applications are also increasing. Different types of cloud applications have different loads, so their requirements for hardware resources and operating environment settings are also different. Hardware resources are usually determined when purchasing cloud instances, so they cannot usually be improved through later optimization. So, when the hardware is determined, is there a way to provide special optimization for different cloud applications so that different cloud applications can have a customized operating environment? This is a problem that needs to be solved.
[0052] In the related art, the operating environment of cloud applications is optimized through an image repository. The image repository contains many images, which can provide targeted tuning for different cloud applications, thereby making the cloud applications have better performance.
[0053] However, due to the large number of images in the image repository, a lot of manpower and material resources are required to maintain the image repository, and the investment cost is very high.
[0054] In order to alleviate the above-mentioned problems in the related art, the present application provides a method, device and storage medium for optimizing the operating performance of a cloud application, the method obtaining application information of a cloud application to be optimized in a cloud instance; based on the application information, obtaining an optimization scheme corresponding to the cloud application to be optimized; calling a performance tuning tool and optimizing the cloud instance according to the optimization scheme. The present application obtains an optimization scheme corresponding to the cloud application to be optimized based on the application information of the cloud application to be optimized, and calls a performance tuning tool to optimize the cloud instance according to the optimization scheme. It can be seen that the scheme of this embodiment can achieve the optimization of the cloud application to be optimized without the aid of an image warehouse, and therefore can alleviate the problem of high manpower and material resources when optimizing cloud applications using an image warehouse.
[0055] The following describes a method, device and storage medium for optimizing the operating performance of a cloud application proposed in accordance with an embodiment of the present application in conjunction with the accompanying drawings.
[0056] See also Figure 1 , the method specifically comprises the following steps:
[0057] Step 101: Obtain application information of a cloud application to be optimized in a cloud instance.
[0058] In this embodiment, cloud instances include but are not limited to virtual machines (VMs) and containers in cloud servers. The application information of the cloud application to be optimized is used to uniquely identify a cloud application to be optimized or a class of cloud applications to be optimized. When the application information is used to uniquely identify a cloud application to be optimized, the application information includes but is not limited to the application name. When the application information is used to uniquely identify a class of cloud applications to be optimized, the application information includes but is not limited to the application type. The application category includes but is not limited to databases, web servers, etc. Databases include but are not limited to Mysql databases, Redis databases, etc., and web servers include but are not limited to nignx servers.
[0059] In this embodiment, the cloud application to be optimized in the cloud instance may be manually installed in the cloud instance by the user, or may be automatically installed in the cloud instance during the process of purchasing the cloud instance. Therefore, based on these two situations, this embodiment provides at least two following methods for obtaining application information of the cloud application to be optimized:
[0060] One method is to obtain application information of the cloud application to be optimized from the purchase request of the cloud instance. After the cloud application to be optimized is automatically installed in the cloud instance in response to the purchase request, the performance tuning tool can be called based on the application information obtained from the purchase request to optimize the cloud application to be optimized in the cloud instance according to the optimization plan. In this way, when the cloud instance is powered on, the resources related to the cloud application to be optimized in the cloud instance have been optimized, thereby achieving ready-to-use performance tuning in the cloud scenario.
[0061] Another method is, when a user manually installs the cloud application to be optimized, in response to detecting a tuning call request from the user to a performance tuning tool, obtaining application information of the cloud application to be optimized from the tuning call request.
[0062] In the application, when the user wants to replace a previously installed cloud application, he can first uninstall the previously installed cloud application, and then install other cloud applications according to his own needs. For such cloud applications that have been newly installed in the cloud instance and have not been optimized, the user is supported to call the performance tuning tool to optimize the cloud applications newly installed in the cloud instance.
[0063] Step 102: Based on the application information, obtain an optimization solution corresponding to the cloud application to be optimized.
[0064] In this embodiment, the cloud instance creation interface can be called to obtain the optimization scheme corresponding to the cloud application to be optimized from the private cloud database. The private cloud database stores multiple optimization schemes, each of which corresponds to a cloud application to be optimized or a class of cloud applications to be optimized, and establishes a corresponding relationship between the cloud application to be optimized and the optimization scheme.
[0065] In an optional embodiment, the application information includes an application type and an application name. Based on the application information, obtaining an optimization solution corresponding to the cloud application to be optimized may include the following steps:
[0066] If there is a target optimization solution whose name is consistent with the application name, determine the target optimization solution as the optimization solution corresponding to the cloud application to be optimized;
[0067] In the absence of a target optimization solution, a general optimization solution corresponding to the application type is determined as the optimization solution corresponding to the cloud application to be optimized.
[0068] In applications, in order to improve the accuracy of optimization, for some commonly used cloud applications, an optimization plan is usually set for each cloud application. For infrequently used cloud applications, in order to reduce the resource overhead of developing optimization plans, a general optimization plan can be set for each type of cloud application. Therefore, when obtaining the optimization plan corresponding to the cloud application to be optimized, first use the application name of the cloud application to be optimized to find out whether there is an optimization plan that uniquely corresponds to the cloud application to be optimized. If not, use the application type of the cloud application to be optimized to find a general optimization plan. For example, in actual applications, corresponding optimization plans can be set for the Mysql database and Redis database in the database, respectively, and for other databases besides the Mysql database and the Redis database, a general optimization plan for the database can be shared.
[0069] In this embodiment, the optimization scheme can optimize the resources of the cloud instance and the application configuration of the cloud application to be optimized. The optimization scheme may include the types of resources to be optimized in the cloud instance, the degree to which each type of resource is optimized, the configuration items to be optimized in the cloud application to be optimized, and the optimized configuration values of each configuration item.
[0070] It should be understood that for different cloud applications to be optimized, the types of resources to be optimized in the cloud instances included in the corresponding optimization files may be different or the same, and similarly, the degree to which each type of resource is optimized may be the same or different. It should be understood that different cloud applications to be optimized here may refer to different files to be optimized belonging to the same application type, or may refer to cloud applications belonging to different application types.
[0071] In an optional embodiment, the optimization solution corresponding to the cloud application to be optimized may be obtained based on the user's instruction. In a specific implementation, after obtaining the application information of the cloud application to be optimized, the application information is displayed on the interactive interface so that the user indicates the optimization solution corresponding to the cloud application to be optimized based on the application information.
[0072] Step 103: Call the performance tuning tool and optimize the cloud instance according to the optimization plan.
[0073] In this embodiment, in order to improve the running performance of the optimized cloud application to be optimized, the resources of the cloud instance and the application configuration of the cloud application to be optimized can be optimized according to the optimization scheme. In the application, in order to encourage users to install cloud applications when purchasing cloud instances so as to optimize the cloud applications before the cloud instances are powered on, so as to achieve a tuning effect of being ready for use after powering on, it can also be set that when the cloud application to be optimized is automatically installed in the cloud instance in response to the purchase request of the cloud instance, the resources of the cloud instance and the application configuration of the cloud application to be optimized are optimized, and when the cloud application to be optimized is manually installed in the cloud instance by the user, the resources of the cloud instance are optimized, and the cloud application to be optimized is no longer optimized.
[0074] In a specific implementation, in an optional embodiment, calling a performance tuning tool and optimizing the cloud application to be optimized in the cloud instance according to the optimization plan may include the following steps:
[0075] In a case where the cloud application to be optimized is automatically installed on the cloud instance in response to the purchase request, calling the performance tuning tool and optimizing the resources of the cloud instance and the cloud application to be optimized according to the optimization plan;
[0076] In the case where the cloud application to be optimized is manually installed on the cloud instance by the user, the performance tuning tool is called and the resources of the cloud instance are optimized according to the optimization plan.
[0077] It should be understood that when the cloud application to be optimized is manually installed by the user on the cloud instance, since there is no need to optimize the cloud application to be optimized, when optimizing the cloud application to be optimized according to the optimization plan, the part of the optimization plan related to the application configuration of the cloud application to be optimized is skipped.
[0078] In this embodiment, the resources of the cloud instance include but are not limited to the kernel, software installation library (BaseOS), basic service resources, etc. Among them, BaseOS includes dynamic libraries and static libraries, such as libc, libz, etc., and basic service resources include irqbalance, numa (Non Uniform Memory Access), etc.
[0079] In an optional embodiment, after calling the performance tuning tool and optimizing the cloud instance according to the optimization scheme, the following may also be included:
[0080] In response to detecting a rollback call request from a user to the performance tuning tool, the optimization of the cloud instance is canceled through the performance tuning tool.
[0081] In this embodiment, if the user wants to use an unoptimized environment, the user is supported to cancel the optimization of the cloud application to be optimized in the cloud instance by requesting a rollback call to the performance tuning tool. This helps the user to set the operating environment of the cloud application to be optimized according to their own needs and improve the user experience.
[0082] In an optional embodiment, before calling the performance tuning tool and optimizing the cloud instance according to the optimization plan, the following may also be included:
[0083] Obtain the download script of the performance tuning tool through the cloud instance creation interface;
[0084] Execute the downloaded script to install the performance tuning tool in the cloud instance.
[0085] It should be understood that the cloud instance creation interface is used to create a cloud instance in response to a purchase request for the cloud instance. After the cloud instance is created, the creation interface can also obtain the download script of the performance tuning tool from the private cloud database and execute the download script in the cloud instance to install the performance tuning tool in the cloud instance.
[0086] In the solution provided by this embodiment, for the cloud application to be optimized in the cloud instance, the optimization solution corresponding to the cloud application to be optimized can be obtained based on the application information of the cloud application to be optimized, and the performance tuning tool can be called to optimize the cloud instance according to the optimization solution. It can be seen that the solution of this embodiment can achieve the optimization of the cloud application to be optimized without the help of the image warehouse, so it can alleviate the problem of high manpower and material resources when optimizing cloud applications using the image warehouse.
[0087] The following uses the ECS (Elastic Compute Service) instance purchased by the user as an example to introduce the method for optimizing the running performance of the cloud application of the present application. Figure 2 As shown, the method may include the following steps:
[0088] Step 201: On the ECS instance purchase page displayed on the terminal device, the user selects the hardware device for implementing the ECS instance, the operating system of the ECS instance, the cloud application deployed on the ECS instance, and indicates whether to optimize the cloud application.
[0089] It should be understood that an ECS instance is equivalent to a virtual machine, including basic computing components such as CPU, memory, operating system, network, and disk. These computing components determine the operating performance of the ECS instance. Users can select the hardware device and operating system of the ECS instance on the ECS instance purchase page according to their own needs. The terminal device generates an ECS instance purchase request based on the ECS instance hardware device, ECS instance operating system, cloud application deployed on the ECS instance, and parameters indicating whether to optimize the cloud application received from the ECS instance purchase page, and sends the ECS instance purchase request to the service device.
[0090] In this embodiment, when the user indicates that an application needs to be optimized, the terminal device displays an application acceleration page, which displays an application configuration component and a resource domain configuration component, wherein the application configuration component is used to configure the application information of the cloud application that needs to be optimized, and the resource domain configuration component is used to configure the resource domain that the cloud application needs to optimize. The resource domain includes the resources of the cloud instance, or the resources of the cloud instance and the application configuration of the cloud application.
[0091] In this embodiment, the resource field configuration component can configure the installation parameters of the cloud application, and use the installation parameters to indicate the resource fields that the cloud application needs to optimize. The installation parameters are used to indicate whether the cloud application is automatically installed after the ECS instance is installed. In the case where the installation parameters indicate that the cloud application is automatically installed after the ECS instance is installed, the resource fields that the cloud application needs to optimize are the resources of the cloud instance and the configuration of the cloud application; in the case where the installation parameters indicate that the cloud application is not automatically installed after the ECS instance is installed, the resource fields that the cloud application needs to optimize are the resources of the cloud instance.
[0092] Step 202: Create an ECS instance.
[0093] The service device creates an ECS instance in response to the ECS instance purchase request, and after creating the ECS instance, determines whether the cloud application needs to be automatically installed based on the installation parameters in the ECS instance purchase request. If it is determined that the cloud application needs to be automatically installed, the cloud application is downloaded and installed from the public cloud software library.
[0094] Step 203: Install the cloud application in the ECS instance.
[0095] It should be understood that the premise of the implementation here is that the installation parameter in the ECS instance purchase request indicates that the cloud application is automatically installed after the ECS instance is created.
[0096] Step 204: Optimize the cloud application in the cloud instance.
[0097] It should be understood that the optimization of cloud applications here includes two situations. One is that when the cloud application is automatically installed in the ECS instance according to step 203, the resources of the cloud instance and the application configuration of the cloud application are optimized based on the optimization solution corresponding to the cloud application obtained. The other is that the cloud application is not automatically installed in the ECS instance according to step 203, and the resources of the cloud instance are optimized based on the optimization solution corresponding to the cloud application obtained. In this case, after the ECS instance is created, that is, after executing step 202, step 203 is skipped and step 204 is directly executed.
[0098] By adopting the solution provided in this embodiment, whether optimizing the resources of the cloud instance and the configuration of the cloud application, or configuring the resources of the cloud instance, it can be achieved before the ECS instance is started. Therefore, the optimization solution for the operating performance of this embodiment produces a tuning effect that can be used immediately after startup.
[0099] The following continues to illustrate the steps of the method for optimizing the operating performance of cloud applications of the present application with a specific embodiment. Figure 3 As shown, the method may include the following steps:
[0100] Step 301: In the application acceleration area displayed on the cloud instance purchase page, obtain application information and installation parameters of the cloud application configured by the user; and generate a cloud instance purchase request based on the application information and installation parameters.
[0101] It should be understood that the user-configured cloud application refers to the application to be installed and deployed in the purchased cloud instance. The installation parameter indicates whether the cloud application is automatically installed after the cloud instance is installed or the user manually installs the cloud application. For example, Figure 3 As shown in the figure, when the user checks both MySQL and application installation in the application acceleration area, it means that the MySQL database will be automatically installed after the cloud instance is installed, and the resources of the cloud instance and the application configuration of the MySQL database will be optimized.
[0102] Step 302: The cloud instance creation interface on the service device side creates a cloud instance based on the cloud instance purchase request, downloads the download script of the performance tuning tool from the private cloud database, and downloads the optimization solution corresponding to the cloud application from the private cloud database based on the application information.
[0103] In this embodiment, in order to use the latest version of the performance tuning tool and improve the compatibility of the optimization plan with the cloud application, the download script and optimization plan of the performance tuning tool in the private cloud database can be updated regularly, and the private cloud database can synchronize the download script and optimization plan of the performance tuning tool from the preset storage space according to the set time.
[0104] Step 303: When the installation parameters indicate that the cloud application is automatically installed after the cloud instance is created, download and install the cloud application from the installation database, execute the download script to download the installation package of the performance tuning tool from the installation database, install the installation package in the cloud instance to install the performance tuning tool in the cloud instance, and call the performance tuning tool to optimize the cloud application according to the optimization plan.
[0105] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0106] Based on the same inventive concept, the present application embodiment also provides a cloud application operating performance optimization system, such as Figure 4 As shown, the system may include:
[0107] Service device 41 and terminal device 42;
[0108] The terminal device 42 is used for the terminal device to send a purchase request for a cloud instance to the service device, where the purchase request includes application information of the cloud application to be optimized;
[0109] The service device 41 is used to obtain an optimization solution corresponding to the cloud application to be optimized based on the application information; call a performance tuning tool and optimize the cloud instance according to the optimization solution.
[0110] Based on the same inventive concept, the embodiment of the present application also provides a device for optimizing the operating performance of a cloud application, such as Figure 5 As shown, the device may include:
[0111] A first acquisition module 51 is used to acquire application information of a cloud application to be optimized in a cloud instance;
[0112] A second acquisition module 52 is used to acquire an optimization solution corresponding to the cloud application to be optimized based on the application information;
[0113] The optimization module 53 is used to call the performance tuning tool and optimize the cloud instance according to the optimization plan.
[0114] In some embodiments, the first acquisition module 51 is used to:
[0115] Obtain application information of the cloud application to be optimized from the purchase request of the cloud instance.
[0116] In some embodiments, the optimization module 53 is used to:
[0117] In the case where it is determined that the cloud application to be optimized is automatically installed on the cloud instance in response to the purchase request, calling the performance tuning tool and optimizing the resources of the cloud instance and the application configuration of the cloud application to be optimized according to the optimization plan;
[0118] In the case where the cloud application to be optimized is manually installed on the cloud instance by the user, the performance tuning tool is called and the resources of the cloud instance are optimized according to the optimization plan.
[0119] In some embodiments, the optimization module 53 is used to:
[0120] Get the installation parameters carried in the purchase request;
[0121] When the installation parameter indicates that the cloud application to be optimized is automatically installed in the cloud instance, it is determined that the cloud application to be optimized is automatically installed in the cloud instance in response to the purchase request.
[0122] In some embodiments, the first acquisition module 51 is used to:
[0123] In the case where the user manually installs the cloud application to be optimized, in response to detecting a tuning call request from the user to a performance tuning tool, application information of the cloud application to be optimized is obtained from the tuning call request.
[0124] In some embodiments, the device is also used to:
[0125] After the performance tuning tool is called and the cloud instance is optimized according to the optimization plan, in response to detecting a rollback call request to the performance tuning tool from the user, the optimization of the cloud application to be optimized in the cloud instance is canceled by the performance tuning tool.
[0126] In some embodiments, the device is also used to:
[0127] Before calling the performance tuning tool and optimizing the cloud instance according to the optimization plan, obtain the download script of the performance tuning tool through the cloud instance creation interface;
[0128] Execute the downloaded script to install the performance tuning tool in the cloud instance.
[0129] In some embodiments, the application information includes the application type and the application name, and the second acquisition module 52 is used to:
[0130] If there is a target optimization solution whose name is consistent with the application name, determine the target optimization solution as the optimization solution corresponding to the cloud application to be optimized;
[0131] In the absence of a target optimization solution, a general optimization solution corresponding to the application type is determined as the optimization solution corresponding to the cloud application to be optimized.
[0132] The cloud application operating performance optimization device provided in the embodiment of the present application and the cloud application operating performance optimization method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented therein.
[0133] The present application also provides an electronic device to perform the above-mentioned method for optimizing the performance of cloud application operation. Figure 6 It shows a schematic diagram of an electronic device provided by some embodiments of the present application. Figure 6 As shown, the electronic device 6 includes: a processor 600, a memory 601, a bus 602 and a communication interface 603, and the processor 600, the communication interface 603 and the memory 601 are connected via the bus 602; the memory 601 stores a computer program that can be run on the processor 600, and when the processor 600 runs the computer program, it executes the method for optimizing the cloud application running performance provided in any of the aforementioned embodiments of the present application.
[0134] The memory 601 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the device network element and at least one other network element is realized through at least one communication interface 603 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0135] The bus 602 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 601 is used to store programs, and the processor 600 executes the program after receiving an execution instruction. The method for optimizing the running performance of a cloud application disclosed in any implementation of the embodiment of the present application may be applied to the processor 600, or implemented by the processor 600.
[0136] The processor 600 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 600. The above processor 600 can be a general-purpose processor, including a processor (Central Processing Unit, referred to as CPU), a network processor (Network Processor, referred to as NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 601, and the processor 600 reads the information in the memory 601 and completes the steps of the above method in combination with its hardware.
[0137] The electronic device provided in the embodiment of the present application and the method for optimizing the cloud application running performance provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented therein.
[0138] The present application also provides a computer-readable storage medium corresponding to the method for optimizing the cloud application running performance provided in the above-mentioned embodiment. Figure 7 The computer-readable storage medium shown is a CD 30 on which a computer program (ie, a program product) is stored. When the computer program is executed by a processor, the method for optimizing the cloud application running performance provided by any of the aforementioned embodiments will be executed.
[0139] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0140] The computer-readable storage medium provided by the above-mentioned embodiments of the present application and the method for optimizing the cloud application running performance provided by the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, run or implemented by the application programs stored therein.
[0141] It should be noted that:
[0142] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known structures and technologies are not shown in detail so as not to obscure the understanding of this description.
[0143] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following schematic diagram: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the claims below, the inventive aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.
[0144] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.
[0145] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for optimizing the operating performance of a cloud application, characterized in that: include: Obtain application information of the cloud application to be optimized in the cloud instance; Based on the application information, obtaining an optimization solution corresponding to the cloud application to be optimized; A performance tuning tool is called to optimize the cloud instance according to the optimization scheme.
2. The method according to claim 1, characterized in that Obtain application information of the cloud application to be optimized in the cloud instance, including: Obtaining a purchase request for the cloud instance; The application information of the cloud application to be optimized is obtained from the purchase request.
3. The method according to claim 2, characterized in that Invoke a performance tuning tool and optimize the cloud instance according to the optimization scheme, including: In the case where it is determined that the cloud application to be optimized is automatically installed on the cloud instance in response to the purchase request, calling the performance tuning tool and optimizing the resources of the cloud instance and the application configuration of the cloud application to be optimized according to the optimization scheme; In the case where the cloud application to be optimized is manually installed on the cloud instance by a user, the performance tuning tool is called and the resources of the cloud instance are optimized according to the optimization scheme.
4. The method according to claim 3, characterized in that Determining that the cloud application to be optimized is automatically installed on the cloud instance in response to the purchase request includes: Obtaining installation parameters carried in the purchase request; In a case where the installation parameter indicates that the cloud application to be optimized is automatically installed in the cloud instance, it is determined that the cloud application to be optimized is automatically installed in the cloud instance in response to the purchase request.
5. The method according to claim 1, characterized in that: Obtain application information of the cloud application to be optimized in the cloud instance, including: In the case where the user manually installs the cloud application to be optimized, in response to detecting a tuning call request from the user to the performance tuning tool, application information of the cloud application to be optimized is obtained from the tuning call request.
6. The method according to claim 1, characterized in that After invoking the performance tuning tool and optimizing the cloud instance according to the optimization scheme, the following steps are further included: In response to detecting a rollback call request from a user to the performance tuning tool, the optimization of the cloud instance is canceled through the performance tuning tool.
7. The method according to claim 1, characterized in that The application information includes an application type and an application name. Based on the application information, obtaining an optimization solution corresponding to the cloud application to be optimized includes: If there is a target optimization solution whose name is consistent with the application name, determine that the target optimization solution is the optimization solution corresponding to the cloud application to be optimized; In the absence of the target optimization solution, a general optimization solution corresponding to the application type is determined as the optimization solution corresponding to the cloud application to be optimized.
8. A cloud application performance optimization system, characterized in that: include: Service equipment and terminal equipment; The terminal device is used to send a purchase request for a cloud instance to the service device, wherein the purchase request includes application information of the cloud application to be optimized; The service device is used to obtain an optimization solution corresponding to the cloud application to be optimized based on the application information; A performance tuning tool is called to optimize the cloud instance according to the optimization scheme.
9. A device for optimizing the operating performance of a cloud application, characterized in that: include: A first acquisition module is used to acquire application information of a cloud application to be optimized in a cloud instance; A second acquisition module, configured to acquire an optimization solution corresponding to the cloud application to be optimized based on the application information; The optimization module is used to call the performance tuning tool and optimize the cloud instance according to the optimization scheme.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: The processor runs the computer program to implement the method according to any one of claims 1 to 7.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the method according to any one of claims 1 to 7.