Configure memory usage by configuring the maximum index size


#1

In source code,the maximum index size for each namespace is macro MAX_STAGE_CAPACITY 16M.,with which “as_namespaces_init” allocates more than 1G memory for each namespace by default.The fuction “as_mem_check” would try 1/2 ,1/4 or 1/8 maximum size if the local available memory cannot reach the maximum value MAX_STAGE_CAPACITY. Could make the stage_capacity/index size configurable in aerospike.conf or as execution parameters? Accordingly the memory usage size could be configured by user.