Victor Vieux
6eceffacf9
use cluster.ContainerConfig
...
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-04-30 11:44:25 -07:00
Pradipta Kr. Banerjee
b4e692d442
Fix minor typo in description of 'binpack' scheduler strategy.
...
Signed-off-by: Pradipta Kr. Banerjee <bpradip@in.ibm.com>
2015-04-26 12:02:59 +05:30
Chanwit Kaewkasi
720d3c3eea
fix int overflow on non-amd64 platforms
...
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2015-04-19 22:10:18 +07:00
James Turnbull
cfe082e36c
Fixed typo
...
Docker-DCO-1.1-Signed-off-by: James Turnbull <james@lovedthanlost.net> (github: jamtur01)
2015-04-14 13:48:42 -04:00
James Turnbull
658c807eb9
Did a quick pass on the docs to fix numerous formatting, spelling and grammar errors
...
Signed-off-by: James Turnbull <james@lovedthanlost.net>
2015-04-14 11:59:50 -04:00
Victor Vieux
1297a4cef2
transform node interface to engine struct
...
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-04-06 13:19:37 -07:00
Victor Vieux
805b4763f4
disable cluster flag
...
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-04-03 16:33:48 -07:00
Victor Vieux
8f50c0eb7a
use names everywhere
...
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-04-03 16:22:56 -07:00
Victor Vieux
20ec7a889e
add strategy and filters to docker info
...
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-04-03 15:56:26 -07:00
Chanwit Kaewkasi
fd643ad079
cleanup index and reuse size vars
...
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2015-04-02 13:54:39 +07:00
Victor Vieux
410d85ac07
Add missing doc for the spread strategy
...
Signed-off-by: Victor Vieux <victorvieux@gmail.com>
2015-04-01 17:20:27 -07:00
Anton Tiurin
f760b25e12
[Random] Pick a node for O(1), not for O(n)
...
Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
2015-04-02 00:23:35 +03:00
Sriram Natarajan
8a71a1d114
Fix 404 Error in Filter and Strategy README files
...
Signed-off-by: Sriram Natarajan <natarajan.sriram@gmail.com>
2015-03-30 23:30:52 -07:00
Matt Bajor
d87c48ae4e
Fix lint violations
...
This changeset fixes all lint violations that show up with a
min_confidence of 1
- Issue #500 : Run golint on codebase
Signed-off-by: Matt Bajor <matt@notevenremotelydorky.com>
2015-03-27 21:17:44 -06:00
Victor Vieux
01a6e8a392
user number of containers in binpack
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-03-10 16:52:42 -07:00
Victor Vieux
2f19f5899a
Add spread strategy and make it the default
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-03-07 15:17:42 -08:00
Matthew Gallagher
3c7e74c43e
Corrected typos in swarm scheduler docs
...
Signed-off-by: Matthew Gallagher <mattva01@gmail.com>
2015-02-28 03:31:49 -05:00
Matthew Fisher
08b0ddbd14
refactor score to weightedNode structure
...
In many different scheduling strategies, a node is typically given
a certain weight based upon its values that are important to the
overall strategy. Exposing a weightedNode structure as well as a
new weightedNodeList type allows one to operate upon a set of nodes for
sorting purposes by assigning weights to each node and calling
sort.Sort() on a weightedNodeList.
Signed-off-by: Matthew Fisher <matthewf@opdemand.com>
2015-02-27 15:48:53 +00:00
Victor Vieux
d8042f9677
add Node interface
...
Usable -> Total & Reserved -> Used
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-27 14:25:50 -08:00
Victor Vieux
ce98e66c63
cluster API instead of scheduler API
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-27 14:20:37 -08:00
Victor Vieux
eb88068f93
refactor code: move filter/ and strategy/ out of scheduler and create a simple
...
scheduler interface.
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-27 14:20:37 -08:00
Sven Dowideit
c530cd1523
add an index and go make some small tweaks
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2015-02-26 11:19:14 +10:00
Derek Schultz
7709691f0b
correct typo
...
Signed-off-by: Derek Schultz <schultz.derek@gmail.com>
2015-02-10 01:27:33 -07:00
zhangbaitong
67f4fbb42a
docs:fix the problem of description
...
Signed-off-by: zhangbaitong <zhangbaitong@163.com>
2015-02-06 09:38:13 +08:00
Victor Vieux
3926582d7d
add README.md for strategies
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-03 22:48:45 +00:00
Victor Vieux
231ded20e0
improve some logs
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-26 23:41:56 +00:00
Victor Vieux
02cc59840f
Revert "Fixes panic when ports are not specified"
...
This reverts commit a916f9cde0 .
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-24 01:42:15 +00:00
Brian Goff
a916f9cde0
Fixes panic when ports are not specified
...
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2015-01-23 15:56:14 -05:00
Jessica B. Hamrick
634dd00497
Remove unnecessary arguments from Equal and NotEqual
...
Signed-off-by: Jessica B. Hamrick <jhamrick@berkeley.edu>
2015-01-20 15:08:01 -08:00
Jessica B. Hamrick
63109bb0f2
Remove total variable
...
Signed-off-by: Jessica B. Hamrick <jhamrick@berkeley.edu>
2015-01-20 11:42:02 -08:00
Jessica B. Hamrick
11ebdb050c
Fix the scheduling bug, fixes #253
...
Signed-off-by: Jessica B. Hamrick <jhamrick@berkeley.edu>
2015-01-19 19:19:35 -08:00
Jessica B. Hamrick
f942cb2e69
Add test that fails to execute the proper strategy
...
Signed-off-by: Jessica B. Hamrick <jhamrick@berkeley.edu>
2015-01-19 19:19:32 -08:00
Victor Vieux
f0e9fb032d
prevent undercommit for now
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-14 00:57:13 +00:00
Victor Vieux
45ea947e0e
OverCommit -> Usable
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-14 00:40:55 +00:00
Victor Vieux
d57eca7bc9
move overcommit outside of the strategies
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-14 00:33:49 +00:00
Victor Vieux
d8b609c161
Move overcommit outside of binpacking and use 105 instead of 0.05
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-14 00:33:49 +00:00
Andrea Luzzardi
6a34054e58
Typo: Initialise -> Initialize.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-01-05 07:32:57 -08:00
Chanwit Kaewkasi
869c57ccb1
need int64 cast to prevent overflow on the 32-bit architecture
...
Signed-off-by: Chanwit Kaewkasi <chanwit@gmail.com>
2014-12-30 15:40:54 +07:00
Victor Vieux
9196927ce2
nitpick
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-13 00:56:37 +00:00
Victor Vieux
cd243cfa34
simplify
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-13 00:09:38 +00:00
Victor Vieux
b1e80ce157
add --strategy to choose the strategy to use
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-12 23:57:27 +00:00
Victor Vieux
ebe77641c7
prevent panic in random strategy if no node
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-09 00:19:24 +00: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
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
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
9bf438ec64
int -> int64
2014-11-20 01:37:15 +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
2905b00d07
add tests
2014-11-19 01:09:18 +00:00
Victor Vieux
0f507fb783
fix package name
2014-11-18 21:40:38 +00:00