Commit Graph

21 Commits

Author SHA1 Message Date
Tim Gross
0046646ed3 dist: make README consistent with service unit (#7648) 2020-04-08 09:32:03 -04:00
James Rasell
33ba439721 Set OOMScoreAdjust within systemd dist example (#6679)
closes #6672
2019-11-12 08:30:54 -05:00
Danielle Lancashire
1cd86141d9 chore: Format hcl configurations 2019-07-20 16:55:07 +02:00
Michael Schurter
4652ccfec5 systemd: set a high but non-infinite fd limit 2019-07-02 09:13:24 -07:00
Michael Schurter
475bcaafd6 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
a5badac827 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
543b212948 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
1fd96ebb36 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
46690698a4 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
02aeb21f9a 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
Michael Schurter
4fa43440b1 Lots of fixes from @sethvargo
* hclfmt the world
  * 2 space indent
  * make every example well formed with stanzas and comments
* jsonfmt too
* mdfmt manually
  * _ instead of *
  * no [links][], only [links][links]
* ordered lists instead of bullets when possible
* lots of wording fixes
* de-contractionization
* add 127.0.0.1 to SANs
* -1 on intentional errors
* -1 on first person
2017-08-01 15:40:36 -07:00
Seth Vargo
c86a07d834 Separate agent configuration into its own pages
I apologize in advance for the rather long PR, but unfortunately there
is not an easy way to break this up into smaller chunks. This separates
the agent configuration into smaller, more consumable pieces just like
the job specification.
2016-11-02 18:30:00 -04:00
Kenneth Feng
aa244aea3f Add reload command to systemd unit file 2016-05-28 17:12:57 -04:00
Miroslav Genov
f6f0e0eecb 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
39ebb04454 Change /usr/local/bin to /usr/bin 2015-12-03 09:27:03 -08:00
Chris Bednarski
5e5ba661f8 Upstart should use .conf extension 2015-12-03 00:21:41 -08:00
Chris Bednarski
032bf72816 Change references to .conf files to .hcl 2015-12-03 00:20:21 -08:00
Chris Bednarski
d0858a720b Change .conf extension to .hcl 2015-12-03 00:19:36 -08:00
Chris Bednarski
49c6934def Remove reference to _common.conf 2015-12-03 00:18:44 -08:00
Chris Bednarski
4743ca081e Fixed some issues with the example configs; removed _common 2015-12-02 23:18:10 -08:00
Chris Bednarski
c3857795cb Basic configs and init scripts 2015-12-02 11:33:44 -08:00