diff options
| author | Arnaud Cogoluègnes <acogoluegnes@gmail.com> | 2016-11-29 10:25:32 +0100 |
|---|---|---|
| committer | Arnaud Cogoluègnes <acogoluegnes@gmail.com> | 2016-11-29 10:25:32 +0100 |
| commit | 39df722a3e471be3d40dc24cb391317f16e9d4a0 (patch) | |
| tree | a3d485065f11406ccbf8abce8cb1a74a1d461166 | |
| parent | b2141bde48add4f3281e5667c8d7835dbd62601a (diff) | |
| download | rabbitmq-server-git-39df722a3e471be3d40dc24cb391317f16e9d4a0.tar.gz | |
Add background GC settings to new config format
Fixes #1040
| -rw-r--r-- | docs/rabbitmq.conf.example | 8 | ||||
| -rw-r--r-- | priv/schema/rabbitmq.schema | 14 | ||||
| -rw-r--r-- | test/config_schema_SUITE_data/snippets.config | 14 |
3 files changed, 36 insertions, 0 deletions
diff --git a/docs/rabbitmq.conf.example b/docs/rabbitmq.conf.example index 33685191a3..33b69265ef 100644 --- a/docs/rabbitmq.conf.example +++ b/docs/rabbitmq.conf.example @@ -380,6 +380,14 @@ ## # queue_index_embed_msgs_below = 4kb +## Whether or not to enable background GC. +## +# background_gc_enabled = true + +## Interval (in milliseconds) at which we run background GC. +## +# background_gc_target_interval = 60000 + ## ---------------------------------------------------------------------------- ## Advanced Erlang Networking/Clustering Options. ## diff --git a/priv/schema/rabbitmq.schema b/priv/schema/rabbitmq.schema index f31ec5416c..187e77017c 100644 --- a/priv/schema/rabbitmq.schema +++ b/priv/schema/rabbitmq.schema @@ -910,6 +910,20 @@ end}. {mapping, "queue_index_embed_msgs_below", "rabbit.queue_index_embed_msgs_below", [{datatype, bytesize}]}. +%% Whether or not to enable background GC. +%% +%% {background_gc_enabled, true} + +{mapping, "background_gc_enabled", "rabbit.background_gc_enabled", + [{datatype, {enum, [true, false]}}]}. + +%% Interval (in milliseconds) at which we run background GC. +%% +%% {background_gc_target_interval, 60000} + +{mapping, "background_gc_target_interval", "rabbit.background_gc_target_interval", + [{datatype, integer}]}. + % ========================== % Lager section % ========================== diff --git a/test/config_schema_SUITE_data/snippets.config b/test/config_schema_SUITE_data/snippets.config index a64b6e06c9..f5832981bc 100644 --- a/test/config_schema_SUITE_data/snippets.config +++ b/test/config_schema_SUITE_data/snippets.config @@ -772,5 +772,19 @@ autocluster.node_type = ram", [{rabbit, [ {autocluster, [{peer_discovery_backend, rabbit_peer_discovery_classic_config}, {node_type, ram}]} +]}],[]}, +{77, +"background_gc_enabled = true +background_gc_target_interval = 30000", +[{rabbit, [ + {background_gc_enabled, true}, + {background_gc_target_interval, 30000} +]}],[]}, +{77.1, +"background_gc_enabled = false +background_gc_target_interval = 30000", +[{rabbit, [ + {background_gc_enabled, false}, + {background_gc_target_interval, 30000} ]}],[]} ]. |
