https://github.com/melanmeg/monitoring_private-isu
https://github.com/melanmeg/monitoring_private-isu
isucon
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/melanmeg/monitoring_private-isu
- Owner: melanmeg
- Created: 2023-10-31T23:55:47.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-18T12:12:23.000Z (almost 2 years ago)
- Last Synced: 2025-01-11T02:33:49.510Z (9 months ago)
- Topics: isucon
- Language: Go
- Homepage:
- Size: 88.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prac-ansible-isu-templete
```
# mysql
mysql -u isuconp -pisuconp isuconp# pprof
sudo /home/isucon/.local/go/bin/go tool pprof -http localhost:1080 cpu.pprof# ssh port foward
ssh -N -L 0.0.0.0:19999:localhost:19999 x.x.x.x # netdata
ssh -N -L 0.0.0.0:1080:localhost:1080 x.x.x.x # pprof
ssh -N -L 0.0.0.0:3306:localhost:3306 x.x.x.x # mysql
ssh -N -L 0.0.0.0:8080:localhost:8080 x.x.x.x # grafana
ssh -N -L 0.0.0.0:9100:localhost:9100 x.x.x.x # node_exporter
ssh -N -L 0.0.0.0:3100:localhost:3100 x.x.x.x # fluent-bit
ps aux | grep ssh# wipe ps
kill $(ps aux | grep 'ssh -N -L 0.0.0.0:19999:localhost:19999 x.x.x.x' | grep -v grep | awk '{print $2}')
kill $(ps aux | grep 'ssh -N -L 0.0.0.0:1080:localhost:1080 x.x.x.x' | grep -v grep | awk '{print $2}')
kill $(ps aux | grep 'ssh -N -L 0.0.0.0:3306:localhost:3306 x.x.x.x' | grep -v grep | awk '{print $2}')
ps aux | grep ssh
```