Workstation: 4 Cores, SAMSUNG 830 EVO SSD 128G, 16G RAM, ubuntu 14.04
I our case, we need constantly write new objects into the database. I simulated 20k tps write workload with java client and with 10 minutes TTL. Sever gets slowly run out of disk and memory.
Dynamic Configuration
asinfo -v "set-config:context=namespace;id=test;defrag-lwm-pct=10"
asinfo -v "set-config:context=namespace;id=test;high-water-disk-pct=30"
asinfo -v "set-config:context=namespace;id=test;high-water-memory-pct=10"
asinfo -v "set-config:context=namespace;id=test;defrag-sleep=10"
asinfo -v "set-config:context=service;nsup-period=10"
asinfo -v "set-config:context=service;nsup-delete-sleep=10"
asinfo -v "set-config:context=namespace;id=test;evict-tenths-pct=900"
asinfo -v "set-config:context=namespace;id=test;memory-size=2368709120"
Live Configuration
$ asinfo -v "namespace/test" | sed 's/;/\n/g'
type=device
objects=15507365
sub-objects=0
master-objects=15507365
master-sub-objects=0
prole-objects=0
prole-sub-objects=0
expired-objects=16382369
evicted-objects=183657586
set-deleted-objects=0
nsup-cycle-duration=1052
nsup-cycle-sleep-pct=93
used-bytes-memory=992471360
data-used-bytes-memory=0
index-used-bytes-memory=992471360
sindex-used-bytes-memory=0
free-pct-memory=58
max-void-time=194592967
non-expirable-objects=0
current-time=194592367
stop-writes=false
hwm-breached=true
available-bin-names=32765
used-bytes-disk=3969885440
free-pct-disk=63
available_pct=34
cache-read-pct=26
memory-size=2368709120
high-water-disk-pct=30
high-water-memory-pct=10
evict-tenths-pct=990
stop-writes-pct=91
cold-start-evict-ttl=4294967295
repl-factor=1
default-ttl=600
max-ttl=0
conflict-resolution-policy=generation
single-bin=false
ldt-enabled=false
ldt-page-size=8192
enable-xdr=false
sets-enable-xdr=true
ns-forward-xdr-writes=false
allow-nonxdr-writes=true
allow-xdr-writes=true
disallow-null-setname=false
total-bytes-memory=2368709120
read-consistency-level-override=off
write-commit-level-override=off
migrate-tx-partitions-initial=0
migrate-tx-partitions-remaining=0
migrate-rx-partitions-initial=0
migrate-rx-partitions-remaining=0
migrate-tx-partitions-imbalance=0
total-bytes-disk=10737418240
defrag-lwm-pct=10
defrag-queue-min=1
defrag-sleep=10
defrag-startup-minimum=10
flush-max-ms=1000
fsync-max-sec=0
max-write-cache=67108864
min-avail-pct=5
post-write-queue=256
data-in-memory=false
file=/var/lib/aerospike/data/test.dat
filesize=10737418240
writethreads=1
writecache=67108864
obj-size-hist-max=100
$ asinfo -v "get-config:" | sed 's/;/\n/g'
transaction-queues=4
transaction-threads-per-queue=4
transaction-duplicate-threads=0
transaction-pending-limit=20
migrate-threads=1
migrate-xmit-priority=5
migrate-xmit-sleep=5000
migrate-read-priority=5
migrate-read-sleep=5000
migrate-xmit-hwm=10
migrate-xmit-lwm=5
migrate-max-num-incoming=256
migrate-rx-lifetime-ms=60000
proto-fd-max=15000
proto-fd-idle-ms=60000
proto-slow-netio-sleep-ms=1
transaction-retry-ms=1000
transaction-max-ms=1000
transaction-repeatable-read=false
ticker-interval=10
log-local-time=false
microbenchmarks=false
storage-benchmarks=false
ldt-benchmarks=false
scan-max-active=100
scan-max-done=100
scan-max-udf-transactions=32
scan-threads=4
batch-index-threads=4
batch-threads=4
batch-max-requests=5000
batch-max-buffers-per-queue=255
batch-max-unused-buffers=256
batch-priority=200
nsup-delete-sleep=10
nsup-period=10
nsup-startup-evict=true
paxos-retransmit-period=5
paxos-single-replica-limit=1
paxos-max-cluster-size=32
paxos-protocol=v3
paxos-recovery-policy=manual
write-duplicate-resolution-disable=true
respond-client-on-master-completion=false
replication-fire-and-forget=false
info-threads=16
allow-inline-transactions=true
use-queue-per-device=false
snub-nodes=false
prole-extra-ttl=0
max-msgs-per-type=-1
service-threads=4
fabric-workers=16
pidfile=/var/run/aerospike/asd.pid
memory-accounting=false
udf-runtime-gmax-memory=18446744073709551615
udf-runtime-max-memory=18446744073709551615
sindex-builder-threads=4
sindex-data-max-memory=ULONG_MAX
query-threads=6
query-worker-threads=15
query-priority=10
query-in-transaction-thread=0
query-req-in-query-thread=0
query-req-max-inflight=100
query-bufpool-size=256
query-batch-size=100
query-priority-sleep-us=1
query-short-q-max-size=500
query-long-q-max-size=500
query-rec-count-bound=18446744073709551615
query-threshold=10
query-untracked-time-ms=1000
query-pre-reserve-partitions=false
service-address=0.0.0.0
service-port=3000
mesh-seed-address-port=10.32.51.38:3002
reuse-address=true
fabric-port=3001
fabric-keepalive-enabled=true
fabric-keepalive-time=1
fabric-keepalive-intvl=1
fabric-keepalive-probes=10
network-info-port=3003
heartbeat-mode=mesh
heartbeat-protocol=v2
heartbeat-address=10.32.51.9
heartbeat-port=3002
heartbeat-interval=250
heartbeat-timeout=10
enable-security=false
privilege-refresh-period=300
report-authentication-sinks=0
report-data-op-sinks=0
report-sys-admin-sinks=0
report-user-admin-sinks=0
report-violation-sinks=0
syslog-local=-1
enable-xdr=false
xdr-namedpipe-path=NULL
forward-xdr-writes=false
xdr-delete-shipping-enabled=true
xdr-nsup-deletes-enabled=false
stop-writes-noxdr=false
reads-hist-track-back=1800
reads-hist-track-slice=10
reads-hist-track-thresholds=1,8,64
writes_master-hist-track-back=1800
writes_master-hist-track-slice=10
writes_master-hist-track-thresholds=1,8,64
proxy-hist-track-back=1800
proxy-hist-track-slice=10
proxy-hist-track-thresholds=1,8,64
udf-hist-track-back=1800
udf-hist-track-slice=10
udf-hist-track-thresholds=1,8,64
query-hist-track-back=1800
query-hist-track-slice=10
query-hist-track-thresholds=1,8,64
query_rec_count-hist-track-back=1800
query_rec_count-hist-track-slice=10
query_rec_count-hist-track-thresholds=1,8,64