mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-16 01:42:55 +00:00
wip persistence
This commit is contained in:
13
control_plane/attachment_service/src/persistence.rs
Normal file
13
control_plane/attachment_service/src/persistence.rs
Normal file
@@ -0,0 +1,13 @@
|
||||
/// The attachment service does not store most of its state durably.
|
||||
///
|
||||
/// The essential things to store durably are:
|
||||
/// - generation numbers, as these must always advance monotonically to ensure data safety.
|
||||
/// - PlacementPolicy and TenantConfig, as these are set externally.
|
||||
struct Persistence {}
|
||||
|
||||
/// Parts of TenantState that are stored durably
|
||||
struct TenantPersistence {
|
||||
pub(crate) generation: Generation,
|
||||
pub(crate) policy: PlacementPolicy,
|
||||
pub(crate) config: TenantConfig,
|
||||
}
|
||||
Reference in New Issue
Block a user