vinfra memory-policy vstorage-services per-node change

Change per-node memory parameters:

usage: vinfra memory-policy vstorage-services per-node change
       [--guarantee <guarantee>] [--swap <swap>] [--cache-ratio <cache-ratio>
       --cache-minimum <cache-minimum> --cache-maximum <cache-maximum>]
       --node <node>
--guarantee <guarantee>
Guarantee, in bytes
--swap <swap>
Swap size, in bytes, or -1 if unlimited
--cache-ratio <cache-ratio>
Cache ratio from 0 to 1 inclusive
--cache-minimum <cache-minimum>
Minimum cache, in bytes
--cache-maximum <cache-maximum>
Maximum cache, in bytes
--node <node>
Node ID or hostname

Example:

# vinfra memory-policy vstorage-services per-node change \
--guarantee 8796093022208 --swap 1099511627776 --cache-ratio 0.5 \
--cache-minimum 1099511627776 --cache-maximum 3298534883328 \
--node 7ffa9540-5a20-41d1-b203-e3f349d62565 +-----------+------------------------+ | Field | Value | +-----------+------------------------+ | cache | maximum: 3298534883328 | | | minimum: 1099511627776 | | | ratio: 0.5 | | guarantee | 8796093022208 | | swap | 1099511627776 | +-----------+------------------------+

This command sets the storage services memory parameters for the node with the ID 7ffa9540-5a20-41d1-b203-e3f349d62565 as follows:

  • The memory guarantee to 8 GB
  • The swap size to 1 GB
  • The page cache limits: the minimum to 1 GB, the maximum to 3 GB, and the cache ratio to 0.5