Michael Crosby
47ececd6b8
Change Container interface to include Info
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-02-16 09:59:40 -08:00
Michael Crosby
ab8586b7c5
Remove bundles from API
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2017-02-15 13:56:41 -08:00
Alexander Morozov
69f8f566a2
Move supervisor to it's own package
...
It allows to keep main namespace cleaner
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-12-17 16:18:48 -08:00
Alexander Morozov
79591b2ae1
Use eventloop package in containerd
...
It's first attempt to decouple code into independent modules for more
effective unit-testing.
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-12-16 13:56:20 -08:00
Alexander Morozov
188eeae376
Stop stats collection on container exit
...
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-12-16 09:39:28 -08:00
Michael Crosby
76cf593212
Add oom notifications and pid to create response
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-15 16:22:53 -08:00
Alexander Morozov
4bc322397f
Add initial implementation of stats
...
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-12-14 14:45:06 -08:00
Michael Crosby
92c0790899
Add stdin support for client and daemon
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-14 14:40:50 -08:00
Michael Crosby
e9f63fc9a4
Add basic fifo support for IO copy
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-14 14:15:26 -08:00
Michael Crosby
3010f209ff
Refactor container info in supervisor
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-11 11:27:33 -08:00
Michael Crosby
e5545a1461
Add basic logging to file support
...
This currently logs to a json file with the stream type. This is slow
and hard on the cpu and memory so we need to swich this over to
something like protobufs for the binary logs but this is just a start.
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-11 10:26:49 -08:00
Michael Crosby
e0da266b71
Add comments to various functions
...
Don't export the notify subscribers method
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-10 14:11:00 -08:00
Michael Crosby
d9881ab912
Add locks around subscribers channel
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-10 13:56:49 -08:00
Michael Crosby
71ef776082
Add events support in client
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-10 12:30:20 -08:00
Michael Crosby
0470f0790e
Add pid to containers output
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-09 15:53:23 -08:00
Alexander Morozov
4adf5d2c0d
Add debug logging about events
...
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-12-08 11:32:04 -08:00
Alexander Morozov
9f5caf529c
Add logging for started supervisor
...
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-12-08 11:30:50 -08:00
Michael Crosby
d9e8fe62cb
Add concurrency and id flag for daemon
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-07 15:19:56 -08:00
Michael Crosby
acc8d9e97c
Remove journal for now
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-07 14:24:40 -08:00
Michael Crosby
9eb08b8971
Refactor checkpoint information
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-04 14:00:07 -08:00
Michael Crosby
c10b3cde9f
Implement proper shutdown logic
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-04 13:31:17 -08:00
Michael Crosby
ae9b2bafd5
Add basic checkpoint and restore support
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-03 16:07:53 -08:00
Michael Crosby
c1eb9ac90b
Change /containers to /state with machine info
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-03 11:49:56 -08:00
Michael Crosby
3ea5dd79e0
Make events chan local to supervisor
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-02 17:44:39 -08:00
Michael Crosby
5eac8891ed
Move task workers to new type
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-02 17:42:28 -08:00
David Calavera
e4a61633c5
Add event subscribers.
...
- Add exit event for exec processes.
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-01 18:49:24 -05:00
David Calavera
05f20c993d
Make supervisor.go to compile without libcontainer.
...
Signed-off-by: David Calavera <david.calavera@gmail.com>
2015-12-01 18:47:27 -05:00
Michael Crosby
b823ce9149
Move libcontainer to linux pkg
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-01 12:00:11 -08:00
Michael Crosby
c24abdde1b
Move runtime implementation types to pkg
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-01 11:56:08 -08:00
Michael Crosby
779cb69e6d
Refactor event loop with types
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-12-01 10:55:13 -08:00
Michael Crosby
510c9c852b
Add funcs for events endpoint
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-11-30 15:46:36 -08:00
Michael Crosby
3a30ea0c4f
Add basic stats
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-11-30 15:34:10 -08:00
Michael Crosby
371226d314
Give event loop it's own thread
2015-11-13 14:13:13 -08:00
Michael Crosby
18338b29a1
Add journal queue
2015-11-13 14:09:35 -08:00
Michael Crosby
0136213e78
Add basic log support
2015-11-13 13:25:03 -08:00
Michael Crosby
f9ad7970d2
Improve process addition and removal
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
implement pause and resume
Add godeps
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Add readme
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2015-11-13 13:25:03 -08:00
Michael Crosby
17d9c10e2d
Implement journal replay
...
Add addprocess event for addtional processes
Add more api process information
2015-11-13 13:25:02 -08:00
Michael Crosby
6ff2239019
Add journaling
2015-11-10 14:24:34 -08:00
Michael Crosby
d34d482a5f
Implement container signal
2015-11-10 13:44:35 -08:00
Michael Crosby
a2ddcc2232
implement state api command
2015-11-10 11:38:26 -08:00
Michael Crosby
c787ecada3
Fix concurrency issues
2015-11-06 16:44:52 -08:00
Michael Crosby
412d2b0239
Flatten stuff
2015-11-06 15:42:32 -08:00
Michael Crosby
86ec7e8fd2
Sync container start
2015-11-06 13:01:55 -08:00
Michael Crosby
1005dfb224
Fix panic on nil container
2015-11-05 16:54:45 -08:00
Michael Crosby
5f5f4904e0
Making containers run and delete
2015-11-05 16:40:57 -08:00
Michael Crosby
2af0f297fe
Add basic counters
2015-11-05 16:16:11 -08:00
Michael Crosby
05683fb0ee
Fix build errors
2015-11-05 15:49:13 -08:00
Michael Crosby
15a96783ca
Initial commit
2015-11-05 15:29:53 -08:00