+ distributedlog-user
For more input and comments. :)

Thanks.

On Thu, Jun 2, 2016 at 9:34 AM, Jia Zhai <[email protected]> wrote:

> Hello all,
>
> I am wondering do you guys have any plans on supporting relax durability.
> Is it a good feature to have in bookkeeper (also for DistributedLog)?
>
> I am thinking adding a new flag to bookkeeper#addEntry(..., Boolean sync).
> So the application can control whether to sync or not for individual
> entries.
>
> - On the write protocol, adding a flag to indicate whether this write
> should sync to disk or not.
> - On the bookie side, if the addEntry request is sync, going through
> original pipeline. If the addEntry disables sync,    complete the add
> callbacks after writing to the journal file and before flushing journal.
> - Those add entries (disabled syncs) will be flushed to disks with
> subsequent sync add entries.
>
> To my use cases on DistributedLog, this feature can be used for supporting
> streams that don't have strong durability requirements.
>
> What do you guys think? Shall I create a jira to implement this?
>
> Thanks a lot
> -Jia
>

Reply via email to