Client Configuration

Configuration Description

NameTypeDescriptionRequired
mountPointstringMount pointYes
volNamestringVolume nameYes
ownerstringOwnerYes
masterAddrstringMaster node addressYes
logDirstringLog directoryNo
logLevelstringLog level: debug, info, warn, errorNo
profPortstringGolang pprof debug portNo
exporterPortstringPrometheus monitoring data portNo
consulAddrstringMonitoring registration server addressNo
lookupValidstringKernel FUSE lookup validity period, in secondsNo
attrValidstringKernel FUSE attribute validity period, in secondsNo
icacheTimeoutstringClient inode cache validity period, in secondsNo
enSyncWritestringEnable DirectIO synchronous write, i.e., force data node to write to disk with DirectIONo
autoInvalDatastringUse the AutoInvalData option for FUSE mountNo
rdonlyboolMount in read-only mode, default is falseNo
writecacheboolUse the write cache function of kernel FUSE module, requires kernel FUSE module support for write cache, default is falseNo
keepcacheboolKeep kernel page cache. This function requires the writecache option to be enabled, default is falseNo
tokenstringIf enableToken is enabled when creating a volume, fill in the token corresponding to the permissionNo
readRateintLimit the number of reads per second, default is unlimitedNo
writeRateintLimit the number of writes per second, default is unlimitedNo
followerReadboolRead data from follower, default is falseNo
accessKeystringAuthentication key of the user to whom the volume belongsNo
secretKeystringAuthentication key of the user to whom the volume belongsNo
disableDcacheboolDisable Dentry cache, default is falseNo
subdirstringSet subdirectory mountNo
fsyncOnCloseboolPerform fsync operation after file is closed, default is trueNo
maxcpusintMaximum number of CPUs that can be used, can limit the CPU usage of the client processNo
enableXattrboolWhether to use xattr, default is falseNo
enableBcacheboolWhether to enable local level-1 cache, default is falseNo
enableAuditboolWhether to enable local audit logs, default is falseNo
aheadReadEnableboolEnable read-ahead, default is falseNo
aheadReadTotalMemGBintTotal memory for read-ahead (GB), default 10No
aheadReadBlockTimeOutintRead-ahead block expiration time (seconds), default 3No
aheadReadWindowCntintNumber of concurrent blocks in the read-ahead window, default 8No
minReadAheadSizeintMinimum file size to trigger read-ahead (bytes), default 10485760 (10MB)No
enableAsyncFlushboolEnable asynchronous flush for ExtentHandler, default trueNo
readDirLimitintMaximum number of directory entries read during warm-up, default 500No
maxWarmUpConcurrencyintMaximum number of concurrent goroutines for warm-up, default 2No
stopWarmMetaboolStop metadata warm-up, default trueNo
metaCacheAccelerationboolKeep meta cache and get inode/extent in one go, default falseNo
inodeLruLimitintCapacity limit for inode LRU, default 10000000No
fuseServeThreadsintNumber of FUSE serve threads (0 = auto by CPU), default 0No

Configuration Example

{
  "mountPoint": "/cfs/mountpoint",
  "volName": "ltptest",
  "owner": "ltptest",
  "masterAddr": "10.196.59.198:17010,10.196.59.199:17010,10.196.59.200:17010",
  "logDir": "/cfs/client/log",
  "logLevel": "info",
  "profPort": "27510"
}
Edit on GitHub