Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Health Check Log Mention #2221

Open
firyx opened this issue Aug 25, 2022 · 0 comments
Open

Health Check Log Mention #2221

firyx opened this issue Aug 25, 2022 · 0 comments

Comments

@firyx
Copy link
Contributor

firyx commented Aug 25, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant