-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7697592
commit fa72a4f
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
handler/checker/tasks/observer/network/TCP-retransmission.yaml
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,18 @@ | ||
info: 'Check TCP retransmission. From https://github.com/oceanbase/obdiag/issues/348' | ||
task: | ||
- steps: | ||
- type: ssh | ||
ssh: 'if command -v tsar &>/dev/null; then echo "exist"; fi' | ||
result: | ||
set_value: tsar_exist | ||
verify: '[ "exist" == "${tsar_exist}" ]' | ||
err_msg: 'tsar is not installed. we can not check tcp retransmission.' | ||
- type: ssh | ||
ssh: "tsar --check --tcp -s retran | awk -F '=' '{print $2}'" | ||
result: | ||
set_value: tcp_retransmission | ||
verify_type: max | ||
verify: 10 | ||
err_msg: 'tcp retransmission is too high, over 10%.' | ||
|
||
|