Commit Graph

25 Commits

Author SHA1 Message Date
Alex Dadgar
5bee60ba93 Update cgroup CPU to use int comparison not float 2015-10-19 13:33:22 -07:00
Alex Dadgar
6e01e1c8ae Check for invalid CPU limit for cgroups 2015-10-19 11:28:05 -07:00
Alex Dadgar
2e4f1ae805 Merge pull request #240 from crosbymichael/wait
Reap process after sending kill signal
2015-10-08 17:10:23 -07:00
Michael Crosby
9b6e1b4daf Reap process after sending kill signal
Without waiting on the process after sending a kill will cause zombies
and we all know what happens when we have a zombies outbreak.

There are other calls to kill in this file but they are done on the main
process for the task so they should have the wait method called at
sometime in their lifecycle.
2015-10-08 16:54:41 -07:00
Alex Dadgar
f58407d02a Fix go vet format errors in exec_linux 2015-10-08 16:47:29 -07:00
Alex Dadgar
50862f8e31 Switch to using BlkioWeight 2015-10-06 15:44:01 -07:00
Chris Bednarski
095dc9ae57 Updated Throttle Read/Write to match upstream changes in runc; now takes a list of ThrottleDevice structs instead of an int 2015-10-06 15:31:47 -07:00
Alex Dadgar
6d8a913242 ParseAndReplace args at the executor level 2015-09-27 17:37:24 -07:00
Alex Dadgar
17b2fb4600 Check err 2015-09-27 17:37:24 -07:00
Alex Dadgar
64ac893eb1 Set the allocdir correctly when using the linux executor 2015-09-27 17:37:24 -07:00
Alex Dadgar
6d7afcd1ff Skip non-regular files in embedding and comment on the chrootEnv map 2015-09-25 16:49:19 -07:00
Alex Dadgar
e5eb55c805 Only unmount once 2015-09-25 16:49:18 -07:00
Alex Dadgar
099e9de211 Fix cgroup isolation 2015-09-25 16:49:18 -07:00
Chris Bednarski
5c4bb5d53e Added errNoResources to executor package; return this when Limit is called with nil argument 2015-09-25 16:49:18 -07:00
Chris Bednarski
559462b49f Added basic resources to exec/java tests so each test has cpu, ram, and network 2015-09-25 16:49:18 -07:00
Alex Dadgar
8a5e65e27a Merge qemu test 2015-09-25 16:49:14 -07:00
Alex Dadgar
06de892626 Update exec_linux to assume it is running as root 2015-09-22 16:44:11 -07:00
Alex Dadgar
08f790f5ec Fixed function comment 2015-09-21 09:08:57 -07:00
Alex Dadgar
5ac6c3b73d Linux executor with cgroup isolation support 2015-09-21 09:08:57 -07:00
Clint Shryock
e434d938af executor/linux: Add UUID for the name, return error on failure to apply 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
Clint Shryock
15e64312b7 spike on adding cgroups 2015-09-21 09:08:57 -07:00
Chris Bednarski
cdd065cb07 Support running Linux exec as a non-root user 2015-09-15 20:17:23 -07:00
Chris Bednarski
06a0bd0bf7 Overhaul the executor code so we use build flags instead of dynamic loading 2015-09-15 18:54:55 -07:00
Chris Bednarski
c8516f3e9c Changed Default executor to use a factory 2015-09-15 16:40:40 -07:00