summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerhard Lazu <gerhard@lazu.co.uk>2019-04-23 16:11:21 +0100
committerGerhard Lazu <gerhard@lazu.co.uk>2019-04-23 16:11:21 +0100
commitfa998503fac0fe2682c9a3e40545511062a0f71c (patch)
tree9196e5119b9a23362d9b78bc5ee1ec82e738ffba
parent738604543a31f6ba5c5b92f475a85295c636df33 (diff)
downloadrabbitmq-server-git-fa998503fac0fe2682c9a3e40545511062a0f71c.tar.gz
Revert "Clarify unit symbols"
This reverts commit 738604543a31f6ba5c5b92f475a85295c636df33.
-rw-r--r--docs/rabbitmq.conf.example13
-rw-r--r--docs/rabbitmq.config.example16
-rw-r--r--docs/rabbitmqctl.86
-rw-r--r--priv/schema/rabbit.schema13
4 files changed, 21 insertions, 27 deletions
diff --git a/docs/rabbitmq.conf.example b/docs/rabbitmq.conf.example
index 988fb62467..d610f5bef5 100644
--- a/docs/rabbitmq.conf.example
+++ b/docs/rabbitmq.conf.example
@@ -307,14 +307,11 @@
##
# vm_memory_high_watermark.absolute = 2GB
##
-## Supported unit symbols:
-##
-## k, kiB: kibibytes (2^10 - 1,024 bytes)
-## M, MiB: mebibytes (2^20 - 1,048,576 bytes)
-## G, GiB: gibibytes (2^30 - 1,073,741,824 bytes)
-## kB: kilobytes (10^3 - 1,000 bytes)
-## MB: megabytes (10^6 - 1,000,000 bytes)
-## GB: gigabytes (10^9 - 1,000,000,000 bytes)
+## Supported units suffixes:
+##
+## kb, KB: kibibytes (2^10 bytes)
+## mb, MB: mebibytes (2^20)
+## gb, GB: gibibytes (2^30)
diff --git a/docs/rabbitmq.config.example b/docs/rabbitmq.config.example
index 5970d39713..9f56ba3f96 100644
--- a/docs/rabbitmq.config.example
+++ b/docs/rabbitmq.config.example
@@ -259,14 +259,14 @@
%%
%% {vm_memory_high_watermark, {absolute, "1024M"}},
%%
- %% Supported unit symbols:
- %%
- %% k, kiB: kibibytes (2^10 - 1,024 bytes)
- %% M, MiB: mebibytes (2^20 - 1,048,576 bytes)
- %% G, GiB: gibibytes (2^30 - 1,073,741,824 bytes)
- %% kB: kilobytes (10^3 - 1,000 bytes)
- %% MB: megabytes (10^6 - 1,000,000 bytes)
- %% GB: gigabytes (10^9 - 1,000,000,000 bytes)
+ %% Supported units suffixes:
+ %%
+ %% k, kiB: kibibytes (2^10 bytes)
+ %% M, MiB: mebibytes (2^20)
+ %% G, GiB: gibibytes (2^30)
+ %% kB: kilobytes (10^3)
+ %% MB: megabytes (10^6)
+ %% GB: gigabytes (10^9)
%% Fraction of the high watermark limit at which queues start to
%% page message out to disc in order to free up memory.
diff --git a/docs/rabbitmqctl.8 b/docs/rabbitmqctl.8
index 25a5afc303..1ec06e8b30 100644
--- a/docs/rabbitmqctl.8
+++ b/docs/rabbitmqctl.8
@@ -1836,8 +1836,8 @@ a floating point number greater than or equal to 0.
.It Ar memory_limit
The new memory limit at which flow control is triggered, expressed in
bytes as an integer number greater than or equal to 0 or as a string
-with memory unit symbol(e.g. 512M or 1G).
-Available unit symbols are:
+with memory units (e.g. 512M or 1G).
+Available units are:
.Bl -tag -width Ds
.It Cm k , Cm kiB
kibibytes (2^10 bytes)
@@ -1857,7 +1857,7 @@ gigabytes (10^9 bytes)
.It Cm set_disk_free_limit Ar disk_limit
.Bl -tag -width Ds
.It Ar disk_limit
-Lower bound limit as an integer in bytes or a string with memory unit symbols
+Lower bound limit as an integer in bytes or a string with memory units
(see vm_memory_high_watermark), e.g. 512M or 1G.
Once free disk space reaches the limit, a disk alarm will be set.
.El
diff --git a/priv/schema/rabbit.schema b/priv/schema/rabbit.schema
index c7171ce74a..4ca95cc536 100644
--- a/priv/schema/rabbit.schema
+++ b/priv/schema/rabbit.schema
@@ -668,18 +668,15 @@ end}.
%%
%% {vm_memory_high_watermark, {absolute, 1073741824}},
%%
-%% Or you can set absolute value using memory unit symbols (with RabbitMQ 3.6.0+).
+%% Or you can set absolute value using memory units (with RabbitMQ 3.6.0+).
%%
%% {vm_memory_high_watermark, {absolute, "1024M"}},
%%
-%% Supported unit symbols:
+%% Supported units suffixes:
%%
-%% k, kiB: kibibytes (2^10 - 1,024 bytes)
-%% M, MiB: mebibytes (2^20 - 1,048,576 bytes)
-%% G, GiB: gibibytes (2^30 - 1,073,741,824 bytes)
-%% kB: kilobytes (10^3 - 1,000 bytes)
-%% MB: megabytes (10^6 - 1,000,000 bytes)
-%% GB: gigabytes (10^9 - 1,000,000,000 bytes)
+%% kb, KB: kibibytes (2^10 bytes)
+%% mb, MB: mebibytes (2^20)
+%% gb, GB: gibibytes (2^30)
{mapping, "vm_memory_high_watermark.relative", "rabbit.vm_memory_high_watermark", [
{datatype, float}]}.