Unlock instant, AI-driven research and patent intelligence for your innovation.

File access method, control node, client and electronic device

A technology for controlling node and file access, applied in the field of computer network, can solve problems such as multiple scheduling, client write failure, inability to access ChunkSever, etc., to improve availability and avoid task migration

Active Publication Date: 2021-12-14
ALIBABA GRP HLDG LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But when the network between the Client and the ChunkSever remains connected, and the network between the Master node and the ChunkSever also remains connected, the Master will withdraw the file access right and release the Client's Session information due to the disconnection of the heartbeat, and then the Master notifies the ChunkSever of the Client No longer has the right to access the file, so that the Client will not be able to access the ChunkSever, causing the Client to fail to write
[0004] At present, in order to improve the availability of the system when a network partition occurs in a distributed system, the tasks running on the Client that has no network connection with the Master node are scheduled to be executed on other Clients. However, due to the existence of network partitions, the new Client and the network The networks between are not necessarily the same, which may cause problems with multiple scheduling
And even if the new Client is connected to the Master node, the new Client can successfully reopen the file, but the migration of the task and the reopening of the file take seconds, and smooth fault tolerance and migration cannot be achieved.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • File access method, control node, client and electronic device
  • File access method, control node, client and electronic device
  • File access method, control node, client and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described The embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the scope of protection of this application.

[0026] figure 1 is a schematic diagram of an application scenario based on some embodiments. Such as figure 1 The shown application scenario includes a client (Client), a control (Master) node, and a data block server (ChunkSever). The control flow is transmitted between the Client and the Master node, so that the Client queries the Ma...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiments of the present application disclose a file access method, a control node, a client and an electronic device. The method includes: judging whether the communication link between the control node and the first client is disconnected; when determining the communication link at the first moment When disconnected, a notification message is sent to the target data block server at the second moment; wherein, the second moment is later than the first moment, and the time interval between the second moment and the first moment is the first preset duration, and the target data The block server is used to provide the first client with read and write access services to the target file before the first client's read and write access rights to the target file expire, and the notification message is used to notify the target data block server that the first client has access to the target file. 's read and write access has expired.

Description

technical field [0001] The present application relates to the technical field of computer network, and more specifically relates to a file access method, a control node, a client and an electronic device in a distributed system. Background technique [0002] A distributed system usually includes a client (Client), a control (Master) node, and a block server (ChunkSever). Users access data through the Client, and the Master node stores the user's metadata, that is, the file name, file length, and the actual storage location of the data, etc. Information, ChunkSever actually stores user data. When users read and write data, they first visit the Master node to query which Chunksever the actual data is stored on, and then access the corresponding Chunksever to read and write data. [0003] When the Client accesses the file, it uses the session (Session) mechanism to regularly maintain heartbeat with the Master node to obtain the file access right. The Master node detects whethe...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/06H04L29/08
CPCH04L63/10H04L67/10H04L67/14H04L67/145
Inventor 彭文文
Owner ALIBABA GRP HLDG LTD