Cloud platform dial testing method, device and system, computer readable storage medium and computer program product

By determining the target allocation center and disaster recovery data center between multiple data centers, the high accuracy and stability of cloud platform dialing is achieved, and the problem of untimely alarms in multiple environments of edge nodes in the existing technology is solved, ensuring that users are Business continuity.

CN119484362AActive Publication Date: 2025-02-18CHINA TELECOM CLOUD TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202411761524.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-03
Publication Date
2025-02-18
Estimated Expiration
2044-12-03

AI Technical Summary

Technical Problem

The existing cloud platform dialing method has the problem of untimely alarms in multiple edge node environments, resulting in user business losses, and the dialing service problem affects business accuracy, and a cloud platform dialing method with higher accuracy is urgently needed. .

Method used

By receiving dial-test requests, the target allocation center and its disaster recovery data center are determined from multiple data centers, the target allocation center is used for simulation tests, and the disaster recovery data center is switched in the event of a failure to synchronize the data to ensure the dial-test requests deal with.

Benefits of technology

It improves the accuracy and effectiveness of cloud platform dialing, avoids false alarms caused by failures in a single data center, and ensures the stability and business continuity of cloud platform dialing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119484362A_ABST
    Figure CN119484362A_ABST
Patent Text Reader

Abstract

The invention relates to a cloud platform dial testing method and device, a dial testing system, a computer readable storage medium and a computer program product. The method comprises the following steps: determining a target distribution center corresponding to a dial test request and a disaster recovery data center of the target distribution center; sending a simulation test request to the dial-tested cloud platform based on the dial test request through the target distribution center, and storing a returned request result to a main database of the target distribution center; when it is detected that the target distribution center breaks down, a simulation test request is sent to the dial-tested cloud platform based on the dial-testing request through the disaster recovery data center, and a request result is stored in a backup database of the disaster recovery data center; and when it is detected that the fault of the target distribution center is recovered, synchronizing a request result stored in a backup database of the disaster recovery data center to a main database of the target distribution center, and distributing a subsequent dial test request to the target distribution center for processing. By adopting the method, the dial testing accuracy of the cloud platform can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of emerging information technology, and in particular to a cloud platform dialing method, device, dialing system, computer-readable storage medium, and computer program product. Background Art

[0002] With the popularization of video surveillance equipment, more and more families, factories, and urban roads choose to connect surveillance equipment to the video surveillance management cloud platform. Users can use the cloud platform through mobile applications, web pages, etc.: view the images of surveillance equipment in real time or record the images of surveillance equipment. At present, this kind of cloud platform generally has multiple edge nodes in various places, which can realize the functions of local access and remote disaster recovery.

[0003] However, when there are many edge nodes, there may be situations where node services are hung up and other alarms are not issued in time. Once the node service cannot run normally, it will cause great business losses to users. Therefore, it is necessary to perform dial-up testing on the cloud platform. Dial-up testing is a test method that evaluates network performance by simulating user behavior. It can be used to monitor the network link quality of the cloud platform, perform fault detection and performance testing on the cloud platform, and improve user experience and business operation effects of the cloud platform.

[0004] However, when there is a problem with the dialing service of the cloud platform, it may affect the accuracy of the business of the monitored cloud platform. With the further development of video surveillance testing and operation and maintenance technology, a more accurate cloud platform dialing method is urgently needed. Summary of the invention

[0005] Based on this, it is necessary to provide a cloud platform dialing method, device, dialing system, computer-readable storage medium and computer program product with higher accuracy to address the above technical problems.

[0006] In a first aspect, the present application provides a cloud platform dialing method, comprising:

[0007] receiving a dial test request, determining a target distribution center corresponding to the dial test request from a plurality of data centers, and using any data center among the plurality of data centers except the target distribution center as a disaster recovery data center of the target distribution center;

[0008] Sending a simulation test request to the cloud platform under test through the target distribution center based on the test request, and storing the request result of the simulation test request returned by the cloud platform under test in the main database of the target distribution center;

[0009] In the case where a failure of the target distribution center is detected, the disaster recovery data center sends the simulation test request to the cloud platform being tested based on the dial test request, and stores the request result of the simulation test request in the backup database of the disaster recovery data center;

[0010] When the target distribution center failure recovery is detected, the request result stored in the backup database of the disaster recovery data center is synchronized to the primary database of the target distribution center, and subsequent dialing requests are distributed to the target distribution center for processing.

[0011] In one embodiment, each of the data centers is deployed with an edge node; the dial test request carries the communication address of the system to be tested and the test frequency;

[0012] The step of sending a simulation test request to the dialed cloud platform based on the dial test request through the target distribution center, and storing the request result of the simulation test request returned by the dialed cloud platform in the main database of the target distribution center includes:

[0013] Generate a corresponding target stream address according to the communication address through the edge node of the target distribution center, and send a device access request to the dialed cloud platform based on the target stream address, wherein the device access request is used to instruct the dialed cloud platform to read the monitoring video stream through the target stream address;

