Skip to content

Commit e96871a

Browse files
Backport #1796
1 parent ed1c5e7 commit e96871a

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

site/streams.md

+21-7
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ so uneven cluster sizes is strongly recommended.
113113
A stream remains an AMQP 0.9.1 queue, so it can be bound to any exchange after its creation,
114114
just as any other RabbitMQ queue.
115115

116-
If declaring using [management UI](./management.html), the `stream` type must be specified using
116+
If declaring using [management UI](./management), the `stream` type must be specified using
117117
the queue type drop down menu.
118118

119-
Streams support 3 additional [queue arguments](./queues.html#optional-arguments)
120-
that are best configured using a [policy](./parameters.html#policies)
119+
Streams support additional [queue arguments](./queues#optional-arguments)
120+
that also can be configured using a [policy](./parameters#policies)
121121

122122
* `x-max-length-bytes`
123123

@@ -129,12 +129,26 @@ Sets the maximum age of the stream. See [retention](#retention). Default: not se
129129

130130
* `x-stream-max-segment-size-bytes`
131131

132-
Unit: bytes. A stream is divided up into fixed size segment files on disk.
132+
Unit: bytes.
133+
134+
A stream is divided up into fixed size segment files on disk.
133135
This setting controls the size of these.
134-
Default: 500000000 bytes (500 MB).
136+
Default: (500000000 bytes).
137+
138+
While this argument can be configured via a policy, it will _only_ be applied
139+
to the stream if the policy is set at stream declaration time. If this argument
140+
is changed for a matching but pre-existing stream it **will not be changed** even
141+
if the effective policy of the queue record may indicate it is.
142+
143+
Hence it is best to only configure this via an option queue argument:
144+
145+
* `x-stream-filter-size-bytes`
146+
147+
The value is set in bytes.
135148

136-
The following snippet shows how to set the maximum size of a stream to 20 GB, with
137-
segment files of 100 MB:
149+
The size of the Bloom filter used for [filtering](#filtering).
150+
The value must be between 16 and 255.
151+
Default: 16.
138152

139153
<pre class="lang-java">
140154
Map&lt;String, Object&gt; arguments = new HashMap&lt;&gt;();

0 commit comments

Comments
 (0)