Skip to content

Instantly share code, notes, and snippets.

@narqo narqo/aerospike-README.md

Last active Feb 10, 2020
Embed
What would you like to do?
Aerospike Server systemd configuration @ rpi (Ubuntu 19.10, aarch64)
service {
paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
proto-fd-max 15000
work-directory /var/lib/aerospike
}
logging {
console {
context any info
}
}
mod-lua {
user-path /var/lib/aerospike/udf/lua
}
network {
service {
address any
port 3000
}
heartbeat {
mode multicast
multicast-group 239.1.99.222
port 9918
# To use unicast-mesh heartbeats, remove the 3 lines above, and see
# aerospike_mesh.conf for alternative.
interval 150
timeout 10
}
fabric {
port 3001
}
info {
port 3003
}
}
namespace consistent {
replication-factor 2
memory-size 1G
default-ttl 0
storage-engine memory
}
namespace persistent00 {
replication-factor 2
memory-size 1G
default-ttl 30d # 30 days, use 0 to never expire/evict.
storage-engine device {
file /var/lib/aerospike/data/00
filesize 1G
data-in-memory true # Store data in memory in addition to file.
}
}
# File /etc/default/aerospike
ASD_CONFIG_FILE=/etc/aerospike/aerospike.conf
# Uncomment to start with cold start
#ASD_COLDSTART="--cold-start"
[Unit]
Description=Aerospike Server
After=network.target
Wants=network.target
[Service]
LimitNOFILE=100000
TimeoutSec=15
User=root
Group=root
EnvironmentFile=-/etc/default/aerospike
PermissionsStartOnly=True
#ExecStartPre=/usr/bin/asd-systemd-helper
ExecStart=/opt/aerospike/bin/asd $ASD_OPTIONS --config-file $ASD_CONFIG_FILE --fgdaemon
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.