Commit Graph

374 Commits

Author SHA1 Message Date
Alex Dadgar
6fabf95e65 fix test 2016-03-06 18:41:33 -08:00
Alex Dadgar
88c590dede agent: Configurable heartbeat 2016-03-04 15:44:12 -08:00
Alex Dadgar
44f5d75315 Remove documentation about assigning node-id 2016-03-04 10:36:30 -08:00
Jake Champlin
97e0c9795d Add -allocs to help output 2016-03-03 14:46:24 -05:00
Jake Champlin
859a556982 Only fetch running allocs, use args, add docs
Only fetch running allocations, not total allocated ids, add
documentation, and cleanup things.
2016-03-03 14:09:07 -05:00
Jake Champlin
1e7e9fb860 Include number of allocations in node-status
We recently ran into an issue on a small percentage of nomad-clients
where the nomad-client was running successfully, but due to a race
condition, could not correctly bind to the docker socket. This caused
all of our nomad jobs to be allocated to a single nomad-client instead
of being spread evenly across our clients. The only way to discover this
was to run `nomad node-status <node>` and count each job allocation per
node.

This can lead to a fairly long debugging process if there are several
nomad-clients. Including the number of allocations for each node in the
`node-status` command would save a large amount of debug time.

```
jake@biscuits [12:08:41] [~]
-> % nomad node-status
ID        Datacenter  Name      Class   Drain  Status  Allocations
2b0aabc5  dc1         biscuits  <none>  false  ready   0
```

```
jake@biscuits [12:08:55] [~]
-> % nomad node-status
ID        Datacenter  Name      Class   Drain  Status  Allocations
2b0aabc5  dc1         biscuits  <none>  false  ready   1
```
2016-03-03 12:19:56 -05:00
Alex Dadgar
e0224b8a35 Refactor task runner to include driver starting into restart policy and add recoverable errors 2016-02-28 16:56:05 -08:00
Diptanu Choudhury
7f8f6712c5 Adding version information to snapshots 2016-02-24 19:06:30 -08:00
Alex Dadgar
207d544a55 client: standardize error logging format 2016-02-24 15:57:58 -08:00
Alex Dadgar
902c14beb4 Job GC endpoint 2016-02-20 15:50:41 -08:00
Alex Dadgar
c43c031a49 Make the client only reserve 512 ports. 2016-02-20 11:43:02 -08:00
Alex Dadgar
73733a8542 Fixes 2016-02-19 15:49:32 -08:00
Diptanu Choudhury
315882f60a Testing default http port is being set 2016-02-16 17:54:17 -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
Alex Dadgar
2ef1de9a5e Add human readable output to fs 2016-02-12 15:36:52 -08:00
Diptanu Choudhury
b4792dde34 Merge pull request #797 from hashicorp/reserve-ports
Reserving ports for client in every platform
2016-02-12 14:33:13 -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
d43af22b2b Merging the value of http advertise addr if user is providing one 2016-02-12 09:40:28 -08:00
Diptanu Choudhury
05999809aa Fixed some more tests 2016-02-11 22:33:41 -08:00
Diptanu Choudhury
ef8032e626 Fixed tests 2016-02-11 17:34:46 -08:00
Diptanu Choudhury
355b88bba9 Setting the output for default logger to nomad's logoutput 2016-02-11 16:05:31 -08:00
Diptanu Choudhury
2d9ea67359 Added the log config to init example 2016-02-11 12:21:19 -08:00
Diptanu Choudhury
38ec33c508 Fixed some tests 2016-02-11 10:42:56 -08:00
Diptanu Choudhury
7eedcbfcf6 Starting the syslog collector along with a docker container 2016-02-09 18:24:30 -08:00
Diptanu Choudhury
8b2f94ff6f Added a test for merge 2016-02-08 16:27:31 -08:00
Diptanu Choudhury
747d3202ca Moving code to mount and unmount chroot into allocdir 2016-02-08 14:11:53 -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
f7f7cc9b95 Fixed merged conflict 2016-02-07 17:58:31 -05:00
Alex Dadgar
0764b8f161 Shorted eval id and only print waiting if time > 0 2016-02-06 16:09:39 -08:00
Diptanu Choudhury
f51e377f52 Reserving ports on windows 2016-02-05 15:17:15 -08:00
Alex Dadgar
9d528d3884 Display fs in nomad help and list the subcommands when called 2016-02-05 11:01:29 -08:00
Diptanu Choudhury
49226c4a9c Fixing merge conflicts 2016-02-04 22:55:38 -08:00
Diptanu Choudhury
d8ed2949cd Not syncing stdout and stderr of pluging with client 2016-02-04 17:36:31 -08:00
Alex Dadgar
8b55fd6b70 Only interpret vars wrapped in braces 2016-02-04 17:26:46 -08:00
Diptanu Choudhury
2b8cdc47d3 Moved packages around 2016-02-04 17:00:41 -08:00
Diptanu Choudhury
dbb3570d59 Fixed the executor command 2016-02-04 17:00:37 -08:00
Diptanu Choudhury
d0f53c8586 Using a plugin to create the executor 2016-02-04 17:00:37 -08:00
Alex Dadgar
a2132950a5 Restart on-success shouldn't be user specifiable 2016-02-02 17:35:06 -08:00
Alex Dadgar
7ea6619928 Tests 2016-02-02 13:50:30 -08:00
Alex Dadgar
04f48c5bc5 Merge pull request #731 from hashicorp/f-reduce-client-alloc-pulls
Client only pulls update allocations from server
2016-02-02 13:26:36 -08:00
Diptanu Choudhury
9e7e214fac Updated the time stamp style 2016-02-01 17:41:47 -08:00
Alex Dadgar
410ae593e7 Fix double pull with introduction of AllocModifyIndex 2016-02-01 15:43:59 -08:00
Ranjib Dey
8b88902e9f fix typo in fs-* command usage text 2016-01-31 11:11:06 -08:00
Alex Dadgar
872eae28a9 Merge pull request #722 from iverberk/f-double-alloc-update
Add new RPC call to fetch a lightweight list of allocation information.
2016-01-30 16:39:09 -08:00
Ivo Verberk
60d8180279 Add additional API endpoint for requesting client specific node allocations. 2016-01-29 20:01:21 +01:00
Jake Champlin
38bf85b3cb Update agent_endpoint_test 2016-01-28 23:33:01 -05:00