I am trying to add sets and bins in 3 namespaces, and it is getting added as well. however whenever I restart my server all sets gets deleted. It says Number of objects inside namespaces is 0. I would like to retain these sets after server restart.Please advice.
It sounds like you have not configured Aerospike with a storage stanza. See http://www.aerospike.com/docs/operations/configure/namespace/storage/
If there is no storage defined, all your data is in RAM only and is lost after server restart.
I hope this helps
Thank you very much! It works!