infra-nimbus/ansible
Jakub Sokołowski 24020d0962
all: reduce MTR report cycle from 10 to 1
We have received a complaint from InnovaHosting about them being hit by
about 150 ICMP `ttl1` packets/s on their routers, causing excess CPU usage.
https://client.innovahosting.net/viewticket.php?tid=532874&c=8gALx9vm

By using `tcpdump` I have identified that `mtr` by default pings the
target 10 times, which means that the default value of `-c`/`--report-cycles`
is 10, although this is not documented in the manual.

We can see this when calling `mtr github.com` and watching with `tcpdump`:
```
 > sudo tcpdump -v -i eno1 icmp and src 185.181.230.78 and dst github.com | grep 'ttl 1,'
tcpdump: listening on eno1, link-type EN10MB (Ethernet), snapshot length 262144 bytes
19:54:53.981243 IP (tos 0x0, ttl 1, id 37119, offset 0, flags [none], proto ICMP (1), length 64)
...(8 packets omitted)...
19:55:03.025460 IP (tos 0x0, ttl 1, id 38226, offset 0, flags [none], proto ICMP (1), length 64)
```
We don't need to run the test 10 times to get a result for our metric.

Related to:
https://github.com/status-im/infra-role-bootstrap-linux/commit/ea22bdfe

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2023-11-20 21:07:17 +01:00
..
files layouts: add script and generate TSVs of validators 2023-11-17 15:01:57 +01:00
group_vars all: reduce MTR report cycle from 10 to 1 2023-11-20 21:07:17 +01:00
host_vars ih-eu-mda1: drop data center override 2023-10-12 17:26:08 +02:00
inventory nimbus.holesky: rename hosts to reflect EL usage 2023-11-11 16:12:11 +01:00
lookup_plugins bitwarden: include fixes for session invalidation 2022-02-10 15:34:18 +01:00
roles nimbus-era-files: fix trailing newline in launchd 2023-05-16 12:14:09 +02:00
vars layouts: add script and generate TSVs of validators 2023-11-17 15:01:57 +01:00
add_ssh_key.yml ansible/add_ssh_key: plabook for adding SSH keys 2023-09-16 09:10:27 +02:00
bootstrap.yml ansible/bootstrap: use become:true for MacOS hosts 2023-08-02 21:08:02 +02:00
cleanup.yml cleanup: clean also service logs 2022-03-11 12:11:39 +01:00
era.yml sepolia: Exposing ERA files 2023-10-02 13:42:51 +02:00
eth1.yml nimbus.eth1: update rocketpool configuration 2022-09-22 14:57:58 +02:00
fluffy.yml nimbus.fluff: deploy smart-metrics exporter 2023-04-12 13:24:29 +02:00
geth.yml nimbus-geth-goerli: remove one of three Geth nodes 2023-05-24 18:34:03 +02:00
holesky.yml nimbus.holesky: rename hosts to reflect EL usage 2023-11-11 16:12:11 +01:00
logs.yml nimbus.logs: drop unused oauth-proxy setup 2022-09-27 19:27:40 +02:00
mainnet.yml ansible: drop tags from include_role tasks 2023-09-08 11:59:50 +02:00
prater.yml ansible: drop tags from include_role tasks 2023-09-08 11:59:50 +02:00
rebuild.yml drop config for nimbus.pyrmont fleet 2022-03-26 10:36:56 +01:00
requirements.yml nimbus.fluffy: re-enable Consul healthchecks 2023-11-20 09:57:46 +01:00
resize.yml ansible/resize.yml: fix unmounting /mnt volumes 2023-03-02 14:37:27 +01:00
restart.yml drop config for nimbus.pyrmont fleet 2022-03-26 10:36:56 +01:00
sepolia.yml sepolia: Exposing ERA files 2023-10-02 13:42:51 +02:00
terraform.py
upgrade.yml ansible/upgrade.yml: update to version from template 2022-05-20 20:15:34 +02:00
versioncheck.py