Commit Graph

3233 Commits

Author SHA1 Message Date
Alex Dadgar
e0283ab273 Merge pull request #892 from achanda/rkt_dns
Enable passing DNS info to the rkt driver
2016-03-10 08:54:26 -08:00
Diptanu Choudhury
aeef023b7c Update CHANGELOG.md 2016-03-09 18:38:28 -08:00
Diptanu Choudhury
247dea0235 Merge pull request #896 from hashicorp/f-task-instance
Add allocation index environment variable
2016-03-09 18:34:32 -08:00
Diptanu Choudhury
024033475d Merge pull request #878 from hashicorp/b-kill-timeout-update
client: Updating kill timeout adheres to operator specified maximum
2016-03-09 18:33:40 -08:00
Alex Dadgar
495d0e6dc2 Add allocation index environment variable 2016-03-09 18:09:51 -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
2524231738 up cached connection time 2016-03-09 10:37:56 -08:00
Abhishek Chanda
f19fb4a374 Enable passing DNS info to the rkt driver 2016-03-08 18:59:11 -08:00
Diptanu Choudhury
0114d65025 Updated Changelog 2016-03-08 14:57:08 -08:00
Diptanu Choudhury
f01a94c5fd Merge pull request #893 from hashicorp/docker-fingerprint
Making the docker fingerprinter periodic
2016-03-08 14:06:57 -08:00
Diptanu Choudhury
fa6707ae5c Making the docker fingerprinter periodic 2016-03-08 12:02:55 -08:00
Alex Dadgar
3040c4dab2 Fix test 2016-03-08 11:41:26 -08:00
Diptanu Choudhury
f4b4034137 Updated CHANGELOG 2016-03-08 10:13:46 -08:00
Diptanu Choudhury
677b92df30 Merge pull request #858 from ErikEvenson/prs/fix-aws-ecr
Fix AWS ECR private repository usage
2016-03-07 16:54:53 -08:00
Alex Dadgar
8588b6cf23 changelog 2016-03-07 13:13:38 -08:00
Alex Dadgar
171eff7d5c Merge pull request #890 from hashicorp/b-fs-panic
Guard client/ api to ensure the client is running
2016-03-07 13:01:59 -08:00
Alex Dadgar
6454d7bb9f Guard client/ api to ensure the client is running 2016-03-07 11:26:54 -08:00
Jake Champlin
4aeb482518 Merge pull request #888 from hashicorp/f-resource-usage-printing
Print resource usage w/ alloc-status + node-status
2016-03-07 10:23:58 -05:00
Jake Champlin
9ed3150f6e Cleanup style, and make cleaner 2016-03-07 09:58:35 -05:00
Jake Champlin
35410e1487 Print resource usage w/ alloc-status + node-status
When alloc-status is called, in it's long form only, print the resource
utilization for that single allocation.

When node-status is called, in it's long form only, print the TOTAL
resource utilization that is occurring on that single node.

Nomad Alloc Status:

```
% nomad alloc-status 195d3bf2
ID              = 195d3bf2
Eval ID         = c917e3ee
Name            = example.cache[1]
Node ID         = 1b2520a7
Job ID          = example
Client Status   = running
Evaluated Nodes = 1
Filtered Nodes  = 0
Exhausted Nodes = 0
Allocation Time = 17.73µs
Failures        = 0

==> Task "redis" is "running"
Recent Events:
Time                   Type      Description
04/03/16 21:20:45 EST  Started   Task started by client
04/03/16 21:20:42 EST  Received  Task received by client

==> Status
Allocation "195d3bf2" status "running" (0/1 nodes filtered)
  * Score "1b2520a7-6714-e78d-a8f7-68467dda6db7.binpack" = 1.209464
  * Score "1b2520a7-6714-e78d-a8f7-68467dda6db7.job-anti-affinity" = -10.000000

==> Resources
CPU  MemoryMB  DiskMB  IOPS
500  256       300     0
```

Nomad Node Status:

