Data processing method and device, computer equipment, readable storage medium and program product

By establishing the matching relationship between the high-performance preset storage system and the existing storage environment and modifying the partitioning method of database tables, the complex problems of downtime maintenance and data migration during data storage architecture upgrade are solved, and the smooth upgrade of the data storage environment is achieved. Efficient upgrade.

CN118964491APending Publication Date: 2024-11-15SUZHOU LANGDONG NET TEC CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411120789.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-15
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

During the upgrade of the existing data storage architecture, the maintenance is required, resulting in service interruption, affecting business continuity, and data migration is complex, inefficient and time cost high.

Method used

By establishing a matching relationship between the high-performance preset storage system and the existing storage environment, mount the data storage directory to the preset storage system, and modifying the partitioning method of the database tables, so that the data access path includes the data storage directory, thereby providing a shared high Performance storage system that reduces data migration and movement between different environments.

Benefits of technology

It realizes smooth upgrade of the data storage environment, avoids service interruptions caused by downtime maintenance, improves upgrade efficiency and reliability, and is suitable for more application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964491A_ABST
    Figure CN118964491A_ABST
Patent Text Reader

Abstract

The invention relates to a data processing method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the steps that in response to a received environment upgrading instruction, a matching relation between a first storage environment and a preset storage system is established, and the storage performance of the preset storage system is higher than that of the first storage environment; mounting a data storage directory of the first storage environment to the preset storage system; and according to the data storage directory, modifying a partition mode of a database table in a second storage environment, so that an access path of data in the database table comprises the data storage directory. By adopting the method, the efficiency and upgrading reliability can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data processing method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] With the advancement of science and technology and the development of the information age, the requirements for data storage and data processing are becoming higher and higher. Usually, in order to meet the needs of more application scenarios, the data storage architecture needs to be upgraded.

[0003] In the related technology, when upgrading, downtime maintenance is required. During the downtime maintenance, the service is interrupted, affecting the continuity of the business. In addition, data migration during the upgrade process is relatively complicated, involving the movement and synchronization of a large amount of data, resulting in low upgrade efficiency and high time cost. Summary of the invention

[0004] Based on this, it is necessary to provide a data processing method, apparatus, computer equipment, computer-readable storage medium and computer program product that can improve efficiency in response to the above technical problems.

[0005] In a first aspect, the present application provides a data processing method, comprising:

[0006] In response to receiving the environment upgrade instruction, establishing a matching relationship between the first storage environment and a preset storage system, wherein the storage performance of the preset storage system is higher than that of the first storage environment;

[0007] Mounting the data storage directory of the first storage environment to the preset storage system;

[0008] The partitioning mode of the database table in the second storage environment is modified according to the data storage directory, so that the access path of the data in the database table includes the data storage directory.

[0009] In one embodiment, establishing a matching relationship between the first storage environment and the preset storage system includes:

[0010] Installing a preset storage system, and configuring the preset storage system using the identification information of the first storage environment;

[0011] The storage configuration in the first storage environment is adjusted according to the preset storage system, and a matching relationship between the first storage environment and the preset storage system is established.

[0012] In one embodiment, mounting the data storage directory of the first storage environment to the preset storage system includes:

[0013] Modify the storage configuration of the preset storage system according to the attribute information of the data storage directory of the first storage environment to obtain a modified preset storage system;

[0014] Determine the directory to be mounted in the modified preset storage system;

[0015] An association relationship between the data storage directory and the directory to be mounted is established to mount the data storage directory to the preset storage system.

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

[0017] Obtaining a first configuration file of the first storage environment and a second configuration file of the second storage environment;

[0018] The data access node information in the first configuration file and the second configuration file is modified to obtain an adjusted first configuration file and an adjusted second configuration file, so that the first storage environment and the second storage environment correspond to the same data access node.

[0019] In one embodiment, after receiving the environment upgrade instruction, the method further includes:

[0020] Determine target data in the second storage environment, where the target data is determined based on data attributes of the data in the second storage environment;

[0021] The target data is transferred to the first storage environment.

[0022] In a second aspect, the present application further provides a data processing device, comprising:

[0023] an establishing module, configured to establish, in response to receiving an environment upgrade instruction, a matching relationship between a first storage environment and a preset storage system, wherein the storage performance of the preset storage system is higher than that of the first storage environment;

[0024] A mounting module, used to mount the data storage directory of the first storage environment to the preset storage system;

[0025] The modification module is used to modify the partition mode of the database table in the second storage environment according to the data storage directory, so that the access path of the data in the database table includes the data storage directory.

[0026] In one embodiment, the establishing module is further used to:

[0027] Installing a preset storage system, and configuring the preset storage system using the identification information of the first storage environment;

[0028] The storage configuration in the first storage environment is adjusted according to the preset storage system, and a matching relationship between the first storage environment and the preset storage system is established.

[0029] In one embodiment, the mounting module is further used for:

[0030] Modify the storage configuration of the preset storage system according to the attribute information of the data storage directory of the first storage environment to obtain a modified preset storage system;

[0031] Determine the directory to be mounted in the modified preset storage system;

[0032] An association relationship between the data storage directory and the directory to be mounted is established to mount the data storage directory to the preset storage system.

[0033] In one embodiment, the device further comprises:

[0034] An acquisition submodule, configured to acquire a first configuration file of the first storage environment and a second configuration file of the second storage environment;

[0035] The modification submodule is used to modify the data access node information in the first configuration file and the second configuration file to obtain an adjusted first configuration file and an adjusted second configuration file so that the first storage environment and the second storage environment correspond to the same data access node.

[0036] In one embodiment, the device further comprises:

[0037] A determination submodule, configured to determine target data in the second storage environment, wherein the target data is determined based on data attributes of the data in the second storage environment;

[0038] The transmission submodule is used to transmit the target data to the first storage environment.

[0039] In a third aspect, an embodiment of the present disclosure further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the methods in the embodiments of the present disclosure are implemented.

[0040] In a fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, wherein a computer program is stored thereon, and when the computer program is executed by a processor, the steps of any one of the methods in the embodiments of the present disclosure are implemented.

[0041] In a fifth aspect, the embodiments of the present disclosure further provide a computer program product, wherein the computer program product includes a computer program, and when the computer program is executed by a processor, the steps of any one of the methods in the embodiments of the present disclosure are implemented.

[0042] The above-mentioned data processing method, apparatus, computer equipment, computer-readable storage medium and computer program product, upon receiving an environment upgrade instruction, establish a matching relationship between the first storage environment and the preset storage system, and mount the data storage directory of the first storage environment to the preset storage system, and modify the partitioning method of the database table in the second storage environment according to the data storage directory, so that the access path of the data in the database table includes the data storage directory, thereby providing a shared high-performance storage system between the first storage environment and the second storage environment, improving scalability, and reducing the amplitude and movement of data between different environments; by introducing the adjustment of the preset storage system and the data storage directory, the data access performance is effectively improved, and the data reliability is also enhanced, so that when the environment is upgraded, the user will not encounter interruptions when querying data, thereby realizing a smooth upgrade of the data storage environment, avoiding service interruptions caused by downtime maintenance, improving upgrade efficiency and reliability, and being suitable for more application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0044] Figure 1 is a flow chart of a data processing method in one embodiment;

[0045] Figure 2 is a flow chart of a data processing method in another embodiment;

[0046] Figure 3 is a flow chart of a data processing method in another embodiment;

[0047] Figure 4 is a flow chart of a data processing method in another embodiment;

[0048] Figure 5 is a structural block diagram of a data processing device in one embodiment;

[0049] Figure 6 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

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

[0051] In one embodiment, Figure 1 As shown, a data processing method is provided. This embodiment takes the method applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:

[0052] Step S110, in response to receiving the environment upgrade instruction, establishing a matching relationship between the first storage environment and a preset storage system, wherein the storage performance of the preset storage system is higher than that of the first storage environment;

[0053] Exemplarily, the environment upgrade instruction can be sent by a user or automatically triggered by the environment, which can be determined according to the actual application scenario. A matching relationship is established between the first storage environment and the preset storage system, and the storage performance of the preset storage system is higher than that of the first storage environment.

[0054] In one example, the preset storage system can be set to a high-performance cache system, including but not limited to Alluxio, etc., which can be determined according to the actual application scenario. In a possible implementation, the first storage environment can be set to a Hadoop cluster, such as a Hadoop2 cluster, a Hadoop3 cluster, etc.

[0055] In a possible implementation, a matching relationship between the first storage environment and the preset storage system may be established by modifying a configuration file of the first storage environment and a configuration file of the preset storage system.

[0056] Step S120, mounting the data storage directory of the first storage environment to the preset storage system;

[0057] Exemplarily, the data storage directory of the first storage environment is mounted to the preset storage system, wherein the data storage directory may be part or all of the storage directories in the first storage environment. In one example, the data storage directory may be the HDFS directory of the first storage environment. The HDFS (Hadoop Distributed File System) directory refers to the basic hierarchical structure for storing data in a distributed file system. HDFS can manage large-scale files in a cluster with high fault tolerance and high throughput. HDFS adopts a tree-like hierarchical structure, similar to a traditional file system, and may have multiple directories and subdirectories. Users can create, delete, and manage files in the directory. In HDFS, files are divided into multiple data blocks and stored on different nodes in the cluster. The directory structure provides a way to organize and manage these files. Users can create, list, and delete directories and files through HDFS command line tools (such as the 'hdfs dfs' command) or programming interfaces; through the hierarchical directory structure, large data sets can be effectively organized and managed, which facilitates subsequent data analysis and processing.

[0058] In a possible implementation, the data storage directory can be mounted by configuring the preset storage system. In one example, after the data storage directory is mounted to the preset storage system, the read and write requests for the data storage directory will be processed by the preset storage system. Since the preset storage system has higher storage performance, the efficiency and reliability of data access and reading and writing can be effectively improved.

[0059] Step S130: modify the partitioning mode of the database table in the second storage environment according to the data storage directory, so that the access path of the data in the database table includes the data storage directory.

[0060] Exemplarily, the partitioning method of the database table in the second storage environment is modified according to the data storage directory, so that the access path of the data in the database table includes the data storage directory, so that the partition access path of the table can be pointed to the data access directory in an imperceptible manner, and the metadata of the table remains unchanged. When data is accessed, it will pass through the preset storage system and data storage directory, thereby ensuring higher performance and reliability. When users access data in the database table, the preset storage system can take advantage of its high performance and scalability.

[0061] In one example, the performance of the first storage environment is set to be higher than the performance of the second storage environment. For example, the first storage environment may be a Hadoop 3 cluster, and the second storage environment may be a Hadoop 2 cluster. The specific performance may be determined according to actual application scenarios.

[0062] In an example, the database table may include but is not limited to a Hive table, which may be determined based on an actual application scenario.

[0063] In the embodiment of the present disclosure, when an environment upgrade instruction is received, a matching relationship is established between the first storage environment and the preset storage system, and the data storage directory of the first storage environment is mounted to the preset storage system, and the partitioning method of the database table in the second storage environment is modified according to the data storage directory, so that the access path of the data in the database table includes the data storage directory, thereby providing a shared high-performance storage system between the first storage environment and the second storage environment, improving scalability, and reducing the amplitude and movement of data between different environments; by introducing the adjustment of the preset storage system and the data storage directory, the data access performance is effectively improved, and the data reliability is also enhanced, so that when the environment is upgraded, the user will not encounter interruptions when querying data, thereby realizing a smooth upgrade of the data storage environment, avoiding service interruptions caused by downtime maintenance, improving upgrade efficiency and reliability, and being suitable for more application scenarios.

[0064] In one embodiment, Figure 2 As shown, the establishing of a matching relationship between the first storage environment and the preset storage system includes:

[0065] Step S111, installing a preset storage system, and configuring the preset storage system using the identification information of the first storage environment;

[0066] Step S112: adjusting the storage configuration in the first storage environment according to the preset storage system, and establishing a matching relationship between the first storage environment and the preset storage system.

[0067] Exemplarily, when the matching relationship between the first storage environment and the preset storage system is established, the preset storage system is installed. In one example, before installing the preset storage system, environmental preparation is performed to ensure that the first storage environment operates normally and configure environmental variables.

[0068] When installing the preset storage system, the preset storage system is configured using the identification information of the first storage environment, wherein the identification information may include but is not limited to a domain name, an IP address, a coding identifier, etc., which may be determined based on the actual application scenario.

[0069] Optionally, the storage configuration in the first storage environment is adjusted according to the preset storage system. In one example, the core configuration file in the first storage environment may be modified so that the adjusted first storage environment includes a file system of the preset storage system.

[0070] In one example, after the matching relationship is established, the first storage environment and the preset storage system may be run for verification to ensure that the matching relationship is successfully established.

[0071] In the disclosed embodiment, when establishing a matching relationship, a preset storage system is first installed, and the preset storage system is configured using the identification information of the first storage environment. The storage configuration in the first storage environment is configured according to the preset storage system to establish a matching relationship between the two. The matching relationship between the first storage environment and the preset storage system can be established quickly and accurately. Through installation and configuration modification, a high-performance preset storage system is configured for the first storage environment, data access performance is improved, and scalability is improved.

[0072] In one embodiment, Figure 3 As shown, mounting the data storage directory of the first storage environment to the preset storage system includes:

[0073] Step S121, modifying the storage configuration of the preset storage system according to the attribute information of the data storage directory of the first storage environment to obtain a modified preset storage system;

[0074] Step S122, determining the directory to be mounted in the modified preset storage system;

