Cloud resource processing method, electronic equipment, storage medium and program product
By responding to the call request of the performance test process platform on the cloud platform, dynamically adjusting the resource usage limit of the namespace quota, realizing automatic issuance and recycling of cloud resources, solving the problem of low cloud resource processing efficiency and improving the utilization rate of cloud resources .
Patent Information
- Application Number
- CN202411733096.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-28
- Publication Date
- 2025-02-18
AI Technical Summary
In the prior art, the processing efficiency of cloud resources is low, resulting in low utilization rate of cloud resources in development and testing environments, and the rebuilding of the environment after recycling requires a high time cost and workload.
By responding to the call request of the performance test process platform on the cloud platform, dynamically adjusting the resource usage limit of the namespace quota, and achieving automatic issuance and recycling of cloud resources.
It improves the utilization rate of cloud resources, reduces the time cost and workload of cloud resource recycling and rebuilding, and realizes the connection between cloud platform and performance testing process platform.
Smart Images

Figure CN119473559A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of cloud computing technology, and in particular to a cloud resource processing method, electronic device, storage medium and program product. Background Art
[0002] Cloud resources are standardized resources such as virtual machines and physical machines released by cloud platforms. As an important part of cloud computing technology, cloud resources are gradually becoming a key driving force for promoting enterprise digital transformation and improving business efficiency and flexibility.
[0003] Using cloud resources, after importing database configuration parameters and basic data, can be used as a database operating environment, but it needs to go through multiple processes such as exporting data from the production library, data desensitization, and data transmission, which has a high time cost and workload. Therefore, the existing technology lacks the processing of cloud resources. Summary of the invention
[0004] The embodiments of the present application provide a cloud resource processing method, an electronic device, a storage medium, and a program product to achieve the technical effect of improving the processing efficiency of cloud resources.
[0005] In a first aspect, an embodiment of the present application provides a method for processing cloud resources, which is applied to a cloud platform, including:
[0006] In response to a first call request issued by the performance test process platform when the performance test of the test object begins, obtain the namespace quota of the corresponding performance test process platform in the cloud platform, increase the resource usage upper limit of the namespace quota, and provide cloud resources for the performance test process platform to perform performance testing on the test object; wherein the first call request is used to call the cloud resources of the cloud platform to perform performance testing on the test object; the cloud resources include container Pods, databases, virtual machines, and physical machines;
[0007] In response to a second call request issued by the performance testing process platform when the performance testing of the test object is completed, the upper limit of the namespace quota resource usage is reduced, and the cloud resources used for the performance testing of the test object are reclaimed; wherein the second call request is used to call the cloud platform to reclaim the cloud resources used for the performance testing of the test object.
[0008] In a second aspect, an embodiment of the present application provides a method for processing cloud resources, which is applied to a data processing platform, including:
[0009] After backing up the data generated by at least one database when the performance test is performed on the test object, and determining the backup data of the cloud resources for the performance test of the test object, the backup data of the cloud resources is trimmed according to a preset limit policy to obtain the trimmed backup data, the trimmed backup data is stored, and the stored backup data is regularly cleaned up according to a preset deadline policy; wherein the stored backup data is the historical performance test data of the performance testing process platform on the test object.
[0010] In a third aspect, an embodiment of the present application provides a cloud resource processing device, the device comprising: a performance testing process platform, a cloud platform and a data processing platform;
[0011] The performance test process platform is connected to the data processing platform, the data processing platform is connected to the performance test process platform and the cloud platform; the cloud platform is connected to the data processing platform;
[0012] The performance test process platform is used to send a first call request to the data processing platform when the performance test of the test object begins, and is also used to send a second call request to the data processing platform when the performance test of the test object ends;
[0013] The data processing platform is used to receive the first call request and transmit the first call request to the cloud platform, and is also used to receive the second call request and transmit the second call request to the cloud platform;
[0014] The cloud platform is used to receive the first call request sent by the data processing platform, and provide cloud resources and historical performance test data for the performance test process platform to perform performance testing on the test object; it is also used to receive the second call request sent by the data processing platform, and recycle the cloud resources used for performance testing of the test object.
[0015] In a fourth aspect, an embodiment of the present application provides a cloud resource processing device, including: a memory, a processor;
[0016] The memory stores computer-executable instructions;
[0017] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the first aspect, the second aspect, various possible implementations of the first aspect and / or various possible implementations of the second aspect as described above.
[0018] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When the computer execution instructions are executed by a processor, they are used to implement the first aspect, the second aspect, various possible implementations of the first aspect and / or various possible implementations of the second aspect as described above.
[0019] In a sixth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the above first aspect, the second aspect, various possible implementations of the first aspect, and / or various possible implementations of the second aspect.
[0020] The cloud resource processing method, electronic device, storage medium and program product provided in the embodiments of the present application are applied to a cloud platform. By responding to a first call request issued by a performance test process platform when starting to perform performance testing on a test object, the namespace quota of the corresponding performance test process platform in the cloud platform is obtained, and the resource usage upper limit of the namespace quota is increased, so as to provide cloud resources for the performance test process platform to perform performance testing on the test object; further, by responding to a second call request issued by the performance test process platform when finishing the performance testing on the test object, the resource usage upper limit of the namespace quota is lowered, and the cloud resources used for the performance testing of the test object are recovered, thereby realizing the connection between the cloud platform and the performance test process platform, and completing the issuance and recovery of cloud resources by the cloud platform according to the test process of the performance test process platform, thereby improving the utilization rate of cloud resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0022] Figure 1 Schematic diagram of the process of processing cloud resources provided in this application Figure 1 ;
[0023] Figure 2 Schematic diagram of the process of processing cloud resources provided in this application Figure 2 ;
[0024] Figure 3 Schematic diagram of the process of processing cloud resources provided in this application Figure 3 ;
[0025] Figure 4 A schematic diagram of the structure of the cloud resource processing device provided in this application;
[0026] Figure 5 A hardware schematic diagram of a cloud resource processing device provided in this application.
[0027] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0028] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of methods and methods consistent with some aspects of the present application as detailed in the appended claims.
[0029] In the prior art, the party that demands the development and testing environment is reluctant to proactively recycle the relevant database environment at the end of the development and testing phase. The reasons include: as a security requirement, the underlying data of the database environment needs to go through multiple processes such as exporting data from the production library, data desensitization, and data transmission, which has a high time cost. In addition, this environment may still need to be used. For example, if a production environment fails or has performance problems, the development and testing environment will be needed to reproduce and troubleshoot the problem. At the same time, after the environment is recycled, it will be rebuilt, which will cost a lot of time and workload. Therefore, the prior art has the technical problem of low utilization of cloud resources in the development and testing environment.
[0030] In order to solve the above-mentioned technical problems, the present application provides a cloud resource processing method, electronic device, storage medium and program product. The cloud platform obtains the namespace quota of the corresponding performance testing process platform in the cloud platform in response to a first call request issued by the performance testing process platform when the performance testing of the test object begins, increases the resource usage upper limit of the namespace quota, and provides cloud resources for the performance testing process platform to perform performance testing on the test object; further, by responding to a second call request issued by the performance testing process platform when the performance testing of the test object ends, the namespace quota resource usage upper limit is lowered, and the cloud resources used for performance testing of the test object are recovered, thereby realizing the docking of the cloud platform and the performance testing process platform, and completing the issuance and recovery of cloud resources by the cloud platform according to the test process of the performance testing process platform, thereby improving the utilization rate of cloud resources.
[0031] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0032] Figure 1 Schematic diagram of the process of processing cloud resources provided in this application Figure 1 ,like Figure 1 As shown, the method is applied to a cloud platform and includes:
[0033] S101, in response to a first call request issued by the performance testing process platform when the performance testing object begins to be performed, obtaining a namespace quota corresponding to the performance testing process platform in the cloud platform, increasing the resource usage upper limit of the namespace quota, and providing cloud resources for the performance testing process platform to perform performance testing on the object to be tested;
[0034] In this embodiment, the first call request is used to call the cloud resources of the cloud platform to perform performance testing on the object to be tested; cloud resources include container Pods, databases, virtual machines, and physical machines; the performance test process platform is a process management platform used to manage the entire life cycle of performance testing, in which triggers can be set at each process node; the cloud platform is a platform used to manage computing, storage, network and other infrastructure and provide standardized cloud resources, which can provide standardized resource delivery through a graphical user interface or a northbound application programming interface. When the performance test process platform starts to perform performance testing on the object to be tested, the performance test process platform sends a first call request to the cloud platform. After the cloud platform responds to the first call request, it obtains the namespace quota for the object to be tested on the performance test process platform in the current cloud platform. The namespace quota is used to limit the use of resources under the namespace. By increasing the upper limit of the namespace quota, the performance test process platform can be allocated the corresponding required cloud resources when performing performance testing on the object to be tested.
[0035] S102 , in response to a second call request issued by the performance testing process platform when the performance testing of the object to be tested is completed, lowering the upper limit of the namespace quota resource usage, and reclaiming the cloud resources used for the performance testing of the object to be tested.
[0036] In this embodiment, the second call request is used to call the cloud platform to recycle the cloud resources used for performance testing of the test object; when the performance testing process platform completes the performance testing of the test object, the performance testing process platform sends a second call request to the cloud platform. After the cloud platform responds to the second call request, the upper limit of the namespace quota usage corresponding to the performance test is reduced, and at the same time, the cloud resources used by the performance testing process platform for performance testing of the test object are reclaimed. The reclaimed cloud resources include the space occupied by the cloud resources and the data generated by the cloud resources when the performance testing of the test object is performed.
[0037] The cloud resource processing method provided in the embodiment of the present application is as follows: when the performance testing process platform starts to perform performance testing on the test object, the performance testing process platform sends a first call request to the cloud platform. After the cloud platform responds to the first call request, the namespace quota for the performance testing process platform to perform the test object in the current cloud platform is obtained. The namespace quota is used to limit the use of resources under the namespace. By increasing the upper limit of the namespace quota, the corresponding cloud resources required for the performance testing process platform to perform performance testing on the test object can be allocated; when the performance testing process platform completes the performance testing of the test object, the performance testing process platform sends a second call request to the cloud platform. After the cloud platform responds to the second call request, the upper limit of the namespace quota usage corresponding to the performance test is reduced, and at the same time, the cloud resources used for the performance testing process platform to perform performance testing on the test object are recycled. The recycled cloud resources include the space occupied by the cloud resources and the data generated by the cloud resources when the performance testing of the test object is performed, thereby achieving the technical effect of recycling cloud resources in the performance testing stage and improving the utilization rate of cloud resources.
[0038] Figure 2 Schematic diagram of the process of processing cloud resources provided in this application Figure 2 ,like Figure 2 As shown, in this embodiment Figure 1 Based on the embodiment, a method for processing cloud resources is described in detail, wherein the distribution of cloud resources can be achieved through steps S201-S202; the recovery of cloud resources can be achieved through steps S203-S205; the method includes:
[0039] S201, in response to a first call request issued by the performance test process platform when the performance test of the test object begins, obtaining historical performance test data of the performance test process platform on the test object, and restoring the historical performance test data; and performing performance testing on the test object using the historical performance test data and cloud resources provided by the cloud platform;
[0040] In this embodiment, before the cloud platform provides cloud resources to the performance testing process platform, it can obtain the historical performance test data of the performance testing process platform on the object to be tested. After restoring the historical performance test data, the historical performance test data can be used together with the cloud resources provided by the subsequent cloud platform to perform performance testing on the object to be tested.
[0041] S202, obtaining the initial value of the namespace quota of the corresponding performance test process platform in the cloud platform, and increasing the initial value of the namespace quota to the target value; providing at least two container pods, at least one database, creating at least one physical machine and creating at least one virtual machine for the performance test process platform to perform performance testing on the object to be tested, and providing cloud resources for the performance test process platform to perform performance testing on the object to be tested;
[0042] In this embodiment, cloud resources are standardized resources consisting of container pods, databases, virtual machines, and physical machines issued by the cloud platform. Cloud resources and historical performance test data can be used as a database operating environment for performance testing on a performance testing process platform.
[0043] S203, in response to a second call request issued by the performance test process platform when the performance test of the test object ends, determining whether a data volume watermark generated by at least one database during the performance test is greater than a preset threshold;
[0044] In this embodiment, after receiving the second call request issued by the performance testing process platform when the performance testing of the test object is completed, the cloud platform needs to determine whether the data volume watermark of the data generated by the cloud resources during the performance testing process is greater than the preset threshold. In one possible implementation method, the preset threshold can be set to 500GB.
[0045] S204: If yes, then the cloud resources are not recycled; if no, then a query message is provided to the user end;
[0046] In this embodiment, when the data volume watermark of the data generated by the cloud resources during the performance test is less than or equal to the preset threshold, a query message is sent to the user terminal, wherein the query message allows the user terminal to determine whether to recycle the cloud resources.
[0047] S205. If the user terminal disagrees with the recycling of cloud resources, the cloud resources will not be recycled. If the user terminal agrees with the recycling of cloud resources, the target value of the namespace quota will be reduced to the initial value. The number of container pods for performance testing of the test object will be reduced to less than or equal to 1. The data generated by at least one database during the performance test will be backed up, and the backup data for the performance test of cloud resources will be determined to realize the recycling of cloud resource data. At least one physical machine and at least one virtual machine will be destroyed to realize the recycling of cloud resources.
[0048] In this embodiment, after the cloud platform obtains the user's consent for cloud resource recycling information, the target value of the namespace quota can be reduced to the initial value, and the data of the container pod can be reduced to a value of 1. The physical machine and virtual machine are destroyed to recycle the cloud resources. At the same time, the data generated by the cloud resources during the performance test is backed up. This data can be used as historical performance test data of the object to be tested for use in the next performance test.
[0049] Figure 3 Schematic diagram of the process of processing cloud resources provided in this application Figure 3 ,like Figure 3 As shown, in this embodiment Figure 1 and Figure 2 Based on the embodiment of the present invention, the overall process of the method includes:
[0050] S301, when the performance testing process platform starts to perform performance testing on the test object, the performance testing process platform sends a first call request;
[0051] S302: The data processing platform receives the first call request and sends the first call request to the cloud platform;
[0052] S303, the cloud platform responds to the first call request, obtains the historical performance test data of the performance test process platform on the test object, and restores the historical performance test data; the performance test process platform provides cloud resources and historical performance test data for the performance test of the test object; and transmits the cloud resources and historical performance test data to the data processing platform;
[0053] S304, the data processing platform transmits cloud resources and historical performance test data to the performance test process platform to provide a database operating environment for the performance test. During the performance test phase, the performance test process platform records the operating cycle of the task to be tested and the consumption of cloud resources. This data can provide a reference for setting the target value of the namespace quota for the cloud platform when the next performance test is performed;
[0054] S305, when the performance test process platform starts to complete the performance test of the test object, the performance test process platform sends a second call request to the data processing platform;
[0055] S306: After receiving the second call information, the data processing platform transmits the second call information to the cloud platform;
[0056] S307, reclaiming cloud resources, and storing data of performance testing of cloud resources on a data processing platform;
[0057] S308. After backing up the data generated by at least one database during the performance test of the test object and determining the backup data of the cloud resource for the performance test of the test object, the data processing platform trims the backup data of the cloud resource according to the preset limit policy, obtains the trimmed backup data, stores the trimmed backup data, and regularly cleans up the stored backup data according to the preset deadline policy; wherein the stored backup data is the historical performance test data of the performance test process platform for the test object. In a possible implementation, the storage time for the backup data can be set to no more than 6 months. When the storage time exceeds 6 months, the backup data is regularly cleaned up.
[0058] The processing method of cloud resources provided in the embodiment of the present application, by responding to the first call request issued by the performance test process platform when the performance test of the test object begins, obtaining the historical performance test data of the performance test process platform on the test object, and restoring the historical performance test data; obtaining the initial value of the namespace quota of the corresponding performance test process platform in the cloud platform, and increasing the initial value of the namespace quota to the target value; providing cloud resources for the performance test process platform to perform performance testing on the test object; responding to the second call request issued by the performance test process platform when the performance test of the test object ends, by judging the data volume water level line generated during the performance test and the inquiry information provided by the user end; reducing the target value of the namespace quota to the initial value; reducing the number of container pods to less than or equal to 1; backing up the data generated during the performance test; destroying at least one physical machine and at least one virtual machine, and realizing the recovery of cloud resources. The method realizes the technical effect of improving the utilization rate of cloud resources, and obtains multiple cloud resources and corresponding generated data under different test tasks based on the operation cycle of the performance test process platform, which can be used for subsequent task testing.
[0059] Figure 4 A schematic diagram of the structure of the cloud resource processing device provided in this application, such as Figure 4 As shown, the cloud resource processing device 40 provided in this embodiment includes: a performance test process platform 401, a cloud platform 402 and a data processing platform 403;
[0060] The performance test process platform 401 is connected to the data processing platform 403, the data processing platform 403 and the performance test process platform 401 are connected to the cloud platform 402; the cloud platform 402 is connected to the data processing platform 403;
[0061] The performance test process platform 401 is used to send a first call request to the data processing platform 403 when the performance test of the test object begins, and is also used to send a second call request to the data processing platform 403 when the performance test of the test object ends;
[0062] The data processing platform 403 is used to receive the first call request and transmit the first call request to the cloud platform 402, and is also used to receive the second call request and transmit the second call request to the cloud platform 402;
[0063] The cloud platform 402 is used to receive the first call request transmitted by the data processing platform 403, and provide cloud resources and historical performance test data for the performance testing process platform to perform performance testing on the test object; it is also used to receive the second call request transmitted by the data processing platform 403, and recycle the cloud resources used for performance testing of the test object.
[0064] In a possible implementation, the cloud platform 402 is further used for:
[0065] Get the initial value of the namespace quota of the corresponding performance test process platform in the cloud platform, and increase the initial value of the namespace quota to the target value;
[0066] Provide at least two container pods, at least one database, create at least one physical machine, and create at least one virtual machine for the performance testing process platform to perform performance testing on the test object.
[0067] In a possible implementation, the cloud platform 402 is further used for:
[0068] Reduce the target value of the namespace quota to the initial value;
[0069] Reduce the number of container pods for performance testing of the test object to less than or equal to 1; back up the data generated by at least one database during the performance test, determine the backup data for the performance test of cloud resources, and realize the recovery of cloud resource data; destroy at least one physical machine and at least one virtual machine to realize the recovery of cloud resources.
[0070] In a possible implementation, the cloud platform 402 is further used for:
[0071] Determine whether the data volume watermark of at least one database generated during the performance test is greater than a preset threshold, and if so, do not recycle the cloud resources;
[0072] If not, provide inquiry information to the user end. If the user end indicates that they disagree with the cloud resource recycling, the cloud resources will not be recycled. If the user end indicates that they agree to the cloud resource recycling, lower the upper limit of the namespace quota resource usage and recycle the cloud resources used for the performance test of the object to be tested. The inquiry information includes information of disagreeing with the cloud resource recycling and information of agreeing to the cloud resource recycling.
[0073] In a possible implementation, the cloud platform 402 is further used for:
[0074] Obtain the historical performance test data of the performance test process platform for the test object and restore the historical performance test data;
[0075] The historical performance test data and cloud resources provided by the cloud platform are used to perform performance tests on the test object.
[0076] In a possible implementation, the data processing platform 403 is further used for:
[0077] After backing up the data generated by at least one database when the performance test is performed on the test object, and determining the backup data of the cloud resources for the performance test of the test object, the backup data of the cloud resources is trimmed according to a preset limit policy to obtain the trimmed backup data, the trimmed backup data is stored, and the stored backup data is regularly cleaned up according to a preset deadline policy; wherein the stored backup data is the historical performance test data of the performance testing process platform on the test object.
[0078] In a possible implementation, the data processing platform 403 further includes: a data processing device 4031, a data cutting device 4032, a remote data storage device 4033, and a remote storage cleaning device 4034;
[0079] The data processing device 4031 is connected to the performance test process platform, the cloud platform, and the data cutting device 4032; the data cutting device 4032 is connected to the data processing device 4031 and the remote data storage device 4033; the remote data storage device 4033 is connected to the data cutting device 4032 and the remote storage cleaning device 4034; the remote storage cleaning device 4034 is connected to the remote data storage device 4033;
[0080] The data processing device 4031 is used to receive a first call request and transmit the first call request to the cloud platform, and is also used to receive a second call request and transmit the second call request to the cloud platform, and is also used to transmit the historical performance test data of the object to be tested in the remote storage cleaning device 4034 to the cloud platform; and is also used to receive the backup data of the cloud platform for the performance test of the cloud resources on the object to be tested, and transmit the backup data to the data cutting device 4032;
[0081] The data trimming device 4032 is used to receive the backup data, trim the backup data according to the preset limit policy, and transmit the trimmed backup data to the remote data storage device 4033;
[0082] The remote data storage device 4033 is used to receive the tailored backup data and store the tailored backup data;
[0083] The remote storage cleaning device 4034 is used to regularly clean up the backup data stored in the remote data storage device 4033 according to a preset deadline policy.
[0084] The cloud resource processing method provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be described in detail here.
[0085] Figure 5 This is a hardware diagram of the cloud resource processing device provided in this application. Figure 5 As shown, the electronic device 50 provided in this embodiment includes: at least one processor 501 and a memory 502. Optionally, the device 50 also includes a communication component 503. The processor 501, the memory 502 and the communication component 503 are connected via a bus 504.
[0086] In a specific implementation process, at least one processor 501 executes the computer-executable instructions stored in the memory 502, so that at least one processor 501 executes the above method.
[0087] The specific implementation process of the processor 501 can be found in the above method embodiment, and its implementation principle and technical effect are similar, so this embodiment will not be repeated here.
[0088] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.
[0089] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0090] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0091] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0092] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the above method is implemented.
[0093] The above-mentioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0094] An exemplary readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (Application Specific Integrated Circuits, referred to as: ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0095] The division of units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interface, method or unit, which can be electrical, mechanical or other forms.
[0096] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0097] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0098] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0099] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.
[0100] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention, which follow the general principles of the present invention and include common knowledge or customary technical means in the art not disclosed by the present invention, are not limited to the precise structure described above and shown in the drawings, and may be modified and changed in various ways without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.
Claims
1. A method for processing cloud resources, characterized in that: The method is applied to a cloud platform, and the method comprises: In response to a first call request issued by the performance test process platform when the performance test of the object to be tested begins, obtain the namespace quota corresponding to the performance test process platform in the cloud platform, increase the resource usage upper limit of the namespace quota, and provide cloud resources for the performance test process platform to perform performance testing on the object to be tested; wherein the first call request is used to call the cloud resources of the cloud platform to perform performance testing on the object to be tested; the cloud resources include container Pods, databases, virtual machines, and physical machines; In response to a second call request issued by the performance testing process platform when the performance testing of the object to be tested ends, the upper limit of the namespace quota resource usage is reduced, and the cloud resources used for the performance testing of the object to be tested are reclaimed; wherein the second call request is used to call the cloud platform to reclaim the cloud resources used for the performance testing of the object to be tested.
2. The method according to claim 1, characterized in that The obtaining of the namespace quota corresponding to the performance test process platform in the cloud platform, increasing the resource usage upper limit of the namespace quota, and providing cloud resources for the performance test process platform to perform performance testing on the object to be tested includes: Obtaining an initial value of a namespace quota corresponding to the performance test process platform in the cloud platform, and increasing the initial value of the namespace quota to a target value; At least two container pods, at least one database, at least one physical machine and at least one virtual machine are provided for the performance testing process platform to perform performance testing on the object to be tested.
3. The method according to claim 2, characterized in that The lowering of the upper limit of the namespace quota resource usage to reclaim the cloud resources used for the performance test of the object to be tested includes: reducing the target value of the namespace quota to the initial value; The number of the container pods for performance testing the object to be tested is reduced to less than or equal to 1; the data generated by the at least one database during the performance test is backed up, the backup data of the cloud resources for the performance test is determined, and the data of the cloud resources is recovered; the at least one physical machine and the at least one virtual machine are destroyed to recover the cloud resources.
4. The method according to claim 3, characterized in that After responding to the second call request issued by the performance test process platform when the performance test of the object to be tested ends, the method further includes: Determine whether a data volume watermark generated by the at least one database during the performance test is greater than a preset threshold, and if so, do not recycle the cloud resources; If not, provide inquiry information to the user terminal. If the user terminal indicates that it disagrees with the cloud resource recycling, the cloud resources will not be recycled. If the user terminal indicates that it agrees to the cloud resource recycling, the upper limit of the namespace quota resource usage will be reduced, and the cloud resources used for performance testing of the object to be tested will be recycled. The inquiry information includes information of disagreement with the cloud resource recycling and information of agreement with the cloud resource recycling.
5. The method according to any one of claims 1 to 4, characterized in that: After responding to the first call request issued by the performance test process platform when starting the performance test of the test object, the method further includes: Acquire historical performance test data of the object to be tested by the performance test process platform, and restore the historical performance test data; The historical performance test data and the cloud resources provided by the cloud platform perform performance testing on the object to be tested.
6. A method for processing cloud resources, characterized in that: The method is applied to a data processing platform, and the method comprises: After backing up the data generated by at least one database when a performance test is performed on the object to be tested, and determining the backup data of the cloud resource for the performance test of the object to be tested, the backup data of the cloud resource is trimmed according to a preset limit policy to obtain the trimmed backup data, the trimmed backup data is stored, and the stored backup data is regularly cleared according to a preset deadline policy; wherein the stored backup data is the historical performance test data of the performance testing process platform on the object to be tested.
7. A cloud resource processing device, characterized in that: The equipment includes: a performance testing process platform, a cloud platform and a data processing platform; The performance test process platform is connected to the data processing platform, the data processing platform and the performance test process platform are connected to the cloud platform; the cloud platform is connected to the data processing platform; The performance test process platform is used to send a first call request to the data processing platform when the performance test of the object to be tested begins, and is also used to send a second call request to the data processing platform when the performance test of the object to be tested ends; The data processing platform is used to receive the first call request and transmit the first call request to the cloud platform, and is also used to receive the second call request and transmit the second call request to the cloud platform; The cloud platform is used to receive the first call request transmitted by the data processing platform, and provide cloud resources and historical performance test data for the performance testing process platform to perform performance testing on the object to be tested; it is also used to receive the second call request transmitted by the data processing platform, and recycle the cloud resources used for performance testing of the object to be tested.
8. The device according to claim 7, characterized in that The data processing platform includes: a data processing device, a data cutting device, a remote data storage device and a remote storage cleaning device; The data processing device is connected to the performance test process platform, the cloud platform, and the data cutting device; the data cutting device is connected to the data processing device and the remote data storage device; the remote data storage device is connected to the data cutting device and the remote storage cleaning device; the remote storage cleaning device is connected to the remote data storage device; The data processing device is used to receive the first call request and transmit the first call request to the cloud platform, and is also used to receive the second call request and transmit the second call request to the cloud platform, and is also used to transmit the historical performance test data of the object to be tested in the remote storage cleaning device to the cloud platform; and is also used to receive the backup data of the cloud platform for the performance test of the object to be tested by the cloud resources, and transmit the backup data to the data tailoring device; The data trimming device is used to receive the backup data, trim the backup data according to a preset limit policy, and transmit the trimmed backup data to the remote data storage device; The remote data storage device is used to receive the trimmed backup data and store the trimmed backup data; The remote storage cleaning device is used to regularly clean up the backup data stored in the remote data storage device according to a preset deadline policy.
9. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.