Michael Schurter
91e8fd098f
mock_driver: improve Kill() logging
2018-03-21 16:49:48 -07:00
Alex Dadgar
b59bea98b0
Docker driver doesn't return errors but injects into the DriverInfo
2018-03-21 15:15:26 -04:00
Chelsea Holland Komlo
06a306e460
improve comments; update watchDriver
2018-03-21 15:15:26 -04:00
Chelsea Holland Komlo
240fee4848
fix up codereview feedback
2018-03-21 15:15:26 -04:00
Chelsea Holland Komlo
fd25db9e1d
updating comments; locking concurrent node access
2018-03-21 15:15:26 -04:00
Chelsea Holland Komlo
9dfb5c6b46
go style; update comments
2018-03-21 15:15:25 -04:00
Chelsea Holland Komlo
9ec5a93bc1
fix scheduler driver name; create node structs file
2018-03-21 15:15:25 -04:00
Chelsea Holland Komlo
1570972cb3
add concept of health checks to fingerprinters and nodes
...
fix up feedback from code review
add driver info for all drivers to node
2018-03-21 15:15:25 -04:00
Michael Schurter
68b2e9678f
Merge pull request #3990 from hashicorp/f-rkt-groups
...
rkt: allow specifying --group
2018-03-16 11:19:53 -07:00
Michael Schurter
eeaaa60e5a
rkt: allow specifying --group
2018-03-16 11:08:22 -07:00
Michael Schurter
b096fd7539
docker: make volume errors recoverable
...
The interface+mock just to test this one little error handling may seem
like overkill but there was just no other way to write an automated test
around this logic as there's no way to simluate this error with stock
Docker.
2018-03-15 17:52:43 -07:00
Michael Schurter
a90ce65def
Merge pull request #3958 from simplesurance/swappiness
...
fix: disable swap for executor_linux allocations
2018-03-13 10:10:22 -07:00
Fabian Holler
fbc461b904
fix: disable swap for executor_linux allocations
...
A comment in the nomad source code states that swapping for
executor_linux allocations is disabled but it wasn't.
Nomad wrote -1 to the memsw.limit_in_bytes cgroup file to disable
swapping.
This has the following problems:
1.) Writing -1 to the file does not disable swapping. It sets
the limit for memory and swap to unlimited.
2.) On common Linux distributions like Ubuntu 16.04 LTS the
memsw.limit_in_bytes cgroup file does not exist by default.
The memsw.limit_in_bytes file only exist if the Linux kernel is
build with CONFIG_MEMCG_SWAP=yes and either
CONFIG_MEMCG_SWAP_ENABLED=yes or when the kernel parameter
swapaccount=1 is passed during boot.
Most Linux distributions disable swap accounting by default because
of higher memory usage.
Nomad silently ignores if writing to the memsw.limit_in_bytes file
fails. The allocation succeeds, no message is logged to notify the
user.
To ensure that disabling swap works on common Linux kernels, disable
swapping by writing 0 to the memory.swappiness file.
Using the memory.swappiness file only requires that the kernel is
compiled with CONFIG_MEMCG=yes. This is the default in common Linux
kernels.
2018-03-13 10:52:50 +01:00
Michael Schurter
8da7335c16
non-Existent -> nonexistent
...
Reverting from #3963
https://www.merriam-webster.com/dictionary/existent
2018-03-12 11:59:33 -07:00
Josh Soref
2bf249b9be
spelling: unexpected
2018-03-11 19:08:07 +00:00
Josh Soref
ef6a98388a
spelling: shutdown
2018-03-11 18:55:49 +00:00
Josh Soref
a7476398be
spelling: severity
2018-03-11 18:53:52 +00:00
Josh Soref
06760728ac
spelling: serialize
2018-03-11 18:53:39 +00:00
Josh Soref
c39b9a0f4f
spelling: secrets
2018-03-11 18:53:26 +00:00
Josh Soref
98b6dd5cae
spelling: safety
2018-03-11 18:52:54 +00:00
Josh Soref
e4d4b94040
spelling: retrieved
2018-03-11 18:51:40 +00:00
Josh Soref
b405713969
spelling: resource
2018-03-11 18:51:03 +00:00
Josh Soref
a657cbaced
spelling: removes
2018-03-11 18:41:43 +00:00
Josh Soref
31651d124d
spelling: remnants
2018-03-11 18:41:26 +00:00
Josh Soref
bd2912978b
spelling: isolation
2018-03-11 18:19:02 +00:00
Josh Soref
9655acf79a
spelling: inspect
2018-03-11 18:15:27 +00:00
Josh Soref
0ef3e4229b
spelling: initialization
2018-03-11 18:18:37 +00:00
Josh Soref
ac40c42533
spelling: existent
2018-03-11 18:30:37 +00:00
Josh Soref
8f4cbb2157
spelling: executor
2018-03-11 18:05:31 +00:00
Josh Soref
84d6c92937
spelling: documentation
2018-03-11 17:55:21 +00:00
Josh Soref
087ea02bb4
spelling: disable
2018-03-11 17:55:12 +00:00
Josh Soref
39f3d27130
spelling: destroy
2018-03-11 17:54:13 +00:00
Josh Soref
e8b989e328
spelling: constraints
2018-03-11 17:50:28 +00:00
Josh Soref
3c42f3f067
spelling: conjunction
2018-03-11 17:48:37 +00:00
Josh Soref
c674ba4231
spelling: cancelled
2018-03-11 17:45:47 +00:00
Josh Soref
10ebc09390
spelling: cancelable
2018-03-11 17:45:34 +00:00
Josh Soref
85278c9e1b
spelling: assert
2018-03-11 17:41:33 +00:00
Michael Schurter
2627721973
Merge pull request #3917 from jaininshah9/master
...
changing the formula to correctly pass the CPUQota to docker
2018-02-28 20:00:37 -08:00
Jainin Shah
9752e08322
adding comments to the change
2018-02-28 16:19:51 -08:00
Preetha Appan
0384631f32
Fix go vet errors
2018-02-28 12:21:27 -06:00
Jainin Shah
a64fd0c47c
changing the formula to correctly pass the CPUQota to docker
2018-02-27 12:32:23 -08:00
Alex Dadgar
f062c93e95
Client tls
2018-02-15 15:22:57 -08:00
Alex Dadgar
a9ed7a86e4
Server tests of logs
2018-02-15 13:59:02 -08:00
Chelsea Komlo
6820c96895
Merge pull request #3807 from hashicorp/f-client-add-fingerprint-manager
...
Add fingerprint manager to manage fingerprinting node
2018-02-13 11:22:50 -05:00
Chelsea Holland Komlo
12ee25d852
extract test helper
...
lock concurrent accesses to node
comment exported method
2018-02-12 18:30:10 -05:00
Michael Schurter
ea860e929d
Merge pull request #3819 from schmichael/qemu-graceful-shutdown-alpine
...
Test QEMU graceful shutdown
2018-02-12 12:32:14 -08:00
Michael Schurter
f3829d9323
Improve test logging
2018-02-12 11:25:52 -08:00
Michael Schurter
c7c4564f1d
Merge pull request #3825 from jaininshah9/master
...
add a flag for cpu_hard_limit
2018-02-08 20:40:38 -08:00
Michael Schurter
bc1894fb8e
Merge branch 'master' into f-cpu_hard_limit
2018-02-08 20:14:29 -08:00
Alan Scherger
83ca7beeeb
drivers: use ctx.TaskEnv for mount points
2018-02-08 12:59:20 -06:00