-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[nexus] Reincarnate Failed
instances
#6503
Merged
+2,253
−138
Merged
Changes from 83 commits
Commits
Show all changes
111 commits
Select commit
Hold shift + click to select a range
abfde82
[nexus] add instance_reincarnation RPW
hawkw 29980dd
add super fancy OMDB output
hawkw a3574e6
update sagas trigger reincarnation for Failed instances
hawkw 9652402
add a rudimentary background task unit test
hawkw 9731a80
unit test ineligible instances are not reincarnated
hawkw f344612
nicer output for tests
hawkw ba72fc4
update to track `SledFailuresOnly` policy
hawkw fa61cfa
start adding auto-restart to instance-create
hawkw 078b90b
post-rebase update for nullable restart policies
hawkw 7a23242
need an auto-restart policy there
hawkw 24ffa89
handle `Option` in update saga too (oops)
hawkw f38b42e
blergh
hawkw 3f08a03
add `time_last_auto_restarted` to instance records
hawkw c10a63d
even more missing auto-restart policies
hawkw 356e01d
set auto-restart time in start sagas if they are auto-restarts
hawkw dbab298
also include start reason in logs
hawkw 79a746e
a bajillion more missing auto-restart policies
hawkw 98d5fcc
remove unneeded mut
hawkw fb7f7ef
AGH I FORGOT THE ORDER OF THE `table!` MACRO IS LOAD BEARING
hawkw 6374931
the migration needs to not be empty for it to work
hawkw 531cc87
actually add chill-out time between reincarnations
hawkw ddebd49
add chill-out time in OMDB
hawkw e41b287
add an integration test
hawkw 98b430d
just use SQL_BATCH_SIZE
hawkw 41338eb
make cooldown period configurable
hawkw 2e2ef38
wip test for cooldowns
hawkw 84f1aca
post rebase fixy
hawkw 4926d93
finish test
hawkw 124cdd8
bblghghghghghh
hawkw be27ffa
blurgh
hawkw 0dfecac
fix check constraint violation in test
hawkw df82948
ahh whoops
hawkw 51fe472
you have to actually override the default if you want it to work
hawkw 5f47cbe
oops, test should pretend instance 1 is started
hawkw 5b99576
derp
hawkw 703b17e
tests run real sagas to avoid check constraints
hawkw 33a8e81
ensmallerate test instances
hawkw e6cf49f
whoops forgot to update omdb again
hawkw 2bb380e
print each action in failing test to stderr
hawkw 6bf7185
fix test racing with simulated sled-agent
hawkw 1e95141
fix ugly schema for `InstanceAutoRestart` policies
hawkw 0c758af
remove unused `Default` impl
hawkw 244f4d8
review feedback: fix comments, treat all Conflicts the same
hawkw bd1150b
review feedback: fix typos
hawkw 0e23172
review feedback: fix typo that's on two lines
hawkw f59c5ad
attempt to factor out reincarnation filtering
hawkw 7239bb9
redo reincarnation query to be random
hawkw a7be567
cooling down is filtered out at the db level
hawkw 1438054
fix tests
hawkw 70ca1a5
remove instances_cooling_down
hawkw 6fb14ac
actually wait for the sagas to finish before doing the next batch
hawkw 62727f4
Revert randomized query thing
hawkw 8e32938
I guess we can at least keep the cooldown query...
hawkw 62ec4bd
ugh whoops
hawkw b60c3b2
my bad lol
hawkw 5d759aa
update omdb
hawkw bb07983
add auto-restart timestamps to external api
hawkw e194428
placate clippy
hawkw bad5710
add concurrency limit, query order randomization
hawkw 37789e5
review feedback: comment nits
hawkw a3ccabb
review feedback: logging tweaks
hawkw 17efc98
QoS-oriented restart policies, rm SledFailuresOnly
hawkw ae1fdc6
&!@&$*&#($% TRAILING COMMA AGHHH
hawkw c296ef8
rework auto-restart cooldown
hawkw 6d73fd7
redo cooldown even more
hawkw 8bace8e
big ol' API rework
hawkw 5677980
fixup tests
hawkw b83a0bd
make external API cooldowns num secs, add min
hawkw 1affc77
lol some of the tests used `Never` for everything
hawkw f341d24
whoops 😅
hawkw 58b6541
@gjcolombo's nicer comments for `BestEffort`
hawkw 8ac1dec
integration test deflakement
hawkw 7231647
diesel trait docs
hawkw de17f14
fix typo in migration (oops)
hawkw d3aa320
set restart timestamp in first start saga action
hawkw 37fa327
represent cooldown views as expiration time
hawkw e4a1734
dbinit and migrations need columns in the same order
hawkw a4afff9
HAHAHA I just totally forgot to add the migration
hawkw cf777f8
auto_restart_v2 migration needs to drop old enum
hawkw 4a2b0a5
policy THEN cooldown
hawkw d1a9329
remove cooldown from the public API for now
hawkw dc2e64c
update omdb success cases (oops)
hawkw c6fab96
this no longer exists
hawkw 4fb9a96
rm accidentally committed file
hawkw a0256e0
explain query
hawkw 38b003c
go back to paginating
hawkw 930f376
oh right that was why we went back to paginating
hawkw 1c0513b
add a nice index of instances by state
hawkw 21ea63e
mechanically-separated migration product
hawkw 2501ad3
remove EXPLAIN test
hawkw ec0fac8
remove unused import
hawkw b18be10
more descriptive comment of timedelta serialization
hawkw 2ffed77
redo migration to get rid of ugly `_v2` suffix
hawkw 0f61e48
remove more unused imports (oops)
hawkw becccf4
whoops i put the migration in the wrong place
hawkw dc11190
add data migration tests for auto-restart policy
hawkw 467039b
change default policy to best-effort
hawkw 3428500
fix comment
hawkw 1485f72
add explicit disable flag in config
hawkw e0e8929
Merge remote-tracking branch 'origin' into eliza/instance-resurrection
hawkw 3d5ccc2
fix typo in comment
hawkw a24eca2
typo fix changed openapi spec again
hawkw aea76aa
Use sprockets on the bootstrap network (#6485)
labbott 435d2cd
Soft-delete volumes in a transaction, not CTE (#6623)
jmpesp 307bfda
Return richer enum types from datastore functions (#6604)
jmpesp 5a2e626
[omdb] Add `omdb instance info` command (#6610)
hawkw d066a4a
Talk to ClickHouse over the native protocol (#6584)
bnaecker cd3236d
Add inventory `Collection` to `BlueprintBuilder` (#6624)
andrewjstone efd0ffd
include reincarnation details in OMDB and logs
hawkw 7f459b8
Merge branch 'main' into eliza/instance-resurrection
hawkw 64033be
cargo fmt
hawkw File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.