e693d15a5b
Previously, Nomad was using a hand-made lookup table for looking up EC2 CPU performance characteristics (core count + speed = ticks). This data was incomplete and incorrect depending on region. The AWS API has the correct data but requires API keys to use (i.e. should not be queried directly from Nomad). This change introduces a lookup table generated by a small command line tool in Nomad's tools module which uses the Amazon AWS API. Running the tool requires AWS_* environment variables set. $ # in nomad/tools/cpuinfo $ go run . Going forward, Nomad can incorporate regeneration of the lookup table somewhere in the CI pipeline so that we remain up-to-date on the latest offerings from EC2. Fixes #7830
26 lines
977 B
Modula-2
26 lines
977 B
Modula-2
module github.com/hashicorp/nomad/tools
|
|
|
|
go 1.14
|
|
|
|
require (
|
|
github.com/a8m/tree v0.0.0-20181222104329-6a0b80129de4
|
|
github.com/aws/aws-sdk-go v1.35.5
|
|
github.com/client9/misspell v0.3.4
|
|
github.com/elazarl/go-bindata-assetfs v1.0.1
|
|
github.com/golang/protobuf v1.3.4
|
|
github.com/golangci/golangci-lint v1.24.0
|
|
github.com/google/go-cmp v0.4.0 // indirect
|
|
github.com/hashicorp/go-bindata v3.0.8-0.20180209072458-bf7910af8997+incompatible
|
|
github.com/hashicorp/go-hclog/hclogvet v0.1.3
|
|
github.com/hashicorp/go-msgpack v1.1.5
|
|
github.com/hashicorp/hcl/v2 v2.5.1
|
|
github.com/kr/text v0.2.0 // indirect
|
|
github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e // indirect
|
|
github.com/onsi/ginkgo v1.12.0 // indirect
|
|
github.com/onsi/gomega v1.9.0 // indirect
|
|
github.com/stretchr/testify v1.5.1 // indirect
|
|
golang.org/x/tools v0.0.0-20200502202811-ed308ab3e770 // indirect
|
|
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
|
|
gotest.tools/gotestsum v0.4.2
|
|
)
|