Set GOMAXPROCS. Print errors on stderr.

This commit is contained in:
Daniel Smith
2015-02-19 10:30:31 -08:00
parent 1b5d14423c
commit fcddefa184
7 changed files with 45 additions and 4 deletions

View File

@@ -18,12 +18,14 @@ limitations under the License.
// Expects an etcd server is available, or on the path somewhere.
// Does *not* currently setup the Kubernetes network model, that must be done ahead of time.
// TODO: Setup the k8s network bridge as part of setup.
// TODO: combine this with the hypercube thingy.
package main
import (
"fmt"
"net"
"net/http"
"runtime"
"time"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
@@ -152,6 +154,8 @@ func newApiClient(addr net.IP, port int) *client.Client {
}
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
util.InitFlags()
util.InitLogs()
defer util.FlushLogs()