[HN Gopher] Who Watches Watchmen? - Integrating Elixir Applicati...
___________________________________________________________________
Who Watches Watchmen? - Integrating Elixir Applications with
Systemd
Author : todsacerdoti
Score : 60 points
Date : 2022-01-17 20:45 UTC (2 hours ago)
(HTM) web link (hauleth.dev)
(TXT) w3m dump (hauleth.dev)
| pm90 wrote:
| Is this a bug/typo? :systemd.ready(),
| :systemd.set_status(down: [status: "drained"]),
| {Plug.Cowboy.Drainer, refs: :all, shutdown: 10_000},
| :systemd.set_status(down: [status: "draining"])
|
| Shouldn't the status be set to "draining" first and then, after
| drain is complete, to "drained"?
| hauleth wrote:
| No, because these states are set on shutdown, and processes are
| killed in reverse order. So first the `draining` message will
| be set and then `drained`.
| cyberpunk wrote:
| I know it's uncouth to say so, but I really like the design of
| this blog. Top marks! :)
| andrewzah wrote:
| It's a theme for Hugo.
|
| https://themes.gohugo.io/themes/hugo-theme-terminal/
| whitepoplar wrote:
| I thought the same. The typography, colors, layout, and
| restraint are gorgeous.
| pm90 wrote:
| JFYI, with podman [0] you can get all the security benefits
| mentioned in the article with containers.
|
| This is pretty neat and I love how cleanly the application code
| reads. I'm curious: is the Erlang VM super fast? I would have
| expected VM startup time to dominate the overall time to start.
|
| [0]: https://podman.io/
___________________________________________________________________
(page generated 2022-01-17 23:00 UTC)