I am using C Client API to store in Aerospike, backed by nvme ssd partitions. C client API wrote only 1 GB, but ssd storage usage shows 2GB i.e. twice the size of what I actually wrote. Replication factor is 1 and only 1 instance since I have been trying to isolate the issue.
Any ideas what I can look for? what is the 2nd row info?
asadm Seed: [(‘127.0.0.1’, 3000, None)] Config_file: /root/.aerospike/astools.conf, /etc/aerospike/astools.conf Aerospike Interactive Shell, version 0.1.23
Found 1 nodes Online: 1.1.1.1:3000
Admin> info
Node Node Ip Build Cluster Migrations Cluster Cluster Principal Client Uptime
. Id . . Size . Key Integrity . Conns .
myinstancehostname:3000 *BB9370AB23E1600 10.240.45.77:3000 C-4.5.0.2 1 0.000 A1848673B60 True BB9370AB23E1600 4 04:00:40
Number of rows: 1
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace Usage Information (2020-03-13 03:18:36 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Namespace Node Total Expirations,Evictions Stop Disk Disk HWM Avail% Mem Mem HWM Stop
. . Records . Writes Used Used% Disk% . Used Used% Mem% Writes%
data myinstancehostname:3000 4.370 K (0.000, 0.000) false 1.003 GB 1 50 99 608.930 KB 1 60 90
data 4.370 K (0.000, 0.000) 1.003 GB 608.930 KB
transaction myinstancehostname:3000 0.000 (0.000, 0.000) false N/E N/E 50 N/E 72.000 KB 1 60 90
transaction 0.000 (0.000, 0.000) 0.000 B 72.000 KB
Number of rows: 4
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Namespace Object Information (2020-03-13 03:18:36 UTC)~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Namespace Node Total Repl Objects Tombstones Pending Rack
. . Records Factor (Master,Prole,Non-Replica) (Master,Prole,Non-Replica) Migrates ID
. . . . . . (tx,rx) .
data myinstancehostname:3000 4.370 K 1 (4.370 K, 0.000, 0.000) (0.000, 0.000, 0.000) (0.000, 0.000) 0
data 4.370 K (4.370 K, 0.000, 0.000) (0.000, 0.000, 0.000) (0.000, 0.000)
transaction myinstancehostname:3000 0.000 1 (0.000, 0.000, 0.000) (0.000, 0.000, 0.000) (0.000, 0.000) 0
transaction 0.000 (0.000, 0.000, 0.000) (0.000, 0.000, 0.000) (0.000, 0.000)
Number of rows: 4
------------aerospike.conf
service {
paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
proto-fd-max 15000
#proto-fd-idle-ms 15000 # 15sec, default is 1 minute
}
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 transaction {
replication-factor 1
memory-size 64G
default-ttl 0d # 0 to never expire/evict.
storage-engine memory
}
namespace data {
replication-factor 1
memory-size 64G
default-ttl 0d # 0 to never expire/evict.
storage-engine device {
max-write-cache 10G
write-block-size 1M
device /dev/nvme2n1p1
device /dev/nvme2n1p2
device /dev/nvme2n1p3
device /dev/nvme2n1p4
}
}