Victor Vieux
ab113e7750
Add more unit tests for spread strategy
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2016-01-16 00:25:50 -08:00
moxiegirl
62fdf2fad1
Merge pull request #1546 from moxiegirl/readme-refs-work
...
Remove readmes and point to docs
2016-01-12 15:51:59 -08:00
Dong Chen
cf664141b6
Scheduler prefers nodes without connection failures.
...
Signed-off-by: Dong Chen <dongluo.chen@docker.com>
2016-01-11 11:42:58 -08:00
Mary Anthony
07031ed7ba
Updating READMEs
...
Signed-off-by: Mary Anthony <mary@docker.com>
2016-01-06 18:58:12 -08:00
Surya Gaddipati
a8d4c4b0f4
Fix busted link
...
Signed-off-by: Surya Gaddpati <surya.gaddipati@gmail.com>
2015-12-09 11:18:15 -06:00
Andrea Luzzardi
b2b32d979d
scheduler now returns the list of ranked nodes rather than the top node.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-10-09 15:32:37 -07:00
Peggy Li
5d1ae7b674
Add more meaningful godoc comments for the scheduler/strategy package
...
Signed-off-by: Peggy Li <peggyli.224@gmail.com>
2015-07-16 02:06:04 -07:00
fl0yd
b0cbaeccae
Grammar regarding least and fewest
...
Signed-off-by: Mark Oates fl0yd@me.com
Signed-off-by: Mark Oates <fl0yd@me.com>
2015-07-10 15:33:22 -05:00
Ahmet Alp Balkan
6064e889b7
scheduler/random: Use private instance of rand
...
This does not pollute the global rand instance. It's good for
predictability and determinism in the tests and behavior. Reduces
program state.
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2015-06-15 14:14:15 -07:00
Andrea Luzzardi
0fb33f61d5
update testify
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-05-26 19:01:09 -07:00
Andrea Luzzardi
1d2e073813
Embed ContainerConfig into Container.
...
The cluster configuration is now embedded into the container. It's
guaranteed to be correct (as in, generated by BuildContainerConfig) at
all times.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-04-30 18:15:22 -07:00
Andrea Luzzardi
cd3a0f03fc
container config builder: Make all modifications on a copy, never alter original.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-04-30 18:06:26 -07:00
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