-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add FAQ topic about bandwidth throttling (#2225)
- Loading branch information
1 parent
e621b1d
commit b53e50c
Showing
4 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[float] | ||
[[bandwidth-throttling]] | ||
=== Need to limit bandwidth used by {beatname_uc}? | ||
|
||
If you need to limit bandwidth usage, we recommend that you configure the network stack on your OS to perform | ||
bandwidth throttling. | ||
|
||
For example, the following Linux commands cap the connection between {beatname_uc} and Logstash by setting a | ||
limit of 50 kbps on TCP connections over port 5044: | ||
|
||
[source,shell] | ||
---------------------------------------------------------------------- | ||
tc qdisc add dev $DEV root handle 1: htb | ||
tc class add dev $DEV parent 1:1 classid 1:10 htb rate 50kbps ceil 50kbps | ||
tc filter add dev $DEV parent 1:0 prio 1 protocol ip handle 10 fw flowid 1:10 | ||
iptables -A OUTPUT -t mangle -p tcp --dport 5044 -j MARK --set-mark 10 | ||
---------------------------------------------------------------------- | ||
|
||
Using OS tools to perform bandwidth throttling gives you better control over policies. For example, you can use | ||
OS tools to cap bandwidth during the day, but not at night. Or you can leave the bandwidth uncapped, but assign a low priority to the traffic. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters