What happens if I set it to default of 1mb. Since my 99% data will be less than 128Kb, will it have any effect on performance (using SSD) ? Does internally aerospike creates block of given size( 1mb) even if data is much less than it ?
Write block size defines the write size on the device. Even if your records size are small the system would bundle multiple records into single write block while flushing to storage. The performance characteristic may change. What exact behavior are you worried about. Please check this
Other option would be to change default value for LDT. You can do that using configurator. Whenever performing an operation pass this Map as parameter. I am assuming you are using Java Client.
Thanks again for the info.
If the system bundles multiple records then it is great.
But why have you recommended that specific 128K size for SSDs ?
I am using LMAP :
LargeMap lmap = client.getLargeMap(writePolicy, key, ldtBinName , null);
lmap.put(ldtBinValue); // Here ldtBinValue id a Map<String,Object>
It would be great if I can just change block size for this ldt instead of all bins.
I am mainly worried if increasing the block-size will reduce my read/write speed. Or will it unnecessarily consume more space on the aerospike servers.
You mentioned that performance characteristic may change . What characteristics are you refering here ?