Kirill Bulatov
114a757d1c
Use generic config parameters in pageserver cli
...
Co-authored-by: Heikki Linnakangas <heikki.linnakangas@iki.fi >
2021-12-23 18:58:28 +02:00
Kirill Bulatov
673c297949
Download timelines on demand
2021-12-10 17:23:35 +02:00
Kirill Bulatov
e61732ca7c
Compress checkpoint files before streaming into S3
2021-12-10 17:23:35 +02:00
Kirill Bulatov
670205e17a
Evict excessively failing sync tasks, improve processing for the rest of
...
the tasks
2021-11-30 13:58:49 +02:00
Kirill Bulatov
f36acf00de
Reduce "relish" word usages in remote storage
2021-11-04 12:53:42 +02:00
anastasia
83ed930bc2
WIP. Launch and shutdown tenant threads together with walreceiver.
...
TODO: now walreceiver only disconnects if safekeeper was shut down. Implemnt proper walreceiver disconnection.
2021-11-01 18:04:00 +03:00
anastasia
ea5900f155
Refactoring of checkpointer and GC.
...
Move them to a separate tenant_threads module to detangle thread management from LayeredRepository implementation.
2021-10-27 20:50:26 +03:00
anastasia
28ab40c8b7
fix init_repo() call in register_relish_download()
2021-10-27 20:50:26 +03:00
Kirill Bulatov
f291ab2b87
Do not panic on missing tenant
2021-10-25 18:36:30 +03:00
Kirill Bulatov
04fb0a0342
Add core relish backup and restore functionality
2021-10-22 22:22:38 +03:00
anastasia
7f9d2a7d05
Change 'zenith tenant list' API to return tenant state added in 0dc7a3fc
2021-10-21 11:04:22 +03:00
anastasia
0dc7a3fc15
Change tenant_mgr to use TenantState.
...
It allows to avoid locking entire TENANTS list while one tenant is bootstrapping
and prepares the code for remote storage integration.
2021-10-18 15:40:06 +03:00
anastasia
d7c9dd06f4
Implement graceful shutdown at 'pageserver stop':
...
- perform checkpoint for each tenant repository.
- wait for the completion of all threads.
Add new option 'immediate' to 'pageserver stop' command to terminate the pageserver immediately.
2021-10-11 13:35:01 +03:00
Heikki Linnakangas
fdb19fdb92
Remove unused function.
...
The caller was removed in commit acc0f41985 .
2021-10-07 11:24:27 +03:00
Kirill Bulatov
5719f13cb2
Rework the relish thread model ( #689 )
2021-10-05 10:15:56 +03:00
Max Sharnoff
84f7dcd052
Fix clippy errors on nightly (2021-09-29) ( #691 )
...
Most of the changes are for the new if-then-panic lint added in
https://github.com/rust-lang/rust-clippy/pull/7669 .
2021-10-01 15:45:42 -07:00
Max Sharnoff
3743344e64
Add get_timeline_for_tenant() to tenant_mgr ( #615 )
...
Most of the previous usages of get_repository_for_tenant were followed
by immediately getting a timeline in that repository, without keeping it
around for longer.
The new `get_timeline_for_tenant` function implements that same
behavior, but in one line.
2021-09-16 10:38:21 -07:00
anastasia
6984d33b4e
Run GC and checkpointer separate threads.
...
Add checkpoint_period configuration parameter
2021-09-16 12:33:50 +03:00
Heikki Linnakangas
b949127b06
Rename page_cache.rs to tenant_mgr.rs.
...
Once upon a time, 'page_cache.rs' contained an actual page cache, but
it hasn't for a very long time. Rename to reflect what it actually does
these days.
2021-08-30 15:17:30 +03:00