Skip to content

Commit 314b644

Browse files
Merge pull request #1987 from rabbitmq/clarify_si_unit_symbols
Clarify unit symbols
2 parents fa99850 + 28fd487 commit 314b644

File tree

4 files changed

+27
-21
lines changed

4 files changed

+27
-21
lines changed

docs/rabbitmq.conf.example

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,14 @@
307307
##
308308
# vm_memory_high_watermark.absolute = 2GB
309309
##
310-
## Supported units suffixes:
311-
##
312-
## kb, KB: kibibytes (2^10 bytes)
313-
## mb, MB: mebibytes (2^20)
314-
## gb, GB: gibibytes (2^30)
310+
## Supported unit symbols:
311+
##
312+
## k, kiB: kibibytes (2^10 - 1,024 bytes)
313+
## M, MiB: mebibytes (2^20 - 1,048,576 bytes)
314+
## G, GiB: gibibytes (2^30 - 1,073,741,824 bytes)
315+
## kB: kilobytes (10^3 - 1,000 bytes)
316+
## MB: megabytes (10^6 - 1,000,000 bytes)
317+
## GB: gigabytes (10^9 - 1,000,000,000 bytes)
315318

316319

317320

docs/rabbitmq.config.example

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,14 @@
259259
%%
260260
%% {vm_memory_high_watermark, {absolute, "1024M"}},
261261
%%
262-
%% Supported units suffixes:
263-
%%
264-
%% k, kiB: kibibytes (2^10 bytes)
265-
%% M, MiB: mebibytes (2^20)
266-
%% G, GiB: gibibytes (2^30)
267-
%% kB: kilobytes (10^3)
268-
%% MB: megabytes (10^6)
269-
%% GB: gigabytes (10^9)
262+
%% Supported unit symbols:
263+
%%
264+
%% k, kiB: kibibytes (2^10 - 1,024 bytes)
265+
%% M, MiB: mebibytes (2^20 - 1,048,576 bytes)
266+
%% G, GiB: gibibytes (2^30 - 1,073,741,824 bytes)
267+
%% kB: kilobytes (10^3 - 1,000 bytes)
268+
%% MB: megabytes (10^6 - 1,000,000 bytes)
269+
%% GB: gigabytes (10^9 - 1,000,000,000 bytes)
270270

271271
%% Fraction of the high watermark limit at which queues start to
272272
%% page message out to disc in order to free up memory.

docs/rabbitmqctl.8

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,8 +1836,8 @@ a floating point number greater than or equal to 0.
18361836
.It Ar memory_limit
18371837
The new memory limit at which flow control is triggered, expressed in
18381838
bytes as an integer number greater than or equal to 0 or as a string
1839-
with memory units (e.g. 512M or 1G).
1840-
Available units are:
1839+
with memory unit symbol(e.g. 512M or 1G).
1840+
Available unit symbols are:
18411841
.Bl -tag -width Ds
18421842
.It Cm k , Cm kiB
18431843
kibibytes (2^10 bytes)
@@ -1857,7 +1857,7 @@ gigabytes (10^9 bytes)
18571857
.It Cm set_disk_free_limit Ar disk_limit
18581858
.Bl -tag -width Ds
18591859
.It Ar disk_limit
1860-
Lower bound limit as an integer in bytes or a string with memory units
1860+
Lower bound limit as an integer in bytes or a string with memory unit symbols
18611861
(see vm_memory_high_watermark), e.g. 512M or 1G.
18621862
Once free disk space reaches the limit, a disk alarm will be set.
18631863
.El

priv/schema/rabbit.schema

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -668,15 +668,18 @@ end}.
668668
%%
669669
%% {vm_memory_high_watermark, {absolute, 1073741824}},
670670
%%
671-
%% Or you can set absolute value using memory units (with RabbitMQ 3.6.0+).
671+
%% Or you can set absolute value using memory unit symbols (with RabbitMQ 3.6.0+).
672672
%%
673673
%% {vm_memory_high_watermark, {absolute, "1024M"}},
674674
%%
675-
%% Supported units suffixes:
675+
%% Supported unit symbols:
676676
%%
677-
%% kb, KB: kibibytes (2^10 bytes)
678-
%% mb, MB: mebibytes (2^20)
679-
%% gb, GB: gibibytes (2^30)
677+
%% k, kiB: kibibytes (2^10 - 1,024 bytes)
678+
%% M, MiB: mebibytes (2^20 - 1,048,576 bytes)
679+
%% G, GiB: gibibytes (2^30 - 1,073,741,824 bytes)
680+
%% kB: kilobytes (10^3 - 1,000 bytes)
681+
%% MB: megabytes (10^6 - 1,000,000 bytes)
682+
%% GB: gigabytes (10^9 - 1,000,000,000 bytes)
680683

681684
{mapping, "vm_memory_high_watermark.relative", "rabbit.vm_memory_high_watermark", [
682685
{datatype, float}]}.

0 commit comments

Comments
 (0)