Data self-healing method for abnormal Cubefs file system in onboard computing nodes

By deploying the management and control service module on the Cubefs file system, data migration and recovery after the onboard computing node is powered off is realized, data access problems caused by file system abnormalities are solved, and business continuity and data availability are ensured.

CN118394733BActive Publication Date: 2024-10-22ZHEJIANG LAB
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410871608.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-10-22
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

In distributed environments such as satellite communications and data centers, the Cubefs file system cannot provide services due to the power outage of onboard computing nodes, affecting business operations, and the data is inaccessible. It lacks a self-healing mechanism to ensure data migration and recovery.

Method used

Deploy the management service module and control service module on the Cubefs file system to monitor device status and control node status, determine whether applications need to be migrated, trigger the data migration mechanism and data relocation mechanism, and ensure automatic data migration and recovery after the node is powered off.

Benefits of technology

It realizes data self-healing in the power-off scenario of space-based computing nodes, ensuring smooth application migration and data recovery, maintaining business continuity and high data availability, and enhancing data availability and reliability of space-based computing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118394733B_ABST
    Figure CN118394733B_ABST
Patent Text Reader

Abstract

The present invention discloses a data self-healing method in an abnormal scenario of a Cubefs file system when a satellite computing node is powered off, including: deploying a management service module in the file system and deploying a control service module in the satellite computing node; when the satellite computing node needs to be powered off, a data migration mechanism is triggered before application migration, data is automatically migrated to a designated storage area, and applications are migrated to other satellite computing nodes to ensure continuous access to data in a new environment after application migration, maintaining business continuity and high data availability; after the satellite computing node is powered on again, the file system gradually resumes operation, and data is restored to the original file system directory through a data migration mechanism, achieving seamless docking of application data with the file system. The present invention effectively responds to the challenges brought by the power-off of satellite computing nodes through an automated and intelligent data processing strategy, enhances the availability and reliability of data in space-based computing, and provides a stable operating basis for satellite applications in complex scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data storage and management, and in particular to a data self-healing method in a scenario where an electrical Cubefs file system is abnormal in a satellite computing node. Background Art

[0002] In distributed environments such as satellite communications and data centers, high-performance distributed file systems such as Cubefs are often used to store and manage large amounts of application data. However, due to the particularity of satellite equipment, such as energy management requirements and environmental factors, it is necessary to power off the onboard computing nodes, which in turn affects the normal operation of the file system. When the number of onboard computing nodes of the Cubefs distributed file system is lower than the threshold required to maintain the file system service, the file system may not be able to provide services, resulting in inaccessibility of related data after the migration of key applications, seriously affecting business operations. Therefore, there is an urgent need for a self-healing method that can ensure safe data migration and smooth application switching in the scenario where the onboard computing nodes are powered off, and realize data migration back after the Cubefs distributed file system is restored. Summary of the invention

[0003] The purpose of the present invention is to provide a data self-healing method in the case of abnormal Cubefs file system under a satellite computing node in view of the deficiencies in the prior art.

[0004] The objective of the present invention is achieved through the following technical solutions: A first aspect of an embodiment of the present invention provides a data self-healing method in an abnormal scenario of an electric Cubefs file system in a satellite computing node, comprising the following steps:

[0005] (1) Deploy a management service module on the Cubefs file system to manage the entire data migration process, and deploy a control service module on the onboard computing node to monitor the device status and control the status of the onboard computing node;

[0006] (2) When the onboard computing node needs to be powered off due to energy consumption and space radiation factors, determine whether the application running on the onboard computing node needs to be migrated to other onboard computing nodes. If the application running on the onboard computing node needs to be migrated to other onboard computing nodes, directly jump to step (3); otherwise, the application running on the onboard computing node is directly powered off after being migrated to other onboard computing nodes;

[0007] (3) Assuming that the onboard computing node where the application is located is powered off, determine whether the file system can work normally based on the number of currently online onboard computing nodes. If the file system can work normally, there is no need to trigger the data migration mechanism before application migration. The application is directly migrated to other onboard computing nodes, and then the onboard computing node where the application is located is powered off. Otherwise, the data migration mechanism is triggered, and the entire data migration process of the data migration mechanism is controlled by the management service module. After the data migration is completed, the application is migrated to other onboard computing nodes, and then the onboard computing node where the application is located is powered off.

[0008] (4) After the onboard computing node is powered on again, it determines whether the file system can work normally based on the number of currently online onboard computing nodes. If the file system can work normally, the cluster onboard computing node restores and rebuilds the Cubefs file system and triggers the data migration mechanism. The management service module controls the entire data migration process of the data migration mechanism to restore the application data to the Cubefs file system. Otherwise, it ends directly without performing data migration.

[0009] Furthermore, the management service module includes a Cubefs cluster management controller, a first data acquisition controller, a data migration controller, a first data verification controller and a first device management controller; wherein the Cubefs cluster management controller is used to obtain the status of the onboard computing nodes in the Cubefs cluster through the API interface opened by the Cubefs file system, and issue instructions to manage the Cubefs cluster; the first data acquisition controller is used to collect metadata information associated with applications running on the onboard computing nodes through the metadata information reported by the control service module; the data migration controller is used to combine the metadata information collected by the first data acquisition controller, and after receiving the onboard computing node power-off or device power-on instruction, make decisions and control the data migration mechanism; the first data verification controller is used to receive a file verification request, compare the integrity of the migrated data, and verify the data integrity; the first device management controller is used to initiate a power status request to the onboard computing node to control the power-on or power-off of the device;

