serokell / hackage-search

An application that lets you search for anything on Hackage
https://hackage-search.serokell.io/
24 stars 0 forks source link

[Chore] Add systemd unit restart policy #31

Closed Sereja313 closed 9 months ago

Sereja313 commented 9 months ago

Problem: By default, systemd services generated from the NixOS system configuration don't attempt to restart on failure since Restart=no. However, in some cases, running processes can fail for unclear reasons, and the simplest way to bring the failed service back to life is to restart it. Instead, currently, the service will fail and trigger an alert without attempting to restart.

Solution: Add default values for startLimitBurst, startLimitIntervalSec, Restart, and RestartSec.

int-index commented 9 months ago

in some cases, running processes can fail for unclear reasons

What does that mean? Are there no error messages in the logs? Has this actually ever happened with Hackage Search?

Sereja313 commented 9 months ago

Has this actually ever happened with Hackage Search?

Nope, this is a generic commit message, actually copied from the youtrack issue We just want to update the restart policy for all services we deploy on our infrastructure, just in case