File: yrmcds.conf

package info (click to toggle)
yrmcds 1.1.8-1.1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 1,000 kB
  • sloc: cpp: 11,157; sh: 148; makefile: 117
file content (89 lines) | stat: -rw-r--r-- 2,524 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# Configuration file for yrmcdsd

# setuid user
user = nobody

# setgid group
group = nogroup

# To become the master, virtual_ip address must be owned.
virtual_ip = 127.0.0.1

# memcache protocol port number.
port = 11211

# yrmcds replication protocol port number.
repl_port = 11213

# max number of client connections.  0 means unlimited.
max_connections = 10000

# large objects are saved in this directory as temporary files.
temp_dir = "/var/tmp/yrmcds"

# possible values: error, warning, info, debug
log.threshold = info

# logs are recorded to this file.
# If log.file is not defined, logs are printed to standard error.
log.file = "/var/log/yrmcds.log"

# Hash table size.  1 million is the sane default.
buckets = 1000000

# The maximum object size.  This is a soft-limit.
# There is a compile-time hard-limit around 30 MiB.
max_data_size = 10M

# Objects larger than this will be stored in temporary files.
heap_data_limit = 256K

# The buffer size for asynchronous replication in MiB.
# The value must be an integer > 0.  Default is 30 (MiB).
repl_buffer_size = 30

# Clear memory used by deleted or expired objects securely.
# This ensures confidential data such as crypto keys will not be
# leaked after expiration.
# Consider setting "max_data_size" equal to "heap_data_limit" to
# avoid writing confidential data into persistent storage when
# you enable this option.
secure_erase = false

# Prevent memory from being swapped by using mlockall(2).
lock_memory = false

# The amount of memory allowed for the entire yrmcds.
# This is by no means a hard limit; rather, this is just a hint for
# the garbage collection.
memory_limit = 1024M

# The number of worker threads.
workers = 10

# The interval between garbage collections in seconds.
gc_interval = 10

# slave_timeout specifies how many seconds to wait for heartbeats from slaves
# before the connection is forcibly closed.
slave_timeout = 10

#----------------------------------------------------------
# configurations for counter extension

# If true, the counter extension is enabled. (default: false)
counter.enable = false

# TCP port used for the counter protocol. (default: 11215)
counter.port = 11215

# The maximum number of connections in the counter protocol.
# 0 means unlimited. (default: 0)
counter.max_connections = 0

# The size of the counter hash table. (default: 1000000)
counter.buckets = 1000000

# The interval of measuring the maximum number of resource consumption
# in seconds. (default: 86400)
counter.stat_interval = 86400