A high availability method and system for virtual targets based on cloud shooting range
By monitoring the status of virtual targets in a cloud range in real time and switching the backup virtual targets in the event of a failure, the problem of difficult to achieve high availability of virtual targets is solved, and the stability and reliability of the power system network range is improved.
Patent Information
- Application Number
- CN202411345778.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2024-12-20
- Estimated Expiration
- 2044-09-26
AI Technical Summary
In the power system network shooting range, the high availability of virtual targets is difficult to achieve, resulting in difficulties in scenario construction, cost control and content operation, and affecting the stability and reliability of cloud shooting ranges.
By monitoring the working status of the virtual target in a cloud shooting range in real time, copying the metadata of the requested file and storing it in multiple backup virtual targets, multiple backups of data blocks are realized, and quickly switching the backup virtual target when the main virtual target fails New primary virtual target, maintaining data consistency and system recovery.
Improves the high availability of virtual targets, reduces system downtime, and ensures the continuous availability and stability of power terminals to the virtual target environment, especially during critical security testing and training.
Smart Images

Figure CN118869459B_ABST
Abstract
Description
Technical Field
[0001] The present invention proposes a high-availability method and system for a virtual target based on a cloud shooting range, and relates to the technical field of power system information security. Background Art
[0002] Virtual targets play an important role in the power system network range. They can be simulated power system control nodes, data transmission paths, or specific power system equipment. Through these virtual targets, various network attacks and defense strategies can be simulated to improve the power system's ability to respond to network security threats.
[0003] In the construction of the power system network range, the construction of virtual targets faces challenges such as difficult scene construction, difficult cost control, and difficult content operation. In order to overcome these challenges, some companies and research institutions are developing more advanced simulation technologies and tools to achieve more efficient and economical virtual range operations. For example, through digital modeling, peripheral simulation, and virtual-real networking technologies, the key links and process flows of the power system can be reproduced more flexibly.
[0004] High availability (HA) of virtual targets means that in the cloud range environment, virtual targets can provide services continuously and stably, and can keep running without interruption even in the case of partial virtual target failure, software problems or system upgrades. A high-availability system can quickly restore services after a failure, which means it has high availability. Therefore, the ability of a high-availability system to provide external services is accurately measured by HA.
[0005] Virtual targets with high availability are critical to ensuring the stability and reliability of the cloud range, especially when conducting critical safety tests, training, and drills, ensuring that power terminals can always access the required target environment. Summary of the invention
[0006] In order to solve the above technical problems, the present invention proposes a high availability method for virtual targets based on a cloud shooting range, comprising the following steps:
[0007] S1. The power terminal sends an operation request to the high-availability system of the virtual target, and the main virtual target corresponding to the power terminal receives metadata of the request file;
[0008] S2, copy the metadata of the requested file N-1 times to form N-1 data blocks, and store them in N-1 spare virtual targets respectively;
[0009] S3, monitor the working status of all main virtual targets in real time. If the main virtual target fails, the high-availability system of the virtual target sends a request to select the next main virtual target to all backup virtual targets corresponding to the main virtual target. The selected backup virtual target is switched to the new main virtual target, and the metadata of the request file is received from the power terminal. The original main virtual target is switched to the backup virtual target and waits to be repaired;
[0010] S4. After the selected backup virtual target is switched to the new primary virtual target, it sends a data consistency request to the cloud target range virtual target topology to keep the status of all metadata and data blocks consistent, and update the category information of all virtual targets in the cloud target range virtual target topology.
[0011] Furthermore, in the step S1, the power terminals are sorted in descending order according to the size of the metadata of the request file of the power terminal, and the main virtual targets are sorted in descending order according to the size of the load condition weight of each main virtual target, and a one-to-one correspondence between the main virtual targets and the power terminals is established in sequence according to the sorting.
[0012] Further, the load characterization value of the main virtual target is calculated :
[0013] ;
[0014] Among them, Z is the utilization rate of the main virtual target; L is the consumption rate of the communication link bandwidth of the main virtual target;
[0015] Assume that the load representation value of the jth primary virtual target is , then the load weight of the jth primary virtual target is :
[0016] .
[0017] Furthermore, in step S3, the selection of the new main virtual target is determined according to the load strength of all backup virtual targets. Assume that the load strength G of the i-th backup virtual target is i for:
[0018]
[0019] Among them, G i represents the load intensity of the i-th backup virtual target; Indicates the working multi-line degree of the i-th backup virtual target; represents the occupied target operation capacity of the i-th standby virtual target; t i represents the current task completion time of the i-th backup virtual target; J irepresents the measured power of the i-th backup virtual target; sigmoid represents the normalization function.
[0020] Furthermore, in step S3, the monitoring system in the high-availability system sends test signals to all main virtual targets simultaneously through the communication monitoring branch according to a preset period. When the monitoring system does not receive a return signal from a main virtual target for two consecutive preset periods, it is determined that the main virtual target has a fault.
[0021] The present invention also proposes a high-availability system of a virtual target based on a cloud range, which is used to implement the high-availability method of the virtual target based on the cloud range. The high-availability system includes a cloud range virtual target topology composed of multiple virtual targets, and the multiple virtual targets include a main virtual target and a backup virtual target. The main virtual target is used to store metadata of the request file uploaded by the power terminal, and the backup virtual target is used to store data blocks copied from the metadata. The load conditions of all main virtual targets are monitored in real time by a monitoring system to determine whether the main virtual target fails.
[0022] If a main virtual target in the cloud target range virtual target topology fails, the high-availability system sends a request to select the next main virtual target to all backup virtual targets corresponding to the main virtual target. The selected backup virtual target is switched to the new main virtual target and receives the metadata of the request file from the power terminal. The original main virtual target is switched to the backup virtual target and waits to be repaired.
[0023] Furthermore, the power terminal issues an operation request to the high-availability system, and the corresponding main virtual target receives the metadata of the request file. The metadata of the request file is copied N-1 times to form N-1 data blocks. The N-1 data blocks are respectively stored in different backup virtual targets. The N-1 backup virtual targets synchronize data consistency when the metadata is modified or periodically to keep the status of all metadata and data blocks consistent, and update the category information of all virtual targets in the cloud target range virtual target topology.
[0024] Furthermore, the same standby virtual target can store both the data block I backed up by the first primary virtual target and the data block J backed up by the second primary virtual target, and the load condition of each standby virtual target is different.
[0025] Compared with the prior art, the present invention has the following beneficial technical effects:
[0026] The power terminal sends an operation request to the high-availability system of the virtual target, and the corresponding main virtual target receives the metadata of the requested file; the metadata of the requested file is copied into multiple data blocks and stored in multiple alternative virtual targets respectively, thereby realizing the rapid backup of data uploaded by the power terminal.
[0027] Monitor the working status of all main virtual targets in real time. If a main virtual target in the cloud range virtual target topology fails, the high-availability system of the virtual target will send a request to select the next main virtual target to all the backup virtual targets corresponding to the main virtual target. The selected backup virtual target will switch to the new main virtual target and receive the operation request from the power terminal. The present invention can improve the high availability of the target system when a main virtual target fails, quickly recover data from the backup virtual target, realize fast failover and recovery, reduce system downtime, and improve the availability of virtual targets. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0029] Figure 1 It is a structural schematic diagram of a high-availability system of a virtual target based on a cloud shooting range of the present invention;
[0030] Figure 2 It is a schematic diagram of the working process of the monitoring system of the present invention;
[0031] Figure 3 It is a flow chart of a high availability method of a virtual target based on a cloud shooting range of the present invention;
[0032] Figure 4 It is a load intensity monitoring diagram of three spare virtual targets of the present invention;
[0033] Figure 5 It is a schematic diagram of the structure of multiple backup virtual targets and multiple main virtual targets of the present invention. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0035] In the drawings of the specific embodiments of the present invention, in order to better and more clearly describe the working principles of the various components in the system, the connection relationship of the various parts in the device is shown, which only clearly distinguishes the relative position relationship between the various components, and cannot constitute a limitation on the signal transmission direction, connection sequence and structural size, size and shape of each part within the component or structure.
[0036] Example 1
[0037] like Figure 1 The structure diagram of the high-availability system of the virtual target based on the cloud range of the present invention is shown, and the high-availability system of the virtual target based on the cloud range includes a cloud range virtual target topology composed of multiple virtual targets. In the cloud range virtual target topology, all virtual targets are equal and provide data services for the high-availability system of the virtual targets together.
[0038] The power terminal uploads the request file to the high-availability system of the virtual target. The high-availability system receives the request file uploaded by the power terminal and performs preliminary verification, such as checking whether the file format and size meet the requirements, and saves the request file to the storage server, and saves the metadata of the request file to the virtual target topology of the cloud target range.
[0039] In order to ensure the security and reliability of metadata, in the cloud range virtual target topology, the metadata of the requested file is replicated N-1 times to form N-1 data blocks, which are stored in different backup virtual targets respectively.
[0040] In the cloud range virtual target topology, there are mainly two types of virtual targets: primary virtual target and backup virtual target. In the cloud range virtual target topology, only one virtual target is defined as the primary virtual target, and the virtual targets storing data blocks are defined as backup virtual targets.
[0041] Primary virtual target: responsible for processing the request files uploaded by the power terminal, maintaining the latest status of the replica data blocks, and managing the synchronization of metadata and replica data blocks. The primary virtual target is the source of metadata and replica data blocks, bears a high write load, and needs to maintain the consistency and integrity of metadata. However, once a failure occurs, the high-availability system will rely on the backup virtual target to restore data services.
[0042] Backup virtual target: mainly stores the replica data blocks of the metadata of the primary virtual target, and provides metadata writing services when it is selected as the new primary virtual target. The backup virtual target does not directly process the request files uploaded by the power terminal, but will take over its role when the primary virtual target fails, providing data redundancy and fault recovery capabilities of the high-availability system. By storing replica data blocks, the backup virtual target can ensure high availability and continuity of data when the primary virtual target fails.
[0043] The communication between all virtual targets is achieved through the remote control protocol. For example, each master virtual target uses the remote control protocol to send corresponding data consistency requests to all backup virtual targets. Each master virtual target will create a one-to-many connection channel with its corresponding multiple backup virtual target systems.
[0044] All power terminals use the remote control protocol to send requests to the high-availability system of the virtual target. Each master virtual target corresponds to a power terminal. After receiving an operation request from the corresponding power terminal, each master virtual target will create a new thread and execute the requested operation.
[0045] The power terminal sends an operation request to the high-availability system of the virtual target. Only the corresponding primary virtual target can receive the metadata of the requested file and replicate the metadata of the requested file in N-1 copies. The N-1 data blocks are stored in N-1 backup virtual targets respectively. The N-1 backup virtual targets synchronize data consistency when the metadata is modified or periodically to keep the status of all metadata and data blocks consistent, and update the category information of all virtual targets in the cloud target range virtual target topology.
[0046] Since the communication between all virtual targets is also achieved through the remote control protocol, the load conditions of all main virtual targets in the cloud target range virtual target topology are monitored in real time by the monitoring system, and the monitoring system monitors the working status of all main virtual targets in the cloud target range virtual target topology in real time.
[0047] The high availability system of the virtual target also has a monitoring system, which sends test signals to all main virtual targets at the same time according to a preset period through the communication monitoring branch of the cloud range virtual target topology. When the monitoring system does not receive a return signal from a main virtual target for two consecutive preset periods, it is determined that the main virtual target has a fault. Figure 2 As shown, the specific working process of the monitoring system is as follows:
[0048] Preset cycle: The monitoring system first sets a fixed time period, namely the preset cycle, for regularly performing communication monitoring tasks.
[0049] Sending test signals: At the beginning of each preset cycle, the monitoring system will simultaneously send test signals to all primary virtual targets. The test signals can be simple heartbeat packets, status query requests, or other data packets that can trigger a response from the primary virtual targets.
[0050] Waiting for return signal: After sending the test signal, the monitoring system will enter a waiting state, waiting for the return signal of each main virtual target. The return signal contains the current status information of the main virtual target or the response time confirming the receipt of the test signal.
[0051] Fault judgment: If the monitoring system does not receive a return signal from a primary virtual target within two consecutive preset cycles, then according to the preset fault judgment logic, it can be considered that the primary virtual target has a fault.
[0052] If a main virtual target in the cloud target range virtual target topology fails, the high availability system of the virtual target will send a request to select the next main virtual target to all the backup virtual targets corresponding to the main virtual target. The selected backup virtual target will switch to the new main virtual target and receive operation requests from the power terminal. The original main virtual target will be switched to the backup virtual target and wait to be repaired.
[0053] After the selected backup virtual target switches to the new primary virtual target, it sends consistency requests to other backup virtual targets periodically or according to specific strategies, and updates the category information of all virtual targets in the cloud target range virtual target topology to keep the status of all data blocks synchronized. This process also ensures that the data blocks stored on the backup virtual target are the latest, thereby providing reliable data recovery services when the primary virtual target fails.
[0054] When the primary virtual target does not fail, the backup virtual target is in standby state and does not directly process the request file of the power terminal. However, when the high-availability system initiates a request to select the backup virtual target as the new primary virtual target, the high-availability system will calculate the load intensity of all backup virtual targets according to the load balancing strategy. The selected backup virtual target needs to be able to quickly take over the role of the primary virtual target and provide request services to the power terminal.
[0055] Example 2
[0056] The present invention also proposes a flow chart of a high availability method of a virtual target based on a cloud range, such as Figure 3 As shown, the high availability method includes the following steps:
[0057] S1. The power terminal sends an operation request to the high-availability system of the virtual target, and the main virtual target corresponding to the power terminal receives the metadata of the request file.
[0058] The correspondence between the main virtual target and the power terminal is established according to the size of the metadata of the request file of the power terminal and the size of the load condition weight of each main virtual target, so that the high-availability system can quickly obtain the main virtual target corresponding to the power terminal.
[0059] The load of the primary virtual target is characterized by the primary virtual target usage rate and the consumption rate of the communication link bandwidth of the primary virtual target. Specifically, the load characterization value of the primary virtual target is calculated by the following steps:
[0060] The calculation of the utilization rate of the main virtual target and the consumption rate of the communication link bandwidth of the main virtual target are shown in formulas (1) and (2) respectively:
[0061] The main virtual target usage rate Z is:
[0062] Z = (actual space occupied by the main virtual target / total space of the main virtual target) × 100% (1);
[0063] The consumption rate L of the communication link bandwidth of the primary virtual target is:
[0064] L = (actual bandwidth occupied space / total bandwidth value) × 100% (2);
[0065] For example, the actual space occupied by a main virtual target is 500GB, the total space of the main virtual target is 1000GB, the actual bandwidth occupied by the communication link of the main virtual target is 50Mbps, and the total bandwidth of the communication link of the main virtual target is 100Mbps. Based on the above data, it can be calculated:
[0066] Main virtual target usage rate Z:
[0067] Z = (500GB / 1000GB) × 100% = 50%;
[0068] The consumption rate L of the communication link bandwidth of the main virtual target:
[0069] L=(50Mbps / 100Mbps)×100%=50%;
[0070] In a preferred embodiment, if the total space of the main virtual target cannot be determined, the available space of the main virtual target can be used to calculate the main virtual target usage rate. The calculation method of this embodiment focuses more on the remaining space of the main virtual target rather than the total space of the main virtual target.
[0071] Therefore, the calculation formula for the main virtual target utilization rate can be adjusted as follows:
[0072] Z=(actual space occupied by the main virtual target / available space of the main virtual target)×100%.
[0073] Finally, the load characterization value of the main virtual target is calculated using formula (3) according to the main virtual target usage rate Z and the consumption rate L of the communication link bandwidth of the main virtual target.
[0074] Load characterization value of the main virtual target :
[0075] (3);
[0076] And use the state value Determine the load condition weight of each main virtual target.
[0077] Assume that the load representation value of the jth primary virtual target is , then the load weight of the jth primary virtual target is :
[0078] .
[0079] When the load condition weight of a main virtual target exceeds a preset weight, it is necessary to adjust the load state of the main virtual target and recalculate the load condition weight of the main virtual target.
[0080] In the cloud range virtual target topology, monitoring the load condition weight of the main virtual target and adjusting its load status as needed is the key to ensuring the balance and efficient operation of the high-availability system. When the load condition weight of a main virtual target exceeds the preset weight, it means that the virtual target is under too high a load or pressure, which will affect the performance and stability of the main virtual target, and may even affect the performance of the entire high-availability system. When it is monitored that the load condition weight of a main virtual target exceeds the preset weight, the high-availability system should immediately trigger a response mechanism, which includes sending an alarm to notify the system administrator and automatically adjusting the load status of the virtual target.
[0081] After adjusting the load status of the primary virtual target, the high availability system should recalculate the load status weight of the primary virtual target to confirm whether the adjustment is effective. If the status weight is still too high, the primary virtual target may need to be switched.
[0082] Finally, according to the size of the metadata of the request file of the power terminal, the power terminals are sorted in descending order. At the same time, according to the size of the load condition weight of each main virtual target, the main virtual targets are sorted in descending order. According to the sorting, a one-to-one correspondence between the main virtual targets and the power terminals is established in sequence, that is, the first power terminal corresponds to the first main virtual target, the second power terminal corresponds to the second main virtual target, and so on, so that the main virtual target corresponding to each power terminal can be quickly obtained.
[0083] S2. Copy the metadata of the requested file N-1 times to form N-1 data blocks, which are stored in N-1 standby virtual targets respectively.
[0084] To ensure the security and reliability of metadata, in the cloud range virtual target topology, the metadata of the requested file is replicated N-1 times to form N-1 data blocks, which are stored in different backup virtual targets.
[0085] S3. Monitor the working status of all main virtual targets in real time. If a main virtual target in the cloud target range virtual target topology fails, the high-availability system of the virtual target will send a request to select the next main virtual target to all backup virtual targets corresponding to the main virtual target. The selected backup virtual target will switch to the new main virtual target and receive the metadata of the request file from the power terminal. The original main virtual target will be switched to the backup virtual target and wait to be repaired.
[0086] In a preferred embodiment, the selection of a new primary virtual target is determined based on the load strength of all backup virtual targets, so the load strength of all backup virtual targets needs to be calculated.
[0087] Assume that the load intensity G of the i-th backup virtual target is i for:
[0088]
[0089] Among them, G i represents the load intensity of the i-th backup virtual target; Indicates the working multi-line degree of the i-th backup virtual target, which is used to measure the number of main virtual targets corresponding to the backup virtual target; represents the occupied target operation capacity of the ith standby virtual target; t i represents the current task completion time of the i-th backup virtual target; J i represents the measured power of the i-th backup virtual target; sigmoid represents the normalization function.
[0090] represents the predicted completion time of the i-th backup virtual target and the current task completion time t i The difference between the load intensity of the backup virtual target G i The larger the value of is, the more likely it is that the ith backup virtual target is under heavy load. By using the sigmoid function for normalization, its value is normalized to the [0,1] interval, as shown in Figure 4 This is a load intensity monitoring diagram made using three backup virtual targets as an example.
[0091] It should be emphasized that if Figure 5 As shown in the figure, the same standby virtual target can correspond to multiple main virtual targets, that is, the standby virtual target can store both the data block I backed up by the first main virtual target and the data block J backed up by the second main virtual target. Therefore, the load situation of each standby virtual target is different. According to the above calculation, the load intensity G of the i-th standby virtual target is i The larger it is, the less likely it is to become a new primary virtual target.
[0092] S4. After the selected standby virtual target is switched to the new primary virtual target, it sends a data consistency request to the cloud range virtual target topology to keep the status of all metadata and data blocks consistent. These requests may include the latest metadata snapshot, data block status information or synchronization timestamp, and update the category information of all virtual targets in the cloud range virtual target topology, that is, each virtual target is still a standby virtual target at the current moment or has been switched to a new primary virtual target. Once the synchronization of metadata and data block status is completed, the new primary virtual target notifies all standby virtual targets that the synchronization is complete, and the standby virtual targets confirm receipt of the notification and update their internal status.
[0093] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0094] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A high availability method for virtual targets based on a cloud shooting range, characterized in that: The steps include: S1. The power terminal sends an operation request to the high-availability system of the virtual target, and the main virtual target corresponding to the power terminal receives metadata of the request file; S2, copy the metadata of the requested file N-1 times to form N-1 data blocks, and store them in N-1 spare virtual targets respectively; S3, monitor the working status of all main virtual targets in real time. If the main virtual target fails, the high-availability system of the virtual target sends a request to select the next main virtual target to all backup virtual targets corresponding to the main virtual target. The selected backup virtual target is switched to the new main virtual target, and the metadata of the request file is received from the power terminal. The original main virtual target is switched to the backup virtual target and waits to be repaired; The selection of the new main virtual target is determined by the load intensity of all backup virtual targets. Suppose the load intensity of the i-th backup virtual target is G i for: Among them, G i represents the load intensity of the i-th backup virtual target; Indicates the working multi-line degree of the i-th backup virtual target; represents the occupied target operation capacity of the i-th standby virtual target; t i represents the current task completion time of the i-th backup virtual target; J i represents the measured power of the ith backup virtual target; sigmoid represents the normalization function; S4. After the selected backup virtual target is switched to the new primary virtual target, it sends a data consistency request to the cloud target range virtual target topology to keep the status of all metadata and data blocks consistent, and update the category information of all virtual targets in the cloud target range virtual target topology.
2. The high availability method of virtual targets based on cloud shooting range according to claim 1, characterized in that: In the step S1, the power terminals are sorted in descending order according to the size of the metadata of the request file of the power terminal, and the main virtual targets are sorted in descending order according to the size of the load condition weight of each main virtual target, and a one-to-one correspondence between the main virtual targets and the power terminals is established in sequence according to the sorting.
3. The high availability method of virtual targets based on cloud shooting range according to claim 2, characterized in that: Calculate the load characterization value of the main virtual target : ; Where Z is the utilization rate of the main virtual target; L is the consumption rate of the communication link bandwidth of the main virtual target; Let the load representation value of the jth main virtual target be , then the load weight of the jth primary virtual target is : .
4. The high availability method of virtual targets based on cloud shooting range according to claim 1, characterized in that: In step S3, the monitoring system in the high-availability system sends test signals to all main virtual targets simultaneously according to a preset period through the communication monitoring branch. When the monitoring system does not receive a return signal from a main virtual target for two consecutive preset periods, it is determined that the main virtual target has a fault.
5. A high-availability system for virtual targets based on a cloud shooting range, characterized in that: A method for realizing a high availability of a virtual target based on a cloud range as described in any one of claims 1 to 4, wherein the high availability system comprises a cloud range virtual target topology composed of a plurality of virtual targets, wherein the plurality of virtual targets comprises a primary virtual target and a backup virtual target, wherein the primary virtual target is used to store metadata of a request file uploaded by a power terminal, and the backup virtual target is used to store data blocks copied from the metadata, and the load conditions of all primary virtual targets are monitored in real time by a monitoring system to determine whether a primary virtual target fails; If a main virtual target in the cloud target range virtual target topology fails, the high-availability system sends a request to select the next main virtual target to all backup virtual targets corresponding to the main virtual target. The selected backup virtual target is switched to the new main virtual target and receives the metadata of the request file from the power terminal. The original main virtual target is switched to the backup virtual target and waits to be repaired.
6. The high-availability system for virtual targets based on a cloud shooting range according to claim 5, characterized in that: The power terminal sends an operation request to the high-availability system, and the corresponding main virtual target receives the metadata of the request file. The metadata of the request file is copied N-1 times to form N-1 data blocks. The N-1 data blocks are respectively stored in different backup virtual targets. The N-1 backup virtual targets synchronize data consistency when the metadata is modified or periodically to keep the status of all metadata and data blocks consistent, and update the category information of all virtual targets in the cloud target range virtual target topology.
7. The high-availability system for virtual targets based on a cloud shooting range according to claim 5, characterized in that: The same backup virtual target can store both the data block I backed up by the first primary virtual target and the data block J backed up by the second primary virtual target, and the load condition of each backup virtual target is different.
