Hi,
Trying to deploy Aerospike EE edition with Docker.
There seems to be an error in start-up doc which states:
$ sudo docker run -tid --name aerospike -p 3000:3000 -p 3001:3001 -p 3002:3002 -p 3003:3003 -v <DIRECTORY>:/etc/aerospike/ -e "FEATURE_KEY_FILE=/etc/aerospike/features.conf" aerospike/aerospike-server-enterprise.
I believe the correct way would be
cd /etc/aerospike
sudo docker run -tid --name aerospike -p 3000:3000 -p 3001:3001 -p 3002:3002 -p 3003:3003 -v "$(pwd):/etc/aerospike/" -e "FEATURE_KEY_FILE=/etc/aerospike/features.conf" aerospike/aerospike-server-enterprise
However, this throws error as follows
docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
b13b046474a5 aerospike/aerospike-server-enterprise "/entrypoint.sh asd" 31 minutes ago Exited (1) 26 minutes ago aerospike
The log does not say much:
docker logs aerospike
link eth0 state up
link eth0 state up in 0
link eth0 state up
link eth0 state up in 0
The config file used is as follows:
cat aerospike.conf
# Aerospike database configuration file for use with systemd.
service {
paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
proto-fd-max 15000
}
logging {
##console {
file /tmp/aerospike.log {
context any info
}
}
network {
service {
address localhost
port 3000
access-address 127.0.0.1
}
heartbeat {
mode mesh # Send heartbeats using Mesh (Unicast) protocol
address localhost # (Optional) (Default: any) IP of the NIC on
# which this node is listening to heartbeat
port 3002 # port on which this node is listening to
# heartbeat
mesh-seed-address-port localhost 3002 # IP address for seed node in the cluster
# This IP happens to be the local node
mesh-seed-address-port rhes76 3002 # IP address for seed node in the cluster
# 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
}
}
security { # (Optional, Enterprise Edition only) to enable
# ACL on the cluster
enable-security true
# Write the audit trail to syslog (optional).
syslog {
local 0 # write to "local0" facility as well as to default syslog sink
report-authentication true
report-user-admin true
report-sys-admin true
report-violation true
}
# Write audit trail to aerospike log file (optional).
log {
report-authentication true
report-user-admin true
report-sys-admin true
report-violation true
report-data-op test seta # report successful data transactions on set "seta" in namespace "test"
}
}
namespace test {
replication-factor 1
memory-size 8G
default-ttl 30d # 30 days, use 0 to never expire/evict.
storage-engine memory
Appreciate any advice.
Thanks,
Mich