k8s-merge-robot
4466531382
Merge pull request #29094 from luxas/gomaxproc
...
Automatic merge from submit-queue
Remove GOMAXPROCS() calls because they are unnecessary
Now we're setting GOMAXPROCS when every binary starts up, but we don't have to do that anymore, since we've upgraded to Go 1.6
Documentation for it:
> func GOMAXPROCS(n int) int
> GOMAXPROCS sets the maximum number of CPUs that can be executing simultaneously and returns the previous setting. If n < 1, it does not change the current setting. The number of logical CPUs on the local machine can be queried with NumCPU. This call will go away when the scheduler improves.
A simple program to prove it's unnecessary:
```go
package main
import (
"fmt"
"runtime"
)
func main(){
numCPUBefore := runtime.GOMAXPROCS(runtime.NumCPU())
numCPUAfter := runtime.GOMAXPROCS(runtime.NumCPU())
fmt.Println(numCPUBefore, numCPUAfter)
}
```
Output with Go 1.4.2: `1 4`
Output with Go 1.6.2: `4 4`
So I think we should remove calls to GOMAXPROCS now, and it should be pretty straightforward
@thockin @wojtek-t @gmarek @lavalamp @vishh
2016-07-19 08:11:24 -07:00
Lucas Käldström
88ea80b572
Remove GOMAXPROCS() calls because they are unnecessary
2016-07-19 11:08:21 +03:00
Davanum Srinivas
2b0ed014b7
Use Go canonical import paths
...
Add canonical imports only in existing doc.go files.
https://golang.org/doc/go1.4#canonicalimports
Fixes #29014
2016-07-16 13:48:21 -04:00
David McMahon
ef0c9f0c5b
Remove "All rights reserved" from all the headers.
2016-06-29 17:47:36 -07:00
harry
f19d59cf35
Move flag into sub pkg
2016-03-14 21:30:38 +08:00
k8s-merge-robot
ab6edd8170
Merge pull request #19093 from smarterclayton/split_proxy_and_scheduler
...
Auto commit by PR queue bot
2016-01-06 19:26:41 -08:00
Clayton Coleman
715b77cbcd
Split proxy and scheduler arguments
...
Keep options and flags distinct from initialization
2016-01-06 21:34:31 -05:00
Clayton Coleman
c0c707d92d
Split apiserver flags and initialization
...
Make it easier to keep defaults and flags clearly identified.
2016-01-06 21:14:30 -05:00
k8s-merge-robot
b42942c8f4
Merge pull request #14660 from mesosphere/sttts-fix-broken-km-after-kubeproxy-refactoring
...
Auto commit by PR queue bot
2015-10-02 03:48:21 -07:00
Dr. Stefan Schimanski
67d5b8a258
Remove redirfd executable and support in the executor
2015-09-30 06:51:39 +02:00
Dr. Stefan Schimanski
d5f725add7
Fix broken Mesos km due to too early proxy intitialization
...
This was introduced in 1c25c2cd99
.
2015-09-28 18:54:28 +02:00
gmarek
1c25c2cd99
Refactor KubeProxy to allow mocking of all moving parts.
2015-09-23 18:47:05 +02:00
Eric Paris
bcf912667b
Use pflag functions instead of ours.
2015-08-20 15:00:55 -07:00
Mike Danese
17defc7383
run gofmt on everything we touched
2015-08-05 17:52:56 -07:00
Mike Danese
8e33cbfa28
rewrite go imports
2015-08-05 17:30:03 -07:00
Dr. Stefan Schimanski
76dc61bcfb
Revert "Revert "Add Mesos hyperkube minion server ""
...
This reverts commit 8372b0d927
.
2015-07-31 20:33:04 +02:00
Mike Danese
8372b0d927
Revert "Add Mesos hyperkube minion server "
2015-07-31 10:47:42 -07:00
Dr. Stefan Schimanski
2b1ecd28f0
Add Mesos hyperkube minion server
...
The minion server will
- launch the proxy and executor
- relaunch them when they terminate uncleanly
- logrotate their logs.
It is a replacement for a full-blown init process like s6 which is not necessary
in this case.
2015-07-31 12:28:40 +02:00
Dr. Stefan Schimanski
1200125137
Share KM_* constants
2015-07-31 11:27:52 +02:00
James DeFelice
1820114a2d
Upstream controller manager and km binary
...
Closes mesosphere/kubernetes-mesos#310
Depends on GoogleCloudPlatform/kubernetes#8882
- fix https://github.com/mesosphere/kubernetes-mesos/issues/336
- Fix comment typo
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/9265#commitcomment-11559038
- Add warning to k8s modules to also update mesos copies
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/9265#commitcomment-11558864
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/9265#commitcomment-11558855
- Add comments and TODO that hypercube and controllermanager need refactoring
2015-06-12 14:03:00 +00:00
James DeFelice
932c58a497
Kubernetes Mesos integration
...
This commit includes the fundamental components of the Kubernetes Mesos
integration:
* Kubernetes-Mesos scheduler
* Kubernetes-Mesos executor
* Supporting libs
Dependencies and upstream changes are included in a separate commit for easy
review.
After this initial upstream, there'll be two PRs following.
* km (hypercube) and k8sm-controller-manager #9265
* Static pods support #9077
Fixes applied:
- Precise metrics subsystems definitions
- mesosphere/kubernetes-mesos#331
- https://github.com/GoogleCloudPlatform/kubernetes/pull/8882#discussion_r31875232
- https://github.com/GoogleCloudPlatform/kubernetes/pull/8882#discussion_r31875240
- Improve comments and add clarifications
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/8882#discussion-diff-31875208
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/8882#discussion-diff-31875226
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/8882#discussion-diff-31875227
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/8882#discussion-diff-31875228
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/8882#discussion-diff-31875239
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/8882#discussion-diff-31875243
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/8882#discussion-diff-31875234
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/8882#discussion-diff-31875256
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/8882#discussion-diff-31875255
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/8882#discussion-diff-31875251
- Clarify which Schedule function is actually called
- Fixes https://github.com/GoogleCloudPlatform/kubernetes/pull/8882#discussion-diff-31875246
2015-06-10 20:58:39 +00:00