Mahmood Ali
9d86a5277d
api: actually set MemoryOversubscriptionEnabled ( #10493 )
2021-05-02 22:53:53 -04:00
Mahmood Ali
1d60aa667f
Merge pull request #10276 from hashicorp/b-api-operator-query-meta
...
api: set operator query meta
Set the query meta for LicenseGet request. It's expected by api consumers to determine the raft index.
2021-04-12 13:30:24 -04:00
Drew Bailey
af00546d2d
allow setting stale flag from cli to retrieve individual server license ( #10300 )
2021-04-05 15:35:14 -04:00
Mahmood Ali
1df9984a03
api: set operator query meta
2021-03-31 15:52:44 -04:00
Drew Bailey
4484d361ee
configuration and oss components for licensing ( #10216 )
...
* configuration and oss components for licensing
* vendor sync
2021-03-23 09:08:14 -04:00
Buck Doyle
288e50ad32
Add handling for license requests in OSS ( #9963 )
...
This changes the license-fetching endpoint to respond with 204 in
OSS instead of 501. It closes #9827 .
2021-02-08 12:53:06 -06:00
Dave May
71a022ad8c
Metrics gotemplate support, debug bundle features ( #9067 )
...
* add goroutine text profiles to nomad operator debug
* add server-id=all to nomad operator debug
* fix bug from changing metrics from string to []byte
* Add function to return MetricsSummary struct, metrics gotemplate support
* fix bug resolving 'server-id=all' when no servers are available
* add url to operator_debug tests
* removed test section which is used for future operator_debug.go changes
* separate metrics from operator, use only structs from go-metrics
* ensure parent directories are created as needed
* add suggested comments for text debug pprof
* move check down to where it is used
* add WaitForFiles helper function to wait for multiple files to exist
* compact metrics check
Co-authored-by: Drew Bailey <2614075+drewbailey@users.noreply.github.com >
* fix github's silly apply suggestion
Co-authored-by: Drew Bailey <2614075+drewbailey@users.noreply.github.com >
2020-10-14 15:16:10 -04:00
davemay99
ff1578f0f3
added comment to operator metrics function
2020-10-06 11:22:10 -04:00
davemay99
ec09c593b5
metrics return bytes instead of string for more flexibility
2020-10-06 10:49:15 -04:00
davemay99
bf8bdc94f8
Add metrics command / output to debug bundle
2020-10-05 22:30:01 -04:00
Drew Bailey
ef7b7b2a9b
allow raw body instead of JSON encoded string ( #8211 )
2020-06-19 10:57:09 -04:00
Mahmood Ali
867147c90e
api: add snapshot restore
2020-06-07 15:47:07 -04:00
Mahmood Ali
3b04afee2e
Merge pull request #8047 from hashicorp/f-snapshot-save
...
API for atomic snapshot backups
2020-06-01 07:55:16 -04:00
Drew Bailey
43ab5cd7ed
Revert "disable license cli commands"
2020-05-26 12:39:39 -04:00
Mahmood Ali
1bec2425b0
Add api/ package function to save snapshot
2020-05-21 20:04:38 -04:00
Drew Bailey
9dca54c45d
remove tags from api struct
2020-05-11 16:38:35 -04:00
Drew Bailey
92e8e1ace2
disable license cli commands
2020-05-11 13:49:29 -04:00
Drew Bailey
d5f99a06e2
update license command output to reflect api changes
2020-05-05 10:28:58 -04:00
Mahmood Ali
5078e0cfed
tests and some clean up
2020-05-01 13:13:30 -04:00
Charlie Voiselle
6571ccefbc
Add SchedulerAlgorithm to SchedulerConfig
2020-05-01 13:13:29 -04:00
Drew Bailey
3876c1a68d
add license reset command to commands
...
help text formatting
remove reset
no signed option
2020-04-30 14:46:20 -04:00
Drew Bailey
8b222d79d5
license cli commands
...
cli changes, formatting
2020-04-30 14:46:17 -04:00
Preetha Appan
a9d45c5048
Rename to match system scheduler config.
...
Also added docs
2019-05-03 14:06:12 -05:00
Preetha Appan
c9edc45661
Add config to disable preemption for batch/service jobs
2019-04-29 18:48:07 -05:00
Preetha Appan
3eeb229116
change path to v1/scheduler/configuration
2018-11-12 15:57:45 -06:00
Preetha Appan
1fe9203aa6
Use response object/querymeta/writemeta in scheduler config API
2018-11-10 10:31:10 -06:00
Preetha Appan
88005852e3
Introduce a response object for scheduler configuration
2018-10-30 11:06:32 -05:00
Preetha Appan
6966e3c3e8
Make preemption config a struct to allow for enabling based on scheduler type
2018-10-30 11:06:32 -05:00
Preetha Appan
784b96c104
Support for new scheduler config API, first use case is to disable preemption
2018-10-30 11:06:32 -05:00
Josh Soref
cc582be46e
spelling: configuration
2018-03-11 17:48:04 +00:00
Kyle Havlovitz
254458703b
Add raft remove by id endpoint/command
2018-01-16 13:35:32 -08:00
Kyle Havlovitz
de90db139a
Added support for v2 raft APIs and -raft-protocol option
2017-12-12 10:17:16 -06:00
Alex Dadgar
a9e3a41407
Enable more linters
2017-09-26 15:26:33 -07:00
Michael Schurter
2b7e091424
Fix API panic and bad missing port check
...
The format of the missing port error message changed from Go 1.7 to 1.8.
The fix is to just use strings.Contains instead of strings.HasPrefix
when looking for the "missing port" part.
Also add an error return to Client.newRequest as parsing the path
processes arbitrary user input and would panic if given an invalid URL.
See: https://groups.google.com/d/topic/nomad-tool/gi3-CTE7oXo/discussion
2017-02-20 11:12:34 -08:00
Alex Dadgar
24995a6749
Operator command/endpoint/documentation
2017-02-09 18:04:46 -08:00