Data reading method and device and distributed storage system
A data reading and data technology, which is applied in the direction of electrical digital data processing, data processing input/output process, instruments, etc., can solve the problems of heavy load on the master copy server, waste of server resources, etc., to solve the waste of resources, realize The effect of load balancing and improving data reading efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] Such as figure 1 As shown, an embodiment of the present invention provides a method for reading data, wherein the data includes multiple copies, the multiple copies are divided into a primary copy and a backup copy, and the multiple copies are respectively stored in different servers , the method includes the following steps:
[0042] S1: The server where the master copy is located receives the user's data read request;
[0043] Among them, the server where the master replica is located is responsible for receiving user requests. After receiving the user request, it first judges whether it is a read request, and if it is a read request, proceed to the subsequent steps.
[0044] S2: According to the load information of the server where all the replicas are located, select the server where the replica with the smallest load is located;
[0045]It should be noted that the server where the master copy is located has a load collection module, and each server where the copy...
Embodiment 2
[0052] Such as figure 2 As shown, another embodiment of the present invention provides a kind of data reading method, and this method comprises the following steps:
[0053] S1: The server where the master copy is located receives the user's data read request;
[0054] Among them, the server where the master replica is located is responsible for receiving user requests. After receiving the user request, it first judges whether it is a read request, and if it is a read request, proceed to the subsequent steps.
[0055] S2: According to the load information of the server where all the replicas are located, select the server where the replica with the smallest load is located;
[0056] It should be noted that the server where the master copy is located has a load collection module, and each server where the copy is located (the server where the master copy is located and the server where the backup copy is located) is equipped with a load reporting module, which is responsible ...
Embodiment 3
[0061] Such as image 3 As shown, another embodiment of the present invention provides a data reading method, the method includes the following steps:
[0062] S1: The server where the master copy is located receives the user's data read request;
[0063] Among them, the server where the master replica is located is responsible for receiving user requests. After receiving the user request, it first judges whether it is a read request, and if it is a read request, proceed to the subsequent steps.
[0064] S201: Collect load information of servers where all copies are located, wherein the servers where all copies are located report the load information of the server at preset time intervals;
[0065] Wherein, the load information includes CPU load, remaining memory, network traffic and disk utilization within a preset time.
[0066] It should be noted that the server where the master copy is located is equipped with a load collection module, and the servers where each copy is ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com