Persistence
Memory persistence
state:
type: memoryRedis persistence
state:
type: redis
host: localhost
port: 6379
format: binary # optional, default=binary, possible values: json, binary
cache: # optional
maxSize: 1024 # size of in-memory client-side cache for hot keys, optional, default=1024
ttl: 1h # how long should key-values should be cached, optional, default=1h
clientTracking: true # should we subscribe for CLIENT TRACKING invalidation events
pipeline: # optional
maxSize: 128 # batch write buffer size, optional, default=128
flushPeriod: 1s # buffer flush interval, optional, default=1s
enabled: true # toggle pipelining, optional, default=true
auth: # optional
user: <username> # optional when Redis ACL is disabled
password: <password> # required if Redis server is run with requirepass argument
tls: # optional, defaults to disabled
enabled: true # optional, defaults to false
ca: <path/to/ca.crt> # optional path to the CA used to generate the cert, defaults to the default keychain
verify: full # optional, default=full, possible values: full, ca, off
# full - verify both certificate and hostname
# ca - verify only certificate
# off - skip verification
timeout: # optional, defaults to 1s for all sub-timeouts
connect: 1s # optional, defaults to 1s
socket: 1s # optional, defaults to 1s
command: 1s # optional, defaults to 1s
db: # optional, defaults to [0,1,2,3]: which redis dbs to use for persistence
state: 0 # can be used to co-locate multiple metarank instances
values: 1 # on a single redis server
rankings: 2
models: 3Disk persistence
RocksDB options
MapDB options
TLS Support
Authentication
State encoding formats
Redis support limitations
Last updated
Was this helpful?