File write-in method in distributed system and apparatus thereof
A distributed system, writing position technology, applied in transmission systems, electrical components, instruments, etc., can solve problems such as long delays
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0094] Embodiment 1. A file writing method in a distributed system, such as figure 2 As shown, including steps S110-S120:
[0095] S110. After receiving the write request for the first file, the client sends a data write request for the first file to each storage node corresponding to the first file; the data write request carries : the write request identifier and storage node address corresponding to the first file data write request; the storage node address includes the primary storage node and / or secondary storage node in each storage node corresponding to the first file address; the address of the storage node is used for interaction between the primary storage node and the secondary storage node;
[0096] S120. The client receives an execution result of the data writing request from each storage node corresponding to the first file respectively.
[0097] In this embodiment, the client directly sends a data write request to each storage node including the primary stor...
Embodiment 2
[0108] Embodiment 2. A file writing method in a distributed system, such as image 3 As shown, including steps S210-S220:
[0109] S210. After receiving the client's data writing request for the first file, the main storage node stores the writing request identifier carried in it corresponding to the determined writing location indication information of the first file;
[0110] S220. The primary storage node sends the write request identifier and corresponding write location indication information to the secondary storage node according to the storage node address carried in the data write request, where the storage node address includes the first The address of the secondary storage node corresponding to the file; or, when the secondary storage node queries according to the write request identifier, returns the write location indication information corresponding to the write request identifier.
[0111] In this embodiment, the write position indication information is sent se...
Embodiment 3
[0124] Embodiment 3, a method for writing files in a distributed system, such as Figure 4 As shown, including steps S310-S320:
[0125] S310. After receiving the client's data write request for the first file, the secondary storage node queries the primary storage node according to the storage node address and the write request identifier carried in the data write request to obtain the write location indication information, The storage node address includes the address of the primary storage node corresponding to the first file; or receiving write location indication information from the primary storage node according to the write request identifier carried in the data write request;
[0126] S320. The secondary storage node writes the first file according to the write location indication information, and returns an execution result to the client.
[0127] In this embodiment, the secondary storage node directly receives the data writing request from the client, and directly ...
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