Articles in this section

How do I change the write-block-size configuration?

Detail

A user may need to increase the default write-block-size

Answer

To update the write-block-size setting:

  1. Open /etc/aerospike/aerospike.conf.

  2. Configure the namespaces write-block-size to the new desired size. Note that this configuration is placed inside the storage-engine device stanza. This is not applicable for storage-engine memory.

  3. Restart the server .

  4. 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-size and 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)

Applies To Earliest Version

Pre 4.9

Applies To Latest Version

7.2
Was this article helpful?
0 out of 0 found this helpful