[0010] The control service module includes a second data acquisition controller, a second device management controller, a second data verification controller, a data upload controller and a data download controller; wherein the second data acquisition controller is used to collect metadata information including locally running applications, mounted file systems, and the health status of onboard computing nodes and report it to the first data acquisition controller of the management service module; the second device management controller is used to receive a request from the management service module to control the power status of the onboard computing node and execute power on or off of the device; the second data verification controller is used to receive a file data block verification request, compare data integrity, and verify whether the data file is modified; the data upload controller is used to upload a specified data block, and upload it incrementally to modify the corresponding file content in the Cubefs file system; the data download controller is used to download a specified file in the Cubefs file system, and download the file content in the form of a full download to the specified onboard computing node storage area.

[0011] Furthermore, the determination of whether the application running on the onboard computing node needs to be migrated to another onboard computing node is performed by the following method:

[0012] Obtain cluster information through the Cubefs cluster management controller of the management service module, and obtain the total number of all onboard computing nodes and the number of online onboard computing nodes in the cluster based on the cluster information; if the current number of online onboard computing nodes is less than half of the total number of all onboard computing nodes in the cluster, determine that the applications running on the onboard computing nodes need to be migrated to other onboard computing nodes; if the current number of online onboard computing nodes is greater than or equal to half of the total number of all onboard computing nodes in the cluster, determine that the applications running on the onboard computing nodes do not need to be migrated to other onboard computing nodes;

[0013] The method of judging whether the file system can work normally according to the number of currently online satellite computing nodes is as follows:

[0014] First, assume that the onboard computing node where the application is located is powered off, obtain cluster information through the Cubefs cluster management controller of the management service module, and obtain the total number of all onboard computing nodes in the cluster and the number of online onboard computing nodes based on the cluster information; then determine whether the number of online onboard computing nodes after power-off is less than half of the total number of all onboard computing nodes in the cluster. If the number of online onboard computing nodes after power-off is less than half of the total number of all onboard computing nodes in the cluster, the file system cannot work normally; otherwise, the file system can work normally.

[0015] Furthermore, the triggering of the data migration mechanism controls the entire data migration process of the data migration mechanism through the management service module, and after the migration of the migrated data is completed, the application is migrated to other onboard computing nodes, and then the onboard computing node where the application is located is powered off, which specifically includes the following steps:

[0016] (3.1) The control service module deployed on the onboard computing node reports the metadata information of the application and the file system associated with the application to the management service module through the heartbeat mechanism. The management service module determines the data to be migrated based on the metadata information of the application and the file system associated with the application.

[0017] (3.2) The management service module controls the data migration mechanism to automatically migrate the application-related data to be migrated in the Cubefs file system to the storage area corresponding to the preset target onboard computing node directory in an incremental or full migration manner;

[0018] (3.3) Determine whether the data to be migrated has been migrated. If the data to be migrated has been migrated, jump directly to step (3.4); otherwise, jump directly to step (3.5);

[0019] (3.4) Performing a data integrity check on the data to be migrated by controlling the second data check controller of the service module, and then determining whether the data integrity check is successful. If the data integrity check is successful, directly jump to step (3.6); otherwise, directly jump to step (3.5);

[0020] (3.5) Trigger the retry mechanism, that is, return to step (3.2) to re-migrate the data to be migrated, so as to migrate all the data to be migrated to the storage area corresponding to the preset target onboard computing node directory; then determine whether the retry is successful. If the retry is successful, jump directly to step (3.6); if the retry fails, trigger the alarm mechanism and perform manual processing;

[0021] (3.6) Migrate the application to the preset target onboard computing node;

[0022] (3.7) Repeat steps (3.1) to (3.6) until all applications running on the satellite computing node to be powered off are migrated to other satellite computing nodes, and then safely power off the satellite computing node to be powered off.

[0023] Furthermore, the determination of whether the data integrity check is successful is performed by the following method:

[0024] If the hash value of the data that has completed the data migration process is consistent with the hash value of the corresponding data to be migrated in the Cubefs file system, the data integrity check is judged to be successful; otherwise, the data integrity check is judged to have failed.

[0025] Furthermore, the cluster onboard computing node recovers and rebuilds the Cubefs file system, and triggers the data migration mechanism. The entire data migration process of the data migration mechanism is controlled by the management service module to restore the application data to the Cubefs file system, which specifically includes the following sub-steps:

[0026] (4.1) Control the data migration mechanism through the management service module to accurately migrate the application data temporarily stored in the target onboard computing node directory to the corresponding original Cubefs file system directory;

[0027] (4.2) Determine whether the migration of the application data to be migrated has been completed. If the migration of the application data to be migrated has been completed, jump directly to step (4.3); otherwise, jump directly to step (4.4);

[0028] (4.3) Performing a data integrity check on the application data to be migrated back through the first data check controller of the management service module, and then determining whether the data integrity check is successful. If the data integrity check is successful, directly jump to step (4.5); otherwise, directly jump to step (4.4);

[0029] (4.4) Trigger the retry mechanism, that is, return to step (4.1) to re-migrate the application data to be migrated, so as to migrate all the application data to be migrated back to the corresponding original Cubefs file system directory; then determine whether the retry is successful. If the retry is successful, jump directly to step (4.5); if the retry fails, trigger the alarm mechanism and perform manual processing;

[0030] (4.5) Migrate the application data back to the corresponding original Cubefs file system directory and delete the corresponding temporary files on the target onboard computing node so that the migrated application can remount the corresponding file system.

[0031] Furthermore, the data migration mechanism controlled by the management service module accurately migrates the application data temporarily stored in the target onboard computing node directory to the corresponding original Cubefs file system directory, specifically including:

[0032] Migration methods include incremental migration and full migration.

[0033] The management service module determines whether the application data file has been modified by comparing the timestamp and hash value of the target onboard computing node. If the application data file has been modified, the application data temporarily stored in the target onboard computing node directory is accurately migrated back to the corresponding original Cubefs file system directory by incremental migration; otherwise, the application data temporarily stored in the target onboard computing node directory is accurately migrated back to the corresponding original Cubefs file system directory by full migration.

[0034] Furthermore, the data migration mechanism and the data return mechanism both support asynchronous or concurrent execution.

