Skip to content

Redis storage grows indefinitely: husksync:*:latest_snapshot:* keys persist ~11 months (very long TTL), causing ~38k+ keys / large memory usage #647

@xcoolerboy

Description

@xcoolerboy

HuskSync appears to retain old snapshot data in Redis for a very long time (or indefinitely). In my Redis instance, I’m seeing a large number of keys under the latest_snapshot namespace (around 38,071 keys) that have persisted for roughly ~11 months.

This buildup becomes significant over time and can lead to large Redis memory usage unless the server owner manually cleans keys.

Evidence / Observations

Key pattern (example):

husksync::survival:latest_snapshot:

Approx number of keys:

~38,071

A sample key shows TTL ~20,399,947 seconds (~236 days) and the key appears to be months old, so the overall retention is extremely long.

The value contains what looks like serialized player snapshot data (inventory, location, stats, etc.).

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions