Commit Graph

154 Commits

Author SHA1 Message Date
Diptanu Choudhury
fedf3c791b Fixed a test 2016-02-04 17:00:39 -08:00
Diptanu Choudhury
837b462f5c Fixed a comment 2016-02-04 17:00:39 -08:00
Diptanu Choudhury
0a92842162 Fixed the rpc server 2016-02-04 17:00:39 -08:00
Diptanu Choudhury
f1e2644623 Removed executor and spawn daemon 2016-02-04 17:00:39 -08:00
Diptanu Choudhury
560cafbddd Enabling logs and killing the plugin if we couldn't start the job 2016-02-04 17:00:39 -08:00
Diptanu Choudhury
d6c17424cc Turning on isolation for exec 2016-02-04 17:00:38 -08:00
Diptanu Choudhury
9b82079754 Killing the plugin after wait returns 2016-02-04 17:00:38 -08:00
Diptanu Choudhury
b53cf69448 Using the plugin to spawn processes from the raw_exec driver 2016-02-04 17:00:37 -08:00
Diptanu Choudhury
dbb3570d59 Fixed the executor command 2016-02-04 17:00:37 -08:00
Diptanu Choudhury
d0f53c8586 Using a plugin to create the executor 2016-02-04 17:00:37 -08:00
Alex Dadgar
ca69bcd18b Extract artifacts to the root of the task, not in the local directory 2016-02-04 15:18:22 -08:00
Alex Dadgar
03aca9887b Client handles updates to KillTimeout and Restart Policy 2016-02-03 19:43:44 -08:00
Ivo Verberk
0289252ce7 Add comments and small improvements to cgroup fingerprinter 2016-01-29 14:34:29 +01:00
Ivo Verberk
117e035a98 Only enable exec driver when cgroups are available
Make the exec driver fingerprinter periodic to disable the driver when
cgroups become unavailable.
2016-01-27 07:32:32 +01:00
Alex Dadgar
b8a42786f3 merge 2016-01-11 09:58:26 -08:00
Alex Dadgar
9f44780f89 User specifiable kill timeout and operator configurable max 2015-12-22 16:10:30 -08:00
Alex Dadgar
7357979089 Revert "Revert "Make drivers take arguments as a list and not as a string"" 2015-11-18 15:16:42 -08:00
Alex Dadgar
d666f5bde1 Revert "Make drivers take arguments as a list and not as a string" 2015-11-18 13:46:43 -08:00
Alex Dadgar
ee1887e609 Rebase 2015-11-18 12:29:04 -08:00
Chris Bednarski
640337547a go fmt 2015-11-16 16:23:03 -08:00
Chris Bednarski
1d1e4bdd08 Merge branch 'master' into f-port-labels 2015-11-16 16:02:38 -08:00
Alex Dadgar
f4b461f97a Track Task State in the client and capture Wait results 2015-11-16 15:14:21 -08:00
Diptanu Choudhury
c01f2a38f5 Made the code more DRY 2015-11-16 13:10:57 -08:00
Diptanu Choudhury
76a005b0f1 Fixed the exec driver config 2015-11-16 13:10:57 -08:00
Diptanu Choudhury
4186e70320 Making the config for drivers public 2015-11-16 13:10:57 -08:00
Diptanu Choudhury
7f6e940946 Implemented port labeling and driver configs 2015-11-16 13:10:57 -08:00
Alex Dadgar
5b067a3e4f Merge fix 2015-11-05 13:46:02 -08:00
Clint Shryock
add12a6a00 refactor drivers to use new getter 2015-11-05 08:55:30 -06:00
Alex Dadgar
0f1050b1bf Move the executor and spawn package into driver 2015-11-04 16:53:27 -08:00
Alex Dadgar
ecdc1c92b6 Exec driver only applies on linux as root 2015-10-28 17:22:04 -07:00
Clint Shryock
1e07daa680 drivers: Add/Use go-getter to fetch remote binaries
Updates Qemu, Java drivers to use go-getter to fetch binaries
Adds remote artifact support for Exec, Raw Exec drivers
2015-10-26 09:40:06 -05:00
Alex Dadgar
6d8a913242 ParseAndReplace args at the executor level 2015-09-27 17:37:24 -07:00
Alex Dadgar
75f93ce9fb Pull task environments into their own type to be reusable across drivers and executors 2015-09-27 17:37:24 -07:00
Alex Dadgar
c555c70eeb merge fixes 2015-09-27 17:37:24 -07:00
Alex Dadgar
8a5e65e27a Merge qemu test 2015-09-25 16:49:14 -07:00
Chris Bednarski
e3cd0ad21a Merge branch 'master' into f-port-configs 2015-09-23 11:57:12 -07:00
Chris Bednarski
2c352e3ff8 Added environment variables to Java 2015-09-22 22:36:10 -07:00
Chris Bednarski
2007a14497 Pass dynamic ports to the exec driver via environment variables 2015-09-22 22:33:29 -07:00
Alex Dadgar
3c12f4bd20 Fix qemu check and add debug lines when a driver is disabled 2015-09-22 17:36:44 -07:00
Alex Dadgar
b43e262923 Disable exec/java/qemu when non-root on non-windows OSes 2015-09-22 16:32:05 -07:00
Alex Dadgar
5ac6c3b73d Linux executor with cgroup isolation support 2015-09-21 09:08:57 -07:00
Clint Shryock
f65406009f exec/linux: move Limit to after Start 2015-09-21 09:08:57 -07:00
Chris Bednarski
a5512c22e9 Rename exec package to executor so it works better with goimports; fixes for Java driver 2015-09-15 14:03:03 -07:00
Chris Bednarski
5eb3354678 Update Java driver to use Executor 2015-09-15 13:45:48 -07:00
Chris Bednarski
b3ef6930b8 Updated exec driver to use nomad/client/exec 2015-09-15 13:11:56 -07:00
Chris Bednarski
7b517d83fa Merge branch 'master' into f-driver-config
Conflicts:
	client/driver/driver.go
2015-09-09 18:19:19 -07:00
Chris Bednarski
8d4d9645d8 Replace logging and config with DriverContext, which allows us to expand the dependency injection without changing the interface 2015-09-09 18:06:23 -07:00
Chris Bednarski
ea988a02f0 Change SIGINT to SIGTERM 2015-09-09 01:52:58 -07:00
Chris Bednarski
f911a24837 Added config to drivers; needed for docker driver to get the socket endpoint 2015-09-08 12:43:02 -07:00
Armon Dadgar
4308c69bcc driver/exec: basic implementation 2015-08-29 16:20:07 -07:00