[0035] A second aspect of an embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory is coupled to the processor; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the above-mentioned data self-healing method in the abnormal scenario of the Cubefs file system under the on-board computing node.

[0036] A third aspect of an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the program is executed by a processor, the data self-healing method in the above-mentioned scenario of an abnormal Cubefs file system in a satellite computing node is implemented.

[0037] The beneficial effects of the present invention are that, when the onboard computing node is powered off and thus causes an abnormality in the Cubefs distributed file system, the present invention can provide data migration capabilities for applications deployed on the onboard computing node, ensuring that the application runs normally after successful migration, and providing a data migration mechanism after the cluster is restored, so that the application can continue to run using the data stored in the distributed file system; the present invention can quickly start before application migration, automatically and accurately migrate key data to a designated storage area, ensuring that the application continues to access data in a new environment after migration, and maintaining business continuity and high data availability; when the onboard computing node of the present invention is powered off and then powered on again, the Cubefs file system will gradually resume operation, and through a sophisticated reverse migration process, the data will be restored to the original Cubefs directory, achieving seamless docking of application data with the Cubefs file system, and maintaining data consistency and business continuity; the present invention effectively responds to the challenges brought about by the power-off of onboard computing nodes through automated and intelligent data processing strategies, enhances the availability and reliability of data in space-based computing, and provides a strong technical foundation for the stable operation of onboard applications in complex scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 It is a deployment architecture diagram of the management service module and the control service module in the present invention;

[0039] Figure 2 It is a composition architecture diagram of the management service module and the control service module in the present invention;

[0040] Figure 3 It is a data migration flow chart in the present invention;

[0041] Figure 4 It is a data migration flow chart in the present invention;

[0042] Figure 5 This is an incremental data migration architecture diagram in the present invention;

[0043] Figure 6 It is a structural schematic diagram of the electronic device in the present invention. DETAILED DESCRIPTION

[0044] Here, exemplary embodiments will be described in detail, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. Obviously, the drawings used in the following description are only some embodiments of the present invention, and for ordinary technicians in this field, other drawings can also be obtained based on these drawings without paying creative labor. The implementation methods described in the following exemplary embodiments do not represent all implementation methods consistent with the present invention. On the contrary, they are only examples of devices and methods consistent with some aspects of the present invention as detailed in the attached claims.

[0045] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0046] It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0047] The present invention is described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the features of the following embodiments and implementations can be combined with each other.

[0048] The data self-healing method of the present invention in the scenario of abnormal Cubefs file system when the onboard computing node is powered off can realize data self-healing when the onboard computing node is powered off and causes abnormal Cubefs file system. The data self-healing method specifically comprises the following steps:

[0049] (1) A management service module is deployed on the Cubefs file system to manage the entire data migration process, and a control service module is deployed on the onboard computing node to monitor the device status and control the status of the onboard computing node.

[0050] Specifically, the overall deployment architecture of the management service module and the control service module is as follows: Figure 1 As shown in the figure, the master management service module deployed on the Cubefs file system is used as a management node to manage the entire system service, where the master represents the management service deployment entity; the master management service module makes decisions based on the metadata information and cluster information provided by the dataagent control service module. The dataagent control service module is deployed on the satellite computing node to collect metadata information such as application information and associated file system information of the device where the satellite computing node is located, and reports it to the management service module through the heartbeat mechanism, where the dataagent represents the control service deployment entity; at the same time, the dataagent control service module receives control instructions from the master management service module and executes related instructions. The Cubefs file system forms a cluster based on the existing satellite computing node deployment and provides basic distributed file system functions.

[0051] Furthermore, the management service module is used to communicate with the Cubefs file system service module and the control service module. Through the metadata information reported by the Cubefs file system service module and the control service module, the management service module makes decisions on application data migration, application migration, and powering off the onboard computing nodes. The management service module includes a Cubefs cluster management controller, a first data acquisition controller, a data migration controller, a first data verification controller, and a first device management controller. Figure 2 As shown. Among them, the Cubefs cluster management controller is used to obtain the status of the satellite computing nodes in the Cubefs cluster through the API interface opened by the Cubefs file system, and issue instructions to manage the Cubefs cluster; the first data acquisition controller is used to collect metadata information associated with the applications running on the satellite computing nodes through the metadata information reported by the control service module; the data migration controller is used to combine the metadata information collected by the first data acquisition controller, and after receiving the satellite computing node power-off or device power-on instruction, make decisions and control the data migration mechanism; the first data verification controller is used to receive file verification requests, compare the integrity of the migrated data, and verify the data integrity; the first device management controller is used to initiate a power status request to the satellite computing node to control the power-on or power-off of the device.

[0052] Furthermore, the control service module communicates with the Cubefs file system service module and the management service module. The control service module regularly reports the health status of the device and reports the metadata information of the application management system before data migration. At the same time, it is controlled by the instructions issued by the management service module and receives the instructions including data migration, data verification, and device management for execution. The control service module includes a second data acquisition controller, a second device management controller, a second data verification controller, a data upload controller, and a data download controller. Figure 2 As shown. Among them, the second data acquisition controller is used to collect metadata information such as local running applications, mounted file systems, and the health status of onboard computing nodes, and report it to the first data acquisition controller of the management service module; the second device management controller is used to receive the management service module to control the power status request of the onboard computing node, and execute the power on or off of the device; the second data verification controller is used to receive the file data block verification request, compare the data integrity, and verify whether the data file is modified; the data upload controller is used to upload the specified data block, and upload it in increments to modify the corresponding file content in the Cubefs file system; the data download controller is used to download the specified file in the Cubefs file system, and download the file content in the form of full download to the specified onboard computing node storage area.

[0053] (2) When the onboard computing node needs to be powered off due to factors such as energy consumption and space radiation, determine whether the application running on the onboard computing node needs to be migrated to other onboard computing nodes. If the application running on the onboard computing node needs to be migrated to other onboard computing nodes, jump directly to step (3); otherwise, the application running on the onboard computing node is migrated to other onboard computing nodes and then powered off directly.

[0054] Furthermore, it is determined whether the application running on the onboard computing node needs to be migrated to other onboard computing nodes, and the determination is made by the following method: cluster information is obtained through the Cubefs cluster management controller of the management service module, and the total number of all onboard computing nodes in the cluster and the number of online onboard computing nodes are obtained based on the cluster information; if the current number of online onboard computing nodes is less than half of the total number of all onboard computing nodes in the cluster, it is determined that the application running on the onboard computing node needs to be migrated to other onboard computing nodes; if the current number of online onboard computing nodes is greater than or equal to half of the total number of all onboard computing nodes in the cluster, it is determined that the application running on the onboard computing node does not need to be migrated to other onboard computing nodes.

[0055] It should be noted that the cluster information includes the total number of onboard computing nodes in the cluster and whether the onboard computing nodes are online. Therefore, the total number of all onboard computing nodes in the cluster and the number of online onboard computing nodes can be obtained based on the cluster information, and then the total number of all onboard computing nodes in the cluster and the number of currently online onboard computing nodes can be further used to determine whether the applications running on the onboard computing nodes need to be migrated to other onboard computing nodes.

[0056] Specifically, Figure 3 As shown, when the onboard computing node needs to be powered off due to factors such as energy consumption and space radiation, it is necessary to first determine whether the application running on the onboard computing node needs to be migrated. When the application running on the onboard computing node does not need to be migrated to other onboard computing nodes, based on the fault tolerance of the Cubefs file system, the Cubefs file system can provide file data normally after the onboard computing node is powered off. In order to ensure business continuity, the application running on the onboard computing node is directly powered off after being migrated to other onboard computing nodes. When the application running on the onboard computing node needs to be migrated to other onboard computing nodes, the control service module deployed on the onboard computing node receives the power-off instruction to upload metadata information such as the application running on the onboard computing node and the file system associated with the application to the management service module. After receiving the relevant metadata information, the management service module makes a judgment decision as described in step (3). Among them, all metadata information of the application running on the onboard computing node is shown in Table 1, and AppMeta in Table 1 is metadata information associated with the application, as shown in Table 2.

[0057] It should be understood that the fault tolerance of the Cubefs file system means that when the onboard computing nodes are powered off, the Cubefs file system can work normally as long as the number of online onboard computing nodes is greater than or equal to half of the total number of all onboard computing nodes in the cluster.

[0058] Table 1: Metadata information of applications running on onboard computing nodes

[0059]

[0060] Table 2: Metadata information associated with the application

[0061]

[0062] (3) Assuming that the onboard computing node where the application is located is powered off, determine whether the file system can work normally based on the number of currently online onboard computing nodes. If the file system can work normally, there is no need to trigger the data migration mechanism before application migration. The application is directly migrated to other onboard computing nodes, and then the onboard computing node where the application is located is powered off. Otherwise, the data migration mechanism is triggered, and the entire data migration process of the data migration mechanism is controlled by the management service module. After the data migration is completed, the application is migrated to other onboard computing nodes, and then the onboard computing node where the application is located is powered off.

[0063] Furthermore, it is determined whether the file system can work normally according to the current number of online onboard computing nodes, and the determination is made by the following method: first, it is assumed that the onboard computing node where the application is located is powered off, and the cluster information is obtained through the Cubefs cluster management controller of the management service module, and the total number of all onboard computing nodes in the cluster and the number of online onboard computing nodes are obtained according to the cluster information; then it is determined whether the number of online onboard computing nodes after power-off is less than half of the total number of all onboard computing nodes in the cluster; if the number of online onboard computing nodes after power-off is less than half of the total number of all onboard computing nodes in the cluster, the file system cannot work normally; otherwise, the file system can work normally.

[0064] It should be noted that the cluster information includes the total number of onboard computing nodes in the cluster and whether the onboard computing nodes are online. Therefore, the total number of all onboard computing nodes in the cluster and the number of online onboard computing nodes can be obtained based on the cluster information, and the number of online onboard computing nodes after power-off can be further obtained. Then, whether the file system can work normally can be judged based on the total number of all onboard computing nodes in the cluster and the number of online onboard computing nodes after power-off.

[0065] Specifically, first assume that the onboard computing node where the application is located is powered off, and then determine whether the file system can work normally based on the number of online onboard computing nodes after power-off. If the number of online onboard computing nodes after power-off is greater than or equal to one-half of the total number of all onboard computing nodes in the cluster, it means that the file system can work normally, and there is no need to trigger the data migration mechanism before application migration. The applications running on the onboard computing nodes are directly migrated to other onboard computing nodes, and then the onboard computing nodes are powered off. If the number of online onboard computing nodes after power-off is less than one-half of the total number of all onboard computing nodes in the cluster, it means that the file system cannot work normally, and the data migration mechanism needs to be triggered before application migration. The entire data migration process of the data migration mechanism is controlled by the management service module. After the data migration is completed, the applications running on the onboard computing nodes are migrated to other onboard computing nodes, and then the onboard computing nodes where the applications are located are powered off.

[0066] Furthermore, the data migration mechanism is triggered, and the entire data migration process of the data migration mechanism is controlled by the management service module. After the migration of the migrated data is completed, the application is migrated to other onboard computing nodes, and then the onboard computing node where the application is located is powered off, such as Figure 3 As shown, the specific steps include:

[0067] (3.1) The control service module deployed on the onboard computing node reports metadata information such as the application and the file system associated with the application to the management service module through the heartbeat mechanism. The management service module determines the data to be migrated based on the metadata information such as the application and the file system associated with the application.