[0014] Sending the simulation test request to the dialed cloud platform according to the test frequency through the edge node of the target distribution center, wherein the simulation test request is used to instruct the dialed cloud platform to return a request result corresponding to the simulation test request based on the monitoring video stream;

[0015] The request result is received through the edge node of the target distribution center, and the request result is stored in the main database of the target distribution center.

[0016] In one of the embodiments, each of the data centers is further deployed with a central node; the dial test request carries a preset alarm threshold;

[0017] The method further comprises:

[0018] Sending the request result to the central node of the target distribution center through the edge node of the target distribution center;

[0019] The request result is detected based on the alarm threshold by the central node of the target distribution center, and an alarm detection result corresponding to the request result is generated;

[0020] When the alarm detection result reaches the alarm threshold, alarm information corresponding to the alarm detection result is sent to the client.

[0021] In one embodiment, before sending a simulation test request to the dialed cloud platform based on the dial test request through the target distribution center, and storing the request result of the simulation test request returned by the dialed cloud platform in the main database of the target distribution center, it also includes:

[0022] Verifying the dial test request and generating a verification result of the dial test request;

[0023] When the verification result shows that the request parameters are valid, the dialing request is distributed to the target distribution center.

[0024] In one embodiment, the receiving the dialing request and determining a target distribution center corresponding to the dialing request from a plurality of data centers includes:

[0025] Obtaining load data of each of the data centers;

[0026] The target distribution center is determined from the plurality of data centers according to the load data.

[0027] In one embodiment, the method further comprises:

[0028] When the data synchronization mechanism is triggered, the data stored in the primary database of each data center is synchronized with the data stored in the standby database of any data center.

[0029] In a second aspect, the present application also provides a cloud platform dialing device, including:

[0030] A request allocation module, configured to receive a dial test request, determine a target allocation center corresponding to the dial test request from a plurality of data centers, and use any data center among the plurality of data centers except the target allocation center as a disaster recovery data center of the target allocation center;

[0031] A request response module, used for sending a simulation test request to the cloud platform under test through the target distribution center based on the test request, and storing the request result of the simulation test request returned by the cloud platform under test in the main database of the target distribution center;

[0032] A fault switching module is used to send the simulation test request to the cloud platform being tested through the disaster recovery data center based on the dial test request when a fault is detected in the target distribution center, and store the request result of the simulation test request in the backup database of the disaster recovery data center;

[0033] The data synchronization module is used to synchronize the request results stored in the backup database of the disaster recovery data center to the main database of the target distribution center when the target distribution center detects failure recovery, and distribute subsequent dialing requests to the target distribution center for processing.

[0034] In a third aspect, the present application further provides a dial test system, the dial test system comprising a dial test management system, a first data center and a second data center;

[0035] The dial test management system is used for:

[0036] receiving a dial test request, determining a target distribution center corresponding to the dial test request from the first data center and the second data center, and using another data center other than the target distribution center as a disaster recovery data center for the target distribution center;

[0037] Sending a simulation test request to the cloud platform under test through the target distribution center based on the test request, and storing the request result of the simulation test request returned by the cloud platform under test in the main database of the target distribution center;

[0038] In the case where a failure of the target distribution center is detected, the disaster recovery data center sends the simulation test request to the cloud platform being tested based on the dial test request, and stores the request result of the simulation test request in the backup database of the disaster recovery data center;

[0039] When the target distribution center failure recovery is detected, the request result stored in the backup database of the disaster recovery data center is synchronized to the primary database of the target distribution center, and subsequent dialing requests are distributed to the target distribution center for processing.

[0040] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the cloud platform dialing method described in any one of the embodiments of the first aspect above is implemented.

[0041] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the cloud platform dialing method described in any one of the embodiments of the first aspect is implemented.

[0042] The above-mentioned cloud platform dialing test method, device, dialing test system, computer-readable storage medium and computer program product, by receiving a dialing test request, selects a target distribution center corresponding to the dialing test request and a disaster recovery data center corresponding to the target distribution center from multiple data centers, and performs dialing test on the dialed cloud platform based on the dialing test request through the target distribution center. In the case of a failure of the target distribution center, the disaster recovery data center is switched to execute the dialing test request. In the case of recovery from the failure of the target distribution center, the backup database of the disaster recovery data center and the main database of the target distribution center are synchronized. This can not only avoid the dialing test system false alarm caused by the failure of a single data center, improve the accuracy and effectiveness of the cloud platform dialing test method, but also ensure the stability of the cloud platform dialing test. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0044] Figure 1 This is an application environment diagram of a cloud platform dialing method in an embodiment;

[0045] Figure 2 A schematic diagram of a process flow of a cloud platform dialing method in an embodiment;

[0046] Figure 3 A flowchart of steps for executing a dial test request in one embodiment;

[0047] Figure 4 A schematic diagram of a flow chart of an alarm detection step in an embodiment;

[0048] Figure 5 It is a flowchart of a cloud platform dialing method in another embodiment;

[0049] Figure 6 It is a structural block diagram of a cloud platform dialing device 600 in one embodiment;

[0050] Figure 7 is a structural block diagram of a dialing test system 700 in one embodiment;

[0051] Figure 8 FIG. 4 is a schematic diagram of a database synchronization step in an embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0054] The cloud platform dialing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown, the dialing system 100 communicates with the cloud platform 120 and the client 140 through the network.

[0055] Exemplarily, the dialing test system 100 can receive the dialing test request sent by the client 140, determine the target distribution center corresponding to the dialing test request from multiple data centers, and use any data center other than the target distribution center in the multiple data centers as the disaster recovery data center of the target distribution center. The dialing test system 100 can send a simulation test request to the cloud platform 120 being dialed based on the dialing test request through the target distribution center, and store the request result of the simulation test request returned by the cloud platform 120 being dialed in the main database of the target distribution center. The dialing test system 100 can send a simulation test request to the cloud platform 120 being dialed based on the dialing test request through the disaster recovery data center when a failure of the target distribution center is detected, and store the request result of the simulation test request in the backup database of the disaster recovery data center. The dialing test system 100 can synchronize the request result stored in the backup database of the disaster recovery system center to the main database of the target distribution center when the failure recovery of the target distribution center is detected, and distribute the subsequent dialing test request to the target distribution center for processing.

[0056] In this embodiment, multiple data centers are deployed in the dialing test system to serve as disaster recovery for each other. When a target distribution center currently processing the dialing test request fails, the corresponding disaster recovery data center is switched to process the dialing test request of the currently failed target distribution center, and when the target distribution center fails and recovers, the data of the disaster recovery data center is synchronized with the target distribution center. This can not only avoid dialing test false alarms caused by single point failures of the data center and improve the accuracy of cloud platform dialing test, but also avoid business interruptions during the cloud platform dialing test and ensure the stability and availability of cloud platform dialing test.

[0057] In an exemplary embodiment, Figure 2As shown, a cloud platform dialing method is provided, which is applied to Figure 1 The dialing test system 100 in FIG. 1 is used as an example to illustrate the method, which includes the following steps S202 to S208. Among them:

[0058] Step S202, receiving a dial test request, determining a target distribution center corresponding to the dial test request from multiple data centers, and using any data center among the multiple data centers except the target distribution center as a disaster recovery data center of the target distribution center.

[0059] The dial test request may be used to represent a data request for performing a network performance test by simulating user behavior.

[0060] The disaster recovery data center can be used as a data backup for the target distribution center to maintain the normal operation of the dial-up system when the target distribution center fails.

[0061] Exemplarily, the dial test system may include multiple data centers. Data synchronization is performed in real time or periodically between the data centers. The dial test system may receive a dial test request sent by a client. According to information such as request allocation priorities, polling scheduling order, or load conditions of multiple data centers, a target distribution center corresponding to the current dial test request is determined from multiple data centers. Any data center other than the target distribution center among the multiple data centers is used as a disaster recovery data center for the target distribution center.

[0062] Step S204: Send a simulation test request to the cloud platform under test through the target distribution center based on the test request, and store the request result of the simulation test request returned by the cloud platform under test in the main database of the target distribution center.

[0063] The simulated test request can be used to simulate the operation of a user requesting data from the cloud platform being tested.

[0064] The master database may be used to store data such as the dialing test request received by the target distribution center, the execution time of the dialing test request, and the execution result of the dialing test request.

[0065] Exemplarily, the dial test system can determine the corresponding cloud platform to be dialed based on the dial test request through the target distribution center, generate a test case corresponding to the dial test request, send a simulation test request to the cloud platform to be dialed according to the test case, receive the request result of the simulation test request returned by the cloud platform to be dialed, and store the request result in the master database of the target distribution center.

[0066] Step S206, when a failure is detected in the target distribution center, a simulation test request is sent to the cloud platform being tested based on the test request through the disaster recovery data center, and the request result of the simulation test request is stored in the backup database of the disaster recovery data center.

[0067] Among them, the backup database of the disaster recovery data center can be used to achieve data synchronization with the target distribution center.

[0068] Exemplarily, the dial test system can detect whether the target distribution center fails based on parameters such as the response time, request execution status or operating status of the target distribution center. In the case where a failure is detected in the target distribution center, the dial test request originally sent to the target distribution center is switched to the disaster recovery data center for processing. The disaster recovery data center refers to the operation steps of executing the dial test request by the target distribution center provided in the above step S204, sends a simulation test request to the cloud platform being dialed based on the dial test request, and receives the request result of the simulation test request returned by the cloud platform being dialed. The request result is stored in the backup database of the disaster recovery data center.

[0069] Step S208, when it is detected that the target distribution center has recovered from the failure, the request results stored in the backup database of the disaster recovery data center are synchronized to the primary database of the target distribution center, and subsequent dialing test requests are distributed to the target distribution center for processing.

[0070] For example, the dial test system can detect whether the failed target distribution center has recovered based on parameters such as the target distribution center's response time, request execution status, or operating status. When the target distribution center is detected to have recovered, the dial test system can synchronize the request results stored in the backup database of the disaster recovery data center to the primary database of the target distribution center, and switch the subsequent dial test requests sent by the client to the target distribution center for processing.

[0071] In the above-mentioned cloud platform dialing method, a target distribution center corresponding to the dialing request and a disaster recovery data center corresponding to the target distribution center are selected from multiple data centers, and a dialing is performed to the dialed cloud platform based on the dialing request through the target distribution center. In the case of a failure in the target distribution center, the disaster recovery data center is switched to execute the dialing request. In the case of recovery from the failure of the target distribution center, the backup database of the disaster recovery data center and the main database of the target distribution center are synchronized. This can not only avoid false alarms of the dialing system caused by a single data center failure, improve the accuracy and effectiveness of the cloud platform dialing method, but also ensure the stability of the cloud platform dialing.

[0072] In an exemplary embodiment, each data center may be deployed with an edge node. The dial test request may carry the communication address of the system to be tested and the test frequency.

[0073] like Figure 3 As shown, step S204 includes steps S302 to S306. Among them:

[0074] Step S302: Generate a corresponding target flow address according to the communication address through the edge node of the target distribution center, and send a device access request to the cloud platform being dialed based on the target flow address.

[0075] The edge node may include a real-time streaming protocol server (Real Time Streaming Protocol, referred to as RTSP) and a dial request service.

[0076] The real-time streaming protocol server can be used to generate real-time streaming addresses (also known as RTSP streaming addresses) that conform to the formats of various monitoring equipment manufacturers, so as to provide video streams for the cloud platform being tested during dial-up testing.

[0077] The test request service can be used to send test requests to the cloud platform being tested at a predetermined frequency, such as once a minute, to simulate actual user requests.

[0078] The communication address of the system to be tested can be used to represent the data communication address of the business system of the monitoring device connected to the cloud platform being tested.

[0079] The target stream address may be used to represent a real-time stream address corresponding to the communication address of the system to be tested.

[0080] The device access request is used to instruct the cloud platform being tested to read the monitoring video stream through the target stream address.

[0081] Exemplarily, the dial test system can use the real-time streaming protocol server through the edge node of the target distribution center to generate a corresponding target stream address that complies with the real-time streaming protocol according to the communication address of the system to be tested carried in the dial test request. Generate a corresponding device access request based on the target stream address. Send the device access request to the cloud platform being dialed through the edge node of the target distribution center. After receiving the device access request, the cloud platform being dialed can use the target stream address as the stream pull address to access the monitoring video stream of the monitoring device.

[0082] Step S304: Send a simulation test request to the cloud platform under test through the edge node of the target distribution center according to the test frequency.

[0083] Step S306, receiving the request result through the edge node of the target distribution center, and storing the request result in the main database of the target distribution center.

[0084] The simulation test request may be a Hypertext Transfer Protocol (HTTP) request that simulates a user request, and may be used to instruct the dialed cloud platform to return a request result corresponding to the simulation test request based on a monitoring video stream.

[0085] Exemplarily, the dial test system can periodically send corresponding simulation test requests to the cloud platform being tested through the edge node of the target distribution center according to the test frequency carried in the dial test request. For example, in the case where the simulation test request is to obtain the monitoring video data of X hours and X seconds, the cloud platform being tested can return the monitoring video data of X hours and X seconds to the edge node based on the monitoring video stream. The request result is received by the edge node of the target distribution center and stored in the main database of the target distribution center.

[0086] In this embodiment, a target stream address that complies with the real-time streaming protocol is generated by the edge node of the target distribution center, and a device access request carrying the target stream address is sent to the cloud platform under test to indicate access to the monitoring video stream based on the target stream address. A simulation test request is sent to the cloud platform under test at a preset test frequency to instruct the cloud platform under test to return the corresponding request result based on the monitoring video stream. This can adapt to the test scenarios of the systems to be tested of different manufacturers and improve the success rate of the cloud platform test.

[0087] In an exemplary embodiment, each data center may also be deployed with a central node. The dial test request may also carry a preset alarm threshold.

[0088] like Figure 4 As shown, the cloud platform dialing method may further include the following steps S402 to S406. Among them:

[0089] Step S402: Send the request result to the central node of the target distribution center through the edge node of the target distribution center.

[0090] Step S404: The request result is detected based on the alarm threshold by the central node of the target distribution center, and an alarm detection result corresponding to the request result is generated.

[0091] The central node may include a dial test management service and a dial test analysis service, which are used to manage, plan and analyze the task execution status of the dial test request.

[0092] Exemplarily, the dial test system can send the request result of the simulation test request to the target distribution center through the edge node of the target distribution center. The central node of the target distribution center detects the response time, number of packet loss, data transmission error rate and other indicators of the request result based on the preset alarm threshold, and generates an alarm detection result corresponding to the request result.

[0093] Step S406: When the alarm detection result reaches the alarm threshold, alarm information corresponding to the alarm detection result is sent to the client.

[0094] Exemplarily, when the alarm detection result reaches the alarm threshold, the dial test system can generate alarm information corresponding to the current dial test request according to the alarm detection result, and send the alarm information corresponding to the alarm detection result to the client through the message push service of the dial test system.

[0095] In this embodiment, the central node of the target distribution center detects whether the request result reaches the alarm threshold based on the preset alarm threshold. In the case of abnormal dialing, the corresponding alarm information is sent to the client according to the alarm detection result that reaches the alarm threshold, which can improve the timeliness and accuracy of the dialing alarm.

[0096] In an exemplary embodiment, the cloud platform dialing method provided by the present application may also include:

[0097] The dial test request is verified and a verification result of the dial test request is generated. If the verification result shows that the request parameters are valid, the dial test request is distributed to the target distribution center.

[0098] Exemplarily, when receiving a dial test request, the dial test system can verify the dial test request: for example, using a preset verification function to perform calculations on the parameters carried in the dial test request; or, sending the parameters carried in the dial test request back to the client for confirmation; or, calling a third-party library for detection, etc., so as to generate a verification result of the dial test request. If the verification result of the dial test request is that the request parameters are valid, the dial test request is distributed to the target distribution center.

[0099] In this embodiment, by performing parameter validity check on the dial test request before allocating the dial test request, the validity of the parameters carried in the dial test request can be guaranteed, thereby improving the accuracy of the cloud platform dial test.

[0100] In an exemplary embodiment, the above step S202 may include: obtaining load data of each data center and determining a target distribution center from multiple data centers according to the load data.

[0101] For example, the dialing system can obtain the current CPU utilization, memory usage, network bandwidth, input and output request volume, throughput and other load data of each data center. Based on the preset load balancing algorithm, the load data of each data center is evaluated, and the data center with the lowest current load is determined from multiple data centers as the target distribution center.

[0102] In this embodiment, by using a load balancing algorithm to determine the target distribution center corresponding to the current dialing request based on the load data of each data center, the utilization rate of the cloud platform dialing on the target distribution center can be improved, and the stable operation of the cloud platform dialing in the target distribution center can be guaranteed.

[0103] In an exemplary embodiment, the cloud platform dialing method provided in the present application may further include: synchronizing the data stored in the primary database of each data center with the data stored in the backup database of any data center when the data synchronization mechanism is triggered.

[0104] Optionally, in some implementations, a data synchronization mechanism for real-time data synchronization may be stored in the dial test system. The data synchronization mechanism is triggered in real time to synchronize data stored in the primary database of each data center in the dial test system with data stored in the standby database of any other data center in the dial test system.

[0105] Alternatively, in some other implementations, the server may also store a periodically executed data synchronization mechanism, such as a mechanism that executes data synchronization every 10 seconds. The data synchronization mechanism is triggered every preset period to synchronize the data stored in the master database of each data center in the dial test system with the data stored in the standby database of any other data center in the dial test system.

[0106] In this embodiment, by performing data synchronization between various data centers in real time or periodically, data loss can be avoided and data backup can be achieved.

[0107] In an exemplary embodiment, Figure 5 As shown, a cloud platform dialing method is also provided, including the following steps S502 to S516. Among them:

[0108] Step S502: receiving a dial test request, verifying the dial test request and generating a verification result of the dial test request.

[0109] Step S504: when the verification result shows that the request parameters are valid, a target distribution center is determined according to the load data of each data center, and the dialing request is distributed to the target distribution center.

[0110] Exemplarily, the dial test system can receive a dial test request sent by a client. Analyze and obtain parameter information carried by the dial test request, verify the parameter information carried by the dial test request, and generate a verification result of the dial test request. When the verification result shows that the request parameter is valid, the load data of each data center is evaluated based on the load balancing scheduling strategy, the data center with the lowest load is selected as the target distribution center, and the dial test request is distributed to the target distribution center. One or more other data centers in the dial test system are used as disaster recovery data centers of the target distribution center.

[0111] Step S506: The edge node of the target distribution center generates a corresponding target flow address according to the communication address carried in the dialing request, and sends a device access request to the cloud platform being dialed based on the target flow address.

[0112] Step S508: Send a simulation test request to the cloud platform being tested through the edge node of the target distribution center according to the test frequency carried in the test request.

