Methods, systems, and media for controlling append-only file rewrites
AssigneeRedis Ltd.
InventorsYiftach Shoolman, Yoav Steinberg, Yossi Gottlieb, Oran Agra
Life of this patent
Estimating the term…
Abstract
Methods, systems, and media for controlling append-only file rewrites are provided. In accordance with some embodiments, the methods comprising: determining a utilization of a shard of a database; determining whether the utilization exceeds a persistent storage utilization threshold; determining a recovery time to recover the shard from an append-only file; determining whether the recovery time exceeds a recovery time threshold; and when the utilization is determined to exceed the utilization threshold or when the recovery time is determined to exceed the recovery time threshold, causing an append-only-file rewrite to be performed.
Claims18
A method for controlling append-only-file (AOF) rewrites, comprising:
- prior to an AOF rewrite being performed, determining using a hardware processor a recovery time that is an estimate of a time to recover a shard from an AOF when performing the AOF rewrite by at least adding write times for each of a plurality of write operations to the shard;
- determining whether the recovery time exceeds a recovery time threshold;
- and
- when the recovery time is determined to exceed the recovery time threshold, causing the AOF rewrite to be performed.
A system for controlling append-only-file (AOF) rewrites, comprising:
- memory;
- and
- at least one hardware processor configured to at least:
- determine whether the AOF utilization exceeds an AOF utilization threshold;
- prior to an AOF rewrite being performed, determine a recovery time that is an estimate of a time to recover a shard from an AOF when performing the AOF rewrite by at least adding write times for each of a plurality of write operations to the shard;
- determine whether the recovery time exceeds a recovery time threshold;
- and
- when the recovery time is determined to exceed the recovery time threshold, cause the AOF rewrite to be performed.
A non-transitory computer-readable medium containing computer executable instructions that, when executed by a processor, cause the processor to perform a method for controlling append-only-file (AOF) rewrites, the method comprising:
- prior to an AOF rewrite being performed, determining a recovery time that is an estimate of a time to recover a shard from an AOF when performing the AOF rewrite by at least adding write times for each of a plurality of write operations to the shard;
- determining whether the recovery time exceeds a recovery time threshold;
- and
- when the recovery time is determined to exceed the recovery time threshold, causing the AOF rewrite to be performed.
Dependencies are inferred from the claim text.