Skip to content

Commit ab84f1a

Browse files
committed
Minor, fixed number of Netty event loop threads count
1 parent 3cac917 commit ab84f1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/index.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ NOTE: Be sure that heap and direct memory combined does not exceed the total mem
106106
To correctly size the direct memory to sustain the flow of incoming Beats connections, the medium size of the transmitted
107107
log lines has to be known and also the batch size used by Beats (default to 2048). Overall the connections, only a
108108
subset of them are actively processed in parallel by Netty, corresponding to the number of workers which equals the
109-
number of CPU cores available. For each under processing channel a batch of events is read and due to the way
109+
number of CPU cores available multiplied by 2. For each under processing channel a batch of events is read and due to the way
110110
the decompressing and decoding part works, it keeps two copies of the batch in memory.
111111
The expression used to calculate the maximum direct memory usage is:
112112
["source","text"]
@@ -118,9 +118,9 @@ Supposing a 1Kb event size, there a small overhead of ~500 bytes of metadata tra
118118
consumption could be estimated as:
119119
["source","text"]
120120
-----
121-
1,5 KB * 2048 * 2 * 12
121+
1,5 KB * 2048 * 2 * 24
122122
-----
123-
This totalling to about 140MB. So if you have some data about the medium size of the events to process you can size
123+
This totalling to about 280MB. So if you have some data about the medium size of the events to process you can size
124124
the memory accordingly without risking to go in Out-Of-Memory error on the direct memory space in production environment.
125125

126126
//Content for Beats

0 commit comments

Comments
 (0)