Commit Graph

71 Commits

Author SHA1 Message Date
Alex Dadgar
53dbc4f127 remove atlas 2017-11-02 11:27:21 -07:00
Alex Dadgar
312681bffd Fix on ipv6 2017-10-19 16:49:58 -07:00
Alex Dadgar
a9e3a41407 Enable more linters 2017-09-26 15:26:33 -07:00
Alex Dadgar
ddc2efa4ac sync 2017-09-19 10:08:23 -05:00
Chelsea Holland Komlo
59a891cb27 enabling prometheus metrics should be a config option 2017-09-13 19:21:21 +00:00
Chelsea Holland Komlo
1df5310c6e tagged metrics config options should be on telemetry config
better api example, add telemetry documentation
2017-09-06 15:25:36 +00:00
Chelsea Holland Komlo
68686cd69a final code review fixups 2017-09-05 18:47:44 +00:00
Chelsea Holland Komlo
681a3f337a fixups from code review 2017-09-05 14:13:34 +00:00
Armon Dadgar
44fe0afc9f Passthrough replication token for token/policy replication 2017-09-04 13:05:53 -07:00
Armon Dadgar
d7f3b896cd nomad: adding ACL bootstrapping endpoint 2017-09-04 13:05:53 -07:00
Armon Dadgar
9fdea05804 agent: Adding ACL block configuration 2017-09-04 13:04:45 -07:00
Alex Dadgar
bb45b95bc4 Allow tuning of heartbeat ttls
This PR allows tuning of heartbeat TTLs. An example of very aggressive
settings is as follows:

```
server {
  heartbeat_grace = "1s"
  min_heartbeat_ttl = "1s"
  max_heartbeats_per_second = 200.0
}
```
2017-07-19 09:38:35 -07:00
Michael Schurter
3e13aa253d Properly normalize IPv6 addresses
A fix to #2739 instead of forcing IPv6 users to always specify a port as
well.

Prior to this commit IPv6 advertise addresses which lacked a port would
fail instead of having the default port added because
`net.SplitHostPort(someipv6)` returns a different error than
`net.SplitHostPort(someipv4)`.
2017-06-29 10:46:31 -07:00
Michael Schurter
fe79c8ac88 Don't autoadvertise private ip if bind=localhost
A slight improvement to #2399 - if bind is localhost, return an error
instead of advertising a private ip. The advertised ip isn't valid and
will just cause errors on use. It's better to fail with an error message
instructing users how to fix the problem.
2017-05-30 11:47:29 -07:00
Michael Schurter
b9bd1b0e95 Merge pull request #2399 from multani/sockaddr-template
Add support for late binding to IP addresses using go-sockaddr/template
2017-05-11 17:25:03 -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
Jonathan Ballet
5fb0b30500 Allow to advertise 127.0.0.1 in non-dev mode if explicitly configured 2017-03-13 23:05:06 +01:00
Jonathan Ballet
a61b70bd75 Default to private IP advertise address in non-dev mode 2017-03-13 23:01:11 +01:00
Jonathan Ballet
02af50f832 Parse template before splitting host/port
Ref: a33af1ca0b (r105444568)
2017-03-13 21:40:37 +01: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
Jonathan Ballet
a33af1ca0b Add support for late binding to IP addresses using go-sockaddr/template 2017-02-26 23:28:23 +01:00
David Bresson
1a6c67d106 extend config merge test to test merging to empty config 2017-02-03 08:35:18 -08:00
Diptanu Choudhury
9d44247b11 Merging GC related config values 2017-02-02 13:38:11 -08:00
Alex Dadgar
d212d40b18 Fix Consul Config Merging/Copying
This PR fixes config merging/copying code.

Fixes https://github.com/hashicorp/nomad/issues/2264
2017-02-02 11:12:07 -08:00
Michael Schurter
d1c45dfc9c Fix tests 2017-01-20 17:04:52 -08:00
Michael Schurter
fa67fb6a71 Merge pull request #1955 from hashicorp/b-fix-default-advertise
Choose safer default advertise address
2016-11-09 16:03:17 -08:00
matt maier
e607c6f329 Update Circonus integration expose Check Display Name and Check Tags
configuration options.
2016-11-09 15:12:30 -05:00
Michael Schurter
5fa84d5658 Add unit test for missing port helper func 2016-11-09 11:55:10 -08:00
Christian Winther
43a11000b0 initial work on datadog telemetry 2016-10-15 10:49:33 +02:00
Alex Dadgar
9ff2bf0bff Fix Vault parsing of booleans 2016-10-10 18:04:39 -07:00
Diptanu Choudhury
5e1fdd9784 Added a test 2016-08-31 11:46:51 -07:00
Alex Dadgar
2eed545daa Address field name feedback 2016-08-17 16:23:29 -07:00
Alex Dadgar
2c1fd77dfd Change token/role names 2016-08-17 16:23:29 -07:00
Alex Dadgar
f7f86941a3 change config variable names to match vault 2016-08-17 16:23:29 -07:00
Alex Dadgar
9ab0de1877 Parse Vault Config 2016-08-17 16:23:29 -07:00
Kenjiro Nakayama
fbb2d5cd5d Return error when client failed to collect host stats 2016-08-11 09:38:28 +09:00
Jay Oster
95c1d76544 Fix ConfigMerge test with chroot config 2016-08-08 18:59:18 -07:00
matt maier
d92dd0dc5a Circonus integration for telemetry metrics 2016-07-22 12:33:10 -04:00
Dara Kong
4c6c3d0b41 Fix "http_api_response_headers" config not working
On startup, the agent starts with either a dev or default config.  Extra
config files are merged into final config.

The HTTPAPIResponseHeaders config was missing from the merge logic
therefore it would always result in empty value (regardlesss of any
config files specified).
2016-05-16 20:57:54 -07:00
Alex Dadgar
17d021e912 Get rid of individual network resources 2016-03-11 19:02:44 -08:00
Alex Dadgar
5f53f7382a Custom parsing of Nomad config with validation + Reserved resources block (not used yet) 2016-03-11 18:24:58 -08:00
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
Diptanu Choudhury
8b2f94ff6f Added a test for merge 2016-02-08 16:27:31 -08:00
Diptanu Choudhury
6c32119ee7 Allow users to configure arbitrary headers in config 2016-01-22 11:00:43 -08:00
Ivo Verberk
ab9409184a Shorten CLI identifiers
* Truncate all UUID identifiers to eight characters by default
* Refactor the node identifier to an auto-generated UUID
* Created and updated tests and mocks
2016-01-14 21:57:43 +01:00
Alex Dadgar
9f44780f89 User specifiable kill timeout and operator configurable max 2015-12-22 16:10:30 -08:00
Chris Hines
cacd8a78b3 Use minimum OS specific path.
This change ensures LoadConfig and LoadConfigDir report consistent paths to files and those paths use the appropriate path separator for the target OS. Note that LoadConfigDir constructs paths with filepath.Join, which calls filepath.Clean, which calls filepath.FromSlash.
2015-12-14 14:59:19 -05:00
Chris Bednarski
67eb18d9aa Use filepath.FromSlash so the test uses platform-specific path separators 2015-12-10 12:22:41 -08:00
Alex Dadgar
2e3fd73487 Merge pull request #527 from asteris-llc/master
Add cluster join command line options and configuration options
2015-12-09 13:14:00 -08:00