[0068] It should be understood that the heartbeat mechanism specifically includes: the control service deployed on the onboard computing node sends a metadata information packet to the management node at a preset time interval, and the management node confirms the receipt and returns the confirmation information to the corresponding onboard computing node, forming a complete request-response cycle. The content of the metadata information packet includes information such as whether the node is online, service status information, and timestamp.

[0069] It should be noted that the metadata information of the application includes the file directory associated with the application, and the metadata information of the file system associated with the application includes the corresponding storage area of ​​the file directory associated with the application in the file system. If the application data is stored in the file directory associated with the application, and the file directory corresponds to the storage area in the file system, it means that data migration is required before the application is migrated, so that the content of the data to be migrated can be determined.

[0070] (3.2) The management service module controls the data migration mechanism to automatically migrate the application-related data to be migrated in the Cubefs file system to the storage area corresponding to the preset target onboard computing node directory in an incremental or full migration manner.

[0071] Specifically, the data migration mechanism migrates the application-related data to be migrated in the Cubefs file system to the storage area corresponding to the preset target onboard computing node directory. The data migration mechanism reports the metadata information of the application and the file system associated with the application as shown in Table 1 and Table 2 to the management service module through the control service module running on the onboard computing node, and queries the metadata information of the file system associated with the cluster in conjunction with the management service module, as shown in Table 3.

[0072] Table 3: File system metadata information associated with the cluster

[0073]

[0074] After the Cubefs cluster management controller of the management service module obtains the corresponding file system key, it obtains the metadata information associated with the corresponding file system through the API interface of the Cubefs file system. The metadata information is shown in Table 4.

[0075] Table 4: File system metadata information

[0076]

[0077] Table 5 shows the file (FileMeta) metadata information involved in the FileMetaList associated with the file in Table 4.

[0078] Table 5: File metadata information

[0079]

[0080] A file is composed of a series of data blocks. The data block (BlockMeta) metadata information associated with BlockMetaList in Table 5 also includes all the corresponding file data information. The BlockMeta metadata information is shown in Table 6.

[0081] Table 6: Data block metadata information

[0082]

[0083] The management service module sends instructions to the control service module of the onboard computing node where the application is located, and automatically migrates the application-related data to be migrated stored in the Cubefs file system to the storage area corresponding to the preset target onboard computing node directory in an incremental or full migration manner. During the data migration process, the management service module controls the data migration progress, specifically downloading the data to be migrated to the preset target onboard computing node directory through the data download controller of the control service module.

[0084] (3.3) Determine whether the data to be migrated has been migrated. If the data to be migrated has been migrated, jump directly to step (3.4); otherwise, jump directly to step (3.5).

[0085] (3.4) Perform a data integrity check on the data to be migrated through the second data verification controller of the control service module, and then determine whether the data integrity check is successful. If the data integrity check is successful, it means that the data is complete, that is, all the data to be migrated have been migrated, and you can jump directly to step (3.6); otherwise, jump directly to step (3.5).

[0086] Furthermore, it is determined whether the data integrity check is successful by the following method: if the hash value of the data that has completed the data migration process is consistent with the hash value of the corresponding data to be migrated in the Cubefs file system, the data integrity check is determined to be successful; otherwise, the data integrity check is determined to have failed.

[0087] Specifically, after the control service module receives the verification instruction from the management service module, the second data verification controller performs a data integrity check on the data to be migrated downloaded by the data download controller. Only when the hash value of the downloaded data to be migrated is consistent with the hash value of the corresponding data to be migrated in the Cubefs file system, the data integrity check is considered to be successful, the data is completed, and all the data to be migrated are completely migrated, and then jump to step (3.6). In other cases, the data integrity check is considered to have failed.

[0088] (3.5) Trigger the retry mechanism, that is, return to step (3.2) to re-migrate the data to be migrated, so as to migrate all the data to be migrated to the storage area corresponding to the preset target onboard computing node directory; then determine whether the retry is successful. If the retry is successful, it means that the data is complete, that is, all the data to be migrated has been migrated, and jump directly to step (3.6); if the retry fails, the alarm mechanism is triggered and manual processing is performed.

[0089] It is easy to understand that the data migration process described in step (3.2) is repeated. When the migration of the migrated data is completed, it means that the retry is successful, otherwise the retry fails. Repeat the data integrity verification process described in step (3.4). If the data integrity verification is successful, it means that the retry is successful, otherwise the retry fails.

[0090] (3.6) Migrate the application to the preset target onboard computing node.

[0091] (3.7) Repeat steps (3.1) to (3.6) until all applications running on the satellite computing node to be powered off are migrated to other satellite computing nodes, and then safely power off the satellite computing node to be powered off.

[0092] Specifically, the management service module notifies the control service module deployed on the satellite computing node to be powered off that the data to be migrated corresponding to all applications running on it have completed the data migration process, the application can be migrated, and the metadata information of the application migration status is reported to the management service module. After the management service module observes that all applications associated with the satellite computing node where the control service module is located have completed the migration, it notifies the control service module deployed on the satellite computing node to be powered off to safely power off the satellite computing node where it is located. At the same time, the migrated application can access and use the migrated data on the migrated satellite computing node.

[0093] It should be noted that when the onboard computing node is safely powered off, the management service module needs to notify the control service module where the onboard computing node is located to ensure normal operation of the business after migration.

[0094] (4) After the onboard computing node is powered on again, it determines whether the file system can work normally based on the number of currently online onboard computing nodes. If the file system can work normally, the cluster onboard computing node restores and rebuilds the Cubefs file system and triggers the data migration mechanism. The management service module controls the entire data migration process of the data migration mechanism to restore the application data to the Cubefs file system. Otherwise, it ends directly without performing data migration.

[0095] Specifically, when the onboard computing node is powered on again, the management service module collects the heartbeat information of the control service module, and the management service module periodically detects whether the minimum number of onboard computing nodes required for the normal operation of the file system is met, that is, when the number of currently online onboard computing nodes is greater than or equal to half of the total number of all onboard computing nodes in the cluster, the file system is operating normally. When the file system is operating normally, the Cubefs file system is restored and rebuilt. When the management service module calls the health query interface provided by the Cubefs file system to detect that the cluster is operating normally, the data migration mechanism is triggered to perform data migration to restore the application data to the Cubefs file system.

[0096] Furthermore, the cluster onboard computing nodes recover and rebuild the Cubefs file system and trigger the data migration mechanism. The management service module controls the entire data migration process of the data migration mechanism to restore the application data to the Cubefs file system. Figure 4 As shown, it specifically includes the following sub-steps:

[0097] (4.1) The data migration mechanism is controlled by the management service module to accurately migrate the application data temporarily stored in the target onboard computing node directory to the corresponding original Cubefs file system directory.

[0098] Furthermore, the data migration mechanism is controlled by the management service module to accurately migrate the application data temporarily stored in the target onboard computing node directory to the corresponding original Cubefs file system directory, specifically including: the migration mode includes incremental migration mode and full migration mode; the management service module determines whether the application data file is modified by comparing the timestamp and hash value of the target onboard computing node. If the application data file is modified, the application data temporarily stored in the target onboard computing node directory is accurately migrated back to the corresponding original Cubefs file system directory by incremental migration; otherwise, the application data temporarily stored in the target onboard computing node directory is accurately migrated back to the corresponding original Cubefs file system directory by full migration.

[0099] Specifically, the data migration mechanism and data relocation mechanism support full data and incremental data migration. Incremental data migration only migrates modified files or data blocks, which can improve data migration efficiency. Figure 5 As shown in the figure, the control service module records the file version information and timestamp information when the data migration is completed. By comparing the timestamp information, when the timestamps are inconsistent, it is considered that the file has been modified, and the log information is recorded and sent back to the management service module. When the management service module triggers data migration, it finds that the application data file has been modified according to the log information. At this time, the management service module grabs all the block metadata information associated with the file. The metadata contains the corresponding hash value. The control service module divides the application data file and calculates the corresponding hash value. If the hash value remains unchanged, it means that the data has not changed. If the hash value is inconsistent, it means that the data has changed. The corresponding file block is incrementally replaced by calling the object data interface provided by the Cubefs file system. If the file does not exist in the file system during the first data migration, the full migration method is directly used to migrate the entire file to the corresponding directory of the file system. The subsequent data migration adopts the incremental migration mechanism. When using incremental data migration, the management service module will hand over the metadata information of the data blocks associated with the file to the control service module to compare the data blocks to build an incremental data set, and only copy the difference data for incremental replication to improve the efficiency of data migration.

[0100] (4.2) Determine whether the application data to be migrated back has been migrated. If the application data to be migrated back has been migrated back, jump directly to step (4.3); otherwise, jump directly to step (4.4).

[0101] (4.3) Performing data integrity check on the application data to be migrated back through the first data check controller of the management service module, and then determining whether the data integrity check is successful. If the data integrity check is successful, directly jump to step (4.5); otherwise, directly jump to step (4.4).

[0102] (4.4) Trigger the retry mechanism, that is, return to step (4.1) to re-migrate the application data to be migrated, so as to migrate all the application data to be migrated back to the corresponding original Cubefs file system directory; then determine whether the retry is successful. If the retry is successful, jump directly to step (4.5); if the retry fails, trigger the alarm mechanism and perform manual processing.

[0103] (4.5) Migrate the application data back to the corresponding original Cubefs file system directory and delete the corresponding temporary files on the target onboard computing node so that the migrated application can remount the corresponding file system and enable the migrated application to achieve data docking with the mounted file system to ensure data consistency and business continuity.

[0104] Furthermore, both the data migration mechanism and the data migration mechanism include a data integrity verification step, which is used to verify data integrity before data migration and / or after data migration to ensure that the data is not damaged or lost during the migration process or the migration process. If inconsistencies are found, measures such as re-migration, data repair or manual intervention may be taken according to the specific circumstances.

[0105] Furthermore, both the data migration mechanism and the data migration mechanism support asynchronous or concurrent execution. The management service module adjusts the number of concurrent tasks based on the load information reported by the control service module, such as network status and CPU utilization. When the load is low, the number of concurrent tasks can be increased to improve data migration efficiency and reduce the impact on the business.

[0106] In summary, due to factors such as energy consumption and space radiation, the onboard computing nodes of the present invention need to perform necessary power-off operations, and key applications need to be migrated to spare onboard computing nodes. When the number of onboard computing nodes is reduced by more than half, causing the Cubefs file system to be abnormal, the application cannot use the relevant data, resulting in application abnormality. This mechanism can be quickly started before application migration, automatically and accurately migrate key data to the specified storage area, and ensure that the application continues to access data in the new environment after migration, maintaining business continuity and high data availability. When the onboard computing node is powered off and then powered on again, the Cubefs file system will gradually resume operation. Through a sophisticated reverse migration process, the data will be restored to the original Cubefs file system directory, achieving seamless docking between application data and the Cubefs file system, and maintaining data consistency and business continuity. The present invention effectively responds to the challenges brought by the power-off of onboard computing nodes through automated and intelligent data processing strategies, enhances the availability and reliability of data in space-based computing, and provides a strong technical foundation for the stable operation of onboard applications in complex situations. When the onboard computing node power-off scenario causes the Cubefs file system to be abnormal, data self-healing can be achieved. The above process covers the data migration triggering conditions, the migration process corresponding to the data migration mechanism, the return migration process corresponding to the data return mechanism, data integrity verification, concurrent processing optimization mechanism, and incremental data migration implemented by incremental migration method.

[0107] Corresponding to the embodiment of the data self-healing method in the aforementioned scenario of abnormal Cubefs file system in the onboard computing node, the present invention also provides an embodiment of the electronic device.

[0108] See also Figure 6 An electronic device provided by an embodiment of the present invention includes one or more processors and a memory, and the memory is coupled to the processor; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the data self-healing method in the above-mentioned embodiment of the on-board computing node under the abnormal scenario of the Cubefs file system.

[0109] The embodiments of the electronic device of the present invention can be applied to any device with data processing capabilities, and the device with data processing capabilities can be a device such as a computer or an electronic device. The electronic device embodiments can be implemented through software, or through hardware or a combination of software and hardware. Taking software implementation as an example, as an electronic device in a logical sense, it is formed by the processor of any device with data processing capabilities in which it is located reading the corresponding computer program instructions in the non-volatile memory into the memory and running them. From the hardware level, if Figure 6 As shown, it is a hardware structure diagram of any device with data processing capability where the electronic device of the present invention is located, except Figure 6 In addition to the processor, memory, network interface, and non-volatile memory shown, any device with data processing capabilities in which the electronic device in the embodiments is located may also include other hardware, generally based on the actual functions of the device with data processing capabilities, which will not be described in detail.

[0110] The implementation process of the functions and effects of each unit in the above electronic device is specifically described in the implementation process of the corresponding steps in the above method, which will not be repeated here.

[0111] For the electronic device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The electronic device embodiment described above is only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of the present invention. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0112] An embodiment of the present invention also provides a computer-readable storage medium on which a program is stored. When the program is executed by a processor, the data self-healing method in the above-mentioned embodiment is implemented in the scenario of abnormal Cubefs file system in the onboard computing node.

[0113] The computer-readable storage medium may be an internal storage unit of any device with data processing capability described in any of the aforementioned embodiments, such as a hard disk or a memory. The computer-readable storage medium may also be any device with data processing capability, such as a plug-in hard disk, a smart media card (SMC), an SD card, a flash card, etc. equipped on the device. Furthermore, the computer-readable storage medium may also include both an internal storage unit of any device with data processing capability and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by any device with data processing capability, and may also be used to temporarily store data that has been output or is to be output.

[0114] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A data self-healing method for an abnormal Cubefs file system in a satellite computing node, characterized in that: The following steps are involved: (1) Deploy a management service module on the Cubefs file system to manage the entire data migration process, and deploy a control service module on the onboard computing node to monitor the device status and control the status of the onboard computing node; (2) When the onboard computing node needs to be powered off due to energy consumption and space radiation factors, determine whether the application running on the onboard computing node needs to be migrated to other onboard computing nodes. If the application running on the onboard computing node needs to be migrated to other onboard computing nodes, directly jump to step (3); otherwise, in order to ensure business continuity, the application running on the onboard computing node is directly powered off after being migrated to other onboard computing nodes; (3) Assuming that the onboard computing node where the application is located is powered off, determine whether the file system can work normally based on the number of currently online onboard computing nodes. If the file system can work normally, there is no need to trigger the data migration mechanism before application migration. The application can be directly migrated to another onboard computing node, and then the onboard computing node where the application is located is powered off. Otherwise, the data migration mechanism is triggered, and the entire data migration process of the data migration mechanism is controlled by the management service module. After the data migration is completed, the application is migrated to other onboard computing nodes, and then the onboard computing node where the application is located is powered off; (4) After the onboard computing node is powered on again, it determines whether the file system can work normally based on the number of currently online onboard computing nodes. If the file system can work normally, the cluster onboard computing node recovers and rebuilds the Cubefs file system and triggers the data migration mechanism. The management service module controls the entire data migration process of the data migration mechanism to restore the application data to the Cubefs file system. Otherwise, it ends directly without data migration. The triggering of the data migration mechanism controls the entire data migration process of the data migration mechanism through the management service module. After the migration of the migrated data is completed, the application is migrated to other onboard computing nodes, and then the onboard computing node where the application is located is powered off. Specifically, the steps include: (3.1) The control service module deployed on the onboard computing node reports the metadata information of the application and the file system associated with the application to the management service module through the heartbeat mechanism. The management service module determines the data to be migrated based on the metadata information of the application and the file system associated with the application; (3.2) The management service module controls the data migration mechanism to automatically migrate the application-related data to be migrated in the Cubefs file system to the storage area corresponding to the preset target onboard computing node directory in an incremental or full migration manner; (3.3) Determine whether the data to be migrated has been migrated. If the data to be migrated has been migrated, jump directly to step (3.4); otherwise, jump directly to step (3.5); (3.4) Performing data integrity verification on the data to be migrated through the second data verification controller of the control service module, and then determining whether the data integrity verification is successful. If the data integrity verification is successful, directly jump to step (3.6); otherwise, directly jump to step (3.5); (3.5) triggering the retry mechanism, i.e. returning to step (3.2) to re-migrate the data to be migrated, so as to migrate all the data to be migrated to the storage area corresponding to the preset target onboard computing node directory; then judging whether the retry is successful, if the retry is successful, directly jumping to step (3.6); If the retry fails, the alarm mechanism is triggered and manual processing is performed; (3.6) Migrate the application to the preset target onboard computing node; (3.7) Repeat steps (3.1) to (3.6) until all applications running on the satellite computing node to be powered off are migrated to other satellite computing nodes, and then safely power off the satellite computing node to be powered off.

