Skip to content

Commit

Permalink
add check TCP retransmission (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy authored Sep 30, 2024
1 parent 7697592 commit fa72a4f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions handler/checker/tasks/observer/network/TCP-retransmission.yaml
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%.'


0 comments on commit fa72a4f

Please sign in to comment.