Commit Graph

60 Commits

Author SHA1 Message Date
Michael Schurter
b8de3608fb Default no_host_uuid to true instead of false
The host UUID isn't unique in many virtualized cases and of dubious
value even when it is univerally unique. Default to a random UUID.
2017-06-23 16:23:01 -07:00
Michael Schurter
e3c1d35111 Lower default gc_max_allocs to 50 2017-05-12 15:57:27 -07:00
Michael Schurter
cc11d9a563 Add new gc_max_allocs tuneable
More than gc_max_allocs may be running on a node, but terminal allocs
will be garbage collected to try to keep the total number below the
limit.
2017-05-11 17:18:02 -07:00
Alex Dadgar
36dc330737 Various fixes
This PR:
* Uses Go 1.8 executable lookup
* Stores any err message from stats init method
* Allows overriding of Cpu Compute for hosts where it can't be detected
2017-03-14 12:56:31 -07:00
Alex Dadgar
701537e9c5 Limit parallelism during garbage collection
This PR introduces a parallelism limit during garbage collection. This
is used to avoid large resource usage spikes if garbage collecting many
allocations at once.
2017-03-10 16:27:00 -08:00
Alex Dadgar
b6991b3357 Allow random UUID 2017-02-27 13:42:37 -08:00
Alex Dadgar
27b2c677c0 Docker Image Coordinator
This PR introduces a coordinator for doing CRUD on a Docker image. It
should fix racy deletion of images. The issue before was images would be
deleted between prestart and start causing an error.
2017-02-24 13:20:40 -08:00
Diptanu Choudhury
6b0a1ebb58 Making the GC related fields tunable 2017-01-31 15:51:20 -08:00
Diptanu Choudhury
49e6735227 Merge pull request #2159 from hashicorp/b-consul-config
Fixed merging consul config
2017-01-18 16:14:54 -08:00
Diptanu Choudhury
6d669fb48e Moved functions to helper from structs 2017-01-18 15:55:14 -08:00
Diptanu Choudhury
84137b02c5 Filter executor log messages 2017-01-12 11:54:19 -08:00
Michael Schurter
de7351b959 Move chroot building into TaskRunner
* Refactor AllocDir to have a TaskDir struct per task.
* Drivers expose filesystem isolation preference
* Fix lxc mounting of `secrets/`
2017-01-05 16:31:49 -08:00
Michael Schurter
cd9fbfa0c7 Remove ServerName because we verify based on region 2016-11-01 14:17:31 -07:00
Diptanu Choudhury
b2bbd63d87 Fixed a bunch of TLS related failures 2016-10-26 14:08:46 -07:00
Diptanu Choudhury
f416ac7419 Moved tlsutil into helpers 2016-10-25 16:05:37 -07:00
Diptanu Choudhury
ecfb24d521 Moving the TLSConfig to structs 2016-10-25 15:57:38 -07:00
Diptanu Choudhury
0e6e5b3e7b Enabling TLS on cli 2016-10-25 10:39:17 -07:00
Diptanu Choudhury
15b2cc5d8c Changed the way TLS config is parsed 2016-10-24 13:56:19 -07:00
Diptanu Choudhury
11c1583467 Implemented TLS support for http and rpc 2016-10-23 22:22:00 -07:00
vishalnayak
6b83d07070 VaultClient for Nomad Client 2016-08-24 09:43:45 -04:00
Alex Dadgar
4efecc01ea Pass Vault config to client 2016-08-17 16:23:29 -07:00
Diptanu Choudhury
6811e084f4 Merge pull request #1518 from pubnub/feature/chroot-map-rebase
Add config field to specify chroot mapping for exec driver
2016-08-10 17:00:03 -07:00
Jay Oster
1876fc2b10 Add config field to specify chroot mapping for exec driver
- Same format as used by the internal chroot mapping
- Map: source_path -> dest_path
- Example HCL:

client {
  chroot_env {
    "/etc" = "/etc"
    "/lib" = "/lib"
    "/opt/projects/foo/bin" = "/usr/bin"
  }
}
2016-08-03 17:17:17 -07:00
Diptanu Choudhury
3593649e18 Allow operators to opt into publishing node and alloc metrics 2016-08-01 19:52:20 -07:00
Sean Chittenden
7dc7fcf052 Create config.DefaultConsulConfig() 2016-06-16 20:41:05 -07:00
Sean Chittenden
f1a40c0deb Disambiguate auto_join from auto_register, rename reg to auto_advertise.
Provide an option that describes the value to the user vs the
operation performed by the software.  Momentarily introducing
`auto_join`
2016-06-14 12:11:38 -07:00
Alex Dadgar
020f8b05d3 only support latest and remove ring buffer 2016-06-12 09:32:38 -07:00
Sean Chittenden
bbf7348abc Bump the default Consul client timeout from 500ms to 5s.
Requsted by: @dadgar
2016-06-10 15:50:11 -04:00
Sean Chittenden
6785e7632c Provide a default ConsulConfig for client/config.DefaultConfig()
Change the unit test to only test if the consul link exists, not the
value of the link.  The old test was hostname specific and therefore
would always be different based on the environment running the tests.
2016-06-10 15:50:11 -04:00
Sean Chittenden
b9f230b7b2 Move client.DefaultConfig() to client/config.DefaultConfig()
Resolves an import cycle in testing and is more appropriate because
the default should reside next to its struct definition.
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
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
Sean Chittenden
29be52f762 Speling police 2016-05-15 09:41:34 -07:00
Diptanu Choudhury
8c5aa0fe65 Added some docs 2016-05-14 00:36:26 -07:00
Diptanu Choudhury
a2237a6057 Implemented registering client and server services 2016-05-11 16:07:02 -07:00
Alex Dadgar
a1ff98a69a swap raw_exec and qemu in the blacklist 2016-03-25 12:43:50 -07:00
Alex Dadgar
cd89a97529 Operator specifiable blacklist for task's using certain users 2016-03-24 10:55:14 -07:00
Alex Dadgar
4f923f14b9 Pass environment variables from host to exec based tasks 2016-03-23 13:01:45 -07:00
Alex Dadgar
b818379576 add nomad fingerprinter 2016-03-22 17:12:30 -07:00
Alex Dadgar
4293811651 reserve resources on the node 2016-03-13 19:05:41 -07:00
Diptanu Choudhury
7f8f6712c5 Adding version information to snapshots 2016-02-24 19:06:30 -08:00
Alex Dadgar
48de53aed1 Strip as much copystructure as possible 2016-02-10 17:54:43 -08:00
Alex Dadgar
5b3792a509 safe but slow 2016-02-10 13:44:53 -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
Alex Dadgar
9f44780f89 User specifiable kill timeout and operator configurable max 2015-12-22 16:10:30 -08:00
max
7ff03041d7 Client config option "fingerprint.whitelist" 2015-11-24 16:18:49 +01:00