You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BlobFs is a distributed [FUSE](http://fuse.sourceforge.net) based file system backed by [Microsoft azure blob storage service](https://azure.microsoft.com/en-us/services/storage/blobs/). It allows you to mount the containers/blobs in the storage account as a Linux local folder. It support the cluster mode.
4
+
BlobFs is a distributed [FUSE](http://fuse.sourceforge.net) based file system backed by [Microsoft azure blob storage service](https://azure.microsoft.com/en-us/services/storage/blobs/). It allows you to mount the containers/blobs in the storage account as a the local folder/driver. , no matter it is a Linux system or a Windows system. It support the cluster mode. you can mount the blob container (or part of it) across multiple linux and windows nodes.
5
+
6
+
## Important Notes:
7
+
* Here is the linux/mac version of the blobfs, please find the windows version of the blobfs from [blobfs-win](https://github.com/wesley1975/blobfs-win).
8
+
* For the core libraries of the blobfs, you can find it from the bloblib(https://github.com/wesley1975/bloblib). which is responsible for handling all the underlying azure blob storage operations
9
+
* If you are interested in contributing, please contact me via [email protected]
5
10
6
11
## Project Goals
7
-
The main goal of the project is to make azure storage service easy to use for Linux box.
12
+
Object storage is one of the most fundamental topic you'll encounter when you decide to start your cloud journey.The main goal of the project is to make azure storage service easy to use for Linux and windows box.
13
+
14
+
## Key Updates:
15
+
base on the lots of feedbacks, in version 0.0.3, I made these major updates:
16
+
* Ported the blobfs to windows platform. It became a universal solution.
17
+
* Improve the performance of list/rename/delete operation by enabling the multi-threading way. now it can list/rename/delete the thousands of items within few seconds.
18
+
* By requests of many users, I changed the queue from service bus to the Azure Queue storage,This will greatly simplify the configuration.
19
+
* Various bugs fixed, It is now more stable. you can use in production environment, but it's at your own risk.
* Allow mount multiple containers (or part of them) as the local folder.
12
24
* Cluster enabled: It supports mount the same containers/blobs across multiple nodes. Theses files can be shared via these nodes. The caches of these nodes are synchronized via service bus.
13
25
* Use blob leases as the distributed locking mechanism across multiple nodes. The blob will be locked exclusively when it is written.
14
-
* File’s attribute is cached for better performance, the cache are synchronized via service bus.
26
+
* File’s attribute is cached for better performance, the cache are synchronized via azure queuq storage.
15
27
* The contents are pre-cached by chunks when there is read operation. This will eliminate the times of http request and increase the performance greatly.
16
28
* Multi-part uploads are used for the write operation. Data is buffered firstly and then be uploaded if the buffer size exceed the threshold. This also can eliminate the times of http request and increase the performance greatly.
17
29
* You can edit the file content on the fly, especially recommend for the small file, It does not need download, edit and then upload.
18
30
* Append mode is supported, you can append the new line to the existing blob directly. this is more friendly for logging operation. And it can change the block blob to append blob automatically.
19
31
* Use server-side copy for move, rename operations, more efficient for big files and folders.
* Blobfs uses the blob leases to safe the write operation in the distributed environment, there is a dedicated thread to renew the lease automatically.
28
-
* For each of the node, there is local cache in it’s memory, the cache will store the file attributes. Once the file is changed by the node, the node will send a message to the topic of the service bus. And then other nodes will receive the notification via the dedicated subscription of the topic.
40
+
* For each of the node, there is local cache in it’s memory, the cache will store the file attributes. Once the file is changed by the node, the node will send a message to the Azure Queue storage. And then other nodes will receive the message and process it.
29
41
30
42
## installation
31
-
I strongly recommend to test and verify it in you environment before you use it.
43
+
Installation now is very easy. But I strongly recommend to test and verify it in you environment before you use it. it's at your own risk.
32
44
### 1.Install fuse
33
45
yum install fuse fuse-devel
34
-
### 2.Install blobfs without cluster mode enabled
46
+
### 2.Install blobfs
35
47
#### 2.1 get the azure account connection string, refer this [link](https://docs.microsoft.com/en-us/azure/storage/storage-create-storage-account)
mount_point = /mnt/blobfs (make sure the path exists in you node)
42
-
cluster_enabled = false
43
-
You can also modify other settings if needed
44
-
### 3.Install blobfs with cluster mode enabled
45
-
Additionally, you should do these actions
46
-
#### 3.1 Create a service bus topic. Refer this [link](https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-create-topics-subscriptions)
47
-
#### 3.2 create a subscription for each of your node, refer this [link](https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-create-topics-subscriptions)
* simply do a dd testing (single thread mode). so the performance depends on the machine and network.
68
79

69
80
70
81
## Dependency
71
82
* FUSE (Filesystem in Userspace) is an OS mechanism for unix-like OS that lets non-privileged users create their own file systems without editing kernel code.
72
83
*[Java Native Runtime (JNR)](https://github.com/jnr/jnr-ffi) is high-performance Java API for binding native libraries and native memory.
73
84
*[jnr-fuse](https://github.com/SerCeMan/jnr-fuse) is FUSE implementation in Java using Java Native Runtime (JNR).
74
85
75
-
## Limitation
86
+
## Limitation and known issues:
76
87
* Due to the overhead of fuse system, the performance will be expected slower than native file system.
77
88
* For the cp command, the blobfs will use read out - then write in to new blob mode. this will spent more time for large files/folders.
78
-
* For the page blob, currently, blobfs doest not support the copy operation. it may casue file interruption.
89
+
* For the page blob, currently, should be, but it is not well tested yet. it may casue file interruption.
79
90
80
91
## Supported platforms
81
92
-Linux : x86, x64
82
93
-MacOS (via osxfuse): x86, x64 (should be, but not tested yet)
BlobFs is a distributed [FUSE](http://fuse.sourceforge.net) based file system backed by [Microsoft azure blob storage service](https://azure.microsoft.com/en-us/services/storage/blobs/). It allows you to mount the containers/blobs in the storage account as a the local folder/driver. It support the cluster mode.
5
+
6
+
## Project Goals
7
+
The main goal of the project is to make azure storage service easy to use for Linux box.
* Allow mount multiple containers (or part of them) as the local folder.
12
+
* Cluster enabled: It supports mount the same containers/blobs across multiple nodes. Theses files can be shared via these nodes. The caches of these nodes are synchronized via service bus.
13
+
* Use blob leases as the distributed locking mechanism across multiple nodes. The blob will be locked exclusively when it is written.
14
+
* File’s attribute is cached for better performance, the cache are synchronized via service bus.
15
+
* The contents are pre-cached by chunks when there is read operation. This will eliminate the times of http request and increase the performance greatly.
16
+
* Multi-part uploads are used for the write operation. Data is buffered firstly and then be uploaded if the buffer size exceed the threshold. This also can eliminate the times of http request and increase the performance greatly.
17
+
* You can edit the file content on the fly, especially recommend for the small file, It does not need download, edit and then upload.
18
+
* Append mode is supported, you can append the new line to the existing blob directly. this is more friendly for logging operation. And it can change the block blob to append blob automatically.
19
+
* Use server-side copy for move, rename operations, more efficient for big files and folders.
* Blobfs uses the blob leases to safe the write operation in the distributed environment, there is a dedicated thread to renew the lease automatically.
28
+
* For each of the node, there is local cache in it’s memory, the cache will store the file attributes. Once the file is changed by the node, the node will send a message to the topic of the service bus. And then other nodes will receive the notification via the dedicated subscription of the topic.
29
+
30
+
## installation
31
+
I strongly recommend to test and verify it in you environment before you use it.
32
+
### 1.Install fuse
33
+
yum install fuse fuse-devel
34
+
### 2.Install blobfs without cluster mode enabled
35
+
#### 2.1 get the azure account connection string, refer this [link](https://docs.microsoft.com/en-us/azure/storage/storage-create-storage-account)
mount_point = /mnt/blobfs (make sure the path exists in you node)
42
+
cluster_enabled = false
43
+
You can also modify other settings if needed
44
+
### 3.Install blobfs with cluster mode enabled
45
+
Additionally, you should do these actions
46
+
#### 3.1 Create a service bus topic. Refer this [link](https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-create-topics-subscriptions)
47
+
#### 3.2 create a subscription for each of your node, refer this [link](https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-create-topics-subscriptions)
service_bus_subscription = subscription of the dedicated node
58
+
You can modify other settings if needed
59
+
### final.Start the blobfs service
60
+
nohup java -jar uber-blobfs-0.0.1-SNAPSHOT.jar
61
+
62
+
## Tips
63
+
* the block blob is read only by default. marked with read only flag. e.g. r--r--r--
64
+
* the append blob is marked with the read and write flag. e.g rw-rw-rw-
65
+
66
+
## Performance Test
67
+
* simply do a dd testing (single thread mode).
68
+

69
+
70
+
## Dependency
71
+
* FUSE (Filesystem in Userspace) is an OS mechanism for unix-like OS that lets non-privileged users create their own file systems without editing kernel code.
72
+
* [Java Native Runtime (JNR)](https://github.com/jnr/jnr-ffi) is high-performance Java API for binding native libraries and native memory.
73
+
* [jnr-fuse](https://github.com/SerCeMan/jnr-fuse) is FUSE implementation in Java using Java Native Runtime (JNR).
74
+
75
+
## Limitation
76
+
* Due to the overhead of fuse system, the performance will be expected slower than native file system.
77
+
* For the cp command, the blobfs will use read out - then write in to new blob mode. this will spent more time for large files/folders.
78
+
* For the page blob, currently, blobfs doest not support the copy operation. it may casue file interruption.
79
+
80
+
## Supported platforms
81
+
-Linux : x86, x64
82
+
-MacOS (via osxfuse): x86, x64 (should be, but not tested yet)
83
+
84
+
## Command Line Usage
85
+
blobfs -h
86
+
-b,--blob-prefix <arg> The prefix of the blobs that will be used as the
87
+
mounted BlobFS root (e.g., /container1/blob1/;
88
+
defaults to /)
89
+
-h,--help Print this help
90
+
-m,--mount-point <arg> Desired local mount point for BlobFs.
0 commit comments