Michael Schurter
2b5d840eaa
arv2: implement alloc health watching
...
Also remove initial alloc from broadcaster as it just caused useless
extra processing.
2018-10-16 16:53:30 -07:00
Michael Schurter
12171cdc28
make AllocBroadcaster easier to use
...
And test thoroughly.
2018-10-16 16:53:30 -07:00
Michael Schurter
c95155d45c
implement stopping, destroying, and disk migration
...
* Stopping an alloc is implemented via Updates but update hooks are
*not* run.
* Destroying an alloc is a best effort cleanup.
* AllocRunner destroy hooks implemented.
* Disk migration and blocking on a previous allocation exiting moved to
its own package to avoid cycles. Now only depends on alloc broadcaster
instead of also using a waitch.
* AllocBroadcaster now only drops stale allocations and always keeps the
latest version.
* Made AllocDir safe for concurrent use
Lots of internal contexts that are currently unused. Unsure if they
should be used or removed.
2018-10-16 16:53:30 -07:00
Alex Dadgar
49c2d4f775
Scheduler uses allocated resources
2018-10-02 17:08:25 -07:00
Alex Dadgar
b310a54aa6
Node resources on client
2018-09-29 17:23:41 -07:00
Alex Dadgar
bc48fc33b5
remove structs + bump version
2018-06-11 13:52:19 -07:00
Alex Dadgar
dbee1d7d05
bump version + generated files
2018-06-11 13:39:42 -07:00
Alex Dadgar
ab5ee4be9e
remove generated structs
2018-06-01 16:11:28 -07:00
Alex Dadgar
97ad9dfc92
bump version/lint/generated files
2018-06-01 15:23:10 -07:00
Alex Dadgar
c8f1c98fd7
version bump and remove generated
2018-04-27 11:10:00 -07:00
Alex Dadgar
df9e8e2f27
generated files
2018-04-27 10:45:40 -07:00
Alex Dadgar
3fd1f48136
Remove generated and version bump
2018-04-26 16:49:19 -07:00
Alex Dadgar
9a4295aa9c
generated files
2018-04-26 16:28:58 -07:00
Alex Dadgar
1468985035
Remove generated structs
2018-04-12 16:35:31 -07:00
Alex Dadgar
8a80a5f7c5
Version bump and generated files
2018-04-12 16:21:50 -07:00
Alex Dadgar
1a66631eff
remove generated files
2018-03-30 16:52:49 -07:00
Alex Dadgar
702a3be41e
Generated files
2018-03-30 16:14:40 -07:00
Chelsea Holland Komlo
8aefd294e1
Code review feedback
2018-03-21 15:15:26 -04:00
Chelsea Holland Komlo
1570972cb3
add concept of health checks to fingerprinters and nodes
...
fix up feedback from code review
add driver info for all drivers to node
2018-03-21 15:15:25 -04:00
Alex Dadgar
349485028c
Server side impl + touch ups
2018-02-15 13:59:02 -08:00
Alex Dadgar
ce37deebf4
client implementation of alloc gc and stats
2018-02-15 13:59:02 -08:00
Alex Dadgar
3cbd7e8376
vet
2018-02-15 13:59:02 -08:00
Alex Dadgar
d77b36698c
HTTP and tests
2018-02-15 13:59:02 -08:00
Alex Dadgar
69dc065366
Client implementation of stream
2018-02-15 13:59:02 -08:00
Alex Dadgar
3c689ba97f
Client Stat/List impl
2018-02-15 13:59:02 -08:00
Alex Dadgar
5e7a1a44a2
Logs over RPC w/ lots to touch up
2018-02-15 13:59:01 -08:00
Alex Dadgar
ddee97ca29
Stats Endpoint
2018-02-15 13:59:00 -08:00
Chelsea Holland Komlo
3202200ccb
req/resp should be within config locks; rename for detected fingerprints
...
changelog
2018-02-01 19:00:39 -05:00
Chelsea Holland Komlo
15cb7683f8
fix up linting
2018-02-01 12:26:38 -05:00
Chelsea Holland Komlo
ba2ebbc7f9
code review fixup
2018-01-31 18:34:03 -05:00
Chelsea Holland Komlo
a9447addd3
add applicable boolean to fingerprint response
...
public fields and remove getter functions
2018-01-31 13:21:45 -05:00
Chelsea Holland Komlo
ae889b4fba
remove attributes from periodic fingerprints when state changes
...
write test for client periodic fingerprinters
2018-01-29 13:48:54 -05:00
Chelsea Holland Komlo
f5fc20a564
create safe getters and setters for fingerprint response
2018-01-26 11:22:05 -05:00
Chelsea Holland Komlo
5e8151d700
refactor Fingerprint to request/response construct
2018-01-24 11:54:02 -05:00
Alex Dadgar
386557da73
Small fixes
2017-07-18 12:19:57 -07:00
Alex Dadgar
2b917380eb
Fix alloc broadcaster panic on double close
2017-07-17 14:09:05 -07:00
Alex Dadgar
da82a6e814
initial watcher
2017-07-07 12:07:08 -07:00
Michael Schurter
4117c8b3a2
Fix Service.AddressMode changes during task updates
2017-06-21 17:19:08 -07:00
Michael Schurter
8a7df57227
Test driver network advertisement and checks
2017-06-21 17:19:08 -07:00
Michael Schurter
3fddb05fc8
Implement DriverNetwork and Service.AddressMode
...
Ideally DriverNetwork would be fully populated in Driver.Prestart, but
Docker doesn't assign the container's IP until you start the container.
However, it's important to setup the port env vars before calling
Driver.Start, so Prestart should populate that.
2017-06-21 17:19:08 -07:00
Michael Schurter
de7351b959
Move chroot building into TaskRunner
...
* Refactor AllocDir to have a TaskDir struct per task.
* Drivers expose filesystem isolation preference
* Fix lxc mounting of `secrets/`
2017-01-05 16:31:49 -08:00
Alex Dadgar
1a7df4e7d2
Allocation resources returned in a struct
2016-06-11 21:04:10 -07:00