Skip to content

Commit 3b7eba2

Browse files
authored
disk-buffer: replace old option keywords with the actual ones (#249)
2 parents fb16254 + a9e6733 commit 3b7eba2

File tree

11 files changed

+44
-44
lines changed

11 files changed

+44
-44
lines changed

_data/navigation.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,24 +1073,24 @@ admin-guide-nav:
10731073
url: /admin-guide/190_The_syslog-ng_manual_pages/002_loggen_manual
10741074
- title: "The pdbtool manual page"
10751075
url: /admin-guide/190_The_syslog-ng_manual_pages/003_pdbtool_manual
1076-
- title: "The secure-logging manual page"
1077-
url: /admin-guide/190_The_syslog-ng_manual_pages/004_secure_logging_manual
1076+
- title: "The persist-tool manual page"
1077+
url: /admin-guide/190_The_syslog-ng_manual_pages/004_persist-tool_manual
1078+
- title: "The {{ site.product.short_name }} manual page"
1079+
url: /admin-guide/190_The_syslog-ng_manual_pages/005_syslog-ng_manual
1080+
- title: "The syslog-ng.conf manual page"
1081+
url: /admin-guide/190_The_syslog-ng_manual_pages/006_syslog-ng_conf
1082+
- title: "The {{ site.product.short_name }} control tool manual page"
1083+
url: /admin-guide/190_The_syslog-ng_manual_pages/007_syslog-ng_control_tool_manual
1084+
- title: "The syslog-ng-debun manual page"
1085+
url: /admin-guide/190_The_syslog-ng_manual_pages/008_syslog-ng_debun_tool_manual
10781086
- title: "The slogencrypt manual page"
1079-
url: /admin-guide/190_The_syslog-ng_manual_pages/005_slogencrypt_manual
1087+
url: /admin-guide/190_The_syslog-ng_manual_pages/009_slogencrypt_manual
10801088
- title: "The slogkey manual page"
1081-
url: /admin-guide/190_The_syslog-ng_manual_pages/006_slogkey_manual
1089+
url: /admin-guide/190_The_syslog-ng_manual_pages/010_slogkey_manual
10821090
- title: "The slogverify manual page"
1083-
url: /admin-guide/190_The_syslog-ng_manual_pages/007_slogverify_manual
1084-
- title: "The {{ site.product.short_name }} control tool manual page"
1085-
url: /admin-guide/190_The_syslog-ng_manual_pages/008_syslog-ng_control_tool_manual
1086-
- title: "The syslog-debun manual page"
1087-
url: /admin-guide/190_The_syslog-ng_manual_pages/009_syslog_debun_tool_manual
1088-
- title: "The {{ site.product.short_name }} manual page"
1089-
url: /admin-guide/190_The_syslog-ng_manual_pages/010_syslog-ng_manual
1090-
- title: "The syslog-ng.conf manual page"
1091-
url: /admin-guide/190_The_syslog-ng_manual_pages/011_syslog-ng_conf
1092-
- title: "The persist-tool manual page"
1093-
url: /admin-guide/190_The_syslog-ng_manual_pages/012_persist-tool_manual
1091+
url: /admin-guide/190_The_syslog-ng_manual_pages/011_slogverify_manual
1092+
- title: "The secure-logging manual page"
1093+
url: /admin-guide/190_The_syslog-ng_manual_pages/012_secure_logging_manual
10941094
- title: "About us"
10951095
url: /admin-guide/200_About/README
10961096
subnav:
7.59 KB
Loading
18.8 KB
Loading

doc/_admin-guide/050_The_configuration_file/006_Modules_in_syslog-ng/001_Listing_configuration_options.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,14 @@ The syslog-ng-cfg-helper utility has the following options:
5757
capacity-bytes(<number>)
5858
compaction(<yesno>)
5959
dir(<string>)
60-
disk-buf-size(<number>)
60+
capacity-bytes(<number>)
6161
flow-control-window-bytes(<nonnegative-integer>)
6262
flow-control-window-size(<nonnegative-integer>)
6363
front-cache-size(<nonnegative-integer>)
64-
mem-buf-length(<nonnegative-integer>)
65-
mem-buf-size(<nonnegative-integer>)
64+
flow-control-window-size(<nonnegative-integer>)
65+
flow-control-window-bytes(<nonnegative-integer>)
6666
prealloc(<yesno>)
67-
qout-size(<nonnegative-integer>)
67+
front-cache-size(<nonnegative-integer>)
6868
reliable(<yesno>)
6969
truncate-size-ratio(<nonnegative-float>)
7070
)

