Cloud platform stability test method, device, equipment, medium and program product
By obtaining and executing cloud platform stability test solutions and response solutions, simulation operations and parameter monitoring are carried out, the problem that existing testing methods cannot fully cover fault scenarios is solved, comprehensive and accurate testing of cloud platform is achieved, and maintenance and optimization efficiency is improved .
Patent Information
- Application Number
- CN202411500075.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2024-12-27
AI Technical Summary
The existing cloud platform stability testing methods cannot fully and accurately cover cloud platform failure scenarios, resulting in the impact of cloud platform maintenance and optimization.
By obtaining the cloud platform stability test solution and response solution, conducting simulated operation tests and parameter monitoring, determining the response process, and achieving comprehensive and accurate stability testing of the cloud platform.
It improves the comprehensiveness and accuracy of cloud platform stability monitoring, facilitates the maintenance and optimization of cloud platform, and ensures that it can maintain stability and reliability when facing complex scenarios.
Smart Images

Figure CN119201747A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud platform operation and maintenance technology, and in particular to a cloud platform stability testing method, device, equipment, medium and program product. Background Art
[0002] With the rapid development and widespread application of cloud computing technology, the stability and reliability of cloud platforms, as the core infrastructure supporting various businesses and applications, are particularly important. In order to ensure the stable operation of cloud platforms, timely discovering and handling potential problems of cloud platforms can improve the reliability and security of cloud platforms. Existing cloud platform stability testing methods cannot cover possible cloud platform failure scenarios, and cannot respond correctly when faced with complex cloud platform stability simulation operations, affecting the stability and reliability of cloud platforms, and further affecting the maintenance and optimization of cloud platforms. Summary of the invention
[0003] The present invention provides a cloud platform stability testing method, device, equipment, medium and program product to solve the defects of existing cloud platform stability testing technology that the testing is not comprehensive and accurate, thereby affecting the maintenance and optimization of the cloud platform, and to achieve comprehensive and accurate testing of the cloud platform stability.
[0004] The present invention provides a cloud platform stability testing method, comprising the following steps.
[0005] Obtain a cloud platform stability test plan and a response plan; the cloud platform stability test plan includes simulation operation content and monitoring content; the simulation operation content represents the target simulation operation to be tested, and the monitoring content represents the data to be monitored corresponding to the target simulation operation; Performing a simulated operation test on the target cloud platform to be tested based on the simulated operation content, obtaining a target test result, and determining the cloud platform simulated operation that belongs to the target simulated operation in the target test result; Perform parameter monitoring on the cloud platform simulation operation based on the monitoring content to obtain simulation operation parameters of the cloud platform simulation operation; Based on the response scheme and the simulation operation parameters, a response process corresponding to the cloud platform simulation operation is determined, and a response operation is performed on the target cloud platform based on the response process to obtain a cloud platform stability test result.
[0006] According to a cloud platform stability testing method provided by the present invention, the simulated operation content includes a simulated operation of changing an access control policy, a simulated operation of tracking and associating a target activity, and a simulated operation of connecting to a specified service interface; the cloud platform stability testing method further includes: The simulated operation of changing the access control policy and the simulated operation of connecting the specified service interface are monitored respectively to obtain a first key performance indicator related to changing the access control policy and a second key performance indicator related to the service interface connection; The simulated operations associated with the target activity tracking are monitored to obtain system performance parameters related to the target activity tracking.
[0007] According to a cloud platform stability testing method provided by the present invention, the response scheme includes a simulation operation set criterion; the step of determining a response process corresponding to the cloud platform simulation operation based on the response scheme and the simulation operation parameters includes: Based on the simulation operation parameters and the simulation operation set criteria, determining a set of simulation operations in the cloud platform simulation operations that meet the simulation operation set criteria; Determine a simulation operation response process corresponding to the simulation operation set criteria that the simulation operation set complies with, and use the simulation operation response process as the response process corresponding to the cloud platform simulation operation.
[0008] According to a cloud platform stability testing method provided by the present invention, the simulated operation content includes indication data; performing a simulated operation test on a target cloud platform to be tested based on the simulated operation content to obtain a target test result includes: Determining a target instruction related to the indication data in a target cloud platform; In the case where an illegal instruction is obtained by testing the target instruction, responding to the illegal instruction; In a case where the target cloud platform responds to the illegal instruction, it is determined that the target test result includes an illegal simulation operation.
[0009] According to a cloud platform stability testing method provided by the present invention, the response operation is performed on the target cloud platform based on the response process to obtain a cloud platform stability test result, and then includes: determining a first optimization command and a second optimization command based on the simulated operation parameters; Optimizing the cloud platform stability test solution based on the first optimization command; The response scheme is optimized based on the second optimization command.
[0010] According to a cloud platform stability testing method provided by the present invention, the target cloud platform is configured with a test agent; the response operation is performed on the target cloud platform based on the response process to obtain a cloud platform stability test result, and then further includes: Based on the underlying driver of the target cloud platform, an illegal test is performed on the component unit of the test agent to obtain a component test result; the component unit includes an operation process for performing a simulated operation test on the target cloud platform based on the cloud platform stability test scheme and the response scheme; In the case that illegal operations are found in the component test result, the test agent is sequentially reinstalled and initialized.
[0011] The present invention also provides a cloud platform stability testing device, comprising the following modules: A solution acquisition module is used to acquire a cloud platform stability test solution and a response solution; the cloud platform stability test solution includes simulation operation content and monitoring content; the simulation operation content represents the target simulation operation to be tested, and the monitoring content represents the data to be monitored corresponding to the target simulation operation; A simulation operation test module, used to perform a simulation operation test on a target cloud platform to be tested based on the simulation operation content, obtain a target test result, and determine the cloud platform simulation operation that belongs to the target simulation operation in the target test result; A parameter monitoring module, used to perform parameter monitoring on the cloud platform simulation operation based on the monitoring content, and obtain simulation operation parameters of the cloud platform simulation operation; The cloud platform stability testing module is used to determine the response process corresponding to the cloud platform simulation operation based on the response plan and the simulation operation parameters, perform a response operation on the target cloud platform based on the response process, and obtain a cloud platform stability testing result.
[0012] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the cloud platform stability testing method as described above is implemented.
[0013] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the cloud platform stability testing methods described above.
[0014] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the cloud platform stability testing methods described above.
[0015] The cloud platform stability test method, device, equipment, medium and program product provided by the present invention obtain a cloud platform stability test scheme and a response scheme, and perform a simulated operation test on the target cloud platform to be tested through the simulated operation content in the cloud platform stability test scheme to obtain a target test result, and then determine the cloud platform simulated operation belonging to the target simulated operation in the target test result; then perform parameter monitoring on the cloud platform simulated operation through the monitoring content in the cloud platform stability test scheme to obtain the simulated operation parameters of the cloud platform simulated operation; finally, based on the response scheme and the simulated operation parameters, determine the response process corresponding to the cloud platform simulated operation, perform a response operation on the cloud platform, and obtain a cloud platform stability test result. The present invention improves the comprehensiveness and accuracy of cloud platform stability monitoring by improving the cloud platform stability test scheme and monitoring means, thereby facilitating the maintenance and optimization of the cloud platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0017] Figure 1 This is one of the flow charts of the cloud platform stability testing method provided by the present invention.
[0018] Figure 2 This is the second flow chart of the cloud platform stability testing method provided by the present invention.
[0019] Figure 3 It is a structural schematic diagram of the cloud platform stability testing device provided by the present invention.
[0020] Figure 4 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0022] Combine the following Figure 1-Figure 4 The cloud platform stability testing method, device, equipment, medium and program product of the present invention are described.
[0023] Figure 1 This is one of the flow charts of the cloud platform stability testing method provided by the present invention, such as Figure 1 As shown, the method includes the following: Step 100: Obtain a cloud platform stability test plan and a response plan; the cloud platform stability test plan includes simulation operation content and monitoring content; the simulation operation content represents the target simulation operation to be tested, and the monitoring content represents the data to be monitored corresponding to the target simulation operation; The cloud platform stability testing method provided by the present invention specifically includes the following steps regarding the stability testing part of the cloud platform.
[0024] Step 1: Obtain the test plan and response plan for cloud platform stability from the preset database. The test plan for cloud platform stability includes simulation operation content and monitoring content. The simulation operation content represents the target simulation operation to be tested; the monitoring content represents the data to be monitored corresponding to each target simulation operation. The response plan represents the response process corresponding to the simulation operation (in the simulation operation set), and the simulation operation set includes at least one simulation operation in the target simulation operation.
[0025] Step 200: Perform a simulated operation test on the target cloud platform to be tested based on the simulated operation content to obtain a target test result, and determine the cloud platform simulated operation that belongs to the target simulated operation in the target test result; The above-mentioned stability test section on the cloud platform also includes the following steps.
[0026] Step 2: Perform a simulated operation test on the target cloud platform according to the simulated operation content to obtain the cloud platform simulated operation belonging to the target simulated operation in the target cloud platform.
[0027] The following are examples of scenarios for steps 1 and 2 above: The cloud platform stability test plan and response plan are obtained from the preset database, wherein the cloud platform stability test plan includes a series of simulated operation contents such as simulating high concurrent access, simulating resource competition and simulating network delay.
[0028] For example, the cloud platform stability test plan includes simulating 100,000 users logging into the cloud platform at the same time, and monitoring the response time and CPU usage of the server during the login process. The server performs simulated operation tests on the target cloud platform according to the simulated operation content in the cloud platform stability test plan. The target test results are obtained, which include the cloud platform simulated operations that belong to the target simulated operations. These simulated operations are used to simulate user behavior or system load in the real world to evaluate the performance of the cloud platform.
[0029] Step 300: Perform parameter monitoring on the cloud platform simulation operation based on the monitoring content to obtain simulation operation parameters of the cloud platform simulation operation; The above-mentioned stability test section on the cloud platform also includes the following steps.
[0030] Step 3: Monitor the corresponding simulation operation parameters of each cloud platform simulation operation according to the monitoring content to obtain the simulation operation parameters of each cloud platform simulation operation.
[0031] In the above scenario example, the cloud platform stability test solution also includes monitoring content for key performance indicators such as CPU usage, memory occupancy, and response time. The server will monitor the key performance indicators of each simulated operation in real time based on the monitoring content. When simulating the operation of 100,000 users logging into the cloud platform, the server will record the response time at each time point and monitor the changes in CPU usage in real time. The server analyzes the performance of the cloud platform based on the collected simulation operation parameters (such as response time and CPU usage) and response plan. If some simulation operation parameters exceed the preset threshold, the server will determine that these operations constitute a target simulation operation set, that is, the operation set that triggers the instability of the cloud platform.
[0032] Step 400: Based on the response scheme and the simulation operation parameters, determine the response process corresponding to the cloud platform simulation operation, perform a response operation on the target cloud platform based on the response process, and obtain a cloud platform stability test result.
[0033] The above-mentioned stability test section on the cloud platform also includes the following steps.
[0034] Step 4: According to the response plan and the simulation operation parameters of each cloud platform simulation operation, determine the target simulation operation set existing in the cloud platform simulation operation, and perform the response operation on the target cloud platform according to the target response process corresponding to the target simulation operation set.
[0035] In the above example, after the instability of the cloud platform is triggered, the server will automatically perform corresponding response operations on the cloud platform according to the target response process defined in the response plan to restore or maintain the stability of the cloud platform. If the response time is too long and the CPU usage is too high during the simulation of multi-user login, the server can automatically trigger the expansion process to add more server resources to handle multi-user login requests, or adjust the load balancing strategy to distribute the load. Through such a process, it can ensure that the maintained cloud platform can achieve good stability and performance when facing various real scenarios.
[0036] This embodiment obtains a cloud platform stability test scheme and a response scheme, performs a simulated operation test on the target cloud platform to be tested through the simulated operation content in the cloud platform stability test scheme, obtains a target test result, and then determines the cloud platform simulated operation that belongs to the target simulated operation in the target test result; then, through the monitoring content in the cloud platform stability test scheme, performs parameter monitoring on the cloud platform simulated operation to obtain the simulated operation parameters of the cloud platform simulated operation; finally, based on the response scheme and the simulated operation parameters, determines the response process corresponding to the cloud platform simulated operation, performs a response operation on the cloud platform, and obtains the cloud platform stability test result. The present invention improves the comprehensiveness and accuracy of cloud platform stability monitoring by improving the cloud platform stability test scheme and monitoring means, thereby facilitating the maintenance and optimization of the cloud platform.
[0037] In one embodiment, the cloud platform stability testing method provided in the embodiment of the present application may also include: Step 10: monitor the simulated operation of changing the access control policy and the simulated operation of connecting the specified service interface respectively, and obtain a first key performance indicator related to changing the access control policy and a second key performance indicator related to the service interface connection; Step 20: monitor the simulation operation associated with the target activity tracking to obtain system performance parameters related to the target activity tracking.
[0038] The simulation operation content in the above step 1 includes at least one of a simulation operation of changing an access control policy (a first simulation operation content), a simulation operation associated with target activity tracking (a second simulation operation content), and a simulation operation of connecting to a specified service interface (a third simulation operation content).
[0039] According to the first simulation operation content, the target cloud platform is tested for simulation operation to obtain the simulation operation of changing the access control policy in the target cloud platform. And according to the first monitoring content (i.e., the monitoring content corresponding to the first simulation operation content), the simulation operation parameters of the simulation operation of changing the access control policy are monitored to obtain the task details of the simulation operation of changing; according to the second simulation operation content, the target cloud platform is tested for simulation operation to obtain the simulation operation associated with the target activity tracking in the target cloud platform; and according to the second monitoring content, the simulation operation parameters of the simulation operation associated with the target activity tracking are monitored to obtain the system activity tracking information corresponding to the simulation operation associated with the target activity tracking; according to the third simulation operation content, the target cloud platform is tested for simulation operation to obtain the simulation operation of the designated service interface connection in the target cloud platform; and according to the third monitoring content, the simulation operation parameters of the simulation operation of the designated service interface connection are monitored to obtain the connection history information corresponding to the simulation operation of the designated service interface connection.
[0040] The example scenario of this embodiment is as follows: According to the first simulated operation content, an operation is performed to simulate the change of the cloud platform access control policy. This may involve simulating the modification of user permissions, IP whitelists, or access control lists. For example, the server simulates the process of moving an IP address from the allowed access list to the denied access list. During the simulation operation, the server monitors the key performance indicators related to the access control policy change (for example, the response time of the policy change and whether the new policy is successfully applied) in real time according to the first monitoring content. These monitoring data are recorded as task details for subsequent analysis of the stability and performance of the cloud platform in terms of access control policy changes.
[0041] The server performs operations to simulate user activities based on the second simulated operation content, and these user activities may be related to a specific function or service on the cloud platform. For example, the server simulates a large number of users accessing a newly launched function on the cloud platform at the same time and tracks the activity trajectories of these users. During the simulation process, the server monitors system performance parameters related to user activity tracking (for example, the speed of generating tracking data and the accuracy of tracking data) in real time based on the second monitoring content. These monitoring data are recorded as system activity tracking information, which is used to evaluate the stability and performance of the cloud platform when handling a large number of user activity tracking.
[0042] The server performs the operation of simulating the connection to the specified service interface of the cloud platform according to the third simulation operation content. This involves simulating the communication process between the client and the cloud platform to test the stability and performance of the service interface. For example, the server simulates a large number of clients connecting to the database service interface of the cloud platform at the same time and performing data read and write operations. During the simulated connection process, the server monitors the key performance indicators related to the service interface connection (for example, connection establishment time, data transmission rate, and error rate) in real time according to the third monitoring content. These monitoring data are recorded as connection history information for analyzing the stability and performance bottlenecks of the cloud platform in terms of service interface connection.
[0043] Through detailed simulation operations and real-time monitoring, this embodiment can more comprehensively evaluate the stability of the cloud platform and promptly discover and resolve potential cloud platform performance issues.
[0044] In one embodiment, the cloud platform stability testing method provided in the embodiment of the present application may also include: Step 410: Based on the simulation operation parameters and the simulation operation set criteria, determine a simulation operation set that meets the simulation operation set criteria in the cloud platform simulation operation; Step 420: determine the simulation operation response process corresponding to the simulation operation set criteria that the simulation operation set complies with, and use the simulation operation response process as the response process corresponding to the cloud platform simulation operation.
[0045] The response schemes in the above steps 1 and 4 include simulation operation set criteria and simulation operation response processes corresponding to each simulation operation set criterion.
[0046] Step 4.1, based on the simulation operation parameters of each cloud platform simulation operation and each simulation operation set criterion, determine the target simulation operation set (i.e., the simulation operation set in this embodiment) in the cloud platform simulation operation that meets any simulation operation set criterion; for each target simulation operation set, use the simulation operation response process corresponding to the simulation operation set criterion met by the target simulation operation set as the target response process corresponding to the target simulation operation set; based on the target response process, execute the response operation on the target cloud platform.
[0047] The example scenario corresponding to the above step 4.1 is as follows: Multiple simulation operation set criteria are defined in the server's response plan, and each simulation operation set criterion corresponds to a simulation operation response process. These simulation operation set criteria are formulated based on the different stability issues that the cloud platform may encounter, and are used to guide the server on how to take corresponding response measures based on the results of the simulation operation. For example, simulation operation set criterion A: Triggered when the CPU usage exceeds 80%. Simulation operation response process A: Automatically increase server resources (for example, start a backup server or expand existing server resources); operation set criterion B: Triggered when the memory usage exceeds 90% and lasts for more than 5 minutes. Simulation operation response process B: Release memory resources for non-critical processes or perform memory optimization operations; operation set criterion C: Triggered when the response time exceeds 1 second. Simulation operation response process C: Check and optimize database query statements or adjust load balancing strategies to distribute request loads.
[0048] The server compares the simulation operation parameters (such as CPU usage, memory usage, and response time) of each cloud platform simulation operation with each operation set criterion to determine which simulation operations constitute the target simulation operation set. For example, when performing simulation operations, the server monitors the following data: simulation operation 1 (CPU usage is 75%), which does not trigger any operation set criteria; simulation operation 2 (memory usage is 92%, duration is 6 minutes), which triggers operation set criterion B; simulation operation 3 (response time is 1.2 seconds), which triggers operation set criterion C. Based on these data, the server determines that the target simulation operation set includes simulation operation 2 and simulation operation 3. For each target simulation operation, the server determines the corresponding target response process based on the operation set criteria it meets, and executes the response operation on the target cloud platform accordingly. For example, for simulation operation 2, the server executes simulation operation response process B according to the operation set criterion B it triggers, that is, releasing the memory resources of non-critical processes or performing memory optimization operations. For simulation operation 3, the server executes simulation operation response process C according to the operation set criterion C it triggers, that is, checking and optimizing database query statements or adjusting load balancing strategies.
[0049] Step 4.2, execute a response operation on the target cloud platform according to the target response process, including: sending an execution command to a preset database, the execution command is used to instruct to execute a response operation for the target simulation operation (on the target cloud platform according to the target response process); execute a response operation on the target cloud platform according to the processing content returned by the preset database, the processing content indicates whether the target cloud platform executes the corresponding response operation according to the target response process.
[0050] Step 4.1.1, the simulation operation set criteria include at least one of the first operation set criteria, the second operation set criteria, the third operation set criteria and the fourth operation set criteria; according to the simulation operation parameters of each cloud platform simulation operation and each simulation operation set criteria, determining the target simulation operation in the cloud platform simulation operation that meets any simulation operation set criteria, including at least one of the following: The first operation set criteria include simulation operation type criteria. According to the operation type information of each cloud platform simulation operation, each first cloud platform simulation operation that meets the first operation set criteria in each cloud platform simulation operation is taken as the first target simulation operation; the second operation set criteria include simulation operation execution timing criteria. According to the execution timing of each cloud platform simulation operation, each second cloud platform simulation operation that meets the second operation set criteria in each cloud platform simulation operation is taken as the second target simulation operation; the third operation set criteria include simulation operation corresponding system operation status criteria. According to the corresponding system operation status of each cloud platform simulation operation, each third cloud platform simulation operation that meets the third operation set criteria in each cloud platform simulation operation is taken as the third target simulation operation; the fourth operation set criteria include simulation operation risk assessment criteria. According to the corresponding risk assessment information of each cloud platform simulation operation, each fourth cloud platform simulation operation that meets the fourth operation set criteria in each cloud platform simulation operation is taken as the fourth target simulation operation.
[0051] The example scenario corresponding to step 4.1.1 is as follows: The server screens out qualified operations in the cloud platform simulation operations according to the preset simulation operation type criteria. For example, the simulation operation type criteria may stipulate that only the simulation of database read and write operations is focused on. In this case, the server will identify all simulation operations related to database read and write, and classify them as the first target simulation operations.
[0052] The server analyzes the execution timing of the cloud platform simulation operation to determine whether it meets the simulation operation execution timing criteria. For example, the simulation operation execution timing criteria may require that the cloud platform simulation operation must be executed in a specific order. If the server detects that a cloud platform simulation operation is executed at a time point that should not occur, the server will mark this operation as an operation that does not meet the timing criteria. If the simulation operation is successfully executed in the preset order, the server will classify it as the second target simulation operation.
[0053] The server monitors the system operation status of the cloud platform in real time during the execution of simulation operations, such as CPU usage, memory usage, and disk I / O. If a simulation operation causes the system operation status to exceed the preset normal range (such as high CPU usage), the server will mark it as an operation that does not meet the system operation status criteria. On the contrary, if the simulation operation does not have an adverse impact on the system operation status, or the system operation status remains within the normal range, the server will classify it as a third-target simulation operation.
[0054] Before performing a cloud platform simulation operation, the server will conduct a risk assessment on each operation to evaluate its impact on the stability of the cloud platform. If the risk assessment result of a simulated operation exceeds the preset acceptable risk level (such as the possibility of data loss or system crash), the server will exclude it or take additional security measures. However, if the risk assessment result of the simulated operation is within the acceptable range, the server will classify it as a fourth target simulation operation and handle it according to the preset response plan.
[0055] This embodiment can more accurately identify and handle stability issues in cloud platform simulation operations through specific operation set criteria, thereby ensuring stable operation and efficient performance of the cloud platform.
[0056] In one embodiment, the cloud platform stability testing method provided in the embodiment of the present application may also include: Step 210: Determine a target instruction related to the indication data in the target cloud platform; Step 220: When an illegal instruction is obtained by testing the target instruction, respond to the illegal instruction; Step 230: When the target cloud platform responds to the illegal instruction, determine that the target test result includes an illegal simulation operation.
[0057] The simulation operation content in the above step 1 also includes indication data, and the indication data is used to indicate the execution of at least one illegal instruction. The content of the above step 2 also includes: step 2.1, according to the content of the indication data, testing the instructions corresponding to the indication data in the target cloud platform; if an illegal instruction is tested, responding to the illegal instruction corresponding to the indication data, determining that there is an illegal simulation operation of the indication data in the target cloud platform.
[0058] The example scenario corresponding to step 2.1 is as follows: After the server determines the target simulation operation set and the corresponding target response process, it will perform the following steps to respond to the target cloud platform: Send an execution command: The server will send an execution command to the preset database. This execution command contains information about the target simulation operation set and the target response process, which is used to instruct the database how to perform the response operation on the target cloud platform. For example, if the target response process is to increase server resources, the execution command may contain specific instructions on starting a backup server or expanding the capacity of existing server resources. During the simulation operation, the server will also pay special attention to illegal operations related to the indication data. Indication data is data used to instruct the cloud platform to perform some illegal instructions. Get indication data: The server will first obtain indication data, which may be obtained from user input, log files, or other sources. For example, the server may detect an indication data that attempts to instruct the cloud platform to perform an unauthorized data access operation. Test illegal instructions: Based on the content of the obtained indication data, the server will test the instructions corresponding to these indication data in the target cloud platform. Continuing with the above example, the server will try to execute instructions related to unauthorized data access operations to test whether the cloud platform will perform this illegal operation. Identify illegal simulated operations: If the server finds during the test that the cloud platform has indeed executed illegal instructions corresponding to the indicator data, it will determine that there is an illegal simulated operation of the indicator data in the target cloud platform. In this case, the server may trigger an alarm, record a log, or take other security measures to deal with this illegal operation. Through these steps, the server can not only perform response operations on the cloud platform according to the preset response process, but also detect and respond to illegal operations related to the indicator data during the simulation operation, thereby enhancing the stability and security of the cloud platform.
[0059] The above-mentioned indication data includes the target storage item and the target authorization token. The content of the above-mentioned step 2.1 includes: step 2.1.1, obtaining the target storage item sent by the preset database; according to the target storage path included in the content of the indication data, storing the target storage item to the target cloud platform. Among them, the target storage item is a storage item obtained according to the preset core data identifier; the target storage item is used to indicate the initiation of a call instruction to the target storage item according to the core data identifier; the illegal instruction includes a call instruction to the target storage item.
[0060] The example scenario corresponding to step 2.1.1 above is as follows: In this scenario, the indicator data specifically refers to the target storage items related to the core data. The server obtains these target storage items and ensures that they are correctly processed in the cloud platform.
[0061] Get target storage item: The server receives target storage items from a preset database. These target storage items are predefined based on core data identifiers, and each target storage item is associated with specific core data. For example, the server receives a target storage item that contains user data. This data is marked as core data, and a unique core data identifier is associated with the data.
[0062] Storing the target storage item: The server stores the target storage item in the target cloud platform according to the target storage path contained in the indicated data content. The target storage path specifies the location or storage system where the data is stored. The server will store the user data in a specific storage location on the cloud platform, which can be an encrypted storage area to ensure data security.
[0063] The content of the above step 2.1 also includes: step 2.1.2, obtaining the authorization token acquisition strategy sent by the preset database, the authorization token acquisition strategy represents obtaining the target authorization token according to the identification code of the preset authorization token. The preset authorization token includes an authorization token used to perform a verification operation on the extraction instruction of the specific content; obtaining the target authorization token according to the authorization token identification code represented by the authorization token acquisition strategy, and storing the target authorization token in the target cloud platform. Among them, the target authorization token is used to indicate the initiation of a call to the target authorization token according to the authorization token identification code; illegal instructions include calls to the target authorization token.
[0064] The example scenario corresponding to the above step 2.1.2 is as follows: In this scenario, the indication data specifically refers to the target authorization token used for authorization. The server needs to obtain these target authorization tokens to ensure the safe use of the target authorization tokens in the cloud platform.
[0065] Authorization token acquisition policy: The server receives an authorization token acquisition policy from a preset database. This policy defines how to obtain a target authorization token based on the identifier of a preset authorization token. A preset authorization token is a special type of token used to perform operations to verify the extraction instructions of specific content. For example, the policy can stipulate that only requests with a specific identifier can obtain an authorization token, and this specific identifier may be associated with a specific service or operation.
[0066] Obtaining the target authorization token: The server obtains the target authorization token from the preset database or other secure storage according to the identification code specified by the authorization token acquisition policy. This process may involve steps such as verifying the legitimacy of the request and checking the authority of the requester. For example, the server receives a request with a specific identification code, and after verification, it is found that the request comes from a legitimate service and has the authority to obtain the authorization token. Therefore, the server obtains the corresponding target authorization token from the secure storage according to the identification code.
[0067] Storing the target authorization token: The server stores the acquired target authorization token in the target cloud platform for subsequent use. The storage process needs to ensure the security and confidentiality of the token to prevent unauthorized access and use. In the cloud platform, the server also needs to pay special attention to illegal instructions related to the target authorization token to prevent unauthorized access or malicious operations.
[0068] Monitoring illegal instructions: The server monitors all operations on the cloud platform in real time, especially those related to the target authorization token. If the server detects that an operation attempts to call the target authorization token, and the operation does not have legal permissions or does not comply with the preset security policy, it will treat the operation as an illegal instruction. For example, the server detects that an unauthorized service attempts to use a previously stored target authorization token to perform a sensitive operation. Because the service does not have legal permissions to use it, the server treats the operation as an illegal instruction.
[0069] Responding to illegal instructions: Once the server detects an illegal instruction, it will take corresponding response measures according to the preset security policy. These measures may include blocking operations, recording logs, triggering alarms, or notifying administrators. In the above example, the server will immediately block the unauthorized service from using the target authorization token and record the details of this illegal attempt. At the same time, it may also trigger a security alarm to notify the administrator that there is a potential security risk that needs to be dealt with. Through the above steps and measures in this embodiment, the server can ensure the safe acquisition and use of authorization tokens in the cloud platform, while effectively responding to the risks of illegal operations associated with these tokens. This helps to protect the data security of the cloud platform and the normal operation of services.
[0070] This embodiment performs response operations on the cloud platform through a response process, detects illegal operations during simulation operations, and enhances the stability and security of the cloud platform.
[0071] Figure 2 This is the second flow chart of the cloud platform stability testing method provided by the present invention. Figure 2 As shown, the method may also include: Step 500: Determine a first optimization command and a second optimization command based on the simulation operation parameters; Step 600: Optimize the cloud platform stability test solution based on the first optimization command; Step 700: Optimize the response solution based on the second optimization command.
[0072] After obtaining the simulation operation parameters of each cloud platform simulation operation in the above step 3, the simulation operation parameters are reported to the preset database. Including: step 5, obtaining the first optimization command and the second optimization command sent by the preset database, optimizing the cloud platform stability test plan according to the first optimization command, and optimizing the response plan according to the second optimization command; wherein the first optimization command and the second optimization command are determined according to the simulation operation parameters of the cloud platform simulation operation.
[0073] The example scenario corresponding to step 5 above is as follows: When the server performs cloud platform simulation operations, it collects and records relevant simulation operation parameters. These parameters include information such as the type, frequency, duration, and results of the simulation operations, which are essential for evaluating the performance and stability of the cloud platform. After completing a series of cloud platform simulation operations, the server organizes the parameters of these operations into a report format and reports it to the preset database. For example, the server can report simulation parameters for virtual machine creation and deletion operations, including the success rate, time consumption, and errors / exceptions encountered. After receiving the simulation operation parameters reported by the server, the preset database generates the first optimization command and the second optimization command based on these parameters and the preset optimization algorithm or strategy. These optimization commands are designed to help the server optimize the stability test plan and response plan of the cloud platform.
[0074] First optimization command: Based on the simulation parameters of the virtual machine creation and deletion operations reported by the server, the preset database analysis found that some operations took a long time and had a low success rate. Therefore, it generated a first optimization command to instruct the server to adjust the concurrency of virtual machine creation and deletion operations and resource allocation strategies to reduce operation time and increase success rate. After receiving this optimization command, the server adjusted the stability test plan of the cloud platform accordingly.
[0075] Second optimization command: The preset database finds that certain errors or exceptions occur frequently. In order to enhance the fault tolerance and stability of the cloud platform, the preset database generates a second optimization command to instruct the server to add detection and processing logic for specific errors. After receiving this optimization command, the server optimizes the response plan accordingly. After receiving the first optimization command and the second optimization command, the server will optimize the stability test plan and response plan of the cloud platform respectively according to the instructions of the command. These optimizations may include adjusting test parameters, adding error handling logic, and optimizing resource allocation.
[0076] According to the first optimization command, the server adjusted the concurrency and resource allocation strategy of virtual machine creation and deletion operations. After optimization, the operation time was significantly reduced and the success rate was improved. According to the second optimization command, the server added detection and processing logic for specific errors. This enables the cloud platform to recover faster and maintain a stable operating state when faced with these errors.
[0077] This embodiment continuously optimizes the stability test scheme and response scheme of the cloud platform through optimization measures, improves the performance and stability of the cloud platform, and enables the cloud platform to provide stable and reliable services to users.
[0078] In one embodiment, the cloud platform stability testing method provided in the embodiment of the present application may also include: Step 800: Based on the underlying driver of the target cloud platform, an illegal test is performed on the component unit of the test agent to obtain a component test result; the component unit includes an operation process for performing a simulated operation test on the target cloud platform based on the cloud platform stability test scheme and the response scheme; Step 900: When illegal operations are found in the component test result, reinstallation and initialization operations are sequentially performed on the test agent.
[0079] The target cloud platform is configured with a test agent, which is used to perform cloud platform simulation operation test and processing on the target cloud platform according to the cloud platform stability test plan and response plan. It includes: step 6, through the underlying driver support of the target cloud platform, illegal test is performed on the component unit of the test agent, and the component unit includes the operation process of performing cloud platform simulation operation test and processing on the target cloud platform according to the cloud platform stability test plan and response plan; in the case of illegal operation of the component unit of the test agent, the test agent is installed again and initialized.
[0080] The example scenario corresponding to step 6 above is as follows: The target cloud platform is configured with a test agent to ensure the stability and performance of the cloud platform under various simulated operations. The test agent performs simulated cloud platform operations tests on the target cloud platform according to the cloud platform stability test scheme and response scheme, and processes the test results. The server deploys a test agent in the target cloud platform. This test agent is configured to perform a series of simulated operations according to the predefined cloud platform stability test scheme, such as the creation and deletion of virtual machines, the establishment and disconnection of network connections, etc. At the same time, the test agent is also responsible for processing the results of these simulated operations according to the response scheme, such as recording the operation time, detecting errors and anomalies, etc. In order to ensure the security and stability of the test agent itself, the server will perform illegal tests on the component units of the test agent through the underlying driver support of the target cloud platform. These component units include the operation process of the test agent performing simulated operations and processing the results. The server uses the interface and permissions provided by the underlying driver to perform illegal tests on a component unit of the test agent (such as the virtual machine creation process). During the test, the server attempts to input invalid or malicious parameters to the component unit to observe its reaction and processing capabilities. If the component units of the test agent exhibit illegal behavior (such as crashing or producing incorrect results) during illegal testing, the server will take appropriate measures to repair or reset them. During the illegal test, the server discovered that the virtual machine creation process of the test agent crashed when it received a specific invalid parameter. To solve this problem, the server decided to reinstall and initialize the test agent to ensure the integrity and correctness of its component units. After reinstallation and initialization, the server tested the test agent again and confirmed that the problem was resolved.
[0081] This embodiment ensures the stability and security of the test agent in the cloud platform simulation operation test by performing illegal tests on the test agent, thereby improving the overall performance and reliability of the cloud platform, so that the cloud platform can provide users with stable and reliable services.
[0082] The cloud platform stability testing device provided by the present invention is described below. The cloud platform stability testing device described below and the cloud platform stability testing method described above can be referenced to each other.
[0083] Please refer to Figure 3 The present invention also provides a cloud platform stability testing device, comprising: The solution acquisition module 301 is used to acquire a cloud platform stability test solution and a response solution; the cloud platform stability test solution includes simulation operation content and monitoring content; the simulation operation content represents the target simulation operation to be tested, and the monitoring content represents the data to be monitored corresponding to the target simulation operation; A simulation operation test module 302 is used to perform a simulation operation test on a target cloud platform to be tested based on the simulation operation content, obtain a target test result, and determine the cloud platform simulation operation that belongs to the target simulation operation in the target test result; A parameter monitoring module 303 is used to perform parameter monitoring on the cloud platform simulation operation based on the monitoring content to obtain simulation operation parameters of the cloud platform simulation operation; The cloud platform stability test module 304 is used to determine the response process corresponding to the cloud platform simulation operation based on the response plan and the simulation operation parameters, perform a response operation on the target cloud platform based on the response process, and obtain a cloud platform stability test result.
[0084] Optionally, the simulated operation content includes a simulated operation of changing an access control policy, a simulated operation of tracking and associating a target activity, and a simulated operation of connecting to a designated service interface; the cloud platform stability testing device further includes: A simulation operation monitoring module, used to monitor the simulation operation of changing the access control policy and the simulation operation of connecting to the specified service interface respectively, and obtain a first key performance indicator related to changing the access control policy and a second key performance indicator related to the service interface connection; The system performance parameter acquisition module is used to monitor the simulation operation associated with the target activity tracking and obtain the system performance parameters related to the target activity tracking.
[0085] Optionally, the response scheme includes a simulation operation set criterion; and the cloud platform stability testing module includes: A simulation operation set determining unit, configured to determine a simulation operation set that meets the simulation operation set criteria in the cloud platform simulation operation based on the simulation operation parameters and the simulation operation set criteria; The response process determination unit is used to determine the simulation operation response process corresponding to the simulation operation set criteria that the simulation operation set complies with, and use the simulation operation response process as the response process corresponding to the cloud platform simulation operation.
[0086] Optionally, the simulation operation content includes instruction data; and the simulation operation test module includes: a target instruction determination unit, configured to determine a target instruction in a target cloud platform that is related to the indication data; an illegal instruction response unit, for responding to the illegal instruction when an illegal instruction is obtained by testing the target instruction; The illegal simulation operation determination unit is used to determine that the target test result contains an illegal simulation operation when the target cloud platform responds to the illegal instruction.
[0087] Optionally, the cloud platform stability testing device further includes: an optimization naming determination module, configured to determine a first optimization command and a second optimization command based on the simulation operation parameters; A test scheme optimization module, used to optimize the cloud platform stability test scheme based on the first optimization command; A response scheme optimization module is used to optimize the response scheme based on the second optimization command.
[0088] Optionally, the cloud platform stability testing device further includes: A component unit illegality test module is used to perform illegality test on the component unit of the test agent based on the underlying driver of the target cloud platform to obtain component test results; the component unit includes an operation process for performing simulated operation test on the target cloud platform based on the cloud platform stability test scheme and the response scheme; The test agent operation module is used to sequentially perform a reinstallation operation and an initialization operation on the test agent when there is an illegal operation in the component test result.
[0089] Figure 4 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 4 As shown, the electronic device may include: a processor (processor) 410 , a communication interface (Communications Interface) 420 , a memory (memory) 430 and a communication bus 440 , wherein the processor 410 , the communication interface 420 , and the memory 430 communicate with each other through the communication bus 440 . The processor 410 can call the logic instructions in the memory 430 to execute the cloud platform stability testing method, which includes: obtaining a cloud platform stability testing plan and a response plan; the cloud platform stability testing plan includes simulation operation content and monitoring content; the simulation operation content represents the target simulation operation to be tested, and the monitoring content represents the monitored data corresponding to the target simulation operation; based on the simulation operation content, a simulation operation test is performed on the target cloud platform to be tested to obtain the target test result, and the cloud platform simulation operation belonging to the target simulation operation in the target test result is determined; based on the monitoring content, parameter monitoring is performed on the cloud platform simulation operation to obtain the simulation operation parameters of the cloud platform simulation operation; based on the response plan and the simulation operation parameters, a response process corresponding to the cloud platform simulation operation is determined, and a response operation is performed on the target cloud platform based on the response process to obtain a cloud platform stability testing result.
[0090] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention, in essence, 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in 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.
[0091] On the other hand, the present invention also provides a computer program product, which includes a computer program, which can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the cloud platform stability testing method provided by the above methods, which method includes: obtaining a cloud platform stability testing plan and a response plan; the cloud platform stability testing plan includes simulation operation content and monitoring content; the simulation operation content represents the target simulation operation to be tested, and the monitoring content represents the data to be monitored corresponding to the target simulation operation; based on the simulation operation content, a simulation operation test is performed on the target cloud platform to be tested to obtain the target test result, and the cloud platform simulation operation belonging to the target simulation operation in the target test result is determined; based on the monitoring content, parameter monitoring is performed on the cloud platform simulation operation to obtain the simulation operation parameters of the cloud platform simulation operation; based on the response plan and the simulation operation parameters, a response process corresponding to the cloud platform simulation operation is determined, and a response operation is performed on the target cloud platform based on the response process to obtain a cloud platform stability testing result.
[0092] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the cloud platform stability testing method provided by the above-mentioned methods, the method comprising: obtaining a cloud platform stability testing scheme and a response scheme; the cloud platform stability testing scheme comprises simulation operation content and monitoring content; the simulation operation content represents the target simulation operation to be tested, and the monitoring content represents the data to be monitored corresponding to the target simulation operation; based on the simulation operation content, a simulation operation test is performed on the target cloud platform to be tested to obtain a target test result, and the cloud platform simulation operation belonging to the target simulation operation in the target test result is determined; based on the monitoring content, parameter monitoring is performed on the cloud platform simulation operation to obtain simulation operation parameters of the cloud platform simulation operation; based on the response scheme and the simulation operation parameters, a response process corresponding to the cloud platform simulation operation is determined, and a response operation is performed on the target cloud platform based on the response process to obtain a cloud platform stability testing result.
[0093] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0094] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0095] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A cloud platform stability testing method, characterized in that: include: Obtain a cloud platform stability test plan and a response plan; the cloud platform stability test plan includes simulated operation content and monitoring content; The simulation operation content represents the target simulation operation to be tested, and the monitoring content represents the data to be monitored corresponding to the target simulation operation; Performing a simulated operation test on the target cloud platform to be tested based on the simulated operation content, obtaining a target test result, and determining the cloud platform simulated operation that belongs to the target simulated operation in the target test result; Perform parameter monitoring on the cloud platform simulation operation based on the monitoring content to obtain simulation operation parameters of the cloud platform simulation operation; Based on the response scheme and the simulation operation parameters, a response process corresponding to the cloud platform simulation operation is determined, and a response operation is performed on the target cloud platform based on the response process to obtain a cloud platform stability test result.
2. The cloud platform stability testing method according to claim 1, characterized in that: The simulated operation content includes a simulated operation of changing an access control policy, a simulated operation of tracking and associating a target activity, and a simulated operation of connecting to a specified service interface; the cloud platform stability testing method also includes: The simulated operation of changing the access control policy and the simulated operation of connecting the specified service interface are monitored respectively to obtain a first key performance indicator related to changing the access control policy and a second key performance indicator related to the service interface connection; The simulation operations associated with the target activity tracking are monitored to obtain system performance parameters related to the target activity tracking.
3. The cloud platform stability testing method according to claim 1, characterized in that: The response scheme includes a set of simulation operation criteria; and determining a response process corresponding to the cloud platform simulation operation based on the response scheme and the simulation operation parameters includes: Based on the simulation operation parameters and the simulation operation set criteria, determining a set of simulation operations in the cloud platform simulation operations that meet the simulation operation set criteria; Determine a simulation operation response process corresponding to the simulation operation set criteria that the simulation operation set complies with, and use the simulation operation response process as the response process corresponding to the cloud platform simulation operation.
4. The cloud platform stability testing method according to claim 1, characterized in that: The simulated operation content includes instruction data; the simulated operation test is performed on the target cloud platform to be tested based on the simulated operation content, and the target test result is obtained, including: Determining a target instruction related to the indication data in a target cloud platform; In the case where an illegal instruction is obtained by testing the target instruction, responding to the illegal instruction; In a case where the target cloud platform responds to the illegal instruction, it is determined that the target test result includes an illegal simulation operation.
5. The cloud platform stability testing method according to claim 1, characterized in that: The step of performing a response operation on the target cloud platform based on the response process to obtain a cloud platform stability test result includes: determining a first optimization command and a second optimization command based on the simulated operation parameters; Optimizing the cloud platform stability test solution based on the first optimization command; The response solution is optimized based on the second optimization command.
6. The cloud platform stability testing method according to claim 1, characterized in that: The target cloud platform is configured with a test agent; The step of performing a response operation on the target cloud platform based on the response process to obtain a cloud platform stability test result further includes: Based on the underlying driver of the target cloud platform, an illegal test is performed on the component unit of the test agent to obtain a component test result; the component unit includes an operation process for performing a simulated operation test on the target cloud platform based on the cloud platform stability test scheme and the response scheme; In the case that illegal operations are found in the component test result, the test agent is sequentially reinstalled and initialized.
7. A cloud platform stability testing device, characterized in that: include: A solution acquisition module is used to acquire a cloud platform stability test solution and a response solution; the cloud platform stability test solution includes simulation operation content and monitoring content; The simulation operation content represents the target simulation operation to be tested, and the monitoring content represents the data to be monitored corresponding to the target simulation operation; A simulation operation test module, used to perform a simulation operation test on a target cloud platform to be tested based on the simulation operation content, obtain a target test result, and determine the cloud platform simulation operation that belongs to the target simulation operation in the target test result; A parameter monitoring module, used to perform parameter monitoring on the cloud platform simulation operation based on the monitoring content, and obtain simulation operation parameters of the cloud platform simulation operation; The cloud platform stability testing module is used to determine the response process corresponding to the cloud platform simulation operation based on the response plan and the simulation operation parameters, perform a response operation on the target cloud platform based on the response process, and obtain a cloud platform stability testing result.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the cloud platform stability testing method as described in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the cloud platform stability testing method as described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the cloud platform stability testing method as described in any one of claims 1 to 6 is implemented.