Closed weggert closed 9 years ago
This looks good. It will be safe to remove any .compacting
directories as long as Sirius isn't running. It'd be nice to add a "running" detection, but there's no way to detect that, so I'm fine with this. It might be a good idea to add a "don't execute this while your application is running" comment in the script. Past that, I'm :+1: here.
Per the feedback I added a warning to the documentation in the scripts.
Looks good. :+1:
This change adds a new script, backup_wal.sh. It is the equivalent of compact_wal.sh, however it does not try to do any compacting. It simply makes a backup of uberstore.
The change also adds a step to both compact_wal.sh and backup_wal.sh to remove any .compacting directories that exist. These directories are created during live compaction and are temporary. If Sirius is stopped during compaction, they may exist and if the timing is right they can almost double the size of the uberstore.
They would be deleted when the first compaction starts anyway, so they serve no useful purpose and can be deleted to save disk space.