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
Copy file name to clipboardExpand all lines: articles/storage/blobs/blobfuse2-how-to-deploy.md
+28-8Lines changed: 28 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,10 +110,10 @@ To build the BlobFuse2 binaries from source:
110
110
You can configure BlobFuse2 with a variety of settings. Some of the common settings used include:
111
111
112
112
- Logging location and options
113
-
- Temporary file path for caching or streaming
113
+
- Temporary file path for caching
114
114
- Information about the Azure storage account and blob container to be mounted
115
115
116
-
The settings can be configured in a yaml configuration file, using environment variables, or as parameters passed to the BlobFuse2 commands. The preferred method is to use the yaml configuration file.
116
+
The settings can be configured in a yaml configuration file, using environment variables, or as parameters passed to the BlobFuse2 commands. The preferred method is to use the configuration file.
117
117
118
118
For details about all of the configuration parameters for BlobFuse2, consult the complete reference material for each:
119
119
@@ -124,21 +124,41 @@ For details about all of the configuration parameters for BlobFuse2, consult the
124
124
125
125
The basic steps forconfiguring BlobFuse2in preparation for mounting are:
126
126
127
-
1. [Configure a temporary path forcaching or streaming](#configure-a-temporary-path-for-caching-or-streaming)
127
+
1. [Configure caching](#configure-caching)
128
128
1. [Create an empty directory for mounting the blob container](#create-an-empty-directory-for-mounting-the-blob-container)
129
129
1. [Authorize access to your storage account](#authorize-access-to-your-storage-account)
130
130
131
-
### Configure a temporary path for caching or streaming
131
+
### Configure caching
132
132
133
-
BlobFuse2 provides native-like performance by requiring a temporary path in the file system to buffer and cache any open files. For this temporary path, choose the most performant disk available, or use a ramdisk for the best performance.
133
+
BlobFuse2 provides native-like performance by using local file-caching techniques. The caching configuration and behavior varies, depending on whether you are streaming large files or accessing smaller files.
134
+
135
+
#### Configure caching for streaming large files
136
+
137
+
In streaming mode, BlobFuse2 caches blocks of files in memory. The configuration settings related to caching forstreaming are under the `stream:` settingsin your configuration file as follows:
138
+
139
+
```configuration file
140
+
stream:
141
+
Block-size-mb:
142
+
For read only mode, the size of each block to be cached in memory while streaming (in MB)
143
+
For read/write mode: the size of newly created blocks
144
+
Max-buffers: The total number of buffers to store blocks in
145
+
Buffer-size-mb: The size for each buffer
146
+
```
147
+
148
+
#### Configure caching for smaller files
149
+
150
+
Smaller files are cached to a temporary path specified under `file_cache:`in the configuration file as follows:
151
+
152
+
```configuration file
153
+
file_cache:
154
+
path: <path to local disk cache>
155
+
```
134
156
135
157
> [!NOTE]
136
158
> BlobFuse2 stores all open file contents in the temporary path. Make sure to have enough space to accommodate all open files.
137
159
>
138
160
139
-
#### Choose a caching disk option
140
-
141
-
There are 3 common options for configuring the temporary path for caching:
161
+
There are 3 common options for configuring the temporary path for file caching:
142
162
143
163
- [Use a local high-performing disk](#use-a-local-high-performing-disk)
0 commit comments