2. The data self-healing method in the case of abnormal Cubefs file system under the onboard computing node according to claim 1 is characterized in that: The management service module includes a Cubefs cluster management controller, a first data acquisition controller, a data migration controller, a first data verification controller and a first device management controller; wherein the Cubefs cluster management controller is used to obtain the status of the onboard computing nodes in the Cubefs cluster through the API interface opened by the Cubefs file system, and issue instructions to manage the Cubefs cluster; the first data acquisition controller is used to collect metadata information associated with applications running on the onboard computing nodes through the metadata information reported by the control service module; the data migration controller is used to combine the metadata information collected by the first data acquisition controller, and after receiving the onboard computing node power-off or device power-on instruction, make decisions and control the data migration mechanism; the first data verification controller is used to receive file verification requests, compare the integrity of the migrated data, and verify the data integrity; the first device management controller is used to initiate a power status request to the onboard computing node to control the power-on or power-off of the device; The control service module includes a second data acquisition controller, a second device management controller, a second data verification controller, a data upload controller and a data download controller; wherein the second data acquisition controller is used to collect metadata information including locally running applications, mounted file systems, and the health status of onboard computing nodes and report it to the first data acquisition controller of the management service module; the second device management controller is used to receive a request from the management service module to control the power status of the onboard computing node and execute power on or off of the device; the second data verification controller is used to receive a file data block verification request, compare data integrity, and verify whether the data file is modified; the data upload controller is used to upload a specified data block, and upload it incrementally to modify the corresponding file content in the Cubefs file system; the data download controller is used to download a specified file in the Cubefs file system, and download the file content in the form of a full download to the specified onboard computing node storage area.

3. The data self-healing method in the case of abnormal Cubefs file system under the onboard computing node according to claim 1 is characterized in that: The determination of whether the application running on the onboard computing node needs to be migrated to another onboard computing node is performed by the following method: Obtain cluster information through the Cubefs cluster management controller of the management service module, and obtain the total number of all onboard computing nodes in the cluster and the number of online onboard computing nodes based on the cluster information; If the number of currently online onboard computing nodes is less than half of the total number of all onboard computing nodes in the cluster, it is determined that the applications running on the onboard computing nodes need to be migrated to other onboard computing nodes; If the number of currently online onboard computing nodes is greater than or equal to half of the total number of all onboard computing nodes in the cluster, it is determined that the applications running on the onboard computing nodes do not need to be migrated to other onboard computing nodes; The method of judging whether the file system can work normally according to the number of currently online satellite computing nodes is as follows: First, assume that the onboard computing node where the application is located is powered off, obtain cluster information through the Cubefs cluster management controller of the management service module, and obtain the total number of all onboard computing nodes in the cluster and the number of online onboard computing nodes based on the cluster information; Then determine whether the number of online onboard computing nodes after power-off is less than half of the total number of all onboard computing nodes in the cluster. If the number of online onboard computing nodes after power-off is less than half of the total number of all onboard computing nodes in the cluster, the file system cannot work normally. Otherwise, the file system functions normally.

4. The data self-healing method in the case of abnormal Cubefs file system under the onboard computing node according to claim 1 is characterized in that: The determination of whether the data integrity check is successful is made by the following method: If the hash value of the data that has completed the data migration process is consistent with the hash value of the corresponding data to be migrated in the Cubefs file system, the data integrity check is judged to be successful; otherwise, the data integrity check is judged to have failed.

5. The data self-healing method in the case of abnormal Cubefs file system under the onboard computing node according to claim 1 is characterized in that: The cluster onboard computing node recovers and rebuilds the Cubefs file system, and triggers the data migration mechanism. The entire data migration process of the data migration mechanism is controlled by the management service module to restore the application data to the Cubefs file system, which specifically includes the following sub-steps: (4.1) Control the data migration mechanism through the management service module to accurately migrate the application data temporarily stored in the target onboard computing node directory to the corresponding original Cubefs file system directory; (4.2) Determine whether the application data to be migrated back has been migrated back. If the application data to be migrated back has been migrated back, directly jump to step (4.3); otherwise, directly jump to step (4.4); (4.3) Performing a data integrity check on the application data to be migrated back through the first data check controller of the management service module, and then determining whether the data integrity check is successful. If the data integrity check is successful, directly jump to step (4.5); otherwise, directly jump to step (4.4); (4.4) triggering the retry mechanism, i.e. returning to step (4.1) to re-migrate the application data to be migrated, so as to migrate all the application data to be migrated back to the corresponding original Cubefs file system directory; then judging whether the retry is successful, if the retry is successful, directly jumping to step (4.5); if the retry fails, triggering the alarm mechanism, and performing manual processing; (4.5) Migrate the application data back to the corresponding original Cubefs file system directory and delete the corresponding temporary files on the target onboard computing node so that the migrated application can remount the corresponding file system.

6. The data self-healing method in the case of abnormal Cubefs file system under the onboard computing node according to claim 5 is characterized in that: The data migration mechanism controlled by the management service module accurately migrates the application data temporarily stored in the target onboard computing node directory to the corresponding original Cubefs file system directory, specifically including: Migration methods include incremental migration and full migration. The management service module determines whether the application data file has been modified by comparing the timestamp and hash value of the target onboard computing node. If the application data file has been modified, the application data temporarily stored in the target onboard computing node directory is accurately migrated back to the corresponding original Cubefs file system directory by incremental migration; otherwise, the application data temporarily stored in the target onboard computing node directory is accurately migrated back to the corresponding original Cubefs file system directory by full migration.

7. The data self-healing method in the case of abnormal Cubefs file system under the onboard computing node according to claim 1 is characterized in that: The data migration mechanism and the data return mechanism both support asynchronous or concurrent execution.

8. An electronic device, comprising a memory and a processor, characterized in that: The memory is coupled to the processor; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the data self-healing method in the abnormal scenario of the Cubefs file system in the on-board computing node according to any one of claims 1-7.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by the processor, the data self-healing method in the abnormal scenario of the Cubefs file system in the onboard computing node as described in any one of claims 1-7 is implemented.

Citation Information

Patent Citations

  • Service smooth migration method of heterogeneous cloud platform

    CN110445803A

  • Data migration method and system for distributed file system and related components

    CN111078120A

  • DFS-oriented cross-computing-node persistent caching method and device under global aggregation namespace

    CN116436962A

  • Virtual machine distributed task scheduling method in cloud computing platform

    WO2015139374A1