You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my company, we use envconsul in Docker entrypoint, as follows:
envconsul /path/to/some/binary
We use AWS's spot instances, which means our cronjob might get interrupted (as in, envconsul will receive a SIGTERM) at any time. Our SRE team knows about this, and did communicate with our development team about it, but it's hard to keep that in mind.
So when an interruption happens, we get very few logs. Some of them are from containerd, saying that Task xxxx has exited with exit code 12, and before that, we get a log from envconsul, that says: Cleaning up..., and that's it:
Now when using unix tools, there seems to be a handy convention that consists in printing the name of the tool that encounters an error, that way, if you have an error in a pipeline, there is some indication about what tool is having an issue:
$ echo 'hi'|grep a b
grep: b: No such file or directory
I have 2 suggestions:
Improve the logging so that every log is prefixed with envconsul: or add a flag allowing to do so.
Improve that particular log so that it includes the Signal that was received: Received SIGTERM. Cleaning up...
The text was updated successfully, but these errors were encountered:
In my company, we use
envconsul
in Docker entrypoint, as follows:envconsul /path/to/some/binary
We use AWS's spot instances, which means our cronjob might get interrupted (as in,
envconsul
will receive aSIGTERM
) at any time. Our SRE team knows about this, and did communicate with our development team about it, but it's hard to keep that in mind.So when an interruption happens, we get very few logs. Some of them are from
containerd
, saying thatTask xxxx has exited with exit code 12
, and before that, we get a log fromenvconsul
, that says:Cleaning up...
, and that's it:envconsul/cli.go
Lines 186 to 189 in d39537a
Now when using unix tools, there seems to be a handy convention that consists in printing the name of the tool that encounters an error, that way, if you have an error in a pipeline, there is some indication about what tool is having an issue:
I have 2 suggestions:
envconsul:
or add a flag allowing to do so.Received SIGTERM. Cleaning up...
The text was updated successfully, but these errors were encountered: