Commit Graph

12 Commits

Author SHA1 Message Date
Michael Schurter 803aa62b7a systemd: set a high but non-infinite fd limit 2019-07-02 09:13:24 -07:00
Michael Schurter 30db07cccb docs: sync systemd unit files; update deploy guide
The systemd configs spread across our repo were fairly out of sync. This
should get them on our best practices.

The deployment guide also had some strange things like running Nomad as
a non-root user. It would be fine for servers but completely breaks
clients. For simplicity I simply removed the non-root user references.
2019-03-19 15:18:12 -07:00
Arno B 341f83e7f5
Remove the systemd process and threads limit
systemd limits the number of process and threads you can create within the cgroup it creates for a given service. This is especially limiting if you have a high number of keys Nomad watches from Consul.

Fixes #4649
2019-02-08 16:22:52 +01:00
M S Vishwanath Bhat 4576891cb0 systemd unit - Do not restart if unit fails 3 times in 10s
Signed-off-by: M S Vishwanath Bhat <msvbhat@gmail.com>
2018-08-06 14:52:08 +02:00
M S Vishwanath Bhat cbffc27bdf systemd unit - Wait for Network to be online
This patch configures nomad to start only after the
network is up and online.

Signed-off-by: M S Vishwanath Bhat <msvbhat@gmail.com>
2018-08-02 12:17:16 +02:00
M S Vishwanath Bhat fb4655277a systemd unit - Restart on failure
Signed-off-by: M S Vishwanath Bhat <msvbhat@gmail.com>
2018-08-02 12:17:16 +02:00
Daniel Greene af4622ac44
set killmode/killsignal in systemd example
The default (control-group) kill mode in systemd will kill the associated executors, leading to a commonly seen behavior of nomad client restarts losing all current allocations.

setting the KillSignal to SIGINT seems to be a reasonable default, and allows things like leave_on_interrupt to function
2018-01-16 22:22:32 -08:00
Kenneth Feng c5a217a1b4 Add reload command to systemd unit file 2016-05-28 17:12:57 -04:00
Miroslav Genov 9ac58b31e3 nomad/examples: update systemd config files
The existing nomad.service is having minor configuration and this change
adds the following:
 * Install section that allows nomad to be able enabled in systemd
 * Default limit of open files is set to 65536
2016-03-30 10:26:26 +03:00
Chris Bednarski c4be7cc70f Change /usr/local/bin to /usr/bin 2015-12-03 09:27:03 -08:00
Chris Bednarski 4c9c1f49ab Fixed some issues with the example configs; removed _common 2015-12-02 23:18:10 -08:00
Chris Bednarski 30d2b94220 Basic configs and init scripts 2015-12-02 11:33:44 -08:00