Skip to content

Only start PersistedLogLsnWatchdog if it's needed #3044

@tillrohrmann

Description

@tillrohrmann

At the moment, we are always running the PersistedLogLsnWatchdog independent of whether we are using the persisted or the archived lsn for log trimming. Since the PersistedLogLsnWatchdog always triggers a periodic flush, this adds unnecessary IO load to the system if we are using archived lsns for log trimming. Hence, we should only run the PersistedLogLsnWatchdog if no snapshot repository is configured and the number of worker nodes is 1 (similar to

if snapshots_repository_configured || cluster_state.nodes.len() > 1 {
).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions