forked from aerospike/aerospike-server-enterprise.docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aerospike.template.conf
81 lines (66 loc) · 1.86 KB
/
aerospike.template.conf
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
# Aerospike database configuration file.
# This stanza must come first.
service {
user root
group root
paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
pidfile /var/run/aerospike/asd.pid
# service-threads ${SERVICE_THREADS} # default is 5 x cpus
# transaction-queues ${TRANSACTION_QUEUES} # obsolete as of 4.7
# transaction-threads-per-queue ${TRANSACTION_THREADS_PER_QUEUE} #obsolete as of 4.7
proto-fd-max 15000
feature-key-file ${FEATURE_KEY_FILE}
}
logging {
# Log file must be an absolute path.
file ${LOGFILE} {
context any info
}
# Send log messages to stdout
console {
context any info
}
}
network {
service {
address ${SERVICE_ADDRESS}
port ${SERVICE_PORT}
# Uncomment the following to set the `access-address` parameter to the
# IP address of the Docker host. This will the allow the server to correctly
# publish the address which applications and other nodes in the cluster to
# use when addressing this node.
# access-address <IPADDR>
}
heartbeat {
address ${HB_ADDRESS}
# mesh is used for environments that do not support multicast
mode mesh
port ${HB_PORT}
# use asinfo -v 'tip:host=<ADDR>;port=3002' to inform cluster of
# other mesh nodes
interval 150
timeout 10
}
fabric {
address ${FABRIC_ADDRESS}
port ${FABRIC_PORT}
}
info {
address ${INFO_ADDRESS}
port ${INFO_PORT}
}
}
namespace ${NAMESPACE} {
replication-factor ${REPL_FACTOR}
memory-size ${MEM_GB}G
default-ttl ${DEFAULT_TTL} # 5 days, use 0 to never expire/evict.
nsup-period ${NSUP_PERIOD}
# storage-engine memory
# To use file storage backing, comment out the line above and use the
# following lines instead.
storage-engine device {
file /opt/aerospike/data/${NAMESPACE}.dat
filesize ${STORAGE_GB}G
data-in-memory true # Store data in memory in addition to file.
}
}