[0113] Step S510: receiving the request result returned by the dialed cloud platform through the edge node of the target distribution center, and storing the request result in the main database of the target distribution center.

[0114] Exemplarily, the dial test system can select an edge node that is currently in an idle state from the target distribution center as a dial test node. The real-time streaming protocol server of the dial test node converts the communication address carried in the dial test request into the corresponding target stream address, and sends a device access request to the cloud platform being dialed based on the target stream address to instruct the cloud platform being dialed to access the monitoring device based on the target stream address to read the corresponding monitoring video stream. The edge node of the target distribution center sends a simulation test request to the cloud platform being dialed according to the test frequency carried in the dial test request to instruct the cloud platform being dialed to return the request result of the simulation test request based on the monitoring video stream, and stores the request result in the master database of the target distribution center.

[0115] Step S512: Send the request result to the central node of the target distribution center through the edge node of the target distribution center for alarm detection. When the alarm detection result reaches the alarm threshold, send alarm information corresponding to the alarm detection result to the client.

[0116] Exemplarily, the dial test system can send the request result to the central node of the target distribution center through the edge node of the target distribution center, and the central node performs alarm detection on the request result based on the alarm threshold carried in the dial test request to generate a corresponding alarm detection result. When the alarm detection result reaches the alarm threshold, an alarm message corresponding to the alarm detection result is sent to the client.

[0117] Step S514: when a failure is detected in the target distribution center, the dialing request is switched to the disaster recovery data center for processing, and the corresponding request result is stored in the backup database of the disaster recovery data center.

[0118] For example, the dialing test system can detect in real time whether the target distribution center is in a normal operating state. When a failure is detected in the target distribution center, the dialing test request is switched to the disaster recovery data center for processing. The disaster recovery data center performs the above steps S506 to S512 to obtain the corresponding request result, and stores the request result in the backup database of the disaster recovery data center.

[0119] Step S516, when it is detected that the target distribution center has recovered from the failure, the request results stored in the backup database of the disaster recovery data center are synchronized to the primary database of the target distribution center, and subsequent dialing test requests are distributed to the target distribution center for processing.

[0120] In this embodiment, by performing parameter validity verification on the dial test request, the validity of the request parameters of the dial test request can be guaranteed, which helps to improve the accuracy of subsequent cloud platform dial tests. The edge node of the target distribution center implements address conversion in the real-time streaming protocol format to indicate the cloud platform access monitoring device to be dialed, and sends a simulation test request according to the test frequency, which can be adapted to monitoring equipment of different manufacturers, and improve the flexibility and success rate of cloud platform dial tests. The central node of the target distribution center performs alarm detection on the request result, and pushes alarm information to the client when the alarm threshold is reached, which can improve the timeliness of the alarm of the cloud platform dial test. By switching to the disaster recovery data center to process the dial test request in the event of a failure in the target distribution center, the stable operation of the cloud platform dial test can be guaranteed, and the risk of downtime of the dial test terminal and service can be minimized.

[0121] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0122] Based on the same inventive concept, the embodiment of the present application also provides a cloud platform dialing device for implementing the cloud platform dialing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more cloud platform dialing device embodiments provided below can refer to the limitations on the cloud platform dialing method above, and will not be repeated here.

[0123] In an exemplary embodiment, Figure 6 As shown, a cloud platform dialing device 600 is provided, including: a request allocation module 602, a request response module 604, a fault switching module 606 and a data synchronization module 608, wherein:

[0124] The request allocation module 602 is used to receive a dialing request, determine a target allocation center corresponding to the dialing request from multiple data centers, and use any data center among the multiple data centers except the target allocation center as a disaster recovery data center of the target allocation center.

[0125] The request response module 604 is used to send a simulation test request to the cloud platform under test through the target distribution center based on the dial test request, and store the request result of the simulation test request returned by the cloud platform under test in the main database of the target distribution center.

[0126] The fault switching module 606 is used to send a simulation test request to the cloud platform being tested based on the test request through the disaster recovery data center when a failure is detected in the target distribution center, and store the request result of the simulation test request in the backup database of the disaster recovery data center.

[0127] The data synchronization module 608 is used to synchronize the request results stored in the backup database of the disaster recovery data center to the primary database of the target distribution center when the target distribution center failure recovery is detected, and distribute subsequent dialing test requests to the target distribution center for processing.

[0128] In an exemplary embodiment, each data center is deployed with an edge node; the dial test request carries the communication address of the system to be tested and the test frequency. The request response module 604 includes an address generation unit, which is used to generate a corresponding target stream address according to the communication address through the edge node of the target distribution center, and send a device access request to the cloud platform to be tested based on the target stream address, and the device access request is used to instruct the cloud platform to read the monitoring video stream through the target stream address; a request sending unit, which is used to send a simulation test request to the cloud platform to be tested according to the test frequency through the edge node of the target distribution center, and the simulation test request is used to instruct the cloud platform to be tested to return a request result corresponding to the simulation test request based on the monitoring video stream; a result receiving unit, which is used to receive the request result through the edge node of the target distribution center, and store the request result in the main database of the target distribution center.

