Data migration method and device, electronic equipment, storage medium and program product
By automatically obtaining and cutting migration scripts, the efficiency and accuracy problems caused by manual intervention in file migration are solved, and the efficient and accurate file migration process is achieved, and resource utilization is optimized.
Patent Information
- Application Number
- CN202411161191.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-22
- Publication Date
- 2024-12-27
AI Technical Summary
The existing file migration process cannot be fully automated, and manual intervention is required, resulting in low efficiency and accuracy, and prone to omissions and errors.
By obtaining the migration information and requirements entered by the user, determining the interaction template of the target host, cropping the migration source code to generate migration scripts, and realizing the automated process of migrating files from the scope of the directory to be migrated to the target directory of the target host.
It realizes complete automation of the file migration process, improves migration efficiency and accuracy, provides flexibility and customization capabilities, enhances interaction capabilities, and dynamically adjusts resource utilization to ensure system stability.
Smart Images

Figure CN119201843A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of big data technology, and in particular to a data migration method, device, electronic device, storage medium and program product. Background Art
[0002] File migration refers to the process of moving or copying files from one storage location to another. This operation is very common in various scenarios, such as data backup, system upgrade, storage device replacement, cloud storage migration, etc. The goal of file migration is to ensure data integrity and availability while minimizing the impact on users and systems.
[0003] At present, it is impossible to achieve complete automation in the process of file migration, and many parts require manual intervention. Manual operations are prone to omissions and errors, resulting in low migration efficiency and accuracy. Summary of the invention
[0004] The present application provides a data migration method, device, electronic device, storage medium and program product to improve the efficiency and accuracy of file migration.
[0005] In a first aspect, an embodiment of the present application provides a data migration method, including:
[0006] Obtaining migration information and at least one migration requirement input by a user, wherein the migration information includes a range of directories to be migrated in the host to be migrated, identification information of the target host, and a target directory; each migration requirement is selected from the candidate requirements;
[0007] Determining, according to the identification information, a target interaction template to be used when interacting with the target host;
[0008] For any migration requirement, the target code corresponding to the migration requirement is cut out from the migration source code; the migration source code includes the operation source code corresponding to all the alternative requirements;
[0009] Generate a migration script according to the target code corresponding to each migration requirement, the migration information and the target interaction template;
[0010] The migration script is executed to migrate the files in the directory to be migrated to the target directory in the target host.
[0011] Optionally, determining, according to the identification information, a target interaction template to be used when interacting with the target host includes:
[0012] Determine the operating system type of the target host according to the identification information;
[0013] When the operating system type is a stock operating system type, selecting a target interaction template corresponding to the operating system type from a plurality of pre-stored interaction templates;
[0014] When the operating system type is not an existing operating system type, the target interaction commands corresponding to each of the preset multiple interaction steps are determined in sequence, and according to the target interaction commands corresponding to each of the interaction steps, the target interaction template used when interacting with the target host is determined.
[0015] Optionally, determining in sequence the target interaction commands corresponding to the respective interaction steps in the preset multiple interaction steps includes:
[0016] For any interaction step, determine the interaction command set corresponding to the interaction step, and for any interaction command in the interaction command set, perform the following command determination operation until the target interaction command is determined;
[0017] The command determination operation includes:
[0018] Sending the current interactive command to the target host, so that the target host performs a corresponding operation after receiving the current interactive command, and returns the operation result to the host to be migrated;
[0019] If the operation result is the same as the expected result corresponding to the current interaction command, determining the current interaction command as the target interaction command;
[0020] If the operation result is different from the expected result corresponding to the current interactive command, the next interactive command is used as the current interactive command and continues to be sent to the target host.
[0021] Optionally, there are multiple files within the range of the directory to be migrated, and executing the migration script to migrate the files within the range of the directory to be migrated to the target directory in the target host includes:
[0022] Allocating the multiple files within the to-be-migrated directory range to multiple first migration tasks; each first migration task corresponds to a different file;
[0023] Creating a task pool, and sequentially placing the plurality of first migration tasks into the task pool;
[0024] The first migration task in the task pool is read in sequence, and the read first migration task enters the migration process;
[0025] The resource utilization of the host to be migrated is monitored, and when the resource utilization is greater than a preset threshold, at least one migration process among the multiple migration processes is interrupted, and the first migration task in the interrupted migration process is put back into the task pool.
[0026] Optionally, the at least one migration requirement includes: a migration type, a threshold of the first migration task, a concurrency threshold of the migration process, and a preset threshold of resource utilization; the migration type includes full migration and incremental migration; the threshold of the first migration task is used to indicate the upper limit of the size of the file corresponding to the first migration task; the concurrency threshold of the migration process is used to indicate the upper limit of the concurrent number of migration processes; the preset threshold of resource utilization is used to indicate the upper limit of resource utilization.
[0027] Optionally, the directory range to be migrated includes multiple sub-directories, each sub-directory includes multiple files, and the migration information further includes: the priority corresponding to each sub-directory;
[0028] Accordingly, allocating the multiple files within the to-be-migrated directory range to multiple first migration tasks includes:
[0029] For any subdirectory, assign multiple files in the subdirectory to multiple second migration tasks, and the priority corresponding to each second migration task is the priority corresponding to the subdirectory;
[0030] Accordingly, interrupting at least one migration process among the multiple migration processes and re-placing the first migration task in the interrupted migration process into the task pool includes:
[0031] interrupting a migration process having the lowest corresponding priority among multiple migration processes, where the priority corresponding to the migration process is the priority of a second migration task corresponding to the migration process;
[0032] The second migration task in the interrupted migration process is put back to the front row of the task pool.
[0033] Optionally, the migration process includes a serial packaging process, a transmission process, and a decompression process; interrupting at least one migration process among the multiple migration processes includes:
[0034] At least one packaging process among the plurality of packaging processes is interrupted.
[0035] Optionally, the migration process includes: a packaging process, wherein the packaging process is used to query the target landing file corresponding to the first migration task and package the target landing file.
[0036] In a second aspect, an embodiment of the present application provides a data migration device, including:
[0037] An acquisition module, used to acquire migration information and at least one migration requirement input by a user, wherein the migration information includes a range of directories to be migrated in the host to be migrated, identification information of the target host, and a target directory; each migration requirement is selected from the candidate requirements;
[0038] A determination module, used to determine a target interaction template to be used when interacting with the target host according to the identification information;
[0039] A cutting module is used to cut out the target code corresponding to any migration requirement from the migration source code; the migration source code includes the operation source code corresponding to all the alternative requirements;
[0040] A generation module, used to generate a migration script according to the target code corresponding to each migration requirement, the migration information and the target interaction template;
[0041] The execution module is used to execute the migration script to migrate the files in the directory range to be migrated to the target directory in the target host.
[0042] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0043] The memory stores computer-executable instructions;
[0044] The processor executes the computer-executable instructions stored in the memory to implement the method described in any one of the above aspects.
[0045] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in any of the above aspects.
[0046] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements the method described in any of the above aspects when executed by a processor.
[0047] The data migration method, device, electronic device, storage medium and program product provided by the present application include: obtaining migration information and at least one migration requirement input by a user, wherein the migration information includes the range of directories to be migrated in the host to be migrated, identification information of the target host and the target directory; each migration requirement is selected from the alternative requirements; according to the identification information, a target interaction template to be used when interacting with the target host is determined; for any migration requirement, the target code corresponding to the migration requirement is cut out from the migration source code; the migration source code includes the operation source code corresponding to all the alternative requirements; according to the target code corresponding to each migration requirement, the migration information and the target interaction template, a migration script is generated; and execution The migration script migrates the files within the scope of the directory to be migrated to the target directory in the target host, which can realize full automation of the entire migration process, allowing the user to select migration requirements and input migration information according to specific needs, providing flexibility and customization capabilities, and automatically determining the interaction template used when the host to be migrated interacts with the target host according to the identification information of the target host. The host to be migrated and the target host are no longer just a simple network connection, but can perform pre-set interaction behaviors. Through the preset interaction behaviors, the interaction capability can be enhanced and more functions can be realized. In addition, according to the migration requirements input by the user, the corresponding target code can be cut out from the migration source code, which can improve the generation efficiency and accuracy of the migration script. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0049] Figure 1 An application scenario diagram provided for an embodiment of the present application;
[0050] Figure 2 A flowchart of a data migration method provided in an embodiment of the present application;
[0051] Figure 3 A block diagram of a data migration method provided in an embodiment of the present application;
[0052] Figure 4 A flowchart of another data migration method provided in an embodiment of the present application;
[0053] Figure 5 A schematic diagram of the structure of a data migration device provided in an embodiment of the present application;
[0054] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0055] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0056] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0057] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data involved shall comply with the provisions of relevant laws and regulations and shall not violate public order and good morals.
[0058] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0059] File migration technology refers to the process of moving files from one storage system or location to another. File migration can occur between different storage devices (such as from an old hard drive to a new hard drive), between different storage architectures (such as from local storage to cloud storage), or between different file systems. File migration technology plays a vital role in localization transformation.
[0060] At present, it is impossible to achieve complete automation in the process of file migration, and many parts require manual intervention. Manual operations are prone to omissions and errors, resulting in low migration efficiency and accuracy.
[0061] In view of this, the present application provides a data migration method, which first obtains migration information input by a user and at least one migration requirement, wherein the migration information includes the range of directories to be migrated in the host to be migrated, identification information of the target host and the target directory; each migration requirement is selected from the alternative requirements; based on the identification information, a target interaction template to be used when interacting with the target host is determined; for any migration requirement, the target code corresponding to the migration requirement is cut out from the migration source code; the migration source code includes the operation source code corresponding to all the alternative requirements; a migration script is generated according to the target code, migration information and target interaction template corresponding to each migration requirement; the migration script is executed to migrate the files within the range of the directory to be migrated to the target directory in the target host.
[0062] In this way, the entire migration process can be fully automated, allowing users to select migration requirements and input migration information based on specific needs, providing flexibility and customization capabilities. The interaction template used when the host to be migrated interacts with the target host can be automatically determined based on the identification information of the target host. The host to be migrated and the target host are no longer just a simple network connection, but can perform pre-set interaction behaviors. Through the preset interaction behaviors, the interaction capability can be enhanced and more functions can be realized. In addition, according to the migration requirements input by the user, the corresponding target code can be cut out from the migration source code, which can improve the generation efficiency and accuracy of the migration script.
[0063] Figure 1 An application scenario diagram provided for an embodiment of the present application, such as Figure 1 As shown, the user inputs migration information and at least one migration requirement through the input interface of the host to be migrated, the migration information includes the range of the directory to be migrated in the host to be migrated, the identification information of the target host and the target directory, and each migration requirement is selected from the alternative requirements; after the input is completed, click the confirmation button, the host to be migrated obtains the migration information and at least one migration requirement input by the user, and determines the target interaction template used when interacting with the target host according to the identification information; for any migration requirement, the target code corresponding to the migration requirement is cut out from the migration source code; wherein the migration source code contains the operation source code corresponding to all the alternative requirements; finally, the host to be migrated generates a migration script according to the target code, migration information and target interaction template corresponding to each migration requirement; executes the migration script to migrate the files within the range of the directory to be migrated to the target directory in the target host.
[0064] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0065] Figure 2 The flowchart of a data migration method provided by the embodiment of the present application is shown in FIG. This application is specifically described with the host to be migrated as the execution subject. Figure 2 As shown, a data migration method provided in an embodiment of the present application may include:
[0066] Step 201: Obtain migration information and at least one migration requirement input by a user, wherein the migration information includes a range of directories to be migrated in the host to be migrated, identification information of the target host, and a target directory; each migration requirement is selected from the candidate requirements.
[0067] The migration information includes the source of the files to be migrated and the destination of the files to be migrated. The source of the files to be migrated is the directory range to be migrated, that is, the files under the directory range to be migrated are the files to be migrated, and the destination of the files to be migrated is the target directory in the target host.
[0068] The entire migration process is the process of migrating the files in the migration directory range of the host to be migrated to the target directory of the target host.
[0069] When the user inputs any migration requirement, there is a drop-down menu in the input box corresponding to the migration requirement. The drop-down menu contains at least one alternative requirement corresponding to the migration requirement. The user only needs to select from at least one alternative requirement according to his or her own needs.
[0070] For example, a migration requirement is a migration type, and the alternative requirements in the drop-down menu in the input box corresponding to the migration type are: full migration and incremental migration. The user can select full migration or incremental migration according to their own needs.
[0071] Specifically, the user inputs migration information and at least one migration requirement through an input interface of the host to be migrated, wherein the migration information includes a range of directories to be migrated in the host to be migrated, identification information of the target host, and a target directory, and each migration requirement is selected from the candidate requirements; after the input is completed, the confirmation button is clicked, and the host to be migrated obtains the migration information and at least one migration requirement input by the user.
[0072] Step 202: Determine a target interaction template to be used when interacting with the target host according to the identification information.
[0073] Specifically, the host to be migrated may determine a target interaction template to be used when interacting with the target host according to the identification information of the target host.
[0074] Optionally, determining, according to the identification information, a target interaction template to be used when interacting with the target host includes:
[0075] Determine the operating system type of the target host according to the identification information;
[0076] When the operating system type is a stock operating system type, selecting a target interaction template corresponding to the operating system type from a plurality of pre-stored interaction templates;
[0077] When the operating system type is not an existing operating system type, the target interaction commands corresponding to each of the preset multiple interaction steps are determined in sequence, and according to the target interaction commands corresponding to each of the interaction steps, the target interaction template used when interacting with the target host is determined.
[0078] Specifically, the host to be migrated automatically detects the target host according to the identification information of the target host, and collects the operating system type of the target host.
[0079] Optionally, a plurality of operating system types and interaction templates corresponding to the operating system types are pre-stored in the host to be migrated, the operating system types and the interaction templates correspond one to one, and the interaction template includes at least one interaction step.
[0080] If the operating system type of the target host is a stock operating system type, that is, the operating system type of the target host is one of the multiple operating system types pre-stored in the host to be migrated, the interaction template corresponding to the operating system type is used as the target interaction template.
[0081] If the operating system type of the target host is not an existing operating system type, that is, the operating system type of the target host is not one of the multiple pre-stored operating system types in the host to be migrated, determine the target interaction commands corresponding to each of the multiple preset interaction steps in turn, and arrange the multiple target interaction commands in the order of their corresponding interaction steps to obtain the target interaction template used when the host to be migrated interacts with the target host.
[0082] Exemplarily, the preset multiple interaction steps include: interaction step 1, interaction step 2 and interaction step 3, the interaction command corresponding to interaction step 1 is determined as the target interaction command command 1, the interaction command corresponding to interaction step 2 is determined as the target interaction command command 3, the interaction command corresponding to interaction step 3 is determined as the target interaction command command 2, and command 1, command 3 and command 2 are arranged in the order of their corresponding interaction steps to obtain an interaction command sequence: command 1, command 3, command 2; this interaction command sequence is the target interaction template used when the host to be migrated interacts with the target host.
[0083] In this way, by determining the operating system type of the target host, it can be ensured that the system can adapt to different types of operating systems, whether they are common stock operating systems or newly emerging operating system types. This method improves the compatibility of the system and can adapt to more types of operating systems. For stock operating system types, the corresponding target interaction template is directly selected from multiple pre-stored interaction templates, which saves the time of regenerating templates and significantly improves the interaction efficiency. For non-stock operating system types, by sequentially determining the target interaction commands corresponding to each interaction step in the preset multiple interaction steps, an interaction template suitable for the new operating system can be dynamically generated. This method has high flexibility and scalability and can adapt to new operating system types that may appear in the future.
[0084] Optionally, determining in sequence the target interaction commands corresponding to the respective interaction steps in the preset multiple interaction steps includes:
[0085] For any interaction step, determine the interaction command set corresponding to the interaction step, and for any interaction command in the interaction command set, perform the following command determination operation until the target interaction command is determined;
[0086] The command determination operation includes:
[0087] Sending the current interactive command to the target host, so that the target host performs a corresponding operation after receiving the current interactive command, and returns the operation result to the host to be migrated;
[0088] If the operation result is the same as the expected result corresponding to the current interaction command, determining the current interaction command as the target interaction command;
[0089] If the operation result is different from the expected result corresponding to the current interactive command, the next interactive command is used as the current interactive command and continues to be sent to the target host.
[0090] Optionally, a mapping relationship table is stored in the host to be migrated, and the mapping relationship table is used to indicate the correspondence between the interaction steps and the interaction command set.
[0091] For any interaction step, the interaction command set corresponding to the interaction step is searched through the mapping relationship table, and for any interaction command in the interaction command set, a command determination operation is performed until the target interaction command is determined.
[0092] Command determination operations include:
[0093] The host to be migrated sends the current interactive command to the target host. After receiving the current interactive command, the target host performs the operation corresponding to the current interactive command and returns the operation result to the host to be migrated.
[0094] The host to be migrated receives the operation result. If the operation result is the same as the expected result corresponding to the current interaction command, the current interaction command is determined to be the target interaction command; if the operation result is different from the expected result corresponding to the current interaction command, the next priority interaction command is used as the current interaction command and continues to be sent to the target host.
[0095] In this way, for each interaction step, the target interaction command can be quickly determined from the interaction command set by executing the command determination operation, and whether the current interaction command is the target interaction command can be determined by judging whether the operation result is the same as the expected operation result, thereby improving the accuracy and efficiency of the target interaction command.
[0096] Step 203: For any migration requirement, cut out the target code corresponding to the migration requirement from the migration source code; the migration source code includes the operation source code corresponding to all the alternative requirements.
[0097] Specifically, the migration source code includes the operation source code corresponding to all the alternative requirements. Therefore, the host to be migrated can directly cut out the target code corresponding to any migration requirement input by the user from the migration source code.
[0098] Optionally, the target codes corresponding to the respective migration requirements are assembled to obtain all codes corresponding to at least one migration requirement input by the user.
[0099] Step 204: Generate a migration script according to the target code corresponding to each migration requirement, the migration information and the target interaction template.
[0100] Optionally, the host to be migrated can replace the information at a preset position in the initial migration script with the migration information to obtain a replaced migration script, and assemble the replaced migration script, the target code corresponding to each migration requirement, and the target interaction template to generate the migration script.
[0101] Step 205: Execute the migration script to migrate the files in the directory range to be migrated to the target directory in the target host.
[0102] Specifically, the host to be migrated executes the migration script to migrate the files in the directory to be migrated to the target directory in the target host.
[0103] The data migration method provided by the present application can obtain migration information input by a user and at least one migration requirement, wherein the migration information includes the range of directories to be migrated in the host to be migrated, identification information of the target host and the target directory; each migration requirement is selected from the alternative requirements; according to the identification information, a target interaction template used when interacting with the target host is determined; for any migration requirement, a target code corresponding to the migration requirement is cut out from the migration source code; the migration source code includes operation source codes corresponding to all alternative requirements; a migration script is generated according to the target codes corresponding to each migration requirement, the migration information and the target interaction template; the migration script is executed, and the directory to be migrated is transferred to the target host; The files within the directory range are migrated to the target directory in the target host, which can realize full automation of the entire migration process, allowing users to select migration requirements and input migration information according to specific needs, providing flexibility and customization capabilities. The interaction template used when the host to be migrated interacts with the target host can be automatically determined according to the identification information of the target host. The host to be migrated and the target host are no longer just a simple network connection, but can perform pre-set interaction behaviors. Through the preset interaction behaviors, the interaction capability can be enhanced and more functions can be realized. In addition, according to the migration requirements input by the user, the corresponding target code can be cut out from the migration source code, which can improve the generation efficiency and accuracy of the migration script.
[0104] Optionally, there are multiple files within the range of the directory to be migrated, and executing the migration script to migrate the files within the range of the directory to be migrated to the target directory in the target host includes:
[0105] Allocating the multiple files within the to-be-migrated directory range to multiple first migration tasks; each first migration task corresponds to a different file;
[0106] Creating a task pool, and sequentially placing the plurality of first migration tasks into the task pool;
[0107] The first migration task in the task pool is read in sequence, and the read first migration task enters the migration process;
[0108] The resource utilization of the host to be migrated is monitored, and when the resource utilization is greater than a preset threshold, at least one migration process among the multiple migration processes is interrupted, and the first migration task in the interrupted migration process is put back into the task pool.
[0109] The resource utilization may include the utilization of resources such as the CPU (Central Processing Unit), MEM (Memory), local disk and file storage I / O (Input / Output) of the host to be migrated.
[0110] Specifically, the host to be migrated starts to execute the migration script, assigns multiple files within the directory to be migrated to multiple first migration tasks, creates a task pool, and according to the capacity threshold of the task pool, puts at least a part of the multiple first migration tasks into the task pool, reads the first migration tasks in the task pool in sequence, and the read first migration tasks enter the migration process.
[0111] The resource utilization of the host to be migrated is monitored, and when the resource utilization is greater than a preset threshold, at least one migration process among the multiple migration processes is interrupted, and the first migration task in the interrupted migration process is put back into the task pool.
[0112] Optionally, it can be set to read the first migration task in the task pool at preset time intervals. When the total number of migration processes reaches the upper limit of the concurrent number or the resource utilization of the host to be migrated is greater than a preset threshold, stop reading the first migration task in the task pool. When the total number of migration processes is less than the upper limit of the concurrent number and the resource utilization of the host to be migrated is less than the preset threshold, read the first migration task in the task pool again at preset time intervals.
[0113] In this way, by monitoring the resource utilization of the host to be migrated, the migration process can be dynamically adjusted to ensure the rational use of system resources. When the resource utilization is too high, part of the migration process can be interrupted to prevent system overload and ensure system stability and performance. According to the changes in resource utilization, the allocation and execution of migration tasks can be optimized to improve resource utilization efficiency.
[0114] Optionally, the at least one migration requirement includes: a migration type, a threshold of the first migration task, a concurrency threshold of the migration process, and a preset threshold of resource utilization; the migration type includes full migration and incremental migration; the threshold of the first migration task is used to indicate the upper limit of the size of the file corresponding to the first migration task; the concurrency threshold of the migration process is used to indicate the upper limit of the concurrent number of migration processes; the preset threshold of resource utilization is used to indicate the upper limit of resource utilization.
[0115] Optionally, the directory range to be migrated includes multiple sub-directories, each sub-directory includes multiple files, and the migration information further includes: the priority corresponding to each sub-directory;
[0116] Accordingly, allocating the multiple files within the to-be-migrated directory range to multiple first migration tasks includes:
[0117] For any subdirectory, assign multiple files in the subdirectory to multiple second migration tasks, and the priority corresponding to each second migration task is the priority corresponding to the subdirectory;
[0118] Accordingly, interrupting at least one migration process among the multiple migration processes and re-placing the first migration task in the interrupted migration process into the task pool includes:
[0119] interrupting a migration process having the lowest corresponding priority among multiple migration processes, where the priority corresponding to the migration process is the priority of a second migration task corresponding to the migration process;
[0120] The second migration task in the interrupted migration process is put back to the front row of the task pool.
[0121] The directory range to be migrated includes multiple sub-directories, and each sub-directory in the multiple sub-directories corresponds to a priority.
[0122] If the priorities corresponding to the multiple migration processes are all the same, the migration process corresponding to the second migration task that is read out the latest is interrupted.
[0123] Exemplarily, the range of directories to be migrated includes subdirectory 1 and subdirectory 2, the priority corresponding to subdirectory 1 is 2, and the priority corresponding to subdirectory 2 is 1, wherein priority 1>priority 2, subdirectory 1 includes file 1, file 2, and file 3, file 1 and file 2 are assigned to second migration task 1, file 3 is assigned to second migration task 2, and the priorities corresponding to second migration task 1 and second migration task 2 are both 2; subdirectory 2 includes file 4, file 5, and file 6, file 4 is assigned to second migration task 3, file 5 and file 6 are assigned to second migration task 4, and the priorities corresponding to second migration task 3 and second migration task 4 are both 1.
[0124] The second migration tasks are arranged according to the priority and the allocation sequence, and the obtained second migration task queue is: second migration task 3, second migration task 4, second migration task 1, second migration task 2, wherein the allocation sequence refers to the order in which the files are allocated to the second migration tasks.
[0125] The above-arranged second migration tasks are loaded into the task pool in sequence, and the second migration task is taken out from the task pool and then enters the migration process. If the ongoing migration processes are migration process 1, migration process 2 and migration process 3, migration process 1 corresponds to the second migration task 3, migration process 2 corresponds to the second migration task 4, and migration process 3 corresponds to the second migration task 1. If it is monitored that the resource utilization of the host to be migrated is greater than the preset threshold at this time, the migration process with the lowest priority among the multiple migration processes, that is, migration process 3, is interrupted, because the second migration task 1 corresponding to migration process 3 has the lowest priority, and then the second migration task 1 is put back to the front of the task pool for priority reading later.
[0126] In this way, during the migration process, the migration process with the lowest priority can be interrupted and its task can be put back into the task pool. This dynamic adjustment mechanism ensures the optimal use of system resources, can respond to higher priority migration needs in a timely manner, improves the flexibility and response speed of the system, and through priority management and dynamic adjustment mechanism, can maximize the use of system resources and improve the processing efficiency of migration tasks. Especially in the case of limited resources, this method can significantly improve the overall migration speed and efficiency.
[0127] Optionally, the migration process includes a serial packaging process, a transmission process, and a decompression process; interrupting at least one migration process among the multiple migration processes includes:
[0128] At least one packaging process among the plurality of packaging processes is interrupted.
[0129] Specifically, the packaging process is used to indicate the process of packaging and compressing the files corresponding to the second migration task, the transmission process is used to indicate the process of migrating the files corresponding to the second migration task from the host to be migrated to the target host, and the decompression process is used to indicate the process of decompressing the compressed package.
[0130] Interrupting at least one of the multiple migration processes includes: interrupting at least one of the multiple packaging processes. The host to be migrated will only interrupt at least one of the multiple packaging processes. If other processes except the packaging process are in the migration process, they will not be interrupted.
[0131] In this way, by interrupting the packaging process instead of the transfer process or the decompression process, resource waste can be effectively reduced. The packaging process is usually the initial stage of the migration process. Interrupting it will not affect the files that have been transferred or decompressed, thus avoiding duplication of work and resource waste. The transfer process and the decompression process involve the movement and decompression of data. Interrupting these processes may cause data inconsistency or damage. By interrupting only the packaging process, the risk of data consistency can be reduced, ensuring data integrity and reliability during the migration process.
[0132] Optionally, the migration process may further include: a file consistency comparison process, where the file consistency comparison process is used to indicate whether the files before and after the migration are consistent.
[0133] Optionally, the migration process includes multiple serial sub-processes, and the file migration method provided by the present application further includes:
[0134] Monitor the multiple sub-processes in sequence, and enter the next sub-process after the current sub-process ends;
[0135] Record the duration of each subprocess.
[0136] For any sub-process, if the sub-process takes longer than the preset time, the sub-process will be interrupted and recorded in the task operation related log to facilitate subsequent automatic problem identification or professional technicians to troubleshoot the problem.
[0137] Optionally, the migration process includes: a packaging process, wherein the packaging process is used to query the target landing file corresponding to the first migration task and package the target landing file.
[0138] Specifically, the packaging process includes searching for target landing files corresponding to the first migration task, and then packaging the target landing files.
[0139] In this way, the packaging needs of directories with massive fragmented files can be met, and problems such as buffer overflow and incomplete packaging caused by the use of pipe character commands can be avoided.
[0140] Figure 3 A principle block diagram of a data migration method provided in an embodiment of the present application, such as Figure 3 As shown, including:
[0141] The file migration tool for the localization transformation of the application system: the file migration console provides multiple alternative requirements, namely the migration strategy set, which is referred to as the migration strategy set in the process described later. It guides the user to input the migration requirements and migration information, and automatically analyzes, detects, and generates migration scripts based on the migration requirements and migration information, runs and creates task pools, schedules related tasks, and provides tasks. Process management, resource utilization monitoring and intervention, and migration results comparison functions.
[0142] File migration guided input module: guides users to input migration information and migration requirements, where the migration information includes: the range of directories to be migrated in the host to be migrated, the identification information of the target host and the target directory; the migration requirements include: full incremental type, size control of each task migration, overall concurrency limit, etc.
[0143] Automatic generation of migration scripts: Based on the migration information and migration requirements collected by the guide, the system automatically analyzes the directory range structure to be migrated in the host to be migrated, automatically detects and generates interactive commands for the target host, cuts the file migration source code as needed for assembly, and automatically generates file migration scripts.
[0144] File migration task pool: Arrange and load the tasks to be migrated according to the priority of each sub-directory in the directory range structure to be migrated and the time sequence record of the split tasks, so as to facilitate the scheduling and management of file migration tasks.
[0145] System resource health monitoring: Rely on the operating system crontab scheduled task to check the CPU, MEM, local disk and file storage I / O and other resource usage of the migration host. Among them, crontab is a command and file used to manage and schedule periodic tasks.
[0146] Task process monitoring and scheduling: Rely on the operating system crontab scheduled task to monitor the progress of each file migration task at a fixed frequency, and track and schedule tasks in the order of packaging task process, transmission task process, machine decompression task process, and migration file consistency comparison task process in the host to be migrated and the target host.
[0147] Task blocking: When system resource health monitoring finds abnormal resource usage, the task blocking function is called to block the related tasks with the closest timing or the lowest criticality, and the aborted tasks are re-included in the task pool for priority sorting, and are executed first after the parallelism is released.
[0148] Consistency check: Compare the number of files in the directory to be migrated according to the policy, and compare the md5 (Message-Digest Algorithm 5) values of the files in the directory to be migrated by sampling to see if they are consistent.
[0149] Figure 4 A flow chart of another data migration method provided in an embodiment of the present application is shown as follows: Figure 4 As shown, the process in the figure is organized into a full-process model of application system file migration, which is divided into seven functional modules, namely: guided migration requirement collection module, migration script automatic generation module, task pool management module, task scheduling and monitoring module, system resource health monitoring module, task blocking module and information collection module.
[0150] (1) Guided Migration Requirements Collection Module
[0151] By applying the system file migration tool, the user is guided to input migration information and at least one migration requirement according to the prompts of the policy set. The migration information may include: the range of directories to be migrated in the host to be migrated, the priority corresponding to each subdirectory in the multiple subdirectories included in the range of directories to be migrated, the identification information of the target host, the IP (Internet Protocol) address of the target host, and the target directory. At least one migration requirement may include: full incremental type, size control of migration directory files, concurrency limit of migration tasks, resource utilization monitoring threshold, scheduled task scheduling frequency, etc.
[0152] (2) Migration script automatically generates modules
[0153] Generate configuration files based on the user migration requirements and migration information collected during the guidance, automatically analyze the range of the local directory to be migrated, perform task segmentation and generate records; automatically detect the target host based on the identification information of the target host, collect the target host operating system type, and if it is an existing operating system, apply the existing remote interaction template; if it is not an existing operating system, simulate the remote interaction and task execution process between the host to be migrated and the target host, and generate a new remote interaction template. According to user needs and the adapted remote interaction template, cut the file migration source code as needed for assembly, automatically generate the file migration script and execute it. Automatically generate scheduled tasks for system resource health monitoring and task scheduling and monitoring and load them into the operating system.
[0154] (3) Task pool management module
[0155] After the file migration script is executed, a file migration task pool will be created. The migration tasks will be arranged according to the priority of each sub-directory and the timing record of the segmentation task, and loaded into the task pool. The packaging task process, transfer task process, decompression task process, and migration file consistency comparison task process in the host to be migrated and the target host involved in the migration will be managed in time.
[0156] (4) Task scheduling and monitoring module
[0157] According to the scheduled task scheduling frequency (if not set, every 30 seconds), monitor the status of each task process in the file migration process to see if it is completed. According to the packaging task process (a two-stage method is adopted, that is, first query the file information of each directory and convert it into files, and then package it according to the landed files, which can meet the packaging needs of a directory with a large number of fragmented files and prevent the use of pipe character commands. The buffer overflow causes incomplete packaging and other problems), the transmission task process, the decompression task process, and the migration file consistency comparison task process in the host to be migrated and the target host are tracked in order. After monitoring the completion of the previous task process and the success of the log, the next task scheduling is carried out. If the process is interrupted or the task fails to exit the log abnormally, the subsequent tasks will be interrupted.
[0158] (5) System resource health monitoring module
[0159] The scheduled task scheduling frequency (if not set, it will be every 30 seconds) automatically checks the CPU, memory, local disk, file storage I / O and other resource usage of the migration host. If the resource usage exceeds the preset threshold, the task blocking module will be called.
[0160] (6) Task blocking module
[0161] After being called by the system resource health monitoring module, it automatically identifies the related task process with the closest timing or the lowest criticality, blocks the task, makes relevant records, re-incorporates it into the task pool, and prioritizes the sequence, and schedules it first after the parallel task is released.
[0162] (7) Information collection module
[0163] Automatically collect task operation related logs, automatically identify problem links, and associate error information to provide important references for locating the root cause of the problem. At the same time, the recorded information such as the processing time of each task also provides relevant guidance for the optimization of the overall file migration strategy.
[0164] The data migration method for application system transformation and switching provided by the present invention can provide a unified solution for file migration of various types of application systems, can be compatible with various operating systems and storage media including domestic ones, can support incremental and different types of migration work, guide users to customize file migration requirements according to the policy set, and can automatically realize one-stop services such as file directory analysis, file migration script generation, file migration scheduling and monitoring, and file migration result comparison services. And the problems found in the process and the solutions analyzed can be continuously integrated into the file migration policy set, forming a closed-loop growth mechanism of PDCA (Plan-Do-Check-Act cycle) to promote iterative improvement of tools.
[0165] Corresponding to the above-mentioned data migration method, an embodiment of the present application also provides a data migration device. Figure 5 A schematic diagram of the structure of a data migration device provided in an embodiment of the present application. Figure 5 As shown, the device comprises:
[0166] The acquisition module 501 is used to acquire migration information and at least one migration requirement input by a user, wherein the migration information includes a range of directories to be migrated in the host to be migrated, identification information of the target host, and a target directory; each migration requirement is selected from the candidate requirements;
[0167] A determination module 502, configured to determine a target interaction template to be used when interacting with the target host according to the identification information;
[0168] The cutting module 503 is used to cut out the target code corresponding to any migration requirement from the migration source code; the migration source code includes the operation source code corresponding to all the alternative requirements;
[0169] A generation module 504, configured to generate a migration script according to the target code corresponding to each migration requirement, the migration information and the target interaction template;
[0170] The execution module 505 is used to execute the migration script to migrate the files in the directory range to be migrated to the target directory in the target host.
[0171] Optionally, the determination module 502 is specifically configured to:
[0172] Determine the operating system type of the target host according to the identification information;
[0173] When the operating system type is a stock operating system type, selecting a target interaction template corresponding to the operating system type from a plurality of pre-stored interaction templates;
[0174] When the operating system type is not an existing operating system type, the target interaction commands corresponding to each of the preset multiple interaction steps are determined in sequence, and according to the target interaction commands corresponding to each of the interaction steps, the target interaction template used when interacting with the target host is determined.
[0175] Optionally, when determining the target interaction command corresponding to each of the preset multiple interaction steps in sequence, the determination module 502 is specifically configured to:
[0176] For any interaction step, determine the interaction command set corresponding to the interaction step, and for any interaction command in the interaction command set, perform the following command determination operation until the target interaction command is determined;
[0177] The command determination operation includes:
[0178] Sending the current interactive command to the target host, so that the target host performs a corresponding operation after receiving the current interactive command, and returns the operation result to the host to be migrated;
[0179] If the operation result is the same as the expected result corresponding to the current interaction command, determining the current interaction command as the target interaction command;
[0180] If the operation result is different from the expected result corresponding to the current interactive command, the next interactive command is used as the current interactive command and continues to be sent to the target host.
[0181] Optionally, there are multiple files within the directory to be migrated, and the execution module 505 is specifically used to:
[0182] Allocating the multiple files within the to-be-migrated directory range to multiple first migration tasks; each first migration task corresponds to a different file;
[0183] Creating a task pool, and sequentially placing the plurality of first migration tasks into the task pool;
[0184] The first migration task in the task pool is read in sequence, and the read first migration task enters the migration process;
[0185] The resource utilization of the host to be migrated is monitored, and when the resource utilization is greater than a preset threshold, at least one migration process among the multiple migration processes is interrupted, and the first migration task in the interrupted migration process is put back into the task pool.
[0186] Optionally, the at least one migration requirement includes: a migration type, a threshold of the first migration task, a concurrency threshold of the migration process, and a preset threshold of resource utilization; the migration type includes full migration and incremental migration; the threshold of the first migration task is used to indicate the upper limit of the size of the file corresponding to the first migration task; the concurrency threshold of the migration process is used to indicate the upper limit of the concurrent number of migration processes; the preset threshold of resource utilization is used to indicate the upper limit of resource utilization.
[0187] Optionally, the directory range to be migrated includes multiple sub-directories, each sub-directory includes multiple files, and the migration information further includes: the priority corresponding to each sub-directory;
[0188] Accordingly, when allocating the multiple files within the to-be-migrated directory range to the multiple first migration tasks, the execution module 505 is specifically configured to:
[0189] For any subdirectory, assign multiple files in the subdirectory to multiple second migration tasks, and the priority corresponding to each second migration task is the priority corresponding to the subdirectory;
[0190] Accordingly, interrupting at least one migration process among the multiple migration processes and re-placing the first migration task in the interrupted migration process into the task pool includes:
[0191] interrupting a migration process having the lowest corresponding priority among multiple migration processes, where the priority corresponding to the migration process is the priority of a second migration task corresponding to the migration process;
[0192] The second migration task in the interrupted migration process is put back to the front row of the task pool.
[0193] Optionally, the migration process includes a serial packaging process, a transmission process and a decompression process; when the execution module 505 interrupts at least one migration process among the multiple migration processes, it is specifically used to:
[0194] At least one packaging process among the plurality of packaging processes is interrupted.
[0195] Optionally, the migration process includes: a packaging process, wherein the packaging process is used to query the target landing file corresponding to the first migration task and package the target landing file.
[0196] The specific implementation principle and effect of the data migration device provided in the embodiment of the present application can be found in the aforementioned embodiment and will not be repeated here.
[0197] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 6 As shown, the electronic device of this embodiment may include:
[0198] at least one processor 601; and
[0199] A memory 602 communicatively connected to the at least one processor;
[0200] The memory 602 stores instructions that can be executed by the at least one processor 601, and the instructions are executed by the at least one processor 601 to enable the electronic device to execute the method described in any of the above embodiments.
[0201] Optionally, the memory 602 may be independent or integrated with the processor 601 .
[0202] The implementation principle and technical effects of the electronic device provided in this embodiment can be found in the aforementioned embodiments and will not be described in detail here.
[0203] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions. When a processor executes the computer-executable instructions, the method described in any of the above embodiments is implemented.
[0204] An embodiment of the present application further provides a computer program product, including a computer program, which implements the method described in any of the above embodiments when executed by a processor.
[0205] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed.
[0206] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the method described in each embodiment of the present application.
[0207] It should be understood that the above-mentioned processor can be a processing unit (Central Processing Unit, CPU), or other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application-specific integrated circuits (Application Specific Integrated Circuit, ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the application can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor. The memory may include a high-speed random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk storage, and can also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk, etc.
[0208] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0209] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.
[0210] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0211] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0212] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0213] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A data migration method, characterized in that: include: Obtaining migration information and at least one migration requirement input by a user, wherein the migration information includes a range of directories to be migrated in the host to be migrated, identification information of a target host, and a target directory; Each migration requirement is selected from the alternative requirements; Determining, according to the identification information, a target interaction template to be used when interacting with the target host; For any migration requirement, cutting out the target code corresponding to the migration requirement from the migration source code; The migration source code includes the operation source code corresponding to all the alternative requirements; Generate a migration script according to the target code corresponding to each migration requirement, the migration information and the target interaction template; The migration script is executed to migrate the files in the directory to be migrated to the target directory in the target host.
2. The method according to claim 1, characterized in that Determining, according to the identification information, a target interaction template to be used when interacting with the target host, including: Determine the operating system type of the target host according to the identification information; When the operating system type is a stock operating system type, selecting a target interaction template corresponding to the operating system type from a plurality of pre-stored interaction templates; When the operating system type is not an existing operating system type, the target interaction commands corresponding to each of the preset multiple interaction steps are determined in sequence, and according to the target interaction commands corresponding to each of the interaction steps, the target interaction template used when interacting with the target host is determined.
3. The method according to claim 2, characterized in that Determining in sequence the target interaction commands corresponding to each of the preset multiple interaction steps, including: For any interaction step, determine the interaction command set corresponding to the interaction step, and for any interaction command in the interaction command set, perform the following command determination operation until the target interaction command is determined; The command determination operation includes: Sending the current interactive command to the target host, so that the target host performs a corresponding operation after receiving the current interactive command, and returns the operation result to the host to be migrated; If the operation result is the same as the expected result corresponding to the current interaction command, determining the current interaction command as the target interaction command; If the operation result is different from the expected result corresponding to the current interactive command, the next interactive command is used as the current interactive command and continues to be sent to the target host.
4. The method according to any one of claims 1 to 3, characterized in that: There are multiple files in the range of the directory to be migrated, and executing the migration script to migrate the files in the range of the directory to be migrated to the target directory in the target host includes: Allocating the multiple files within the to-be-migrated directory range to multiple first migration tasks; each first migration task corresponds to a different file; Creating a task pool, and sequentially placing the plurality of first migration tasks into the task pool; The first migration task in the task pool is read in sequence, and the read first migration task enters the migration process; The resource utilization of the host to be migrated is monitored, and when the resource utilization is greater than a preset threshold, at least one migration process among the multiple migration processes is interrupted, and the first migration task in the interrupted migration process is put back into the task pool.
5. The method according to claim 4, characterized in that The at least one migration requirement includes: a migration type, a threshold of a first migration task, a concurrency threshold of a migration process, and a preset threshold of resource utilization; the migration type includes full migration and incremental migration; the threshold of the first migration task is used to indicate an upper limit on the size of a file corresponding to the first migration task; the concurrency threshold of the migration process is used to indicate an upper limit on the number of concurrent migration processes; the preset threshold of resource utilization is used to indicate an upper limit on resource utilization.
6. The method according to claim 4, characterized in that The directory range to be migrated includes multiple sub-directories, each sub-directory includes multiple files, and the migration information also includes: the priority corresponding to each sub-directory; Accordingly, allocating the multiple files within the to-be-migrated directory range to multiple first migration tasks includes: For any subdirectory, assign multiple files in the subdirectory to multiple second migration tasks, and the priority corresponding to each second migration task is the priority corresponding to the subdirectory; Accordingly, interrupting at least one migration process among the multiple migration processes and re-placing the first migration task in the interrupted migration process into the task pool includes: interrupting a migration process having the lowest corresponding priority among multiple migration processes, where the priority corresponding to the migration process is the priority of a second migration task corresponding to the migration process; The second migration task in the interrupted migration process is put back to the front row of the task pool.
7. The method according to claim 4, characterized in that The migration process includes a serial packaging process, a transmission process and a decompression process; Interrupting at least one migration process among the multiple migration processes includes: At least one packaging process among the plurality of packaging processes is interrupted.
8. The method according to claim 4, characterized in that The migration process includes: a packaging process, wherein the packaging process is used to query the target landing file corresponding to the first migration task and package the target landing file.
9. A data migration device, characterized in that: include: An acquisition module, used to acquire migration information and at least one migration requirement input by a user, wherein the migration information includes a range of directories to be migrated in the host to be migrated, identification information of the target host, and a target directory; each migration requirement is selected from the candidate requirements; A determination module, used to determine a target interaction template to be used when interacting with the target host according to the identification information; A cutting module, used for cutting out target code corresponding to any migration requirement from the migration source code; The migration source code includes the operation source code corresponding to all the alternative requirements; A generation module, used to generate a migration script according to the target code corresponding to each migration requirement, the migration information and the target interaction template; The execution module is used to execute the migration script to migrate the files in the directory range to be migrated to the target directory in the target host.
10. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 8 when executed by a processor.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Cited By
Code fragment storage method, electronic equipment, storage medium and program product
CN120950004A