Skip to content

Instantly share code, notes, and snippets.

@julianovidal
Last active August 29, 2015 14:09
Show Gist options
  • Select an option

  • Save julianovidal/b7f6488bdba1878b0429 to your computer and use it in GitHub Desktop.

Select an option

Save julianovidal/b7f6488bdba1878b0429 to your computer and use it in GitHub Desktop.
# 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 4
transaction-queues 4
transaction-threads-per-queue 4
proto-fd-max 15000
}
logging {
# Log file must be an absolute path.
file /var/log/aerospike/aerospike.log {
context any info
}
}
network {
service {
address any
port 3000
}
heartbeat {
mode mesh
address any
port 3002
interval 150
timeout 20
}
fabric {
port 3001
}
info {
port 3003
}
}
xdr {
enable-xdr true
namedpipe-path /tmp/xdr_pipe
digestlog-path /opt/aerospike/digestlog 100000000000
errorlog-path /var/log/aerospike/asxdr.log
xdr-pidfile /var/run/aerospike/asxdr.pid
datacenter aero_melt_east {
dc-node-address-port 54.162.154.230 3000
}
datacenter aero_melt_west {
dc-node-address-port 54.176.12.68 3000
}
local-node-port 3000
info-port 3004
}
namespace meltdsp {
enable-xdr true
xdr-remote-datacenter aero_melt_east
xdr-remote-datacenter aero_melt_west
replication-factor 2
memory-size 20G
default-ttl 30d
storage-engine memory
storage-engine device {
file /opt/aerospike/data/user.dat
filesize 50G
data-in-memory true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment