Commit Graph

147 Commits

Author SHA1 Message Date
Karol Wypchło 10a251c081
reimplement health checks (#434) 2020-09-29 12:32:45 +02:00
Matthew Sevey 998bacd93a Add ssh pubkey for Sevey 2020-09-25 11:54:34 -04:00
Peter-Jan Brone f3b2a130fe
Wildcard Subdomains Documentation (#416)
* Add documentation on subdomains

* Update copy

* Fix typo

* Link Karol his repo

* Update copy

* Update setup-scripts/README.md

Co-authored-by: Karol Wypchło <kwypchlo@gmail.com>

Co-authored-by: Karol Wypchło <kwypchlo@gmail.com>
2020-09-22 12:23:53 +02:00
Karol Wypchło dc73367a66
Merge pull request #371 from NebulousLabs/safe-restart-scripts
add safe stop and restart sia scripts
2020-09-18 17:08:19 +02:00
Karol Wypchło 08782de656
update ssh keys 2020-09-17 15:50:47 +02:00
Karol Wypchlo a02c27664b adjust scripts 2020-09-14 17:40:18 +02:00
Karol Wypchlo abacfc1ed1 improve docs 2020-09-14 15:57:44 +02:00
Karol Wypchlo 4f849ddf53 change comments 2020-09-14 15:53:27 +02:00
Karol Wypchlo 2c12b9d009 add safe stop and restart sia scripts 2020-09-14 15:53:27 +02:00
Karol Wypchlo 6acd3309f8 fix blacklist command 2020-09-14 14:45:06 +02:00
Karol Wypchlo 20362fe7c5 fix health checks 2020-09-10 15:16:31 +02:00
Ivaylo Novakov 8235d75795
Only announce healthy status once a day. 2020-09-08 18:20:56 +02:00
Ivaylo Novakov ddf72ad850
Make the time comparisons in the health checker timezone-aware. 2020-09-08 18:07:33 +02:00
Ivaylo Novakov 2d032dbf17
Docstrings. 2020-09-07 17:59:39 +02:00
Ivaylo Novakov 0838e4f5e5
Add free disk space check to health-checker.py.
Move load-average check to health-checker.py.
2020-09-07 17:56:47 +02:00
Ivaylo Novakov 3f4742a436
Only notify the team if critical checks have failed. 2020-09-04 17:17:26 +02:00
Ivaylo Novakov 5eece67b03
Move parameter parsing to the top of the script. 2020-09-04 17:13:36 +02:00
Ivaylo Novakov 1cc20903c6
Move max discord message len to a constant.
Report critical checks failed.
Formatting.
2020-09-04 17:07:47 +02:00
Ivaylo Novakov a0a9137ae7
Update setup-scripts/health-checker.py
Co-authored-by: Karol Wypchło <kwypchlo@gmail.com>
2020-09-04 16:44:19 +02:00
Ivaylo Novakov 62e27120cd
Use localhost. 2020-09-04 16:39:39 +02:00
Ivaylo Novakov 59a77bfaf6
Add a health checker script to Gollum. 2020-09-04 16:12:20 +02:00
Matthew Sevey a911b36f56 Add severe check to log checker 2020-09-03 10:53:52 -04:00
Ivaylo Novakov 25cf5625b4
3 seconds timeout. 2020-08-31 13:39:07 +02:00
Ivaylo Novakov 2fc6d30c01
Use `os._exit` instead of `sys.exit` - we don't want to raise an exception. 2020-08-31 13:38:45 +02:00
Ivaylo Novakov 8761a77e18
Don't call `await client.close()`. 2020-08-31 13:27:49 +02:00
Ivaylo Novakov ff8c4c2d78
Merge pull request #360 from NebulousLabs/ivo/check_system_load
Check system load
2020-08-31 13:25:50 +02:00
Ivaylo Novakov 59bad59cb7
Make it clear that the uptime data comes from the `uptime` command and not something we're putting together ourselves. 2020-08-28 16:05:24 +02:00
Karol Wypchlo df7decb06c drop Marcin's key 2020-08-28 14:56:01 +02:00
Ivaylo Novakov 58409b8cee
Switch from the "1 minute" to "15 minutes" average. 2020-08-28 11:59:27 +02:00
Ivaylo Novakov efb35054f7
When chekcing logs, check also the system load and report it if it's above 10. 2020-08-28 11:54:47 +02:00
Ivaylo Novakov 2126115df4
Send the last 1MB of error log as a file. 2020-08-26 11:32:58 +03:00
Ivaylo Novakov 3b0c597516
Limit the errors sent in a discord message to under 2000 characters (including prefix message). 2020-08-26 11:13:16 +03:00
Ivaylo Novakov 0eb8ab0d7c
Use a clearer log message and add some debug output. 2020-08-24 12:33:03 +03:00
Ivaylo Novakov af49e65b04
Switch from `/home/user/.sia/sia.env` to `/home/user/skynet-webportal/.env`. 2020-08-19 19:14:55 +03:00
Ivaylo Novakov 341c65eba8
Remove unneeded comment and example commands. 2020-08-19 16:13:56 +03:00
Ivaylo Novakov 81acebad5c
Add the forced exit to funds-checker.py as well. 2020-08-19 10:25:23 +03:00
Ivaylo Novakov 19fff428cd
Move code to the right place. 2020-08-19 10:17:26 +03:00
Ivaylo Novakov b05af57b54
Cleanup the old function. 2020-08-18 18:37:49 +03:00
Ivaylo Novakov 2a1c06116b
Add a handy command to the readme that checks the logs in a dockerized environment. 2020-08-18 18:36:00 +03:00
Ivaylo Novakov 221902508f
Give the client 10 seconds to properly exits and if it fails to do so `exit` the hard way. 2020-08-18 18:25:54 +03:00
Ivaylo Novakov 00fff39bf2
Add a new log checked for docker. 2020-08-18 17:27:01 +03:00
Karol Wypchlo 259e3ddffa docker setup
docker progress

docker works

env variables
2020-07-31 00:50:42 +02:00
Karol Wypchlo 02b77cfbab clean up after docker changes 2020-07-30 12:00:58 +02:00
Karol Wypchlo cb763241ea give checks more appropriate names 2020-07-28 13:55:42 +02:00
Karol Wypchlo 955425d321 clean up double siad setup 2020-07-28 13:22:07 +02:00
Karol Wypchlo 1dbc842c55 cors 2020-07-27 17:04:21 +02:00
Karol Wypchło a7c57b3c5a
Handshake integration (#302) 2020-07-27 11:30:55 +02:00
Karol Wypchlo 7e06436aa6 do not enable custom.domain by default and improve docs 2020-07-17 21:12:18 +02:00
Karol Wypchlo 79df02fe47 clone whole Sia repo 2020-07-08 14:49:30 +02:00
Karol Wypchlo e97a339789 fix .env file missing 2020-07-08 14:49:06 +02:00