```
% nomad node-status 57b3a55a
ID         = 57b3a55a
Name       = biscuits
Class      = <none>
DC         = dc1
Drain      = false
Status     = ready
Attributes = arch:amd64, cpu.frequency:3753.458875, cpu.modelname:Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz, cpu.numcores:8, cpu.totalcompute:30027.671000, driver.docker:1, driver.docker.version:1.10.2, driver.exec:1, driver.raw_exec:1, hostname:biscuits, kernel.name:linux, kernel.version:4.4.0-9-generic, memory.totalbytes:25208934400, os.name:ubuntu, os.version:16.04, unique.cgroup.mountpoint:/sys/fs/cgroup, unique.network.ip-address:127.0.0.1, unique.storage.bytesfree:219781419008, unique.storage.bytestotal:246059892736, unique.storage.volume:/dev/sdb3

==> Allocations
ID        Eval ID   Job ID   Task Group  Desired Status  Client Status
2c236883  aa11aca8  example  cache       run             running
32f6e3d6  aa11aca8  example  cache       run             running

==> Resource Utilization
CPU   MemoryMB  DiskMB  IOPS
1000  512       600     0
```
2016-03-07 09:58:35 -05:00
Alex Dadgar
6fabf95e65 fix test 2016-03-06 18:41:33 -08:00
Erik Evenson
d1f28431c4 moves transform to Init() 2016-03-06 19:00:40 -06:00
Erik Evenson
5859c95df8 Merge branch 'master' into study/aws-ecr-1 2016-03-06 18:18:20 -06:00
Alex Dadgar
3fac6fe992 Merge pull request #886 from hashicorp/f-configurable-heartbeat
agent: Configurable heartbeat grace
2016-03-04 18:11:45 -08:00
Alex Dadgar
aeb38b5116 Merge pull request #887 from hashicorp/b-nack-timeout
Fix bug introduced with paused nack timers
2016-03-04 18:10:21 -08:00
Alex Dadgar
5cc91ecd79 Remove outstanding reset from plan applier 2016-03-04 17:25:37 -08:00
Alex Dadgar
022b6dd528 Fix bug introduced with paused nack timers 2016-03-04 16:17:14 -08:00
Alex Dadgar
88c590dede agent: Configurable heartbeat 2016-03-04 15:44:12 -08:00
Alex Dadgar
13a2bff7f8 Merge branch 'master' of github.com:hashicorp/nomad 2016-03-04 15:20:57 -08:00
Alex Dadgar
6b67d6ba1c changelog 2016-03-04 15:20:51 -08:00
Alex Dadgar
8d5c90900e Merge pull request #884 from hashicorp/f-nack-timeout-pausing
core: Pause/Resume Nack timeout while eval is in plan queue
2016-03-04 12:59:59 -08:00
Alex Dadgar
72901a9ac1 core: Pause NackTimeout while in the plan_queue as progress is being made 2016-03-04 12:59:35 -08:00
Alex Dadgar
482118fbc0 Merge pull request #880 from achanda/docker_update
Test against latest stable docker
2016-03-04 10:52:37 -08:00
Alex Dadgar
44f5d75315 Remove documentation about assigning node-id 2016-03-04 10:36:30 -08:00
Abhishek Chanda
1f77aa5dfe Always use the new package config if there is a conflict 2016-03-03 20:40:34 -08:00
Abhishek Chanda
2b48bfb3a3 Test against latest stable docker 2016-03-03 20:40:34 -08:00
Jake Champlin
0e1ca4b2ce Merge pull request #879 from hashicorp/f-add-allocation-output-node-status
Include number of allocations in node-status
2016-03-03 15:37:00 -05: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
Alex Dadgar
6ef841bc34 Updating kill timeout adheres to operator specified maximum 2016-03-03 09:21:21 -08: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
Diptanu Choudhury
225ed95446 Merge pull request #768 from achanda/b-rkt
A number of rkt fixes
2016-03-02 21:29:48 -08:00
Alex Dadgar
b9ccd432c8 changelog 2016-03-02 17:00:40 -08:00
Alex Dadgar
4a243e78d3 Add /sbin and /usr/sbin/ to chroot 2016-03-02 16:32:31 -08:00
Alex Dadgar
f51a95994b Merge pull request #874 from hashicorp/b-consul-concurrent-map-access
Remove a concurrent map access
2016-03-02 16:30:42 -08:00
Alex Dadgar
9a23bc4c1e Merge branch 'master' of github.com:hashicorp/nomad 2016-03-02 16:27:11 -08:00
Alex Dadgar
76856961af Killing a docker container that is dead is not an error 2016-03-02 16:27:01 -08:00
Diptanu Choudhury
7e674f5922 Merge branch 'master' of github.com:hashicorp/nomad 2016-03-02 15:04:21 -08:00
Diptanu Choudhury
833d9500f4 Updated changelog to contain libcontainer fix 2016-03-02 15:03:58 -08:00
Alex Dadgar
5aa612c34a Changelog 2016-03-02 15:00:53 -08:00