[0129] In an exemplary embodiment, each data center is also deployed with a central node; the dial test request carries a preset alarm threshold. The cloud platform dial test device 600 also includes an alarm detection module, which is used to send the request result to the central node of the target distribution center through the edge node of the target distribution center; the central node of the target distribution center detects the request result based on the alarm threshold, and generates an alarm detection result corresponding to the request result; when the alarm detection result reaches the alarm threshold, an alarm message corresponding to the alarm detection result is sent to the client.

[0130] In an exemplary embodiment, the request allocation module 602 is further used to verify the dialing test request and generate a verification result of the dialing test request; if the verification result shows that the request parameters are valid, the dialing test request is allocated to a target allocation center.

[0131] In an exemplary embodiment, the request allocation module 602 is further used to obtain load data of each data center; and determine a target allocation center from multiple data centers based on the load data.

[0132] In an exemplary embodiment, the cloud platform dialing device 600 further includes a data synchronization module for synchronizing the data stored in the primary database of each data center with the data stored in the backup database of any data center when the data synchronization mechanism is triggered.

[0133] Each module in the above-mentioned cloud platform dialing device 600 can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0134] In an exemplary embodiment, a dialing test system is also provided. The dialing test system includes a dialing test management system, a first data center, and a second data center. The dialing test management system can be used to implement the cloud platform dialing test method in any of the above embodiments.

[0135] Exemplarily, the dial test management system can be used to receive a dial test request, determine a target distribution center corresponding to the dial test request from the first data center and the second data center, and use another data center other than the target distribution center as a disaster recovery data center for the target distribution center. A simulation test request is sent to the cloud platform being dialed based on the dial test request by the target distribution center, and the request result of the simulation test request returned by the cloud platform being dialed is stored in the main database of the target distribution center. In the case where a failure of the target distribution center is detected, a simulation test request is sent to the cloud platform being dialed based on the dial test request by the disaster recovery data center, and the request result of the simulation test request is stored in the backup database of the disaster recovery data center. In the case where the failure recovery of the target distribution center is detected, the request result stored in the backup database of the disaster recovery data center is synchronized to the main database of the target distribution center, and subsequent dial test requests are distributed to the target distribution center for processing.

[0136] In an exemplary embodiment, Figure 7 As shown, a schematic diagram of a dialing test system 700 is provided, including a dialing test management system 720, a first data center 740 and a second data center 760.

[0137] The dialing management system 720 includes a load balancing module 722 , a monitoring and alarm module 724 , and a service switching module 726 .

[0138] The first data center 740 is provided with a dialing management service 742 and a first database 744. The second data center 760 is provided with a dialing management service 762 and a second database 764.

[0139] Exemplarily, after receiving the dial test request, the dial test management system 720 can select the target distribution center of the dial test request from the first data center 740 and the second data center 760 according to the load data through the load balancing module 722, and distribute the dial test request to the target distribution center. The dial test management service of the target distribution center is used to implement the dial test of the cloud platform being tested, and the obtained request result is stored in the database of the target distribution center.

[0140] The dial test management system 720 can monitor the operation status of the first data center 740 and the second data center 760 in real time through the monitoring alarm module 724. When a failure is detected in the target distribution center, the service switching module 726 switches the dial test request to another data center for processing.

[0141] Optionally, in some embodiments, the first data center 740 and the second data center 760 can be deployed in two different geographical areas. Both the first data center 740 and the second data center 760 are deployed using a cloud-edge architecture, including a central node and an edge node. A data synchronization mechanism is implemented between the first data center 740 and the second data center 760 to synchronize data in real time or periodically.

[0142] Optionally, in some embodiments, Figure 8 As shown, the first database 744 of the first data center 740 includes a main database 7442 and a backup database 7444. The second database 764 of the second data center 760 includes a main database 7642 and a backup database 7644. The main database 7442 of the first database 744 performs data synchronization with the backup database 7644 of the second database 764. The backup database 7444 of the first database 744 performs data synchronization with the main database 7642 of the second database 764.

[0143] Those skilled in the art will appreciate that the structures shown in the drawings in the above specification are merely block diagrams of partial structures related to the scheme of the present application, and do not constitute a limitation on the computer device to which the scheme of the present application is applied. The specific computer device may include more or fewer components than those shown in the drawings, or combine certain components, or have a different arrangement of components.

