Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

ネットワーク障害を支配したい話

883 views

Published on

builderscon tokyo 2018 LT

Published in: Technology
  • Be the first to comment

ネットワーク障害を支配したい話

  1. 1. 3
  2. 2. 4
  3. 3. 5
  4. 4. 6 http://hakatatonkotsu-anime.com/
  5. 5. 7 c http://hakatatonkotsu-anime.com/
  6. 6. 8
  7. 7. 9
  8. 8. 10
  9. 9. 11
  10. 10. 12
  11. 11. 13
  12. 12. 14
  13. 13. 15
  14. 14. 16
  15. 15. 17
  16. 16. 18
  17. 17. 19
  18. 18. 20
  19. 19. 21
  20. 20. 22
  21. 21. 23
  22. 22. 24 # iptables -A OUTPUT -p tcp -d xxx.xxx.xxx.xxx --dport 3306 -j REJECT
  23. 23. 25 # iptables -A OUTPUT -p tcp -d xxx.xxx.xxx.xxx --dport 3306 -j REJECT
  24. 24. 26 # iptables -A OUTPUT -p tcp -d xxx.xxx.xxx.xxx --dport 3306 -j REJECT
  25. 25. 27 # iptables -A OUTPUT -p tcp -d xxx.xxx.xxx.xxx --dport 3306 -j REJECT
  26. 26. 28
  27. 27. 29
  28. 28. 30
  29. 29. 31
  30. 30. 32 # iptables -A OUTPUT -p tcp -d xxx.xxx.xxx.xxx --dport 3306 -m statistic --mode random -- probability 0.02 -j DROP
  31. 31. 33 # iptables -A OUTPUT -p tcp -d xxx.xxx.xxx.xxx --dport 3306 -m statistic --mode random -- probability 0.02 -j DROP
  32. 32. 34
  33. 33. 35 # tc qdisc add dev eth0 root handle 1:0 tbf rate 50mbit burst 25kb limit 250kb
  34. 34. 36 # tc qdisc add dev eth0 root handle 1:0 tbf rate 50mbit burst 25kb limit 250kb # tc qdisc add dev root handle 1:0 netem delay 50ms 10ms distribution normal
  35. 35. 37
  36. 36. 38
  37. 37. 39
  38. 38. 40
  39. 39. 41
  40. 40. 42
  41. 41. 43
  42. 42. 44
  43. 43. 45 $ ./go/bin/comcast --device=eth0 --latency=185 --target-bw=40 --packet-loss=2%
  44. 44. 46 $ ./go/bin/comcast --device=eth0 --latency=185 --target-bw=40 --packet-loss=2%
  45. 45. 47 $ ./go/bin/comcast --device=eth0 --latency=185 --target-bw=40 --packet-loss=2%
  46. 46. 48
  47. 47. 49
  48. 48. 50
  49. 49. 51
  50. 50. 52
  51. 51. 53
  52. 52. 54
  53. 53. 55
  54. 54. 56
  55. 55. 57
  56. 56. 58
  57. 57. 59
  58. 58. 60
  59. 59. 61
  60. 60. 62
  61. 61. 63
  62. 62. 64
  63. 63. 65
  64. 64. 66
  65. 65. 67
  66. 66. 68
  67. 67. 69
  68. 68. 70
  69. 69. 71
  70. 70. 72
  71. 71. 73
  72. 72. 74
  73. 73. 75
  74. 74. 76
  75. 75. 77
  76. 76. 78
  77. 77. 79 d�j� vu
  78. 78. 80
  79. 79. 81
  80. 80. 82
  81. 81. 83
  82. 82. 84
  83. 83. 85
  84. 84. 86
  85. 85. 87

×