Detail
A user may need to increase the default write-block-size .Answer
To update the write-block-size setting:
-
Open
/etc/aerospike/aerospike.conf. -
Configure the namespaces
write-block-sizeto the new desired size. Note that this configuration is placed inside thestorage-engine devicestanza. This is not applicable forstorage-engine memory. -
Continue with other nodes in the cluster.
Notes
The write-block-size configuration is static but can be changed in a rolling manner across all nodes in a cluster.
- When increasing the write-block-size the max-record-size parameter should be set so that larger records are not written until all nodes have the larger block size.
- If decreasing the write-block-size , it is necessary to first delete all the records that are bigger than the new lower
write-block-sizeand also zeroize the disks which will require to wait for migrations to complete between each node. - The default value for write-block-size is 1MB and the configured value of this parameter must be a power of 2, so the different options are: 128K, 256K, 512K, 1M (and 2M, 4M or 8M from version 4.2)