Sriram Natarajan
b174aa26de
Change heartbeat type to unsigned int
...
Check if heartbeat value is greater than zero
Signed-off-by: Sriram Natarajan <natarajan.sriram@gmail.com>
2015-04-09 00:04:50 +00: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
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
8b7afe2c73
remove mesos.go to move it to it's own PR
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-27 14:25:50 -08:00
Victor Vieux
a8885ab997
removed nodes.go
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-27 14:25:50 -08:00
Victor Vieux
4bfeb4b640
move list of node to swarm only
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-27 14:20:37 -08:00
Victor Vieux
fa8a06685b
remove events from the cluster interface
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-27 14:20:37 -08:00
Victor Vieux
6348fdd849
move discovery out of the cluster interface
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-27 14:20:37 -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
126f550317
add SchedulerOptions
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-27 14:20:37 -08:00
Victor Vieux
98a21bd373
initial mesos.go file full fo TODOs
...
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
Victor Vieux
3c4cbf3a4b
fix port filter cli
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-10 05:21:43 +00:00
Andrea Luzzardi
c2d7acf42a
Fix --tlsverify between the CLI and Swarm.
...
--tlsverify used to be effective only between Swarm and the engines, but
the authentication was not properly functioning with the CLI.
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-02-04 13:14:05 -08:00
Victor Vieux
e38b06fbe8
add VERSION file
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-03 01:53:01 +00:00
Andrea Luzzardi
acd036365d
Fix a panic that occurs in the log handler when pulling images.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-01-28 12:29:41 -08:00
Andrea Luzzardi
ec7d343a88
Merge pull request #306 from vieux/improve_logs1
...
improve some logs
2015-01-27 12:23:31 -08:00
Andrea Luzzardi
8c2373a633
Abort if --tlscert, --tlskey or --tlscacert are used without --tls.
...
Fixes #296
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-01-26 17:14:43 -08:00
Victor Vieux
231ded20e0
improve some logs
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-26 23:41:56 +00:00
Andrea Luzzardi
6cc7dacae2
Abort if dependent TLS flags are not passed.
...
Fixes #296
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-01-26 13:55:25 -08:00
Radek Simko
a1f4e44f09
Use actual binary name instead of hardcoding it
...
Signed-off-by: Radek Simko <radek.simko@gmail.com>
2015-01-24 08:27:36 +00:00
Victor Vieux
3fe99c7067
replace --discovery by argument
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-21 19:59:27 +00:00
Victor Vieux
829bcb562d
fix SWARM_DISCOVERY env var
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-20 01:12:10 +00:00
Andrea Luzzardi
7161549693
store: Change the default path to ~/.swarm.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2015-01-19 13:39:24 -08:00
Andrea Luzzardi
6410f9ad35
Store requested state persistently.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-15 23:10:50 +00: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
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
Victor Vieux
957fce6a6c
use list of IPs as a discovery
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-01-13 19:47:36 +00:00
Andrea Luzzardi
7effd27a0e
Events: Embed the entire Node object rather than its attributes.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-12-17 17:54:07 -08:00
Victor Vieux
ad49f11c4e
see https://github.com/codegangsta/cli/issues/160
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-16 21:05:15 +00:00
Victor Vieux
827cdf19f6
add --filter flag to specify which filter to use
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-16 21:05:15 +00:00
Victor Vieux
b0293f8767
see https://github.com/codegangsta/cli/issues/160
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-16 01:54:15 +00:00
Victor Vieux
6e39962998
-addr -> multiple -H + unix
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-15 23:02:23 +00:00
Andrea Luzzardi
88bff68a5a
Merge pull request #167 from vieux/update_watch
...
watch take a callback
2014-12-12 17:10:38 -08: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
f2ca549f46
cleaner callback
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-12 22:49:20 +00:00
Victor Vieux
005b5fe288
watch take a callback
2014-12-12 22:14:11 +00:00
Victor Vieux
f95f943b4a
use 1.5*heartbeat as TTL in etcd
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-11 22:18:54 +00:00
Victor Vieux
2282fc89ef
add node type
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-11 21:59:01 +00:00
Victor Vieux
0aeb1771bd
add watch interface
2014-12-11 01:24:19 +00:00
Victor Vieux
ef9b509d07
add file
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-11 01:24:19 +00:00
Victor Vieux
bb7f69fd9c
First step toward modular discoevery services
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-11 01:24:19 +00:00
Andrea Luzzardi
39fe73a231
TLS support.
...
TLS authentication support between the CLI and Swarm but also between
Swarm and the Docker nodes.
Closes #148 .
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-12-09 13:43:25 -08:00
Victor Vieux
926e8e11f1
add --api-enable-cors on swarm manage
...
Signed-off-by: Victor Vieux <vieux@docker.com>
2014-12-06 23:04:08 +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
1dead64e11
Rename attributes to labels.
...
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2014-11-21 14:13:40 -08: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