Commit Graph

27 Commits

Author SHA1 Message Date
Michael Schurter
90f5e232a5 Switch java/exec to use Exec in Executor 2017-04-21 16:25:49 -07:00
Michael Schurter
10cb924b2c Refactor Consul Syncer into new ServiceClient
Fixes #2478 #2474 #1995 #2294

The new client only handles agent and task service advertisement. Server
discovery is mostly unchanged.

The Nomad client agent now handles all Consul operations instead of the
executor handling task related operations. When upgrading from an
earlier version of Nomad existing executors will be told to deregister
from Consul so that the Nomad agent can re-register the task's services
and checks.

Drivers - other than qemu - now support an Exec method for executing
abritrary commands in a task's environment. This is used to implement
script checks.

Interfaces are used extensively to avoid interacting with Consul in
tests that don't assert any Consul related behavior.
2017-04-19 12:42:47 -07:00
Alex Dadgar
917c7e5085 Merge pull request #1801 from hashicorp/f-signals
Consul-template signal change mode
2016-10-18 11:23:47 -07:00
Alex Dadgar
358c43333d Send Executor Ctx separately 2016-10-12 11:35:29 -07:00
Alex Dadgar
af517b3d37 Task runner sends signals 2016-10-10 15:09:00 -07:00
Alex Dadgar
0b65a5f95d Executor + Java/Raw Exec/Exec 2016-10-10 11:47:04 -07:00
Alex Dadgar
1a7df4e7d2 Allocation resources returned in a struct 2016-06-11 21:04:10 -07:00
Diptanu Choudhury
6132ccc230 Added pidstats in task resource usage struct 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
3dc28bd871 Stopping stats collection of tasks which has been destroyed 2016-05-28 19:59:20 -07:00
Diptanu Choudhury
9a851a11ee Added the PidStats method on the executor 2016-05-28 19:42:34 -07:00
Diptanu Choudhury
1cae57aee9 Add the Stats api to driverhandle 2016-05-28 19:42:34 -07:00
Diptanu Choudhury
1471f747f3 Added version to executor 2016-03-29 22:24:22 -07:00
Diptanu Choudhury
323975d500 Added the Version method to executor 2016-03-29 22:23:03 -07:00
Diptanu Choudhury
588666d0df Introducing ConsulContext 2016-03-24 15:57:16 -07:00
Diptanu Choudhury
5568258d0a Making the docker driver register services and checks 2016-03-23 12:59:22 -07:00
Diptanu Choudhury
9a71225b9e Removing references to old consul services and adding consul config to executor context 2016-03-23 12:19:19 -07:00
Diptanu Choudhury
4e1c1dd168 Fixed the qemu driver tests 2016-03-21 17:44:37 -07:00
Diptanu Choudhury
0f355e8f87 Introduced a method in executor to launch syslog server 2016-03-18 11:49:10 -07:00
Diptanu Choudhury
a92a96336c Renamed the ExecutorPluginConfig 2016-02-09 12:59:05 -08:00
Diptanu Choudhury
dcecb95130 Merge branch 'master' into f-logrotator 2016-02-09 12:25:44 -08:00
Diptanu Choudhury
7dd3eec684 removing the prefix of the logger 2016-02-08 15:07:18 -08:00
Diptanu Choudhury
9b2e117f68 Making the plugin server return the same instance of executor rpc server 2016-02-08 11:56:48 -08:00
Diptanu Choudhury
4a01bd8bcd Implemented the UpdateLogConfig method 2016-02-08 10:10:01 -08:00
Diptanu Choudhury
d8ed2949cd Not syncing stdout and stderr of pluging with client 2016-02-04 17:36:31 -08:00
Diptanu Choudhury
9800b7dcfe Updated the value of the magic cookie 2016-02-04 17:00:41 -08:00
Diptanu Choudhury
a3282cd0f7 Removed using ProcessState when we just want an empty interface 2016-02-04 17:00:41 -08:00
Diptanu Choudhury
2b8cdc47d3 Moved packages around 2016-02-04 17:00:41 -08:00