Commit Graph

535 Commits

Author SHA1 Message Date
Diptanu Choudhury
dabb8de14e Merge pull request #2081 from hashicorp/f-gc
Garbage collector for allocations
2016-12-20 11:19:32 -08:00
Diptanu Choudhury
7ebe4a6972 Added comments 2016-12-20 10:49:48 -08:00
Diptanu Choudhury
26e766e81a Merge pull request #2032 from hashicorp/b-allocs
Making the status command return the allocs of currently registered job
2016-12-19 18:10:27 -08:00
Diptanu Choudhury
615fbbe17a Added a garbage collector for allocations 2016-12-14 15:01:12 -08:00
Alex Dadgar
a6933ed9aa comment 2016-12-09 17:51:50 -08:00
Alex Dadgar
23dee058c7 fix high cpu usage + faster encoding 2016-12-09 17:33:10 -08:00
Alex Dadgar
723f8f0343 Benchmark 2016-12-09 14:44:50 -08:00
Alex Dadgar
2b50359edf Fix FD leak 2016-12-09 10:49:39 -08:00
Michael Schurter
cd3dab959e Merge pull request #2009 from hashicorp/f-use-embedded-consul
Add a chaos test for consul syncer and fix some races it found
2016-12-05 10:55:47 -08:00
Michael Schurter
19fd195f79 Add SyncNow test 2016-12-02 16:44:18 -08:00
Michael Schurter
ec4a0d2a22 Don't require serf advertise address for clients 2016-12-02 11:07:00 -08:00
Alex Dadgar
2048fb20c0 Merge pull request #2007 from hashicorp/b-stream-framer-panic
Fixes race on StreamFramer Destroy
2016-11-28 12:57:28 -08:00
Michael Schurter
4eb30022b2 Use net.JoinHostPort instead of fmt.Sprintf
Using fmt.Sprintf breaks IPv6 addresses.
2016-11-28 10:38:54 -08:00
Diptanu Choudhury
5eb4e8adb3 Making the status command return the allocs of currently registered job 2016-11-24 16:31:30 +01:00
Michael Schurter
5202944edb Remove lie from comment 2016-11-18 11:05:22 -08:00
Michael Schurter
ec4ce3bbe2 Fix incorrect lock usage around consul maps 2016-11-18 10:12:02 -08:00
Michael Schurter
f0c58d5fcb Fix SyncNow 2016-11-18 10:12:02 -08:00
Michael Schurter
eda45a65d1 New chaos test to exercise consul syncer 2016-11-18 10:12:02 -08:00
Alex Dadgar
81e2d53e2d Fixes race on StreamFramer Destroy
This PR:
* Fixes a race in which StreamFramer could panic while closing.
* Simplifies the logic of the StreamFramer
* Removes a potentially leaked goroutine
2016-11-17 20:14:47 -08:00
Alex Dadgar
0f1e5cbea2 Merge pull request #1996 from hashicorp/t-failing-tests
Fix some failing tests
2016-11-15 16:27:19 -08:00
Alex Dadgar
756738d9f1 Fix TestRktDriver_PortsMapping and TestAgent_LoadKeyrings 2016-11-15 15:49:05 -08:00
Alex Dadgar
1d7588a1fc Fix TestRetryJoin 2016-11-15 15:28:21 -08:00
Alex Dadgar
5d4e0f18bc Updated AWS speeds and network_speed now overrides
This PR:

* Makes AWS network speeds more granular
* Makes `network_speed` an override and not a default
* Adds a default of 1000 MBits if no network link speed is detected.

Fixes #1985
2016-11-15 13:55:51 -08:00
Michael Schurter
240318741a Switch syncer tests to use embedded consul 2016-11-15 10:22:25 -08:00
Alex Dadgar
96cbf337c1 Move parsing of vault token above validation such that it works in dev mode 2016-11-10 11:47:43 -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
Michael Schurter
778dfeffc4 Fix comment 2016-11-09 15:51:00 -08:00
Michael Schurter
3b4fe9a95b Fix typo in test 2016-11-09 13:16:56 -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
Michael Schurter
1304ba8b2d Addresses are just addresses - no ports
Store address+port in an unexported field for ease-of-use
2016-11-09 11:49:55 -08:00
Michael Schurter
1893772f4b Enable dev mode to allow using localhost in tests 2016-11-08 16:35:11 -08:00
Michael Schurter
1e0b4d76e8 Fix test that fails now that advertise can't be localhost 2016-11-08 16:22:04 -08:00
Michael Schurter
4aed5ba1e2 Restore sync/atomic use for consistency 2016-11-08 16:21:52 -08:00
Michael Schurter
4f15cac3ca Normalize configs for agent tests 2016-11-08 16:13:09 -08:00
Michael Schurter
eb89fd2793 Fix int pointer formatting and server config test 2016-11-08 16:02:20 -08:00
Michael Schurter
5cc435ab3e Move config normalization into config.go to ease testing 2016-11-08 15:44:10 -08:00
Michael Schurter
9420e73e7e Match old error messages 2016-11-08 15:25:29 -08:00
Michael Schurter
581d6a5320 Handle missing ports in addresses 2016-11-08 13:44:41 -08:00
Michael Schurter
2c4b19f1a6 Refactor getAdvertise into a func 2016-11-08 13:06:56 -08:00
Diptanu Choudhury
3e53d12522 Fixed a test 2016-11-08 13:01:56 -08:00
Michael Schurter
3dab50318e Failure to resolve advertise address isn't fatal 2016-11-08 11:17:22 -08:00
Michael Schurter
4e7587de17 Choose safer default advertise address
* -dev mode defaults bind & advertise to localhost
* Normal mode defaults bind to 0.0.0.0 & advertise to the resolved
  hostname. If the hostname resolves to localhost it will refuse to
  start and advertise must be manually set.
2016-11-08 11:17:16 -08:00
Diptanu Choudhury
f766f71500 Changing the API to use the new servermember datastructure 2016-11-06 10:30:43 -08:00
Diptanu Choudhury
b57a750739 Add an RPC endpoint for server members 2016-11-06 10:16:12 -08:00
Diptanu Choudhury
819e04437c Merge pull request #1931 from hashicorp/rename-vault-config
Rename vault config
2016-11-06 10:14:25 -08:00
Diptanu Choudhury
53a8e45d32 Disable http checks if TLS is enabled 2016-11-03 17:33:58 -07:00
Diptanu Choudhury
bbf2101923 Renaming TLS related vault config 2016-11-03 14:24:39 -07:00
Seth Vargo
c86a07d834 Separate agent configuration into its own pages
I apologize in advance for the rather long PR, but unfortunately there
is not an easy way to break this up into smaller chunks. This separates
the agent configuration into smaller, more consumable pieces just like
the job specification.
2016-11-02 18:30:00 -04:00
Diptanu Choudhury
c2de765a6d Merge pull request #1909 from hashicorp/region-wrapper
Making Nomad TLS configs region aware
2016-11-01 14:31:39 -07:00