SkynetLabs / skynet-webportal

A webapp that makes Skynet accessible to web browsers.
https://siasky.net
Other
256 stars 55 forks source link

Health Check Log Mention #2221

Open firyx opened 2 years ago

firyx commented 2 years ago

Overview

PJ in linear:

in healthchecker.py we do

if inspect_json[0]["State"]["Running"] is True:
            # mark portal as unhealthy
            os.popen("docker exec health-check cli disable 'critical free disk space'")
            time.sleep(300)  # wait 5 minutes to propagate dns changes
            os.popen("docker stop sia")  # stop sia container
        return await send_msg(message, force_notify=True)

we should definitely drop a mention of this in the system logs or docker logs.

Not sure what log file would be most appropriate. Ideally you can stop a container and pass along a message saying why you stopped it, but I don't think that is possible.

Design or Proposal