[0075] Step S123: establishing an association relationship between the data storage directory and the directory to be mounted, so as to mount the data storage directory to the preset storage system.

[0076] Exemplarily, when performing directory mounting, the storage configuration of the preset storage system is modified according to the attribute information of the data storage directory of the first storage environment to obtain the modified preset storage system. In one example, before modifying the storage configuration, the environment preparation can be performed to ensure that the first storage environment is operating normally, the preset storage system has been started, and the environment parameters have been configured.

[0077] In one example, the storage configuration of the preset storage system may be modified accordingly according to the attribute information of the data storage directory to specify the data storage directory as the underlying storage. For example, the attributes in the storage configuration of the preset storage system may be added or modified.

[0078] When mounting, a specific directory to be mounted may be set to determine the directory to be mounted, wherein the directory to be mounted may be determined according to mounting requirements in an actual application scenario.

[0079] In one example, the configuration information of the directory to be mounted can be modified to establish an association relationship between the data storage directory and the directory to be mounted. After the association relationship is established, the data storage directory is mounted to the preset storage system.

[0080] In an embodiment of the present disclosure, the storage configuration of a preset storage system is modified according to the attribute information of the data storage directory in the first storage environment, the directory to be mounted in the modified preset storage system is determined, and an association relationship between the data storage directory and the directory to be mounted is established, so that the data storage directory can be mounted to the preset storage system, and the mounting between the data storage directory and the preset storage system is realized efficiently and accurately, so that the preset storage system can provide fast data access performance and is suitable for more application scenarios.

[0081] In one embodiment, Figure 4 As shown, the method also includes:

[0082] Step S410, obtaining a first configuration file of the first storage environment and a second configuration file of the second storage environment;

[0083] Step S420, modify the data access node information in the first configuration file and the second configuration file to obtain an adjusted first configuration file and an adjusted second configuration file, so that the first storage environment and the second storage environment correspond to the same data access node.

[0084] Exemplarily, the first storage environment and the second storage environment correspond to the same data access node. In one example, the configuration of the data access node can be achieved by modifying the configuration file.

[0085] A first configuration file of the first storage environment and a second configuration file of the second storage environment are obtained. In an example, the first configuration file and the second configuration file may include but are not limited to an interface configuration file and the like.

[0086] The first configuration file includes data access node information of the first storage environment, and the second configuration file includes data access node information of the second storage environment. The data access node information of the first configuration file and the second configuration file are modified so that the data access node information in the modified first configuration file and the second configuration file are the same, that is, the first storage environment and the second storage environment correspond to the same data access nodes.

[0087] In an example, the data access node can be adjusted by modifying the configuration of Nameservice.

[0088] In the disclosed embodiment, the configuration files of the first storage environment and the second storage environment are modified so that the first storage environment and the second storage environment correspond to the same data access node, thereby enabling data communication between different environments. The two storage environments can recognize and communicate with each other, facilitating subsequent data migration and ensuring imperceptible upgrades of subsequent environments. During the upgrade process, users can still query data.

[0089] In one embodiment, after receiving the environment upgrade instruction, the method further includes:

[0090] Determine target data in the second storage environment, where the target data is determined based on data attributes of the data in the second storage environment;

[0091] The target data is transferred to the first storage environment.

[0092] Exemplarily, after receiving the environment upgrade instruction, data migration can also be performed. In one example, the performance of the first storage environment is better than that of the second storage environment, so the data of the second storage environment can be migrated to the first storage environment, and imperceptible data migration can be achieved during the upgrade process.

[0093] In one example, the target data in the second storage environment can be determined based on data attributes. For example, preset data attributes can be determined in advance based on actual application scenarios, and data with data attributes that meet the preset data attributes can be determined as target data. In one example, preset data attributes can be determined based on data attributes corresponding to data with low activity and low frequency of use, so as to screen out target data with low activity and low frequency of use for data migration.

[0094] After the target data is determined, the target data is migrated to the first storage environment.

[0095] In the embodiment of the present disclosure, after receiving the environment upgrade instruction, the target data in the second storage environment can also be transferred to the first storage environment, thereby improving the utilization rate of the data storage space in the second storage environment. At the same time, the consistency and integrity of the data in the first storage environment and the second storage environment are ensured, which is suitable for more application scenarios.

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

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

[0098] In an exemplary embodiment, Figure 5 As shown, a data processing device 500 is provided, comprising:

[0099] An establishing module 510, configured to establish a matching relationship between a first storage environment and a preset storage system in response to receiving an environment upgrade instruction, wherein the storage performance of the preset storage system is higher than that of the first storage environment;

[0100] A mounting module 520, configured to mount the data storage directory of the first storage environment to the preset storage system;

[0101] The modification module 530 is used to modify the partitioning mode of the database table in the second storage environment according to the data storage directory, so that the access path of the data in the database table includes the data storage directory.

[0102] In one embodiment, the establishing module is further used to:

[0103] Installing a preset storage system, and configuring the preset storage system using the identification information of the first storage environment;

[0104] The storage configuration in the first storage environment is adjusted according to the preset storage system, and a matching relationship between the first storage environment and the preset storage system is established.

[0105] In one embodiment, the mounting module is further used for:

[0106] Modify the storage configuration of the preset storage system according to the attribute information of the data storage directory of the first storage environment to obtain a modified preset storage system;

[0107] Determine the directory to be mounted in the modified preset storage system;

[0108] An association relationship between the data storage directory and the directory to be mounted is established to mount the data storage directory to the preset storage system.

[0109] In one embodiment, the device further comprises:

[0110] An acquisition submodule, configured to acquire a first configuration file of the first storage environment and a second configuration file of the second storage environment;

[0111] The modification submodule is used to modify the data access node information in the first configuration file and the second configuration file to obtain an adjusted first configuration file and an adjusted second configuration file so that the first storage environment and the second storage environment correspond to the same data access node.

[0112] In one embodiment, the device further comprises:

[0113] A determination submodule, configured to determine target data in the second storage environment, wherein the target data is determined based on data attributes of the data in the second storage environment;

[0114] The transmission submodule is used to transmit the target data to the first storage environment.

[0115] Each module in the above data processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0116] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store target data and other data involved in the method described in this embodiment. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data processing method is implemented.

[0117] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0118] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

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

[0120] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

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

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

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

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

Claims

1. A data processing method, characterized in that: The method comprises: In response to receiving the environment upgrade instruction, establishing a matching relationship between the first storage environment and a preset storage system, wherein the storage performance of the preset storage system is higher than that of the first storage environment; Mounting the data storage directory of the first storage environment to the preset storage system; The partitioning mode of the database table in the second storage environment is modified according to the data storage directory, so that the access path of the data in the database table includes the data storage directory.

2. The method according to claim 1, characterized in that The establishing a matching relationship between the first storage environment and the preset storage system includes: Installing a preset storage system, and configuring the preset storage system using the identification information of the first storage environment; The storage configuration in the first storage environment is adjusted according to the preset storage system, and a matching relationship between the first storage environment and the preset storage system is established.

3. The method according to claim 1, characterized in that The step of mounting the data storage directory of the first storage environment to the preset storage system includes: Modify the storage configuration of the preset storage system according to the attribute information of the data storage directory of the first storage environment to obtain a modified preset storage system; Determine the directory to be mounted in the modified preset storage system; An association relationship between the data storage directory and the directory to be mounted is established to mount the data storage directory to the preset storage system.

4. The method according to claim 1, characterized in that: The method further comprises: Obtaining a first configuration file of the first storage environment and a second configuration file of the second storage environment; The data access node information in the first configuration file and the second configuration file is modified to obtain an adjusted first configuration file and an adjusted second configuration file, so that the first storage environment and the second storage environment correspond to the same data access node.

5. The method according to claim 1, characterized in that After receiving the environment upgrade instruction, the method further includes: Determine target data in the second storage environment, where the target data is determined based on data attributes of the data in the second storage environment; The target data is transferred to the first storage environment.

6. A data processing device, characterized in that: The device comprises: an establishing module, configured to establish, in response to receiving an environment upgrade instruction, a matching relationship between a first storage environment and a preset storage system, wherein the storage performance of the preset storage system is higher than that of the first storage environment; A mounting module, used to mount the data storage directory of the first storage environment to the preset storage system; The modification module is used to modify the partition mode of the database table in the second storage environment according to the data storage directory, so that the access path of the data in the database table includes the data storage directory.

7. The device according to claim 6, characterized in that The establishment module is also used to: Installing a preset storage system, and configuring the preset storage system using the identification information of the first storage environment; The storage configuration in the first storage environment is adjusted according to the preset storage system, and a matching relationship between the first storage environment and the preset storage system is established.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

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

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

Citation Information

Patent Citations

  • Method, apparatus, computer device and storage medium for generating upgrade package

    CN109144519A

  • Aluxio-based routing method and device for multiple HDFS clusters

    CN110071870A

  • File moving method based on data warehouse, device and storage medium

    CN112115115A

  • Method and device for upgrading in-vehicle infotainment system and medium

    CN114610361A

  • Method and system for managing metadata in a cluster based storage environment

    US8600998B1