doc/_admin-guide/080_Log/010_Flow_control/000_Flow_control_multiple_destinations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ only when:
2323
- one destination is down, and
2424

2525
- the number of messages stored in the disk buffer of the destination
26-
reaches (disk-buf-size() minus mem-buf-size()).
26+
reaches (capacity-bytes() minus flow-control-window-bytes()).

doc/_admin-guide/080_Log/020_Buffering/000_Enabling_reliable_diskbuffer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ destination d_BSD {
2121
network("127.0.0.1"
2222
port(3333)
2323
disk-buffer(
24-
mem-buf-size(10000)
25-
disk-buf-size(2000000)
24+
flow-control-window-bytes(10000)
25+
capacity-bytes(2000000)
2626
reliable(yes)
2727
)
2828
);

doc/_admin-guide/080_Log/020_Buffering/001_Enabling_normal_diskbuffer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ destination d_BSD {
2323
network("127.0.0.1"
2424
port(3333)
2525
disk-buffer(
26-
mem-buf-length(10000)
27-
disk-buf-size(2000000)
26+
flow-control-window-size(10000)
27+
capacity-bytes(2000000)
2828
reliable(no)
2929
)
3030
);

doc/_admin-guide/080_Log/020_Buffering/002_How_to_get_information/005_How_to_process_orphan_diskbuffer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ To process the messages from an orphan disk-buffer file using a separate
134134
```config
135135
network("10.21.10.20"
136136
disk-buffer(
137-
disk-buf-size(1048576)
137+
capacity-bytes(1048576)
138138
reliable(yes)
139139
dir(/tmp/qdisk/)
140140
);

doc/_admin-guide/080_Log/020_Buffering/004_About_diskbuffer_files.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,31 @@ Protocol (ALTP). Note that the Advanced Log Transport Protocol is
1818
available only in syslog-ng Premium Edition version 6 LTS. Of course, using the reliable(yes) option introduces a significant performance penalty as well.
1919

2020
Both reliable and normal disk-buffers employ an in-memory output queue
21-
(set in quot-size()) and an in-memory overflow queue (set in
22-
mem-buf-size() for reliable disk-buffers, or mem-buf-length() for normal
21+
(set in front-cache-size()) and an in-memory overflow queue (set in
22+
flow-control-window-bytes() for reliable disk-buffers, or flow-control-window-size() for normal
2323
disk-buffers). The difference between reliable and normal disk-buffers
2424
is that when the reliable disk-buffer uses one of its in-memory queues,
2525
it also stores the message on the disk, whereas the normal disk-buffer
2626
stores the message only in memory. The normal disk-buffer only uses the
2727
disk if the in-memory output buffer is filled up completely. This
2828
approach has better performance (due to fewer disk I/O operations), but
29-
also carries the risk of losing a maximum of quot-size() plus
30-
mem-buf-length() number of messages in case of an unexpected power
29+
also carries the risk of losing a maximum of front-cache-size() plus
30+
flow-control-window-size() number of messages in case of an unexpected power
3131
failure or application crash.
3232

3333
## Size of the queue files
3434

35-
Disk queue files tend to grow. Each may take up to disk-buf-size() bytes
35+
Disk queue files tend to grow. Each may take up to capacity-bytes() bytes
3636
on the disk. Due to the nature of reliable queue files, all the messages
3737
traversing the queue are written to disk, constantly increasing the size
3838
of the queue file.
3939

4040
The disk-buffer file\'s size should be considered as the configured
41-
disk-buf-size() at any point of time, even if it does not have messages
41+
capacity-bytes() at any point of time, even if it does not have messages
4242
in it. Truncating the disk-buffer file can slow down disk I/O
4343
operations, so {{ site.product.short_name }} does not always truncate the file when it
4444
would be possible (see the truncate-size-ratio() option). If a large
45-
disk-buffer file is not desirable, you should set the disk-buf-size()
45+
disk-buffer file is not desirable, you should set the capacity-bytes()
4646
option to a smaller value.
4747

4848
![]({{ site.baseurl}}/assets/images/caution.png) **CAUTION:**

doc/_admin-guide/080_Log/020_Buffering/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,21 @@ no, {{ site.product.short_name }} handles outgoing messages the following way:
5353
the disk-buffer file during {{ site.product.short_name }} reload, restart or stop,
5454
but they cannot be persisted if in the event of power failures, or
5555
if {{ site.product.short_name }} crashes. By default, the output queue can hold 1000
56-
messages (you can adjust this number using the quot-size() option).
56+
messages (you can adjust this number using the front-cache-size() option).
5757

5858
- *Disk-buffer file*: Disk queue. If there is no space left in the
5959
output queue, the message is stored on the disk-buffer file.
6060
Messages stored here are persisted on the disk, even in case of
6161
power failures or if {{ site.product.short_name }} crashes. Using the disk-buffer
6262
file takes considerable amount of disk I/O and processor time. The
63-
size of this queue can be set with the disk-buf-size() option.
63+
size of this queue can be set with the capacity-bytes() option.
6464

6565
- *Overflow queue*: In-memory queue. This queue is used to trigger
6666
flow-control if it is set. The contents of the in-memory overflow
6767
queue are persisted to the disk-buffer file in case of {{ site.product.short_name }}
6868
reload, restart or stop, but they are not persisted in case of power
6969
failures or if {{ site.product.short_name }} crashes. Setting the size of the
70-
overflow queue can be done with the mem-buf-length() option.
70+
overflow queue can be done with the flow-control-window-size() option.
7171

7272
![]({{ site.baseurl}}/assets/images/caution.png) **CAUTION:**
7373
Hazard of data loss! In case of normal disk-buffers, the messages stored
@@ -83,15 +83,15 @@ failures or if {{ site.product.short_name }} crashes.
8383
When you use disk-based buffering, and the reliable() option is set to
8484
yes, {{ site.product.short_name }} handles outgoing messages the following way.
8585

86-
The mem-buf-size() option determines when flow-control is triggered.
87-
After the size of the disk-buffer file reaches (disk-buf-size() minus
88-
mem-buf-size()), messages are written into both the disk-buffer file and
86+
The flow-control-window-bytes() option determines when flow-control is triggered.
87+
After the size of the disk-buffer file reaches (capacity-bytes() minus
88+
flow-control-window-bytes()), messages are written into both the disk-buffer file and
8989
the overflow queue, indicating that flow-control needs to slow down the
9090
message source. These messages are not taken out from the control window
9191
(governed by log-iw-size()), causing the control window to fill up.
9292

9393
If the control window is full, the flow-control completely stops reading
94-
incoming messages from the source. (As a result, mem-buf-size() must be
94+
incoming messages from the source. (As a result, flow-control-window-bytes() must be
9595
at least as large as log-iw-size() times the average message size.)
9696

9797
### Figure 18: Handling outgoing messages in {{ site.product.short_name }} with the reliable disk-buffer option
@@ -106,18 +106,18 @@ at least as large as log-iw-size() times the average message size.)
106106
faster, because {{ site.product.short_name }} can skip reading from the disk, and
107107
deserializing the message, saving I/O and processor time. By
108108
default, the output queue can hold 1000 messages (you can adjust it
109-
using the quot-size() option).
109+
using the front-cache-size() option).
110110

111111
- *Disk-buffer file*: Disk queue. If there is no space left in the
112112
output queue, the message is stored on the disk-buffer file.
113113
Messages stored here are persisted on the disk, and survive
114114
{{ site.product.short_name }} crash or power failure. Using the disk-buffer file
115115
takes considerable amount of disk I/O and processor time. The size
116-
of this queue can be set with the disk-buf-size() option.
116+
of this queue can be set with the capacity-bytes() option.
117117

118118
- *Overflow queue*: In-memory and disk queue. This queue is used to
119119
trigger flow-control if it is set. Similarly to the output queue, in
120120
case of reliable disk-buffer in addition to storing the message in
121121
memory, it is stored directly in the disk-buffer file as well for
122122
safety reasons. Setting the size of the overflow queue can be done
123-
with the mem-buf-size() option.
123+
with the flow-control-window-bytes() option.

0 commit comments

Comments
 (0)