Commit Graph

103 Commits

Author SHA1 Message Date
Victor Vieux f7fed9a7bd add tests for events 2014-11-25 02:14:29 +00:00
Victor Vieux 0872d4f549 add test 2014-11-25 01:43:01 +00:00
Andrea Luzzardi cf65a010d6 Health filter: Only schedule containers on healthy nodes.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-21 17:07:26 -08:00
Andrea Luzzardi 24985d2e4f Node: API to add/remove/cleanup the internal containers state.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-21 16:10:49 -08:00
Andrea Luzzardi 7a07b63104 Node: Basic health checking.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-21 16:10:48 -08:00
Andrea Luzzardi 622eb9339e Node: Apply a request timeout when communicating with nodes.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-21 16:10:48 -08:00
Victor Vieux 3e930e0e9c add host labels 2014-11-21 23:33:18 +00:00
Victor Vieux f502698aed add more infos to events 2014-11-21 22:37:43 +00:00
Victor Vieux 8635f0fb4d update demo with 'node' 2014-11-21 22:18:09 +00:00
Andrea Luzzardi 4f3c15d9fe Label filter: Support for node pinning by name or id.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-21 14:13:40 -08:00
Andrea Luzzardi 7d930b8809 label filter: Ensure constraints are evaluated as logical ANDs.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-21 14:13:40 -08:00
Andrea Luzzardi 5251670529 Rename attribute filter file to label.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-21 14:13:40 -08:00
Andrea Luzzardi 1dead64e11 Rename attributes to labels.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-21 14:13:40 -08:00
Victor Vieux bf04e484f9 add contrib folder 2014-11-21 22:11:36 +00:00
Victor Vieux 0b13dce1c5 add demo script 2014-11-21 19:47:08 +00:00
Victor Vieux f40ec59495 speed up refresh 2014-11-21 19:11:03 +00:00
Victor Vieux 1f74cb5809 remove races 2014-11-21 01:36:30 +00:00
Victor Vieux dd05044b96 add version 2014-11-21 00:18:06 +00:00
Andrea Luzzardi f9986bbb02 manage cluster: Set a default overcommit ratio of 5%.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-20 16:19:05 -08:00
Andrea Luzzardi 8e3ded4916 Added resource overcommit support to the binpacking strategy.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-20 16:19:05 -08:00
Victor Vieux a64cf5821c fix list cluster 2014-11-20 23:59:53 +00:00
Victor Vieux 80cc51c9be fix heartbeat 2014-11-20 23:56:42 +00:00
Andrea Luzzardi dacb3e2ef1 Fix tests for the NewNode API changes.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-20 15:56:12 -08:00
Victor Vieux 1476d3e8af fix hearbeat join 2014-11-20 23:00:50 +00:00
Victor Vieux b5f4b5a91e add http:// if needed 2014-11-20 22:59:38 +00:00
Victor Vieux 8f708d778d improve logs 2014-11-20 22:45:38 +00:00
Victor Vieux dba2dee87f log 2014-11-20 22:44:19 +00:00
Victor Vieux 16b22dcca2 do not block if one node is availalble 2014-11-20 22:39:45 +00:00
Victor Vieux 20319a5049 use ID and names 2014-11-20 19:03:55 +00:00
Victor Vieux 725c03d799 Merge branch 'master' of github.com:docker/libcluster 2014-11-20 18:53:04 +00:00
Victor Vieux e63e0f3956 add kill 2014-11-20 18:52:15 +00:00
Andrea Luzzardi a2f29be40f Added unit tests for the attribute filter.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-19 18:51:41 -08:00
Andrea Luzzardi b2e803c269 Renamed attributes to attribute to be consistent with port filter.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-19 18:51:41 -08:00
Victor Vieux 9bf438ec64 int -> int64 2014-11-20 01:37:15 +00:00
Andrea Luzzardi 582bd6cc0e Add unit tests for the port filter.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-19 17:25:22 -08:00
Victor Vieux 4f5126a605 re-enable without -m/-c 2014-11-20 01:16:19 +00:00
Victor Vieux 8293b09a15 fix cpus 2014-11-20 01:15:22 +00:00
Victor Vieux d0de5ee964 cleanup tests 2014-11-19 22:45:17 +00:00
Victor Vieux ec06513f48 implement refresh of only one container 2014-11-19 22:29:34 +00:00
Victor Vieux d5f6c55892 move logs 2014-11-19 01:13:54 +00:00
Victor Vieux de2462c666 fix test 2014-11-19 01:11:36 +00:00
Victor Vieux 9e8ee985fb Merge branch 'master' of github.com:docker/libcluster 2014-11-19 01:09:23 +00:00
Victor Vieux 2905b00d07 add tests 2014-11-19 01:09:18 +00:00
Andrea Luzzardi 4726477dbe Attribute filter: Schedule containers only on nodes that match certain attributes.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-18 17:00:27 -08:00
Andrea Luzzardi a40ebef79e Rename "graphdriver" to "storagedriver".
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-18 16:32:44 -08:00
Andrea Luzzardi 41071a88a7 Port Filtering.
Consider only nodes that have the requested port available, and abort
the container creation if none is found.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-18 16:04:13 -08:00
Andrea Luzzardi 8dbb9aeeb1 Removed debug log when refreshing containers after creation
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-18 16:04:13 -08:00
Victor Vieux 45220c0c32 update dockerclient 2014-11-18 23:50:44 +00:00
Victor Vieux 07383edd47 improve locks 2014-11-18 23:04:11 +00:00
Victor Vieux 407d0bc37f update .godir 2014-11-18 21:47:00 +00:00