This topic describes the common PolarDB Agent LakeBase client mount parameters, including META-URL connection parameters, metadata cache parameters, and I/O configuration parameters.
Mount command
Mount a file system by running the lakebase-client mount command:
lakebase-client mount [options] <META-URL> <MOUNTPOINT> --subdir=<SUB_DIR>
|
Parameter |
Description |
|
|
The metadata engine URL. You can use the complete |
|
|
The local mount point path. |
|
|
Optional. The relative or absolute path of a subdirectory under the LakeBase root directory. For example, Note
When you Mount with a SidecarSet without specifying a subdirectory, you must remove the |
META-URL parameters
META-URL supports appending connection parameters through the URL query string. You can specify the query string separately by using the --meta-url-query-string option. The client automatically appends the query string after decryption.
# Specify parameters by using --meta-url-query-string
lakebase-client mount <META-URL> /mnt/lakebase -d --meta-url-query-string "max_open_conns=8&max_idle_conns=8"
Metadata database parameters
|
Parameter |
Default value |
Description |
|
|
8 |
The maximum number of open database connections. Increase this value for high-concurrency workloads. |
|
|
8 |
The maximum number of idle connections in the connection pool. Set this value equal to |
Metadata configuration parameters
These parameters define the local metadata caching strategy for the client. Proper caching configuration reduces the number of round-trips to the metadata engine and improves the response speed of high-frequency operations such as ls (list directory), stat (query attributes), and open (open file).
|
Parameter |
Type |
Default value |
Description |
|
|
string |
"100s" |
When a file is created or deleted in a directory, the mtime update is skipped if the interval since the last update is within this duration. This reduces metadata write amplification for high-frequency directory operations. |
|
|
string |
"1s" |
The kernel cache TTL for file attributes such as size, permissions, and mtime. After expiration, the next |
|
|
string |
"1s" |
The kernel cache TTL for filename-to-inode mappings. After expiration, the next |
|
|
string |
"1s" |
The kernel cache TTL for directory entry lists. After expiration, the next |
|
|
string |
"0s" |
For previously opened files, subsequent |
|
|
uint64 |
10000 |
The maximum number of files tracked by the open cache. When this soft limit is exceeded, the earliest opened files are evicted from the cache. |
I/O configuration parameters
These parameters tune the memory buffer, prefetch strategy, and network concurrency of the client, which directly determine the I/O throughput and latency performance.
|
Parameter |
Type |
Default value |
Description |
|
|
string |
"1024K" |
The maximum data size per read/write request that the kernel sends to the client. Larger values reduce the number of context switches between kernel space and user space. The actual upper limit depends on the kernel version. |
|
|
string |
"300M" |
The total memory buffer pool shared by all concurrent read and write operations. Approximately 80% of this buffer is allocated to the prefetch buffer. The minimum value is 32 MiB. |
|
|
int |
50 |
The number of goroutines that concurrently upload data blocks to object storage in the background. Higher values improve write persistence speed but increase request pressure on the object storage service. |