Commit Graph

12 Commits

Author SHA1 Message Date
Nick Ethier
5b14d24bf4 executor v2 (#4656)
* client/executor: refactor client to remove interpolation

* executor: POC libcontainer based executor

* vendor: use hashicorp libcontainer fork

* vendor: add libcontainer/nsenter dep

* executor: updated executor interface to simplify operations

* executor: implement logging pipe

* logmon: new logmon plugin to manage task logs

* driver/executor: use logmon for log management

* executor: fix tests and windows build

* executor: fix logging key names

* executor: fix test failures

* executor: add config field to toggle between using libcontainer and standard executors

* logmon: use discover utility to discover nomad executable

* executor: only call libcontainer-shim on main in linux

* logmon: use seperate path configs for stdout/stderr fifos

* executor: windows fixes

* executor: created reusable pid stats collection utility that can be used in an executor

* executor: update fifo.Open calls

* executor: fix build

* remove executor from docker driver

* executor: Shutdown func to kill and cleanup executor and its children

* executor: move linux specific universal executor funcs to seperate file

* move logmon initialization to a task runner hook

* client: doc fixes and renaming from code review


* taskrunner: use shared config struct for logmon fifo fields

* taskrunner: logmon only needs to be started once per task
2018-10-16 16:53:31 -07:00
Josh Soref
ef6a98388a spelling: shutdown 2018-03-11 18:55:49 +00:00
Alex Dadgar
212fed63df Fix leaked plugin files for syslog server
This PR fixes a leaking of the unix socket used when launching a syslog
server for the Docker driver.

Fixes https://github.com/hashicorp/nomad/issues/2844
2017-07-30 17:51:38 -07:00
Michal Wieczorek
78eaeafc15 Enable syslog server and universal collector for windows 2016-09-05 00:26:36 +02:00
Sean Chittenden
146c4e8fd6 Rename from posix to unix to parallel x/sys/unix
Use the `_unix` file suffix to denote *NIX-like semantics in order to parallel the designation given by the package `golang.org/x/sys/unix`.
2016-05-07 10:33:43 -07:00
Diptanu Choudhury
c86d38360a Making the calls to exit idempotent 2016-03-22 11:49:56 -07:00
Alex Dadgar
207d544a55 client: standardize error logging format 2016-02-24 15:57:58 -08:00
Diptanu Choudhury
a735ad155d Making the build work for windows 2016-02-23 15:17:07 -08:00
Diptanu Choudhury
e9e3a23e89 Closing the messages channel 2016-02-23 10:14:54 -08:00
Diptanu Choudhury
15082976ed Added more comments 2016-02-19 21:58:44 -08:00
Diptanu Choudhury
56937f6629 Added some docs to the syslog server 2016-02-19 14:20:21 -08:00
Diptanu Choudhury
3ba626df72 Renamed packages 2016-02-19 13:08:25 -08:00