Commit Graph

526 Commits

Author SHA1 Message Date
Victor Vieux
a1dcc3ef7a smaller logo 2014-12-03 11:47:55 +01:00
Andrea Luzzardi
e23ecfdf94 Merge branch 'master' into future 2014-12-03 01:27:04 -08:00
Andrea Luzzardi
f5827052a4 Port filtering: Fixed a race condition.
Port filtering used to rely on NetworkSettings, however, those are not
populated until the container is started. While stopped, the filter was
unaware of the port being used, resulting in a race condition.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-12-02 17:46:22 -08:00
Andrea Luzzardi
ad5040c9f4 Set the container status to pending if the underlying host is not healthy
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-12-02 17:46:22 -08:00
Victor Vieux
accf600c32 Update README.md 2014-12-02 16:22:51 -06:00
Victor Vieux
f4e0020ee6 add logo 2014-12-02 16:19:15 -06:00
Solomon Hykes
6336a56f05 New 'swarm' implementation by @vieux and @aluzzardi.
* Focus on native compatibility with Docker remote API
    * Full-featured "batteries included" scheduler with bin packing and resource management
    * Bring back pluggable backends once the user experience is awesome
    * The primary form factor is the command-line, not a library (hence the rename)
    * Move machine management (Rackspace, Azure, EC2, SSH, Openstack etc) to a separate project, for clarity.
    * Move libchan-based service composition abstraction into the libchan repo, for clarity.
    * Aim for native Docker integration in the mid-long term

TLDR: more focus, new code, new team, ship real things early and often.

Swarm is back!

Signed-off-by: Victor Vieux <vieux@docker.com>
Signed-off-by: Andrea Luzzardi <al@docker.com>
Signed-off-by: Solomon Hykes <solomon@docker.com>
2014-11-26 16:25:56 -08:00
Solomon Hykes
2cff50a98b Merge pull request #110 from erikh/remove-unused-import
Remove unused import
2014-11-26 16:11:50 -08:00
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