Rebalance Nomad client RPCs among different Nomad servers.

Implement client/rpc_proxy.RpcProxy.
This commit is contained in:
Sean Chittenden
2016-05-23 11:09:31 -07:00
parent 7c6ad53d89
commit ffcd2332d4
18 changed files with 1791 additions and 185 deletions

View File

@@ -22,6 +22,7 @@ import (
"github.com/hashicorp/logutils"
"github.com/hashicorp/nomad/helper/flag-slice"
"github.com/hashicorp/nomad/helper/gated-writer"
"github.com/hashicorp/nomad/nomad/structs/config"
"github.com/hashicorp/scada-client/scada"
"github.com/mitchellh/cli"
)
@@ -59,11 +60,11 @@ func (c *Command) readConfig() *Config {
// Make a new, empty config.
cmdConfig := &Config{
Atlas: &AtlasConfig{},
Consul: &Consul{},
Client: &ClientConfig{},
Ports: &Ports{},
Server: &ServerConfig{},
Atlas: &AtlasConfig{},
Consul: &config.ConsulConfig{},
Client: &ClientConfig{},
Ports: &Ports{},
Server: &ServerConfig{},
}
flags := flag.NewFlagSet("agent", flag.ContinueOnError)