Abhishek Gupta
548e0da567
Configuring scheduler via json configuration file
2015-03-02 10:00:19 -08:00
Zach Loafman
5f35a67002
Revert "Adding converter functions to convert field label selectors to internal version before matching"
2015-02-28 11:42:49 -08:00
Daniel Smith
554b1c847c
add occasional polling to reflector
2015-02-27 16:59:14 -08:00
nikhiljindal
48e7945f65
Versioning the field selectors
2015-02-27 16:10:59 -08:00
Mike Danese
5267127af1
api: rename conditionkind -> conditiontype
2015-02-23 22:13:21 -08:00
derekwaynecarr
c0ce15c588
Make list watch take a ListFunc and WatchFunc, provide default funcs from client
2015-02-15 22:26:05 -05:00
derekwaynecarr
151be7773c
Rename api.Namespace to api.NamespaceValue to avoid name collision
2015-02-10 09:44:29 -05:00
Clayton Coleman
556e59b512
Merge pull request #3810 from ironcladlou/cache-namespacing
...
Support namespacing in cache.Store
2015-01-30 13:19:41 -05:00
Deyuan Deng
c793c4f0ab
Sync node status from node controller to master.
2015-01-29 23:17:15 -05:00
Dan Mace
5ee943d683
Support namespacing in cache.Store implementations
...
Support namespacing in cache.Store by framing the interface functions
around interface{} and providing a key function to each Store implementation.
Implementation of a fix for #2294 .
2015-01-29 17:39:49 -05:00
davidopp
2675cfa16b
Merge pull request #2906 from abhgupta/abhgupta-dev
...
Enhancements to scheduler priority functions
2015-01-14 21:47:28 -08:00
Deyuan Deng
153dbd30a3
Filter out unhealthy node in scheduler
2015-01-13 17:09:07 -05:00
Abhishek Gupta
6fd0b181e3
Rebased onto the latest changes to the scheduler code
2015-01-13 09:41:25 -08:00
Abhishek Gupta
9e75a05df0
Implementing PR feedback
2015-01-13 09:34:45 -08:00
Abhishek Gupta
04db076e5f
Enhancements to scheduler priority functions
...
- Modified the existing spreading priority to consider service pods explicitly
- Added a new priority function to spread pods across zones
2015-01-13 09:34:42 -08:00
Clayton Coleman
b38c25ebf4
Shorten scheduler/factory test by making backoff a struct var
2015-01-09 13:16:30 -05:00
Daniel Smith
963000715a
Merge pull request #3294 from erictune/public_storetoers
...
Move Listers to pkg/client/cache.
2015-01-07 15:56:14 -08:00
Eric Tune
ed74197fde
Move Listers to pkg/client/cache.
...
I would like to use these in kubelet and kube-proxy.
This is the minimal change to get them moved.
I will follow up with changes to make interfaces consistent
and add Listers for other resources.
2015-01-07 15:33:17 -08:00
Eric Tune
7d5ac856c5
Make Reflector helpers reusable.
...
Scheduler uses Reflector from pkg/client/cache.
It defines some helper classes.
I'd like to use those helpers with pkg/client/cache
in kube-proxy and kubelet too.
2015-01-07 13:49:37 -08:00
Clayton Coleman
e355f54eda
Update references from Path() to the appropriate segment use
2014-12-29 15:38:52 -05:00
derekwaynecarr
abb6632d75
Do not use namespace in url paths pre v1beta3 from client
2014-12-19 16:32:42 -05:00
Mike Danese
4850bdbe63
refactor scheduler factory to use plugin architecture style like credentialprovider and cloudprovider for configuring priority functions and fit predicates
2014-12-17 14:55:28 -08:00
Clayton Coleman
19379b5a38
Internal rename api.Minion -> api.Node
2014-12-10 12:08:18 -05:00
Abhishek Gupta
d17cebcd2a
Implementing PR feedback and adding test cases
2014-12-08 14:47:05 -08:00
Abhishek Gupta
5fa1dbc07b
Implementing PR feedback
...
- Making ConfigFactory struct public
- Added comments for predicate/priority functions and new methods
2014-12-08 14:47:05 -08:00
Abhishek Gupta
13831856c9
Combining scheduler priority functions using weighted averages
2014-12-08 14:47:05 -08:00
Abhishek Gupta
7f374030c1
Fixing gofmt errors
2014-12-08 14:47:05 -08:00
Abhishek Gupta
1eb28b0aa3
Scheduler changes to allow multiple priority functions
2014-12-08 14:47:05 -08:00
Abhishek Gupta
6b712cc700
Scheduler changes for extensibility
2014-12-08 14:47:05 -08:00
Eric Tune
3aa35e1941
Fix typo.
2014-11-21 09:02:14 -08:00
markturansky
8af4ccb111
v1beta3 Pod refactor
2014-11-18 09:25:42 -05:00
Paul Morie
e2be1564a4
Rename client/cache Store.Contains to ContainedIDs
2014-11-11 11:48:15 -05:00
deads2k
48b26e2dfc
fix pod scheduling retry logic
2014-11-04 08:04:48 -05:00
Brendan Burns
83715dd7be
Turn on node constraint scheduling.
2014-10-27 12:18:27 -07:00
Clayton Coleman
bb77a5d15f
Rename ID -> Name
2014-10-22 15:00:26 -04:00
derekwaynecarr
085ca40291
Enforce unique constraint at namespace boundary in etcd, make client and server namespace aware
2014-10-16 13:02:52 -04:00
Eric Tune
6f577aa321
Merge pull request #1789 from lavalamp/eventing4
...
Add event creation library and implement in scheduler.
2014-10-15 15:55:26 -07:00
Daniel Smith
d4c750a878
Fix vet-go.sh and some things it complained about
2014-10-15 11:56:19 -07:00
Brendan Burns
47c4b8fc98
Add a predicate for persistent disk scheduling.
2014-10-13 15:38:25 -07:00
Daniel Smith
0431f2430d
Use cache for minion lookups, don't hammer apiserver
2014-10-13 14:46:31 -07:00
Dawn Chen
135d187942
Merge pull request #1736 from brendandburns/scheduler
...
Switch away from the static node info
2014-10-10 15:01:09 -07:00
Brendan Burns
e6fa568ad4
Switch away from the static node info
2014-10-10 14:08:09 -07:00
Brendan Burns
b5ec8a747b
Switch on the resource requested prioritization.
2014-10-09 11:29:45 -07:00
Brendan Burns
4230a8ca61
Add a least-requested priority function
2014-10-08 15:31:38 -07:00
Clayton Coleman
82bcdd3b3b
Make ResourceVersion a string internally instead of uint64
...
Allows us to define different watch versioning regimes in the future
as well as to encode information with the resource version.
This changes /watch/resources?resourceVersion=3 to start the watch at
4 instead of 3, which means clients can read a resource version and
then send it back to the server. Clients should no longer do math on
resource versions.
2014-10-07 19:00:26 -04:00
Daniel Smith
cf203f1304
Fix build error in integration test
2014-10-07 13:10:58 -07:00
Sam Ghods
16641757ef
Prevent scheduler from crashing infinitely if apiserver is unreachable
2014-10-06 19:28:23 -07:00
bgrant0607
fea58c9b88
Merge pull request #1561 from brendandburns/sleep
...
Add some backoff to the scheduler to prevent tight-looping.
2014-10-03 15:29:12 -07:00
Brendan Burns
1551b48347
Add a resource fit scheduler predicate. Set sensible defaults.
2014-10-03 15:09:59 -07:00
Brendan Burns
53304bd024
Add a backoff policy for failing pods.
2014-10-03 10:03:55 -07:00
Tim Hockin
a7a46f71aa
Merge pull request #1449 from brendandburns/scheduler
...
Refactor scheduler, use generic scheduler everywhere, delete old code.
2014-09-26 12:18:52 -07:00
Brendan Burns
1bb962961c
Refactor schedulers, remove schedulers, use generic scheduler.
2014-09-26 10:26:25 -07:00
Clayton Coleman
4e56dafecc
Introduce some default log verbosity control
...
Move a lot of common error logging into better buckets:
glog.Errorf() - Always an error
glog.Warningf() - Something unexpected, but probably not an error
glog.V(0) - Generally useful for this to ALWAYS be visible
to an operator
* Programmer errors
* Logging extra info about a panic
* CLI argument handling
glog.V(1) - A reasonable default log level if you don't want
verbosity
* Information about config (listening on X, watching Y)
* Errors that repeat frequently that relate to conditions
that can be corrected (pod detected as unhealthy)
glog.V(2) - Useful steady state information about the service
* Logging HTTP requests and their exit code
* System state changing (killing pod)
* Controller state change events (starting pods)
* Scheduler log messages
glog.V(3) - Extended information about changes
* More info about system state changes
glog.V(4) - Debug level verbosity (for now)
* Logging in particularly thorny parts of code where
you may want to come back later and check it
2014-09-25 16:30:14 -04:00
Daniel Smith
3f659f7d74
Plumb pkg/client/cache changes into scheduler
2014-09-16 16:17:16 -07:00
Vojtech Vitek (V-Teq)
59f58cd043
Unify Godoc formatting, fix various typos
...
Signed-off-by: Vojtech Vitek (V-Teq) <vvitek@redhat.com>
2014-09-02 13:41:03 +02:00
Daniel Smith
0a1dfa366e
Make integration test pass.
2014-08-25 11:59:00 -07:00
Daniel Smith
03cd22d4f4
Handle errors slightly more intelligently
2014-08-20 16:50:02 -07:00
Daniel Smith
8a9eaf911f
For testability & reuse, move scheduler setup into its own package.
2014-08-20 16:50:02 -07:00