Commit Graph

122 Commits

Author SHA1 Message Date
Diptanu Choudhury
ba9ff3b536 Reading consul attr from copy of node attributes 2016-04-11 20:13:28 -04:00
Alex Dadgar
36a75054d8 When reserving ports don't reserve network interface speed 2016-04-07 15:47:02 -07:00
Diptanu Choudhury
036797bdd8 Watching for node updates after registration completes 2016-04-01 13:41:52 -07:00
Diptanu Choudhury
3ec66327bb Making the drivers fingerprint periodically if they are configured to do so 2016-03-31 15:15:00 -07:00
Diptanu Choudhury
bea0560234 Client not syncing services with consul until fingerprinting succeeds 2016-03-30 21:51:50 -07:00
Diptanu Choudhury
f8db6a433f Using tickers instead of creating new timers 2016-03-25 14:18:04 -07:00
Diptanu Choudhury
12dc439949 Changing the logic of keep services 2016-03-24 19:19:13 -07:00
Diptanu Choudhury
62249fe79f Added an impl for Nomad Checks 2016-03-24 19:00:24 -07:00
Diptanu Choudhury
6c5f546e86 Fixing check registration in perform sync 2016-03-24 14:12:09 -07:00
Diptanu Choudhury
bca2793d1c Using a helper method to copy taskStates 2016-03-23 19:11:54 -07:00
Diptanu Choudhury
408fea015d Reworded the log line 2016-03-23 19:04:59 -07:00
Diptanu Choudhury
a6e382f5fb Locking the task states 2016-03-23 19:02:29 -07:00
Diptanu Choudhury
ef52a7a2c2 Renamed vars and methods 2016-03-23 18:21:27 -07:00
Diptanu Choudhury
167f2f0937 Locking on alloc runners before syncing with consul 2016-03-23 17:54:32 -07:00
Diptanu Choudhury
1f6137aba5 Using the name of the task and the alloc id in the service name 2016-03-23 17:35:29 -07:00
Diptanu Choudhury
0e4a236e6a Added comments 2016-03-23 15:39:25 -07:00
Diptanu Choudhury
56ccea8f18 Client sync with consul and removed unwanted services 2016-03-23 15:28:55 -07:00
Diptanu Choudhury
9a71225b9e Removing references to old consul services and adding consul config to executor context 2016-03-23 12:19:19 -07:00
Alex Dadgar
8f9bd6b198 Merge pull request #910 from hashicorp/f-reserved-resources
Reserve Client Resources + Config Validation
2016-03-15 21:09:13 -07:00
Dmitry Smirnov
2e755cd7e8 codespell: minor spelling corrections
Signed-off-by: Dmitry Smirnov <onlyjob@member.fsf.org>
2016-03-16 05:28:31 +11:00
Alex Dadgar
4293811651 reserve resources on the node 2016-03-13 19:05:41 -07:00
Alex Dadgar
cddda67e30 client: fix bug where pushing allocs is skipped 2016-03-10 16:18:20 -08:00
Alex Dadgar
2524231738 up cached connection time 2016-03-09 10:37:56 -08:00
Alex Dadgar
fe0621f60d client: send correct node id 2016-02-22 22:43:55 -08:00
Alex Dadgar
d6e3e8c8cf Send NodeID when updating client allocation 2016-02-22 17:25:11 -08:00
Alex Dadgar
48eff00427 address feedback 2016-02-21 21:32:32 -08:00
Alex Dadgar
6b3c22e91a Batch client allocation updates to the server 2016-02-21 21:15:02 -08:00
Alex Dadgar
05bda07e7e undo async update 2016-02-19 22:34:52 -08:00
Alex Dadgar
6d927a7525 Make updating alloc status async 2016-02-19 21:44:23 -08:00
Alex Dadgar
a0aeb3e1d4 Reduce alloc lock contention in client 2016-02-19 19:51:55 -08:00
Alex Dadgar
d13262589f Don't re-register as initializing 2016-02-18 23:02:28 -08:00
Alex Dadgar
f6cec37963 Increase Alloc channel buffers 2016-02-18 20:43:48 -08:00
Alex Dadgar
1cc927e885 Extract the heartbeat and saveState into their own go routines 2016-02-17 11:32:17 -08:00
Alex Dadgar
66c7243372 Initialize the config copy after client init 2016-02-10 19:01:57 -08:00
Alex Dadgar
08d32d86cf Slightly less node copying 2016-02-10 14:09:23 -08:00
Alex Dadgar
5b3792a509 safe but slow 2016-02-10 13:44:53 -08:00
Alex Dadgar
c946c5e14b Fix concurrent r/w to heartbeat time 2016-02-09 22:43:16 -08:00
Alex Dadgar
79f5dd2380 Make fingerprinting thread safe 2016-02-09 22:14:24 -08:00
Ivo Verberk
a78836049f Add comments to hasNodeChanged and remove superfluous else block 2016-02-04 08:19:34 +01:00
Ivo Verberk
035cc02c65 Reregister node when periodic fingerprint changes node properties 2016-02-03 21:10:58 +01:00
Alex Dadgar
3b90539fe9 Fix locks and use task runners state not alloc state 2016-02-01 15:43:59 -08:00
Alex Dadgar
410ae593e7 Fix double pull with introduction of AllocModifyIndex 2016-02-01 15:43:59 -08:00
Ranjib Dey
8e546010e7 allow group and others to have executable permissions 2016-01-31 10:54:32 -08:00
Jake Champlin
d93c8bb43e Use net.JoinHostPort 2016-01-29 05:39:28 -05:00
Jake Champlin
cb39df4c20 Spelling 2016-01-29 05:11:50 -05:00
Jake Champlin
fed8184da1 Updates from comments, fix tests 2016-01-28 23:11:13 -05:00
Jake Champlin
fb92f83714 Allow ports to be optional when adding servers
When updating a clients servers, as nomad does not use the gossip
protocol over a specified port for clients, it was required to specify
ports along with server addresses.

Now specifying ports are optional, and if unspecified the default `4647`
port is used, reflecting a notice back to the user.
2016-01-28 22:08:28 -05:00
Ivo Verberk
4330157b78 Cleanup code and add comments 2016-01-20 00:02:17 +01:00
Ivo Verberk
648a3487c9 Merge branch 'master' into f-cli-short-ids 2016-01-15 09:19:53 +01:00
Diptanu Choudhury
08d1b4c319 Added the node id to agent info 2016-01-14 15:42:30 -08:00