Skip to content

[bootstrap-agent] Split long-running rack-{init,reset} operations#3351

Merged
jgallagher merged 5 commits into
mainfrom
bootstrap-agent-break-up-rack-init
Jun 14, 2023
Merged

[bootstrap-agent] Split long-running rack-{init,reset} operations#3351
jgallagher merged 5 commits into
mainfrom
bootstrap-agent-break-up-rack-init

Conversation

@jgallagher

Copy link
Copy Markdown
Contributor

POST'ing or DELETE'ing to /rack-initialize now spawns a task to do the work, and a client can GET /rack-initialize to check on its status. This also severs the long-running endpoints from cancellation if the client disconnects.

@jgallagher

Copy link
Copy Markdown
Contributor Author

This PR does not touch the sled-level init / reset operations; if this looks reasonable I can give them the same treatment in a followup PR.

@smklein smklein left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for doing this! Agreed that something similar for sled-level init/reset would be useful.

Comment thread sled-agent/src/bootstrap/agent/rack_ops.rs Outdated
Comment thread sled-agent/src/bootstrap/agent/rack_ops.rs Outdated
Comment thread sled-agent/src/bootstrap/http_entrypoints.rs Outdated
@smklein smklein removed their assignment Jun 14, 2023
POST'ing or DELETE'ing to `/rack-initialize` now spawns a task to do the
work, and a client can `GET /rack-initialize` to check on its status.
This also severs the long-running endpoints from cancellation if the
client disconnects.
@jgallagher jgallagher force-pushed the bootstrap-agent-break-up-rack-init branch from 950a1b9 to cfd2ce7 Compare June 14, 2023 18:23
@jgallagher jgallagher merged commit 73545a9 into main Jun 14, 2023
@jgallagher jgallagher deleted the bootstrap-agent-break-up-rack-init branch June 14, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants