Skip to content
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

[WIP] Secondary locations heatmaps, downloads & tests #5745

Closed
wants to merge 29 commits into from

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented Oct 31, 2023

Builds on #5367

Problem

Summary of changes

Checklist before requesting a review

  • I have performed a self-review of my code.
  • If it is a core feature, I have added thorough tests.
  • Do we need to implement analytics? if so did you add the relevant metrics to the dashboard?
  • If this PR requires public announcement, mark it with /release-notes label and add several sentences in this section.

Checklist before merging

  • Do not forget to reformat commit message to not include the above checklist

@jcsp jcsp added t/feature Issue type: feature, for new features or requests c/storage/pageserver Component: storage: pageserver labels Oct 31, 2023
Copy link

github-actions bot commented Oct 31, 2023

0 tests run: 0 passed, 0 failed, 0 skipped (full report)


Test coverage report is not available

The comment gets automatically updated with the latest test results
d2e9025 at 2023-11-07T12:53:43.645Z :recycle:

@jcsp jcsp force-pushed the jcsp/secondary-locations-pt3 branch 2 times, most recently from b60e670 to d2e9025 Compare November 7, 2023 12:37
Previously we were rapid-retrying, which worked when
doing local loads for activating tenants, but gives us
very little time for tenants that are actually taking
some time to activate, e.g. in tests that use fault
injection for remote storage, or lots of layers.
@jcsp jcsp force-pushed the jcsp/secondary-locations-pt3 branch from d2e9025 to 3107010 Compare November 11, 2023 14:18
jcsp added a commit that referenced this pull request Nov 30, 2023
- During migration of tenants, it is useful for callers to
`/location_conf` to flush a tenant's layers while transitioning to
AttachedStale: this optimization reduces the redundant WAL replay work
that the tenant's new attached pageserver will have to do. Test coverage
for this will come as part of the larger tests for live migration in
#5745 #5842
- Flushing is controlled with `flush_ms` query parameter: it is the
caller's job to decide how long they want to wait for a flush to
complete. If flush is not complete within the time limit, the pageserver
proceeds to succeed anyway: flushing is only an optimization.
- Add swagger definitions for all this: the location_config API is the
primary interface for driving tenant migration as described in
docs/rfcs/028-pageserver-migration.md, and will eventually replace the
various /attach /detach /load /ignore APIs.

---------

Co-authored-by: Joonas Koivunen <joonas@neon.tech>
@jcsp jcsp closed this Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c/storage/pageserver Component: storage: pageserver t/feature Issue type: feature, for new features or requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant