Lang Martin
9f850016bd
csi: fix index maintenance for CSIVolume and CSIPlugin tables ( #7049 )
...
* state_store: csi volumes/plugins store the index in the txn
* nomad: csi_endpoint_test require index checks need uint64()
* nomad: other tests using int 0 not uint64(0)
* structs: pass index into New, but not other struct methods
* state_store: csi plugin indexes, use new struct interface
* nomad: csi_endpoint_test check index/query meta (on explicit 0)
* structs: NewCSIVolume takes an index arg now
* scheduler/test: NewCSIVolume takes an index arg now
2020-03-23 13:58:29 -04:00
Lang Martin
f370e25843
CSI: Scheduler knows about CSI constraints and availability ( #6995 )
...
* structs: piggyback csi volumes on host volumes for job specs
* state_store: CSIVolumeByID always includes plugins, matches usecase
* scheduler/feasible: csi volume checker
* scheduler/stack: add csi volumes
* contributing: update rpc checklist
* scheduler: add volumes to State interface
* scheduler/feasible: introduce new checker collection tgAvailable
* scheduler/stack: taskGroupCSIVolumes checker is transient
* state_store CSIVolumeDenormalizePlugins comment clarity
* structs: remote TODO comment in TaskGroup Validate
* scheduler/feasible: CSIVolumeChecker hasPlugins improve comment
* scheduler/feasible_test: set t.Parallel
* Update nomad/state/state_store.go
Co-Authored-By: Danielle <dani@hashicorp.com >
* Update scheduler/feasible.go
Co-Authored-By: Danielle <dani@hashicorp.com >
* structs: lift ControllerRequired to each volume
* state_store: store plug.ControllerRequired, use it for volume health
* feasible: csi match fast path remove stale host volume copied logic
* scheduler/feasible: improve comments
Co-authored-by: Danielle <dani@builds.terrible.systems >
2020-03-23 13:58:29 -04:00
Alex Dadgar
e30b20e65e
renames
2018-10-04 14:57:25 -07:00
Alex Dadgar
0f2f4797cb
fixing tests
2018-10-04 14:26:19 -07:00
Alex Dadgar
49c2d4f775
Scheduler uses allocated resources
2018-10-02 17:08:25 -07:00
Preetha Appan
f6cbfbfef6
Track top k nodes by norm score rather than top k nodes per scorer
2018-09-04 16:10:11 -05:00
Preetha Appan
4d68d935e4
Use heap to store top K scoring nodes.
...
Scoring metadata is now aggregated by scorer type to make it easier
to parse when reading it in the CLI.
2018-09-04 16:10:11 -05:00
Preetha Appan
00924555a8
Implement affinity support in generic scheduler
2018-09-04 16:10:11 -05:00
Preetha Appan
4cbef07d37
Prevent side effect modification of select options when preferred nodes are set
2018-01-31 09:56:53 -06:00
Preetha Appan
5ecb7895bb
Reschedule previous allocs and track their reschedule attempts
2018-01-31 09:56:53 -06:00
Diptanu Choudhury
a6e0077f72
Implemented SetPrefferingNodes in stack
2016-08-30 16:17:50 -07:00
Alex Dadgar
8b55fd6b70
Only interpret vars wrapped in braces
2016-02-04 17:26:46 -08:00
Alex Dadgar
97070f44f8
Add benchmark
2016-01-26 15:16:43 -08:00
Alex Dadgar
0ad3575897
FeasibilityWrapper uses computed node class eligibility to call feasibility checks minimally
2016-01-26 15:16:43 -08:00
Chris Hines
597194fb96
Skip unreliable time measurement assertions on Windows.
2015-12-09 14:55:57 -05:00
Alex Dadgar
2405101328
Remove base nodes from stack constructors
2015-10-16 17:05:23 -07:00
Alex Dadgar
b24f48a4ed
System scheduler and system stack
2015-10-14 18:39:44 -07:00
Armon Dadgar
b81105bd09
Change CPU from float64 to int
2015-09-23 11:14:32 -07:00
Armon Dadgar
40b84e3023
scheduler: recompute scan limit on SetNodes
2015-09-11 12:03:41 -07:00
Armon Dadgar
efdf717991
scheduler: allow updating the base nodes
2015-09-07 11:30:13 -07:00
Chris Bednarski
3164401ffd
Update references to "os" to use "kernel.name"
...
This brings test code and mocks up to date with the fingerprinter. This was a slightly larger change than I anticipated, but I think it's good for two reasons:
1. More semanitcally correct. `os.name` is something like "Windows 10 Pro" or "Ubuntu", while `kernel.name` is "windows" or "linux". `os.version` and `kernel.version` match these semantics.
2. `kernel.name` is much easier to grep for than `os`, which is helpful because oracle can't help us with strings.
2015-08-28 01:30:47 -07:00
Armon Dadgar
6a39f5b5da
scheduler: adding minor specialization for batch
2015-08-13 22:35:48 -07:00
Armon Dadgar
a5b1f16a5e
scheduler: test all the metrics
2015-08-13 21:58:55 -07:00
Armon Dadgar
9d1c52bf66
scheduler: testing service stack
2015-08-13 21:55:37 -07:00
Armon Dadgar
25a60ebd81
scheduler: adding tests
2015-08-13 18:51:08 -07:00