Skip to content

Region storage packing #14

@Alvinn8

Description

@Alvinn8

A world has many region files. Most of them are small. Group cold/unused regions into a bigger pack file to reduce the number of files on disk. Both .mchrv and .mchrs files should be packed. Somehow keep track of which region files are "hot" and which ones are "cold". Maybe by checking when they were last modified (read LastUpdated nbt tag) or keep some own measurement of when it was last written to. Or maybe even use InhabitedTime to measure player activity. Also group geographically, so region files close to each other that are also cold should be grouped together in a pack file.

Eventually, when pack files are established, pack files can be moved to cloud storage. Maybe only pack files that have existed for a while, or this is overkill since a packfile is only created with cold regions either way.

The thresholds can be configurable. So that for example if the host machine is running low on disk space, thresholds can be changed to pack more files so that they can be moved to the cloud.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions