Data security processing method, device and electronic equipment of server cluster

By monitoring data block changes in real time in the server cluster and generating differential data for distributed backup, it solves the problem of insufficient data security in traditional backup methods under complex attacks and achieves efficient, reliable and secure data protection.

CN118316705BActive Publication Date: 2024-09-10LIANTAI CLUSTER (BEIJING) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410531091.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-29
Publication Date
2024-09-10
Estimated Expiration
2044-04-29

AI Technical Summary

Technical Problem

When existing server clusters face complex attacks, traditional backup methods cannot effectively protect data security, leading to an increased risk of data loss and tampering.

Method used

By storing historical backup data of data blocks in the pre-backup server, the changing speed of data blocks is monitored in real time. When the changing speed exceeds the threshold, differential data is generated and backed up to other servers to achieve distributed storage and rapid recovery of data. Combined with data encryption, multi-layer backup system and real-time monitoring and early warning technology.

Benefits of technology

It improves the reliability and security of data, reduces the impact of a single node failure on the system, and can effectively ensure the integrity and availability of data in the face of advanced persistent threats.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118316705B
    Figure CN118316705B
Patent Text Reader

Abstract

The present application provides a data security processing method, device and electronic device for a server cluster, which relates to the field of data processing. In the method, a first data block and a second data block in a first server are obtained, and the first server is any server in the server cluster; a third data block and a fourth data block are determined from the second server; if it is determined that the first server is under attack, the first change speed of the first data block and the second change speed of the second data block are monitored; within a preset time period, if it is determined that the first change speed is greater than a preset change speed threshold, and the second change speed is greater than a preset change speed threshold, the first difference data and the second difference data are determined; the first difference data is sent to the second server for backup, and the second difference data is sent to the third server for backup. Implementing the technical solution provided by the present application is convenient for ensuring data security.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data processing, and in particular to a data security processing method, device and electronic equipment for a server cluster. Background Art

[0002] In the existing technical system, server clusters are key facilities that support big data processing and storage, so ensuring data security is particularly important. When a server cluster is attacked, the risk of data loss and tampering will increase significantly. Therefore, secure data processing is crucial.

[0003] At present, although server clusters generally adopt data backup strategies to deal with potential data loss risks, traditional backup methods often have many shortcomings. For example, traditional backup methods usually simply copy data to another server or storage device. This single backup method may be inadequate when facing complex attacks and is not conducive to data security.

[0004] Therefore, there is an urgent need for a data security processing method, device and electronic equipment for a server cluster. Summary of the invention

[0005] The present application provides a data security processing method, device and electronic equipment for a server cluster, which is convenient for ensuring data security.

[0006] In a first aspect of the present application, a data security processing method for a server cluster is provided, the method comprising: obtaining a first data block and a second data block from a first server, the first server being any one of the servers in the server cluster, the first server pre-storing a plurality of data blocks, the first data block and the second data block being any two of the plurality of data blocks; determining a third data block and a fourth data block from a second server, the second server being a pre-backup server of the first server in the server cluster, the third data block being a historical backup data block of the first data block, and the fourth data block being a historical backup data block of the second data block; if it is determined that the first server is under attack, monitoring a first change speed of the first data block to determine a first change speed of the first data block; and a second change speed of the second data block; within a preset time period, if it is determined that the first change speed is greater than a preset change speed threshold, and the second change speed is greater than the preset change speed threshold, then determine first difference data and second difference data, the first difference data being the different data generated by the first data block compared to the third data block within the preset time period, and the second difference data being the different data generated by the second data block compared to the fourth data block within the preset time period; send the first difference data to the second server for backup, and at the same time send the second difference data to the third server for backup, the third server being any server in the server cluster except the first server and the second server.

[0007] By adopting the above technical solution, the process realizes rapid data recovery by pre-storing the historical backup data of the data blocks in the pre-backup server (second server). When the first server is attacked, it can quickly determine which data blocks have changed, and send these differential data to other servers for backup, thereby ensuring the integrity and availability of the data. The process includes monitoring the change speed of the first data block and the second data block, which helps to evaluate the extent of the attack on the server in real time. When the change speed exceeds the preset threshold, the backup mechanism of the differential data can be quickly started to reduce the risk of data loss or tampering. By backing up the differential data to the second server and the third server respectively, the distributed storage of data is realized. This strategy not only improves the reliability of the data, but also reduces the impact of a single node failure on the entire system. The server roles in the process can be flexibly adjusted, and the third server can be any server in the cluster except the first and second servers. This design allows the system to be easily expanded as needed to adapt to application scenarios of different scales and complexities. By introducing technical means such as data encryption, multi-layer backup system, and real-time monitoring and early warning, the process significantly improves the data security of the server cluster. Even in the face of complex attacks such as advanced persistent threats or distributed denial of service, the integrity and availability of data can be effectively guaranteed. This makes it easier to ensure data security.

[0008] Optionally, obtaining the first data block and the second data block in the first server specifically includes: querying the storage locations corresponding to the first data block and the second data block; if it is determined that the storage location of the first data block is a file system, reading the first data block through a programming language, and the file system is located in the first server; if it is determined that the storage location of the second data block is a database, reading the second data block through a database query language, and the database is located in the first server.

[0009] By adopting the above technical solutions, the processing method allows targeted reading operations based on the actual storage location of the data block (whether it is a file system or a database). This flexibility allows the process to adapt to different data storage architectures, thereby improving its applicability in actual application scenarios. By selecting the most appropriate reading method based on the storage location of the data block (for example, using a programming language to read a data block in a file system, or using a database query language to read a data block in a database), the efficiency of data reading can be ensured. This method avoids unnecessary conversion or intermediate processing steps, thereby improving the overall data processing speed. By accurately querying the storage location of the data block and using the corresponding reading method, it can be ensured that the read data is accurate and complete. This accuracy is crucial to ensure data security, especially when historical backup data needs to be compared to detect differences. The design of this processing method makes it easy to adapt to possible future changes in storage location or new data storage methods. As technology continues to develop, new data storage solutions may continue to emerge, and this flexible processing method can easily integrate new storage types to maintain the timeliness and effectiveness of the process. By clearly distinguishing the storage location of data blocks and adopting the corresponding reading method, the entire data processing process can be made clearer and easier to manage.

[0010] Optionally, determining the third data block and the fourth data block from the second server specifically includes: determining a first data block identifier based on the first data block, one data block corresponding to one data block identifier; determining a second data block identifier based on the second data block; searching for the first data block identifier and the second data block identifier in the second server; if there is a third data block identifier consistent with the first data block identifier in the second server, obtaining a data block corresponding to the third data block identifier as the third data block; if there is a fourth data block identifier consistent with the second data block identifier in the second server, obtaining a data block corresponding to the fourth data block identifier as the fourth data block.

[0011] By adopting the above technical solution, by assigning a unique data block identifier to each data block, it is possible to ensure that the corresponding historical backup data block is accurately found in the backup server. This identification-based matching method avoids confusion or mismatching that may be caused by similar data block content or duplicate names. Searching directly based on the data block identifier in the backup server can greatly improve the search efficiency. Compared with the traditional method of traversing the entire backup database to find matching items, this method reduces unnecessary search and comparison operations, thereby saving time and computing resources. Using data block identifiers to manage backup data blocks makes the entire backup system more orderly and easy to maintain. Administrators can easily track and update the backup status of data blocks without having to deeply understand the specific content or structure of each data block. This method is not only suitable for current data block backup, but can also be easily extended to future data block management. As the amount of data grows and the storage structure changes, the data block identification system can be adapted to new needs by simply updating or expanding it. In some cases, the backup server may lack backups of certain data blocks due to various reasons. Through the identification matching method, it is clear which data blocks have valid backups and which do not, thereby facilitating subsequent processing and recovery operations.

[0012] Optionally, if it is determined that the first server is under attack, before monitoring the first change speed of the first data block and the second change speed of the second data block, it is determined whether the first server is under attack; the determination of whether the first server is under attack specifically includes: using a preset detection model to obtain a traffic data group of the first server, the traffic data group including a traffic duration, a traffic fluctuation difference and a traffic transmission rate; within the duration, determining the relationship between the frequency of occurrence of the traffic fluctuation difference and a preset frequency threshold, and determining the relationship between the traffic transmission rate and a preset rate threshold, and obtaining the comparison result; if it is determined that the frequency is greater than or equal to the preset frequency threshold, and the traffic transmission rate is greater than or equal to the preset rate threshold, it is determined that the first server is under attack.

[0013] By adopting the above technical solution, by collecting traffic data in multiple dimensions (such as traffic duration, traffic fluctuation difference, and traffic transmission rate), the traffic situation of the server can be more comprehensively understood. By using these data for comprehensive comparison and analysis, it is possible to more accurately determine whether the server is under attack. This helps to avoid false positives and false negatives and improve the accuracy of judgment. The process emphasizes monitoring and comparison of traffic data over a duration, which means that the traffic changes of the server can be detected in real time. Once an abnormal traffic pattern is found (such as the frequency of fluctuation difference exceeding the preset threshold or abnormal transmission rate), a quick response can be made to respond to potential security threats in a timely manner. The preset detection model can be customized and adjusted according to different attack modes and traffic characteristics. This means that the process can adapt to different attack scenarios and server environments and has strong flexibility and adaptability. The entire judgment process is based on the preset detection model and threshold without manual intervention. This not only saves labor costs, but also improves the efficiency and accuracy of judgment. At the same time, automated judgment can also reduce errors and biases caused by human factors. By timely judging whether the server is under attack, measures can be taken to prevent and respond to the attack at the early stage. This helps to reduce the potential damage of the attack to the server and data and improve the security and stability of the system.

[0014] Optionally, before adopting the preset detection model to obtain the traffic data group of the first server, the preset detection model is trained; the training of the preset detection model specifically includes: processing historical traffic data to obtain multiple feature values; taking a feature value greater than a preset threshold among the multiple feature values ​​as a representative feature value; taking the historical traffic data corresponding to the representative feature value as a training sample; inputting the training sample into the input layer of the neural network, and performing supervised training on the corresponding comparison result to the output layer of the neural network to obtain an initial detection model; performing accuracy testing on the initial detection model, and selecting a model whose accuracy meets preset conditions as the preset detection model.

[0015] By adopting the above technical solution, by processing historical traffic data and extracting representative feature values, the trained preset detection model can more accurately identify traffic patterns related to attacks. This highly targeted model can improve the detection accuracy of server attacks and reduce false positives and false negatives. Neural networks are used in the training process, which enables the model to learn and adapt to various complex traffic patterns. With the emergence of new attack methods and traffic characteristics, the model can be retrained or updated to adapt to these changes and maintain the flexibility and effectiveness of the model. The entire training process is highly automated and does not require a lot of manual intervention. By inputting historical traffic data and corresponding comparison results, the model can automatically learn and adjust parameters and finally generate a preset detection model that can be used for actual detection. By performing accuracy testing on the initial detection model and selecting the model that meets the preset conditions as the final preset detection model, the performance of the model can be ensured to be stable and reliable. This data-driven approach can reduce the impact of human factors and improve the consistency and predictability of the model. Since neural networks, a powerful machine learning method, are used in the training process, the preset detection model can adapt to server environments of different sizes and complexities. Whether it is a large data center or a small server cluster, the model can be trained and adjusted to adapt to specific security needs.

[0016] Optionally, if it is determined that the first server is under attack, the first change speed of the first data block and the second change speed of the second data block are monitored, specifically including: using the preset detection model to obtain the real-time I / O operation corresponding to the first data block and the real-time I / O operation corresponding to the second data block; calculating the first change speed according to the real-time I / O operation corresponding to the first data block; calculating the second change speed according to the real-time I / O operation corresponding to the second data block.

[0017] By adopting the above technical solution, by obtaining the I / O operations of data blocks in real time, the changes of data blocks can be immediately grasped. This is crucial for timely response to attacks on servers, because attacks are often accompanied by abnormal changes in data blocks, such as rapid growth or sudden decrease. By using the preset detection model to process the I / O operation data, the change speed of the data block can be accurately calculated. This calculation method is based on the actual I / O operations, avoiding the estimation errors that may exist in traditional methods, thereby improving the accuracy of monitoring. Since each data block has a corresponding change speed monitoring, it is possible to more accurately determine which data blocks are affected by the attack. This is crucial for subsequent security response and data recovery, because those data blocks with abnormal changes can be processed first. The preset detection model can be adjusted and optimized according to different attack modes and traffic characteristics. This means that the monitoring method can adapt to various complex attack scenarios and has strong flexibility and adaptability. By monitoring the change speed of data blocks, anomalies can be discovered in time before serious data loss occurs. This early warning mechanism helps to take measures in advance to reduce the impact of attacks on data integrity and availability.

[0018] Optionally, the method further includes: receiving a backup request sent by a user device, the backup request including a target server and a target data block, the target server being any server in the server cluster; and sending the target data block to the target server for backup according to the backup request.

[0019] By adopting the above technical solution, users can specify the target server and target data block to be backed up by sending a backup request, which is intuitive and easy to operate. Users do not need to have a deep understanding of the complex structure and process inside the system. They can simply provide the necessary information to initiate the backup operation. Since users can specify the target server, the backup operation is more flexible. Users can choose to back up the data block to any server in the cluster according to actual needs to meet different backup strategies and requirements. This flexibility helps to adapt to different business scenarios and storage requirements. The system can automatically receive and process backup requests and send the target data block to the target server for backup according to the user's instructions. This automated processing method greatly reduces the need for manual intervention and improves the efficiency and accuracy of backup operations. At the same time, the automated backup process also helps to reduce human errors and omissions. By specifying the target server for backup, it can be ensured that the data block is stored in a reliable and secure environment. Server clusters usually have high availability and fault tolerance, which can ensure the integrity and recoverability of data. In addition, the system can also take security measures such as encryption to protect the security of backup data and prevent data leakage and illegal access.

[0020] In a second aspect of the present application, a data security processing device for a server cluster is provided, the data security processing device comprising an acquisition module and a processing module, wherein the acquisition module is used to acquire a first data block and a second data block from a first server, the first server being any one of the servers in the server cluster, the first server pre-stores a plurality of data blocks, the first data block and the second data block being any two of the plurality of data blocks; the processing module is used to determine a third data block and a fourth data block from a second server, the second server being a pre-backup server of the first server in the server cluster, the third data block being a historical backup data block of the first data block, and the fourth data block being a historical backup data block of the second data block; the processing module is also used to monitor the first server if it is determined that the first server is under attack. a first change rate of the first data block and a second change rate of the second data block; the processing module is further used to determine first difference data and second difference data within a preset time period if it is determined that the first change rate is greater than a preset change rate threshold and the second change rate is greater than the preset change rate threshold, the first difference data being different data generated between the first data block and the third data block within the preset time period, and the second difference data being different data generated between the second data block and the fourth data block within the preset time period; the processing module is further used to send the first difference data to the second server for backup, and at the same time send the second difference data to the third server for backup, the third server being any server in the server cluster except the first server and the second server.

[0021] In the third aspect of the present application, an electronic device is provided, which includes a processor, a memory, a user interface and a network interface, the memory is used to store instructions, the user interface and the network interface are both used to communicate with other devices, and the processor is used to execute the instructions stored in the memory so that the electronic device performs the method described above.

[0022] In a fourth aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the instructions are executed, the method described above is executed.

[0023] In summary, one or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:

[0024] 1. This process achieves rapid data recovery by storing historical backup data of data blocks in the pre-backup server (second server) in advance. When the first server is attacked, it can quickly determine which data blocks have changed, and send these differential data to other servers for backup, thereby ensuring the integrity and availability of the data. The process includes monitoring the change speed of the first data block and the second data block, which helps to evaluate the extent of the attack on the server in real time. When the change speed exceeds the preset threshold, the backup mechanism of the differential data can be quickly started to reduce the risk of data loss or tampering. By backing up the differential data to the second server and the third server respectively, the distributed storage of data is achieved. This strategy not only improves the reliability of the data, but also reduces the impact of a single node failure on the entire system. The server roles in this process can be flexibly adjusted, and the third server can be any server in the cluster except the first and second servers. This design allows the system to be easily expanded as needed to adapt to application scenarios of different scales and complexities. By introducing technical means such as data encryption, multi-layer backup system, and real-time monitoring and early warning, this process significantly improves the data security of the server cluster. Even in the face of complex attacks such as advanced persistent threats or distributed denial of service, the integrity and availability of data can be effectively guaranteed. As a result, it is easy to ensure data security;

[0025] 2. The preset detection model can be customized and adjusted according to different attack modes and traffic characteristics. This means that the process can adapt to different attack scenarios and server environments, and has strong flexibility and adaptability. The entire judgment process is based on the preset detection model and threshold, without manual intervention. This not only saves labor costs, but also improves the efficiency and accuracy of judgment. At the same time, automated judgment can also reduce errors and biases caused by human factors. By timely judging whether the server is under attack, measures can be taken to prevent and respond to the attack in the early stage. This helps reduce the potential damage of attacks to servers and data, and improves the security and stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A flowchart of a data security processing method for a server cluster provided in an embodiment of the present application.

[0027] Figure 2 Another flowchart of a data security processing method for a server cluster provided in an embodiment of the present application.

[0028] Figure 3 A module diagram of a data security processing device for a server cluster provided in an embodiment of the present application.

[0029] Figure 4A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0030] Explanation of the reference numerals: 31, acquisition module; 32, processing module; 41, processor; 42, communication bus; 43, user interface; 44, network interface; 45, memory. DETAILED DESCRIPTION

[0031] In order to enable technicians in this field to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments.

[0032] In the description of the embodiments of the present application, words such as "for example" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "for example" or "for example" is intended to present related concepts in a specific way.

[0033] In the description of the embodiments of the present application, the meaning of the term "multiple" refers to two or more. For example, multiple systems refer to two or more systems, and multiple screen terminals refer to two or more screen terminals. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. The terms "include", "comprise", "have" and their variations all mean "including but not limited to", unless otherwise specifically emphasized.

[0034] Under the current technical architecture, server clusters are the core supporting facilities for big data processing and storage, and ensuring data security is particularly critical. Once a server cluster is attacked, the risk of data loss and tampering will increase dramatically. Therefore, secure data processing is of vital importance.

[0035] At present, although server clusters generally adopt data backup strategies to prevent potential data loss risks, traditional backup methods have many shortcomings. For example, traditional backup methods usually simply copy data to another server or storage device. This single backup strategy may be less effective in the face of complex and changing attacks, and is not conducive to comprehensive protection of data security.

[0036] In order to solve the above technical problems, the present application provides a data security processing method for a server cluster, referring to Figure 1 , Figure 1 A flow chart of a data security processing method for a server cluster provided in an embodiment of the present application. The data security processing method is applied to a master control server and includes steps S110 to S150, which are as follows:

[0037] S110, obtaining a first data block and a second data block in a first server, where the first server is any server in a server cluster, the first server pre-stores a plurality of data blocks, and the first data block and the second data block are any two data blocks among the plurality of data blocks.

[0038] Specifically, the master server is the core server in the entire system or server cluster, responsible for managing and coordinating the operations of other servers. The master server usually has a high processing power and is responsible for receiving, processing and sending various requests or data. The first server is any server in the server cluster. A server cluster is a collection of multiple servers that work together to provide a certain service or handle a certain task. In this cluster, each server may be the "first server", depending on the immediate needs and circumstances. Each server has stored a large amount of data, which is divided into multiple small data blocks. This is done to manage and process data more efficiently, or to meet certain specific data storage or access requirements. The first data block and the second data block are two data blocks selected arbitrarily from multiple data blocks stored on the first server. They can be any type of data, such as files, database records, images, etc., and their content, size and purpose may vary.

[0039] In a possible implementation, obtaining the first data block and the second data block in the first server specifically includes: querying the storage locations corresponding to the first data block and the second data block; if it is determined that the storage location of the first data block is a file system, reading the first data block through a programming language, and the file system is located in the first server; if it is determined that the storage location of the second data block is a database, reading the second data block through a database query language, and the database is located in the first server.

[0040] Specifically, before obtaining the data blocks, the master server first needs to know where the data blocks are stored. This usually involves querying an index or metadata that records the location of each data block in the server cluster. If it is determined that a data block (such as the first data block) is stored in the file system, the master server will use an appropriate programming language (such as Python, Java, C++, etc.) to read the data block. The file system is a mechanism for organizing and storing files in the operating system, which allows programs to read and write data in units of files. If the data block (such as the second data block) is stored in a database, the master server will use a database query language (such as SQL) to read the data. A database is a system specifically used to store, retrieve, and manage large amounts of data. It supports complex data operations such as query, update, and delete.

[0041] For example, suppose an e-commerce platform is running, which uses a server cluster to store product information, user data, etc. Among them, product images are stored in the file system, while product details and price information are stored in the database. When the master server needs to obtain the image (i.e., the first data block) and details (i.e., the second data block) of a certain product, it will first query the storage location of the two data blocks. If the product image is stored in the file system, the master server will use the file operation function in the programming language (such as Python) to read the file. For example, it can send a request to the first server, specifying the file path and file name to be read, and then the first server will return the corresponding file content. If the product details are stored in the database, the master server will use the SQL query language to extract the required information from the database. It can send a request containing an SQL query statement to the first server, which specifies the fields and conditions to be retrieved. After the first server executes the query, it returns the result to the master server. In this way, the master server can choose the appropriate way to read the data according to the storage location of the data block, thereby ensuring the accuracy and efficiency of the data.

[0042] S120. Determine a third data block and a fourth data block from a second server, where the second server is a pre-backup server of a first server in a server cluster, the third data block is a historical backup data block of the first data block, and the fourth data block is a historical backup data block of the second data block.

[0043] Specifically, in a server cluster, for the reliability and security of data, a pre-backup server is set up for each main data storage server. The pre-backup server stores a backup of the data on the main server to prevent the main server data from being lost or damaged. In this scenario, the second server is the pre-backup server of the first server, which means that it stores a backup of the data in the first server. The master server needs to determine the third data block and the fourth data block from the second server. These two data blocks are not real-time data, but historical backup data. In other words, they are backups of the first data block and the second data block at a certain point in time. Among them, the third data block is a historical backup of the first data block, which means that at a certain point in time, the content of the first data block is copied or saved to the third data block so that the old version of the data can be restored or accessed when needed. Similarly, the fourth data block is a historical backup of the second data block, which is also to ensure the recoverability and historical traceability of the data.

[0044] In a possible implementation, determining the third data block and the fourth data block from the second server specifically includes: determining a first data block identifier based on the first data block, one data block corresponding to one data block identifier; determining a second data block identifier based on the second data block; searching for the first data block identifier and the second data block identifier in the second server; if there is a third data block identifier consistent with the first data block identifier in the second server, obtaining a data block corresponding to the third data block identifier as the third data block; if there is a fourth data block identifier consistent with the second data block identifier in the second server, obtaining a data block corresponding to the fourth data block identifier as the fourth data block.

[0045] Specifically, in data management, each data block usually has a unique identifier, namely, a data block identifier, which is used to distinguish and locate different data blocks. Based on the first data block and the second data block, the master control server can determine their respective corresponding data block identifiers, namely, the first data block identifier and the second data block identifier. After determining the data block identifiers, the master control server will search for these identifiers in the second server. The second server stores the backup of the first server data, and these data blocks also have corresponding identifiers. If there is a third data block identifier in the second server that is completely consistent with the first data block identifier, then the data block corresponding to the identifier is the historical backup of the first data block, namely, the third data block. Similarly, if there is a fourth data block identifier in the second server that is consistent with the second data block identifier, then the data block corresponding to the identifier is the historical backup of the second data block, namely, the fourth data block. The master control server will obtain these historical backup data blocks for subsequent operations or recovery.

[0046] For example, suppose there is an online bookstore system, where the main server (first server) stores all book information and order data. To prevent data loss, the system will regularly back up this data to the pre-backup server (second server). One day, for some reason, the detailed information (first data block) of a popular book on the main server was accidentally deleted or damaged. In order to restore the detailed information of this book, the master server needs to perform the following operations: The master server first determines the identifier of the accidentally deleted or damaged book information data block (first data block), assuming that this identifier is "BookInfo_123". Then, the master server will search for this identifier in the pre-backup server (second server). The pre-backup server stores multiple historical backup data blocks, each of which has a corresponding identifier. If a data block identifier that is consistent with the identifier "BookInfo_123" is found in the pre-backup server, then the data block corresponding to this identifier is the historical backup of the first data block, that is, the third data block. The master server will obtain this third data block, which contains the detailed information of the book before it was accidentally deleted or damaged. Similarly, if a certain order data block (second data block) on the primary server also has a problem, the master server can also find the corresponding historical backup data block (fourth data block) in the second server according to the same steps. In this way, even if there is a problem with the data on the primary server, the system can quickly locate and restore the historical backup data through the data block identifier in the pre-backup server, ensuring data reliability and business continuity.

[0047] S130: If it is determined that the first server is attacked, monitor a first change speed of the first data block and a second change speed of the second data block.

[0048] Specifically, the attack on the first server means that the first server (as a node in the server cluster) has suffered some form of malicious attack, such as hacker intrusion, virus propagation, or data tampering. The attack may cause changes in the data blocks on the server, which may be unauthorized or malicious. After determining that the server has been attacked, in order to timely understand and respond to the impact of the attack, it is necessary to monitor the important data blocks on the server, especially their change speed. The change speed refers to the frequency or rate at which the content of the data block changes over a period of time. The first data block is a specific data block stored in the first server, and the first change speed refers to the change speed of this data block after being attacked. For example, the attacker may try to tamper with or delete the content of the first data block, and the first change speed will increase significantly. The second data block is also a data block on the first server, which is different from the first data block but equally important. The second change speed refers to the change speed of this data block after being attacked. Monitoring the change speed of the second data block helps to comprehensively evaluate the impact of the attack on the server data.

[0049] For example, suppose the first server of an e-commerce platform stores the user's personal information and transaction data. Suddenly, the master server detects that the first server may have been attacked by hackers. In order to assess the impact of the attack and take corresponding countermeasures, the system begins to monitor the change speed of important data blocks stored on the first server. Suppose the first data block stores the user's payment password information. After the attack, the system monitors that the change speed of the first data block has increased sharply, which means that the hacker may be trying to tamper with or steal the user's payment password. The second data block may store the user's delivery address information. The master server also monitors the change speed of this data block. If the second change speed also increases abnormally, it may mean that the hacker is also trying to modify the user's delivery address in order to commit fraud. By monitoring the change speed of the first data block and the second data block, the master server can promptly discover the impact of the attack on the server data and take corresponding security measures, such as isolating the attacked data block, starting the emergency backup and recovery process, or notifying the relevant department for further investigation and processing. This helps to reduce the losses caused by the attack and protect the security of user data.

[0050] S140. Within a preset time period, if it is determined that the first change speed is greater than the preset change speed threshold, and the second change speed is greater than the preset change speed threshold, first difference data and second difference data are determined, the first difference data being different data generated between the first data block and the third data block within the preset time period, and the second difference data being different data generated between the second data block and the fourth data block within the preset time period.

[0051] Specifically, the preset time period is a pre-set time range used to observe and analyze the changes in data blocks. For example, this time period may be one day, one hour, or several minutes, depending on the system's demand for data real-time performance and the intensity of monitoring. The preset change rate threshold is a set value used to determine whether the change in the data block is abnormal. If both the first change rate and the second change rate exceed this threshold, it can be considered that the changes in the two data blocks within the preset time period are abnormal and are caused by an attack. When it is determined that the changes in the data blocks are abnormal, it is necessary to find out the specific content of these changes. The first difference data refers to the different data generated between the first data block and its historical backup (the third data block) within the preset time period, and the second difference data refers to the different data generated between the second data block and its historical backup (the fourth data block) within the same time period. These difference data can reflect the specific changes that have occurred in the data blocks after being attacked or other improper operations.

[0052] S150: Send the first difference data to the second server for backup, and send the second difference data to the third server for backup. The third server is any server in the server cluster except the first server and the second server.

[0053] Specifically, when the master server determines that the first data block has undergone an abnormal change within a preset time period and calculates the first difference data, it will send the difference data to the second server for backup. This is because the second server, as a pre-backup server of the first server, has stored the historical backup of the first data block, so backing up the first difference data to the second server can ensure the integrity and recoverability of the data. Similarly, when the master server determines that the second data block has also undergone an abnormal change and calculates the second difference data, it will send the difference data to the third server for backup. The third server here is any server in the server cluster except the first server and the second server. Selecting the third server for backup is, on the one hand, to disperse data risks and avoid concentrating all backups on the same server, thereby improving data reliability and security; on the other hand, it is to perform distributed parallel transmission so that the data under attack can be transmitted and backed up as soon as possible. The third server can be any available and unaffected server in the cluster. It does not need to have the same specific functions or roles as the first server or the second server, but only needs to be able to reliably store and back up data.

[0054] In one possible implementation, if it is determined that the first server is under attack, before monitoring the first change speed of the first data block and the second change speed of the second data block, determine whether the first server is under attack; determining whether the first server is under attack specifically includes: using a preset detection model to obtain a traffic data group of the first server, the traffic data group including a traffic duration, a traffic fluctuation difference, and a traffic transmission rate; within the duration, determine the relationship between the frequency of occurrence of the traffic fluctuation difference and a preset frequency threshold, and determine the relationship between the traffic transmission rate and a preset rate threshold, and obtain a comparison result; if it is determined that the frequency is greater than or equal to the preset frequency threshold, and the traffic transmission rate is greater than or equal to the preset rate threshold, then it is determined that the first server is under attack.