[0144] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0145] In an exemplary embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0146] In an exemplary embodiment, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0147] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0148] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0149] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A cloud platform dialing method, characterized in that: The method comprises: receiving a dial test request, determining a target distribution center corresponding to the dial test request from a plurality of data centers, and using any data center among the plurality of data centers except the target distribution center as a disaster recovery data center of the target distribution center; Sending a simulation test request to the cloud platform under test through the target distribution center based on the test request, and storing the request result of the simulation test request returned by the cloud platform under test in the main database of the target distribution center; In the case where a failure of the target distribution center is detected, the disaster recovery data center sends the simulation test request to the cloud platform being tested based on the dial test request, and stores the request result of the simulation test request in the backup database of the disaster recovery data center; When the target distribution center failure recovery is detected, the request result stored in the backup database of the disaster recovery data center is synchronized to the primary database of the target distribution center, and subsequent dialing requests are distributed to the target distribution center for processing.

2. The method according to claim 1, characterized in that Each of the data centers is deployed with an edge node; the dial test request carries the communication address of the system to be tested and the test frequency; The step of sending a simulation test request to the dialed cloud platform based on the dial test request through the target distribution center, and storing the request result of the simulation test request returned by the dialed cloud platform in the main database of the target distribution center includes: Generate a corresponding target stream address according to the communication address through the edge node of the target distribution center, and send a device access request to the dialed cloud platform based on the target stream address, wherein the device access request is used to instruct the dialed cloud platform to read the monitoring video stream through the target stream address; Sending the simulation test request to the dialed cloud platform according to the test frequency through the edge node of the target distribution center, wherein the simulation test request is used to instruct the dialed cloud platform to return a request result corresponding to the simulation test request based on the monitoring video stream; The request result is received through the edge node of the target distribution center, and the request result is stored in the main database of the target distribution center.

3. The method according to claim 2, characterized in that Each of the data centers is also deployed with a central node; the dial test request carries a preset alarm threshold; The method further comprises: Sending the request result to the central node of the target distribution center through the edge node of the target distribution center; The request result is detected based on the alarm threshold by the central node of the target distribution center, and an alarm detection result corresponding to the request result is generated; When the alarm detection result reaches the alarm threshold, alarm information corresponding to the alarm detection result is sent to the client.

4. The method according to claim 1, characterized in that: Before sending a simulation test request to the dialed cloud platform based on the dial test request through the target distribution center, and storing the request result of the simulation test request returned by the dialed cloud platform in the main database of the target distribution center, the method further includes: Verifying the dial test request and generating a verification result of the dial test request; When the verification result shows that the request parameters are valid, the dialing request is distributed to the target distribution center.

5. The method according to claim 1, characterized in that The receiving the dial test request and determining a target distribution center corresponding to the dial test request from a plurality of data centers includes: Obtaining load data of each of the data centers; The target distribution center is determined from the plurality of data centers according to the load data.

6. The method according to claim 1, characterized in that The method further comprises: When the data synchronization mechanism is triggered, the data stored in the primary database of each data center is synchronized with the data stored in the standby database of any data center.

7. A cloud platform dialing device, characterized in that: The device comprises: A request allocation module, configured to receive a dial test request, determine a target allocation center corresponding to the dial test request from a plurality of data centers, and use any data center among the plurality of data centers except the target allocation center as a disaster recovery data center of the target allocation center; A request response module, used for sending a simulation test request to the cloud platform under test through the target distribution center based on the test request, and storing the request result of the simulation test request returned by the cloud platform under test in the main database of the target distribution center; A fault switching module is used to send the simulation test request to the cloud platform being tested through the disaster recovery data center based on the dial test request when a fault is detected in the target distribution center, and store the request result of the simulation test request in the backup database of the disaster recovery data center; The data synchronization module is used to synchronize the request results stored in the backup database of the disaster recovery data center to the main database of the target distribution center when the target distribution center detects failure recovery, and distribute subsequent dialing requests to the target distribution center for processing.

8. A dialing test system, characterized in that: The dial test system includes a dial test management system, a first data center and a second data center; The dial test management system is used for: receiving a dial test request, determining a target distribution center corresponding to the dial test request from the first data center and the second data center, and using another data center other than the target distribution center as a disaster recovery data center for the target distribution center; Sending a simulation test request to the cloud platform under test through the target distribution center based on the test request, and storing the request result of the simulation test request returned by the cloud platform under test in the main database of the target distribution center; In the case where a failure of the target distribution center is detected, the disaster recovery data center sends the simulation test request to the cloud platform being tested based on the dial test request, and stores the request result of the simulation test request in the backup database of the disaster recovery data center; When the target distribution center failure recovery is detected, the request result stored in the backup database of the disaster recovery data center is synchronized to the primary database of the target distribution center, and subsequent dialing requests are distributed to the target distribution center for processing.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Dial testing method and congestion control method of wireless local area network and wireless local area network system

    CN103354650A

  • Dial testing method, dial testing system, and computational node

    CN107005441A

  • System and method for automatically switching flow based on dual-active data center

    CN110134553A

  • Dial testing method, system and device, electronic equipment and storage medium

    CN115514663A

  • Storage fault recovery test method and device, electronic equipment and readable storage medium

    CN117234830A