Sean Chittenden
c159e77fe3
An Agent's consulSyncer is always not nil now.
2016-06-10 15:50:11 -04:00
Sean Chittenden
89d48c8e82
Revise Agent.syncAgentServicesWithConsul()'s interface
...
Reduce down to its lowest common helper function denominator.
2016-06-10 15:50:11 -04:00
Sean Chittenden
d268dcb85d
Reduce all forms of ConsulConfig down to a single struct
...
nomad/structs/config/consul.go's ConsulConfig is the canonical definition
for all things Consul now.
2016-06-10 15:50:11 -04:00
Sean Chittenden
f6e3587321
Define a type for the PeriodicCallback handlers and ShutdownChannel
2016-06-10 15:50:11 -04:00
Sean Chittenden
ffcd2332d4
Rebalance Nomad client RPCs among different Nomad servers.
...
Implement client/rpc_proxy.RpcProxy.
2016-06-10 15:50:11 -04:00
Sean Chittenden
7c6ad53d89
Rename NewConsulService to NewSyncer
2016-06-10 15:49:37 -04:00
Sean Chittenden
f280c59633
Rename client/consul/sync.PeriodicSync to Run
2016-06-10 15:49:37 -04:00
Sean Chittenden
d84d71847c
Rename client/consul/sync.ConsulService to client/consul/sync.Syncer
...
Syncer describes the responsibility and actions of the type.
2016-06-10 15:49:37 -04:00
Sean Chittenden
af72200cf4
Distill config.Config.ConsulConfig down to config.Config.Consul
...
The enclosed struct provides the necessary context
2016-06-10 15:48:36 -04:00
Sean Chittenden
1f7bfb30d9
Rename consulConfig to consulAgentConfig
2016-06-10 15:48:36 -04:00
Sean Chittenden
4fed6b0ab5
Rename client/config/config's ConsulConfig to ConsulAgentConfig
...
A follow up commit to the previous rename. More to come.
2016-06-10 15:48:36 -04:00
Sean Chittenden
0e1bdad2a0
Rename consul.ConsulConfig to consul.AgentConfig
...
There were two `ConsulConfig` structs running around, one of them
needed to go away. Rely on the package's path to provide context
for the type of AgentConfig.
2016-06-10 15:48:36 -04:00
Diptanu Choudhury
bf6c034fec
Making the stats collection interval and number of data points to keep in memory configurable
2016-05-28 19:59:20 -07:00
Diptanu Choudhury
9d8f6d0837
Added a test for generation of the server addr
2016-05-24 21:29:13 -07:00
Diptanu Choudhury
f1c96df3f3
Using the bind addr as server's IP if advertise addr and addresses.HTTP is not specified
2016-05-24 17:27:09 -07:00
Diptanu Choudhury
25273db2c1
Using the auto-register flag
2016-05-16 18:23:01 +02:00
Diptanu Choudhury
f2de4f2019
Using advertise addr for the http address
2016-05-14 01:09:05 -07:00
Diptanu Choudhury
8c5aa0fe65
Added some docs
2016-05-14 00:36:26 -07:00
Diptanu Choudhury
b2c18168a4
Making Nomad register services with consul in dev mode
2016-05-13 10:19:49 -07:00
Diptanu Choudhury
de660c4acf
Removed allocID and task name from consul service
2016-05-11 16:26:41 -07:00
Diptanu Choudhury
a2237a6057
Implemented registering client and server services
2016-05-11 16:07:02 -07:00
Diptanu Choudhury
1e9fa644a4
removing interfaces from config
2016-04-07 13:25:38 -07:00
Alex Dadgar
b818379576
add nomad fingerprinter
2016-03-22 17:12:30 -07:00
Diptanu Choudhury
f8db94671e
Overriding the device configuration if addresses is present
2016-03-20 23:41:16 -07:00
Diptanu Choudhury
97f56d6cc1
Using the interfaces for configuring bind addrs for nomad servers
2016-03-19 00:54:19 -07:00
Diptanu Choudhury
ce29ce5b53
Setting the ip from the network interface to Addresses
2016-03-18 22:26:13 -07:00
Diptanu Choudhury
ab4b1e1f09
Using the interface name to find bind address for network services
2016-03-18 21:44:22 -07:00
Diptanu Choudhury
c51db58509
Added an interfaces config
2016-03-18 13:50:29 -07:00
Alex Dadgar
4293811651
reserve resources on the node
2016-03-13 19:05:41 -07:00
Diptanu Choudhury
8e13eaa522
Using unix domain sockets for docker syslog collector
2016-03-09 23:28:26 -08:00
Diptanu Choudhury
4478238ff6
Fixed an issue around parsing client max and min ports
2016-03-09 12:25:30 -08:00
Alex Dadgar
88c590dede
agent: Configurable heartbeat
2016-03-04 15:44:12 -08:00
Diptanu Choudhury
7f8f6712c5
Adding version information to snapshots
2016-02-24 19:06:30 -08:00
Diptanu Choudhury
f5b37b5221
Added a test for testing that http addr is set properly
2016-02-16 13:42:48 -08:00
Diptanu Choudhury
436367183c
fixing the logic of addr resolution
2016-02-16 13:13:40 -08:00
Diptanu Choudhury
9b31a6583c
Adding comments
2016-02-12 14:25:32 -08:00
Diptanu Choudhury
7c4dbbf7da
Reserving ports for client in every platform
2016-02-12 13:21:56 -08:00
Diptanu Choudhury
41447a0d7c
Extracted the cgroup info into isolation struct
2016-02-08 13:48:26 -08:00
Diptanu Choudhury
70f7b2d70f
Setting defaults for client max and min port
2016-02-08 13:29:53 -08:00
Diptanu Choudhury
2efdd83636
Using net.IsLoopback to determine if ifc is a loopback device
2016-02-08 07:57:31 -08:00
Diptanu Choudhury
f51e377f52
Reserving ports on windows
2016-02-05 15:17:15 -08:00
Diptanu Choudhury
d0fbdd8689
Simplified the logic of detecting addrs
2016-01-27 13:34:01 -08:00
Diptanu Choudhury
90840eaf29
Added the advertise http option to the client
2016-01-27 12:53:24 -08:00
Diptanu Choudhury
8915619093
Using the bindAddr only when user hasn't overrident it
2016-01-27 12:53:24 -08:00
Diptanu Choudhury
40a205f466
Added the cli for listing alloc dir
2016-01-27 12:53:23 -08:00
Ivo Verberk
ab9409184a
Shorten CLI identifiers
...
* Truncate all UUID identifiers to eight characters by default
* Refactor the node identifier to an auto-generated UUID
* Created and updated tests and mocks
2016-01-14 21:57:43 +01:00
Alex Dadgar
9f44780f89
User specifiable kill timeout and operator configurable max
2015-12-22 16:10:30 -08:00
Gregory Man
21879e22e0
Added node_gc_threshold configuration option
...
Close #333
2015-10-29 15:58:21 +02:00
Alex Dadgar
d8f3bd26e6
Merges
2015-10-02 17:32:11 -07:00
Ryan Uber
62b3b01919
Merge branch 'parse-client-options' of https://github.com/carlosdp/nomad into b-options
2015-10-02 16:58:05 -07:00