Sean Chittenden
7c6ad53d89
Rename NewConsulService to NewSyncer
2016-06-10 15:49:37 -04:00
Sean Chittenden
f280c59633
Rename client/consul/sync.PeriodicSync to Run
2016-06-10 15:49:37 -04:00
Sean Chittenden
d84d71847c
Rename client/consul/sync.ConsulService to client/consul/sync.Syncer
...
Syncer describes the responsibility and actions of the type.
2016-06-10 15:49:37 -04:00
Sean Chittenden
092e07f334
Create a nomad/structs/config to break an import cycle.
...
Flattening and normalizing the various Consul config structures and
services has led to an import cycle. Break this by creating a new package
that is intended to be terminal in the import DAG.
2016-06-10 15:48:36 -04:00
Sean Chittenden
7bf6af8c2e
Fix copy pasta comment.
...
These parameters are used to bootstrap Nomad servers, not Consul servers.
2016-06-10 15:48:36 -04:00
Sean Chittenden
af72200cf4
Distill config.Config.ConsulConfig down to config.Config.Consul
...
The enclosed struct provides the necessary context
2016-06-10 15:48:36 -04:00
Sean Chittenden
8e256471a9
Rename ConsulConfig to ConsulAgentConfig
2016-06-10 15:48:36 -04:00
Sean Chittenden
1f7bfb30d9
Rename consulConfig to consulAgentConfig
2016-06-10 15:48:36 -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
Sean Chittenden
4030e380d6
Use the correctly typed rand.Int* variant
2016-06-10 15:48:36 -04:00
Sean Chittenden
3f9d3854dd
Seed random once in main
2016-06-10 15:48:36 -04:00
Sean Chittenden
284661410d
Fix small typo
2016-06-10 15:48:36 -04:00
Sean Chittenden
2d2392749a
Use rand.Int*n() where appropriate
2016-06-10 15:48:36 -04:00
Sean Chittenden
7db2eb03c4
Use consul/lib's RandomStagger
...
Removes four redundant copies of the method in the process.
2016-06-10 15:48:36 -04:00
Sean Chittenden
a1cb3f14d0
Use consul/lib's RateScaledInterval
2016-06-10 15:48:36 -04:00
Alex Dadgar
2be78d2ba8
fix types
2016-06-10 11:52:15 -07:00
Alex Dadgar
359cf00d3d
Merge pull request #1252 from hashicorp/f-blocked-eval-text
...
Better placement failure text for blocked evals
2016-06-10 11:41:41 -07:00
Alex Dadgar
9112481700
Merge pull request #1251 from hashicorp/f-alloc-status-resources
...
Alloc-status only shows measured statistics and fixes to CPU calculations
2016-06-10 11:39:41 -07:00
Alex Dadgar
a8b1d31812
use time.Second instead of our own const
2016-06-10 11:38:59 -07:00
Alex Dadgar
185c896ac0
helper
2016-06-10 11:02:15 -07:00
Alex Dadgar
f6aa384efb
better placement failure text for blocked evals
2016-06-10 10:56:32 -07:00
Alex Dadgar
693c8f9e42
Alloc-status only shows measured statistics and fixes to CPU calculations
2016-06-10 10:38:29 -07:00
Diptanu Choudhury
cf106e90c7
Merge pull request #1248 from hashicorp/fix-node-cpu-usage
...
Fixed calculation of cpu usage percent in user and sys mode for pids
2016-06-09 20:47:53 -07:00
Diptanu Choudhury
d594d95012
Fixed merge conflicts
2016-06-10 04:47:34 +01:00
Diptanu Choudhury
06e90cb6c0
Using named variables
2016-06-10 04:45:16 +01:00
Alex Dadgar
cc691d734b
Merge pull request #1247 from hashicorp/f-measured-resources
...
Annotate what statistics are measured
2016-06-09 20:07:47 -07:00
Diptanu Choudhury
8d52390aca
Fixed calculation of cpu usage percent in user and sys mode for pids
2016-06-10 04:06:32 +01:00
Alex Dadgar
17af581d93
Annotate what is measured
2016-06-09 19:45:41 -07:00
Diptanu Choudhury
b9594f64e5
Merge pull request #1246 from hashicorp/fix-node-cpu-usage
...
Changed the logic of calculation of node cpu usage
2016-06-09 19:29:12 -07:00
Diptanu Choudhury
e4bad88a87
Changed the logic of calculation of node cpu usage
2016-06-10 03:24:42 +01:00
Alex Dadgar
6566420346
Merge pull request #1244 from hashicorp/b-eval-reblock-test-hardening
...
Don't dequeue requeued evals in tests
2016-06-09 11:35:42 -07:00
Alex Dadgar
f5041366f6
changelog
2016-06-08 14:12:23 -07:00
Alex Dadgar
e5fd46204b
Merge pull request #1241 from hashicorp/v-vendor-go-plugin
...
vendor go-plugin - removes tmp files used to communicate with plugin
2016-06-08 14:11:32 -07:00
Diptanu Choudhury
c06568c638
Merge pull request #1242 from matthaias/patch-1
...
Change 'fs ls' cmd to 'fs' cmd
2016-06-08 12:04:13 -07:00
Matthias
6cd4356952
Change 'fs ls' cmd to 'fs' cmd
2016-06-08 20:58:20 +02:00
Alex Dadgar
5ffb2f024c
Merge pull request #1237 from hashicorp/b-regions
...
CLI can forward request to different regions
2016-06-08 11:00:23 -07:00
Alex Dadgar
077e151f92
vendor go-plugin - removes tmp files used to communicate with plugin
2016-06-08 10:34:18 -07:00
Diptanu Choudhury
4fc5eedfa7
Moving the stats error to the bottom of alloc status
2016-06-08 12:28:41 -04:00
Diptanu Choudhury
5b50e01b93
Moving the stats error to the bottom of node status
2016-06-08 12:21:20 -04:00
Diptanu Choudhury
52dd756afe
Fixed the formating of % in nomad alloc status
2016-06-08 08:53:33 -04:00
Diptanu Choudhury
22b93c02ab
Merge pull request #1229 from hashicorp/update-plugin
...
Updated go-plugin dependency
2016-06-08 05:36:07 -07:00
Alex Dadgar
9534c4c062
Merge pull request #1238 from hashicorp/b-restore-stop-collection
...
Fix resource collection channel being nil on restore
2016-06-07 15:03:29 -07:00
Alex Dadgar
cd36c4a7a3
fix channel being nil on restore
2016-06-07 15:03:08 -07:00
Alex Dadgar
baff94f3ba
docs
2016-06-07 11:33:55 -07:00
Alex Dadgar
cc80c2442f
Run and plan automatically sets the region
2016-06-07 11:28:07 -07:00
Alex Dadgar
92ea016fa0
Add region flag and environment variable
2016-06-07 11:16:04 -07:00
Alex Dadgar
f76eabfb71
don't dequeue
2016-06-07 09:51:20 -07:00
Alex Dadgar
aca6b2d8a8
Merge pull request #1227 from hashicorp/upstream-scada-provider
...
Use upstream high-level SCADA provider
2016-06-07 09:47:24 -07:00
Alex Dadgar
09db578b92
Merge pull request #1234 from joeshaw/patch-1
...
add `make bootstrap` step for source compilation
2016-06-07 09:44:18 -07:00