Commit Graph

678 Commits

Author SHA1 Message Date
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
Victor Vieux ecd70074c5 update README.md 2014-11-18 21:44:23 +00:00
Victor Vieux 0f507fb783 fix package name 2014-11-18 21:40:38 +00:00
Victor Vieux 323cab0581 add 'list' 2014-11-18 19:37:28 +00:00
Victor Vieux e141e360f7 fix Dockerfile 2014-11-18 03:38:07 +00:00
Victor Vieux 801e84b719 add license 2014-11-18 03:19:37 +00:00
Victor Vieux eb50d3654f add basic README.md 2014-11-18 03:18:36 +00:00
Victor Vieux 8411d0ed94 split main 2014-11-18 03:05:37 +00:00
Victor Vieux 74a6bff763 add Dockerfile 2014-11-18 02:52:59 +00:00
Victor Vieux 216c2a7507 fix imports 2014-11-18 02:52:51 +00:00
Victor Vieux ea5b048e73 update test name 2014-11-18 02:01:04 +00:00
Victor Vieux 45ca8472f1 add create command 2014-11-18 01:34:08 +00:00
Victor Vieux 05e95dfc7e cleanup main 2014-11-18 01:27:48 +00:00
Victor Vieux ed2db9a85b swarmd -> swarm
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-11-18 00:57:05 +00:00
Victor Vieux 43accba357 refactor swarmd 2014-11-18 00:46:58 +00:00
Andrea Luzzardi 670dc7f59b Node: Fix a bug in containers update.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 16:49:05 -08:00
Victor Vieux a0841874c5 add basic discovery client 2014-11-17 21:46:03 +00:00
Andrea Luzzardi 855598f2ac swarmd: Switch to bin packing by default.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 13:35:24 -08:00
Andrea Luzzardi cb66a5d8fe Scheduling: Experimental bin packing algorithm.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 13:34:59 -08:00
Andrea Luzzardi 0577135ea9 scheduler: Pass the strategy and filters as a creation argument.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 13:34:59 -08:00
Andrea Luzzardi 6585d4cfb6 Node: Expose reserved memory and CPUs.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 13:34:08 -08:00
Andrea Luzzardi 004450a910 Make the random placement strategy truly random.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 13:34:08 -08:00
Andrea Luzzardi a387265978 Embed the extended container information into Container.
At startup, inspect all containers and store the data into the
Container. When new containers are detected, inspect them as well.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 13:34:08 -08:00
Andrea Luzzardi 3241872d75 Node.Pull() naming cleanup.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-17 13:34:08 -08:00
Victor Vieux b4f2216f22 use scheduler when removing container 2014-11-15 01:17:19 +00:00
Victor Vieux 42198c779e prevent container scheduling without -c/-m 2014-11-15 01:14:43 +00:00
Victor Vieux 60a80c0c84 add EventsListeners in docker info 2014-11-15 00:16:50 +00:00
Victor Vieux de6a1d9c1a events 2014-11-15 00:05:55 +00:00
Andrea Luzzardi c6af7ce445 Integrate the scheduler into the API.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-14 15:56:17 -08:00
Andrea Luzzardi 006f5e7118 Initial scheduler implementation.
The scheduler is composed of filters (to apply constraints) and a
placement strategy (random, bin packing, ...).

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-14 15:51:39 -08:00
Victor Vieux 23fa208ab9 cleanup docker info 2014-11-14 22:09:55 +00:00
Victor Vieux 6ccc94fa01 use private types 2014-11-14 00:40:36 +00:00
Victor Vieux 2a4635a1a5 allow future CORS 2014-11-14 00:37:03 +00:00
Victor Vieux 0a969d2be7 add log fataler to swarmd 2014-11-14 00:15:13 +00:00
Victor Vieux 498543bfd2 replace print by log 2014-11-13 19:42:18 +00:00
Victor Vieux 39b83819aa append node ID to names 2014-11-13 02:52:00 +00:00
Victor Vieux 2aa28cf8a1 replace 0.0.0.0 by node IP 2014-11-13 02:42:13 +00:00
Victor Vieux 7cfc20a662 add pause/unpause 2014-11-13 02:07:20 +00:00
Andrea Luzzardi 56729ae150 API: docker start support.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-12 17:54:53 -08:00
Andrea Luzzardi cd7b9e571c API: Pass an HttpApiContext to every handler.
Instead of directly passing a cluster to every handler, pass a struct
the API owns. This makes adding additional data easier.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-12 17:52:05 -08:00
Victor Vieux 9e60bdd877 fix with the new dockerclient version 2014-11-13 00:46:51 +00:00