This file contains hidden or 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
| { | |
| "title": "Nginx Web", | |
| "services": { | |
| "query": { | |
| "list": { | |
| "0": { | |
| "query": "response:[200 TO 299]", | |
| "alias": "OK", | |
| "color": "#7EB26D", | |
| "id": 0, |
This file contains hidden or 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
| # values from https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Welcome%20to%20High%20Performance%20Computing%20%28HPC%29%20Central/page/Linux%20System%20Tuning%20Recommendations | |
| # install (root): curl -s https://gist.githubusercontent.com/polonskiy/00a71bab32360ffcb79f/raw/10-custom.conf > /etc/sysctl.d/10-custom.conf | |
| # apply (root): sysctl -p /etc/sysctl.d/10-custom.conf | |
| net.ipv4.neigh.default.gc_thresh1 = 30000 | |
| net.ipv4.neigh.default.gc_thresh2 = 32000 | |
| net.ipv4.neigh.default.gc_thresh3 = 32768 | |
| net.ipv6.neigh.default.gc_thresh1 = 30000 | |
| net.ipv6.neigh.default.gc_thresh2 = 32000 |
This file contains hidden or 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
| # curl not smart enough for ipv6, so force ipv4 | |
| # on my mac I started to get localhost connect failure | |
| # | |
| # curl: (7) Failed to connect to localhost port 9031: Connection refused | |
| echo '--ipv4' >> ~/.curlrc |
This file contains hidden or 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
| #!/bin/bash | |
| mkdir ./cluster-dump | |
| kubectl get --export -o=json ns | \ | |
| jq '.items[] | | |
| select(.metadata.name!="kube-system") | | |
| select(.metadata.name!="default") | | |
| del(.status, | |
| .metadata.uid, |
This file contains hidden or 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
| @reboot /path/to/ha_monitor.sh >> /var/log/ha_monitor.log 2>&1 |
OlderNewer