Configuration File

The LSMCD configuration file is located at “/usr/local/lsmcdctrl/bin/conf/node.conf”. This wiki entry will explain the list of the available configuration options within the file.

CacheD Configurations

These options configure the CacheD portion of LSMCD.

Cached.Addr

Cached.Addr is the LSMCD public listening address and port. This is the address used when connecting and interacting with LSMCD. If replacing Memcached, this should match the current Memcached listening address. You must stop memcached before starting LSMCD.

Cached.Addr=*:11212

Cached.PriAddr

Cached.PriAddr is the LSMCD private listening address and port used for interactions between LSMCD instances.

Cached.PriAddr=192.168.0.62:11000

Cached.Slices

Cached.Slices is the number of slices that the data will be stored in. This should be equal to or higher than CachedProcCnt to minimize lock contention.

Cached.Slices=2

Cached.Slice.Priority

Cached.Slice.Priority is the priority of the slice in the replication group. This is explained in detail here.

Cached.Slice.Priority.0=100
Cached.Slice.Priority.1=200
#Cached.Slice.Priority.2=300
#Cached.Slice.Priority.3=400

Cached.ShmDir

Cached.ShmDir defines the location of LSMCD data files, such as cache data. If /dev/shm is used, the data will be stored in memory, but will be lost after a server reboot. If using the regular disk, data will be persistent, but it will be slower due to disk I/O. It is recommended to use an SSD for data storage, as SSDs will provide faster performance while keeping data persistent.

Cached.ShmDir=/dev/shm/lsmcd

Cached.HashTableName

Cached.HashTableName is the global hash table name. There is no need to have a different setting per slice.

#Cached.HashTableName=memcache

User and Group

The User and Group options define the user and group that LSCMD will run as.

User=nobody
Group=nobody

CachedProcCnt

CachedProcCnt setting determines how many LSMCD processes will run. LSMCD uses multiprocessing unlike MemcacheD, which uses multithreading.

CachedProcCnt=4

TmpDir

TmpDir specifies the location of the LSMCD pid file.

TmpDir=/tmp/lsmcd

RepldSockPath

RepldSockPath specifies the location of the Repld sock file.

RepldSockPath=/tmp/repld.usock

CachedSockPath

CachedSockPath specifies the location of the Cached sock file.

CachedSockPath=/tmp/cached.usock

LogLevel

LogLevel determines the level of the log messages output in LSMCD. Example levels include Info, Error, Warning, or Debug.

LogLevel=error
#LogLevel=dbg_medium

LogFile

LogFile specifies the location of the LSMCD log file.

LogFile=/tmp/lsmcd.log

Replicator Configurations

These options configure the replication portion of LSMCD. If there is no replication group, Repl.LbAddrs, Repl.ListenSvrAddr, and Repl.DispatchAddr are still required. All others are optional.

Repl.HeartBeatReq

Repl.HeartBeatReq is the frequency of the replication heartbeat.

Repl.HeartBeatReq=5

Repl.HeartBeatRetry

Repl.HeartBeatRetry is the maximum timeout for replication heartbeat.

Repl.HeartBeatRetry=30

Repl.MaxTidPacket

Repl.MaxTidPacket is the maximum replication packet size.

Repl.MaxTidPacket=2048000

Repl.GzipStream

Repl.GzipStream indicates whether or not LSMCD should use gzip stream for replication traffic.

Repl.GzipStream=YES

Repl.LbAddrs

Repl.LbAddrs is a comma separated list of IP addresses (with port number) that form the replication group.

Repl.LbAddrs=127.0.0.1:1234,192.168.0.122:1234

Repl.ListenSvrAddr

Repl.ListenSvrAddr is an IP Address and port number for the current replication node.

Repl.ListenSvrAddr=192.168.0.122:1234

Repl.DispatchAddr

Repl.DispatchAddr is an IP address and port number used to dispatch peer LSCMD connections.

Repl.DispatchAddr=192.168.0.62:5501
 
litespeed_wiki/lsmcd/configuration.txt · Last modified: 2017/10/25 17:35 by Kevin Fwu