[0055] Specifically, the preset detection model is a predefined and trained model for analyzing the traffic data of the server and detecting anomalies. Through this model, the traffic data group of the first server can be obtained, and this data group contains multiple traffic-related parameters, such as traffic duration, traffic fluctuation difference, and traffic transmission rate. The traffic fluctuation difference refers to the degree of change of the traffic over a period of time. If the traffic fluctuates frequently and significantly in a short period of time, this may be an abnormal phenomenon. The master server checks whether the frequency of the traffic fluctuation difference exceeds the preset frequency threshold within the duration. This threshold is usually set based on the traffic fluctuation situation under normal circumstances. The traffic transmission rate refers to the speed at which data is transmitted on the server. If the transmission rate is abnormally high, it may be because the server is under attack and the attacker is trying to send a large amount of data. If the frequency of the traffic fluctuation difference is greater than or equal to the preset frequency threshold, and the traffic transmission rate is also greater than or equal to the preset rate threshold, then the master server believes that both conditions are met and it can be preliminarily determined that the first server has been attacked.

[0056] In one possible implementation, before adopting a preset detection model to obtain the traffic data group of the first server, the preset detection model is trained; the training of the preset detection model specifically includes: processing the historical traffic data to obtain multiple feature values; taking the feature values ​​greater than a preset threshold among the multiple feature values ​​as representative feature values; taking the historical traffic data corresponding to the representative feature values ​​as training samples; inputting the training samples into the input layer of the neural network, and performing supervised training on the corresponding comparison results to the output layer of the neural network to obtain an initial detection model; performing accuracy testing on the initial detection model, and selecting a model whose accuracy meets preset conditions as the preset detection model.

[0057] Specifically, in order to train the model, it is necessary to first collect the historical traffic data of the server. These data usually include traffic records in different time periods, such as traffic per second or per minute, the type of data transmitted, source address and destination address, etc. These historical traffic data are processed to extract multiple feature values. These feature values ​​may include statistics such as the average value, maximum value, minimum value, standard deviation of the traffic, or other indicators related to traffic anomaly detection. Among all the extracted feature values, not all values ​​contribute to the training of the model. Therefore, it is necessary to set a preset threshold and use the feature values ​​greater than this threshold as representative feature values. These representative feature values ​​can usually better reflect the abnormal behavior of the traffic, so they will play a key role in model training. The historical traffic data corresponding to the representative feature values ​​are used as training samples, and each training sample includes a set of feature values ​​and a corresponding comparison result (i.e., whether it is abnormal traffic). The training samples are input into the input layer of the neural network. Neural networks are powerful machine learning models that can learn and identify complex patterns in data. At the same time, the comparison results corresponding to each training sample are input into the output layer of the neural network. In this way, the neural network can predict the comparison results of the output layer based on the input feature values. By continuously adjusting the parameters of the neural network, the model can better fit the training data, thus obtaining the initial detection model. The accuracy of the initial detection model is usually tested by applying the model to a portion of test data with known results, and comparing the consistency between the model's predicted results and the actual results. The model whose accuracy meets the preset conditions is selected as the final preset detection model. The preset conditions may include that evaluation indicators such as accuracy, recall rate, and F1 score reach a certain threshold.

[0058] In one possible implementation, refer to Figure 2 , Figure 2 Another flow chart of a data security processing method for a server cluster provided in an embodiment of the present application, if it is determined that the first server is under attack, the first change speed of the first data block and the second change speed of the second data block are monitored, specifically including steps S210 to S230, and the above steps are as follows: S210, using a preset detection model to obtain the real-time I / O operation corresponding to the first data block and the real-time I / O operation corresponding to the second data block; S220, according to the real-time I / O operation corresponding to the first data block, calculate the first change speed; S230, according to the real-time I / O operation corresponding to the second data block, calculate the second change speed.

[0059] Specifically, when it is determined that the first server is under attack, the master server uses the previously trained preset detection model to monitor the key data blocks on the server. The detection model can capture the I / O operations on these data blocks in real time, that is, the read and write operations of the data. These operations are a direct reflection of the changes in the data blocks, and are therefore crucial for detecting abnormal behavior. The master server calculates the change rate of the first data block based on the real-time I / O operations corresponding to the first data block. The change rate can be calculated in many ways, such as calculating the change in the size of the data block per unit time, the change in the number of records in the data block, etc. If the change rate of the first data block suddenly increases, this may mean that the attacker is performing a large number of read or write operations on the data block, which is a clear sign of attack behavior. Similar to the first data block, the master server also calculates the change rate of the second data block based on the real-time I / O operations corresponding to the second data block. By comparing the change rates of the two data blocks, the master server can further analyze the attacker's behavior pattern and determine whether the attack is targeting a specific data block or whether it is trying to spread to more data blocks.

[0060] In a possible implementation, the method further includes: receiving a backup request sent by a user device, the backup request including a target server and a target data block, the target server being any server in a server cluster; and sending the target data block to the target server for backup according to the backup request.

[0061] Specifically, in this scenario, the master server plays the role of a central coordinator. It is responsible for receiving backup requests from user devices. These requests usually contain detailed information about the data blocks that the user wants to back up and information about the target server. The backup request specifies the target server, which is a specific server in the server cluster. Users may choose a specific server as the backup target based on a variety of reasons (such as geographical location, load conditions, storage strategy, etc.). The backup request also contains information about the specific data blocks that need to be backed up. A data block is the basic unit of data storage, which can be a part of a file, a database record, or other forms of data collection. After receiving the backup request, the master server will find the corresponding target data block based on the information in the request. Then, it will send these data blocks to the specified target server. This process involves operations such as reading, transmitting, and writing data. The master server needs to ensure the integrity and security of the data, and encryption or other security measures may be used during the transmission process.

[0062] Among them, users can specify the target server and target data block to be backed up by sending a backup request, which is intuitive and easy to operate. Users do not need to have a deep understanding of the complex structure and process within the system. They can simply provide the necessary information to initiate the backup operation. Since users can specify the target server, the backup operation is more flexible. Users can choose to back up the data block to any server in the cluster according to actual needs to meet different backup strategies and needs. This flexibility helps to adapt to different business scenarios and storage requirements. The system can automatically receive and process backup requests and send the target data block to the target server for backup according to the user's instructions. This automated processing method greatly reduces the need for manual intervention and improves the efficiency and accuracy of backup operations.

[0063] The present application also provides a data security processing device for a server cluster, referring to Figure 3 , Figure 3 A module diagram of a data security processing device for a server cluster provided in an embodiment of the present application. The data security processing device is a main control server, including an acquisition module 31 and a processing module 32, wherein the acquisition module 31 acquires a first data block and a second data block in a first server, the first server is any server in the server cluster, the first server pre-stores a plurality of data blocks, the first data block and the second data block are any two data blocks in the plurality of data blocks; the processing module 32 determines a third data block and a fourth data block from a second server, the second server is a pre-backup server of the first server in the server cluster, the third data block is a historical backup data block of the first data block, and the fourth data block is a historical backup data block of the second data block; if the processing module 32 determines that the first server is under attack, it monitors the first data block the first change speed of the data block and the second change speed of the second data block; the processing module 32 determines the first difference data and the second difference data within the preset time period if it is determined that the first change speed is greater than the preset change speed threshold and the second change speed is greater than the preset change speed threshold, the first difference data is the different data generated by the first data block compared with the third data block within the preset time period, and the second difference data is the different data generated by the second data block compared with the fourth data block within the preset time period; the processing module 32 sends the first difference data to the second server for backup, and sends the second difference data to the third server for backup at the same time, the third server is any server in the server cluster except the first server and the second server.

[0064] In a possible implementation, the acquisition module 31 acquires the first data block and the second data block in the first server, specifically including: the processing module 32 queries the storage locations corresponding to the first data block and the second data block; if the processing module 32 determines that the storage location of the first data block is a file system, the first data block is read through a programming language, and the file system is located in the first server; if the processing module 32 determines that the storage location of the second data block is a database, the second data block is read through a database query language, and the database is located in the first server.

[0065] In a possible implementation, determining the third data block and the fourth data block from the second server specifically includes: the processing module 32 determines the first data block identifier based on the first data block, one data block corresponds to one data block identifier; the processing module 32 determines the second data block identifier based on the second data block; the processing module 32 searches for the first data block identifier and the second data block identifier in the second server; if there is a third data block identifier consistent with the first data block identifier in the second server, the processing module 32 obtains the data block corresponding to the third data block identifier as the third data block; if there is a fourth data block identifier consistent with the second data block identifier in the second server, the processing module 32 obtains the data block corresponding to the fourth data block identifier as the fourth data block.

[0066] In one possible implementation, if it is determined that the first server is under attack, the processing module 32 monitors the first change speed of the first data block and the second change speed of the second data block before determining whether the first server is under attack; determining whether the first server is under attack specifically includes: the processing module 32 uses a preset detection model to obtain a traffic data group of the first server, the traffic data group including a traffic duration, a traffic fluctuation difference, and a traffic transmission rate; the processing module 32 determines the relationship between the frequency of occurrence of the traffic fluctuation difference and a preset frequency threshold within the duration, and determines the relationship between the traffic transmission rate and a preset rate threshold, and obtains a comparison result; if the processing module 32 determines that the frequency is greater than or equal to the preset frequency threshold, and the traffic transmission rate is greater than or equal to the preset rate threshold, it determines that the first server is under attack.

[0067] In one possible implementation, the processing module 32 trains a preset detection model before adopting the preset detection model to obtain the traffic data group of the first server; the training of the preset detection model specifically includes: the processing module 32 processes the historical traffic data to obtain multiple feature values; the processing module 32 uses the feature value greater than the preset threshold among the multiple feature values ​​as the representative feature value; the processing module 32 uses the historical traffic data corresponding to the representative feature value as a training sample; the processing module 32 inputs the training sample to the input layer of the neural network, and sends the corresponding comparison results to the output layer of the neural network for supervised training to obtain an initial detection model; the processing module 32 performs accuracy detection on the initial detection model, and selects a model whose accuracy meets the preset conditions as the preset detection model.

[0068] In one possible implementation, if the processing module 32 determines that the first server is under attack, it monitors the first change speed of the first data block and the second change speed of the second data block, specifically including: the processing module 32 uses a preset detection model to obtain the real-time I / O operation corresponding to the first data block and the real-time I / O operation corresponding to the second data block; the processing module 32 calculates the first change speed based on the real-time I / O operation corresponding to the first data block; the processing module 32 calculates the second change speed based on the real-time I / O operation corresponding to the second data block.

[0069] In a possible implementation, the acquisition module 31 receives a backup request sent by a user device, the backup request includes a target server and a target data block, and the target server is any server in the server cluster; the processing module 32 sends the target data block to the target server for backup according to the backup request.

[0070] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0071] The present application also provides an electronic device, referring to Figure 4 , Figure 4 The electronic device may include: at least one processor 41 , at least one network interface 44 , a user interface 43 , a memory 45 , and at least one communication bus 42 .

[0072] The communication bus 42 is used to realize the connection and communication between these components.

[0073] The user interface 43 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 43 may also include a standard wired interface and a wireless interface.

[0074] The network interface 44 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0075] Among them, the processor 41 may include one or more processing cores. The processor 41 uses various interfaces and lines to connect various parts in the entire server, and executes various functions of the server and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 45, and calling data stored in the memory 45. Optionally, the processor 41 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 41 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 41, and it can be implemented separately through a chip.

[0076] Among them, the memory 45 may include a random access memory (RAM) or a read-only memory (Read-Only Memory). Optionally, the memory 45 includes a non-transitory computer-readable storage medium. The memory 45 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 45 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned method embodiments, etc.; the data storage area may store data involved in the above-mentioned method embodiments, etc. The memory 45 may also be optionally at least one storage device located away from the aforementioned processor 41. As Figure 4As shown, the memory 45 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an application program of a data security processing method for a server cluster.

[0077] exist Figure 4 In the electronic device shown, the user interface 43 is mainly used to provide an input interface for the user and obtain data input by the user; and the processor 41 can be used to call an application program stored in the memory 45 for a data security processing method for a server cluster. When executed by one or more processors, the electronic device executes one or more methods in the above-mentioned embodiments.

[0078] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required for the present application.

[0079] The present application also provides a computer-readable storage medium, which stores instructions. When executed by one or more processors, the electronic device executes one or more of the methods described in the above embodiments.

[0080] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0081] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0082] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0083] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0084] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: various media that can store program codes, such as USB flash drives, mobile hard drives, magnetic disks or optical disks.

[0085] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the disclosure of the specification and the truth of practice, it will be easy for those skilled in the art to think of other embodiments of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field that are not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. A data security processing method for a server cluster, It is characterized in that The method comprises: Acquire a first data block and a second data block in a first server, where the first server is any server in a server cluster, the first server pre-stores a plurality of data blocks, and the first data block and the second data block are any two data blocks among the plurality of data blocks; Determine a third data block and a fourth data block from a second server, where the second server is a pre-backup server of the first server in the server cluster, the third data block is a historical backup data block of the first data block, and the fourth data block is a historical backup data block of the second data block; If it is determined that the first server is under attack, monitoring a first change speed of the first data block and a second change speed of the second data block; Within a preset time period, if it is determined that the first change speed is greater than a preset change speed threshold, and the second change speed is greater than the preset change speed threshold, first difference data and second difference data are determined, the first difference data being different data generated between the first data block and the third data block within the preset time period, and the second difference data being different data generated between the second data block and the fourth data block within the preset time period; The first difference data is sent to the second server for backup, and the second difference data is sent to a third server for backup. The third server is any server in the server cluster except the first server and the second server.

2. The data security processing method of the server cluster according to claim 1, It is characterized in that The obtaining of the first data block and the second data block in the first server specifically includes: Querying storage locations corresponding to the first data block and the second data block; If it is determined that the storage location of the first data block is a file system, the first data block is read using a programming language, and the file system is located in the first server; If it is determined that the storage location of the second data block is a database, the second data block is read using a database query language, and the database is located in the first server.

3. The data security processing method of the server cluster according to claim 1, It is characterized in that The determining the third data block and the fourth data block from the second server specifically includes: Determine a first data block identifier according to the first data block, where one data block corresponds to one data block identifier; Determine a second data block identifier according to the second data block; searching the first data block identifier and the second data block identifier in the second server; If a third data block identifier that is consistent with the first data block identifier exists in the second server, obtaining a data block corresponding to the third data block identifier as the third data block; If a fourth data block identifier that is consistent with the second data block identifier exists in the second server, a data block corresponding to the fourth data block identifier is obtained as the fourth data block.

4. The data security processing method of the server cluster according to claim 1, It is characterized in that Before monitoring the first change speed of the first data block and the second change speed of the second data block if it is determined that the first server is under attack, determining whether the first server is under attack; The determining whether the first server is attacked specifically includes: Using a preset detection model to obtain a flow data group of the first server, the flow data group including flow duration, flow fluctuation difference, and flow transmission rate; During the duration, determining the magnitude relationship between the frequency of occurrence of the flow fluctuation difference and a preset frequency threshold, and determining the magnitude relationship between the flow transmission rate and a preset rate threshold, and obtaining a comparison result; If it is determined that the frequency is greater than or equal to the preset frequency threshold, and the traffic transmission rate is greater than or equal to the preset rate threshold, it is determined that the first server is under attack.

5. The data security processing method of the server cluster according to claim 4, It is characterized in that Before adopting the preset detection model to obtain the traffic data group of the first server, training the preset detection model; the training of the preset detection model specifically includes: Process the historical traffic data to obtain multiple characteristic values; Taking a characteristic value greater than a preset threshold value among the plurality of characteristic values ​​as a representative characteristic value; Using the historical traffic data corresponding to the representative characteristic value as a training sample; Inputting the training samples into the input layer of the neural network, and sending the corresponding comparison results to the output layer of the neural network for supervised training to obtain an initial detection model; The initial detection model is tested for accuracy, and a model whose accuracy meets a preset condition is selected as the preset detection model.

6. The data security processing method of the server cluster according to claim 4, It is characterized in that If it is determined that the first server is under attack, monitoring a first change speed of the first data block and a second change speed of the second data block specifically includes: Using the preset detection model to obtain the real-time I / O operation corresponding to the first data block and the real-time I / O operation corresponding to the second data block; Calculating the first change speed according to the real-time I / O operation corresponding to the first data block; The second change speed is calculated according to the real-time I / O operation corresponding to the second data block.

7. The data security processing method of the server cluster according to claim 1, It is characterized in that The method further comprises: receiving a backup request sent by a user device, wherein the backup request includes a target server and a target data block, and the target server is any server in the server cluster; According to the backup request, the target data block is sent to the target server for backup.

8. A data security processing device for a server cluster, It is characterized in that The data security processing device comprises an acquisition module (31) and a processing module (32), wherein: The acquisition module (31) is used to acquire a first data block and a second data block in a first server, the first server is any server in a server cluster, the first server pre-stores a plurality of data blocks, and the first data block and the second data block are any two data blocks among the plurality of data blocks; The processing module (22) is used to determine a third data block and a fourth data block from a second server, the second server being a pre-backup server of the first server in the server cluster, the third data block being a historical backup data block of the first data block, and the fourth data block being a historical backup data block of the second data block; The processing module (22) is further configured to monitor a first change speed of the first data block and a second change speed of the second data block if it is determined that the first server is under attack; The processing module (22) is further configured to determine first difference data and second difference data if it is determined that the first change speed is greater than a preset change speed threshold and the second change speed is greater than the preset change speed threshold within a preset time period, wherein the first difference data is different data generated between the first data block and the third data block within the preset time period, and the second difference data is different data generated between the second data block and the fourth data block within the preset time period; The processing module (22) is further used to send the first difference data to the second server for backup, and send the second difference data to a third server for backup. The third server is any server in the server cluster except the first server and the second server.

9. An electronic device, It is characterized in that The electronic device comprises a processor (41), a memory (45), a user interface (43) and a network interface (44), wherein the memory (45) is used to store instructions, the user interface (43) and the network interface (44) are both used to communicate with other devices, and the processor (41) is used to execute the instructions stored in the memory (45) so that the electronic device executes the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores instructions, and when the instructions are executed, the method according to any one of claims 1 to 7 is performed.