Skip to content

Change hot-backup to utilize the async IO threads #11

Open
@tatsuya6502

Description

@tatsuya6502

The hot-backup feature (which is not released yet) is currently implemented without utilizing Erlang VM's async IO threads. I am not sure how long a LevelDB's LiveBackup() call can take so it will be safer to use the async IO threads to avoid blocking Erlang VM's scheduler threads too long.

http://erlang.org/doc/man/erl_driver.html#lengthy_work

As mentioned in the warning text at the beginning of this document it is of vital importance that a driver callback does return relatively fast. It is hard to give an exact maximum amount of time that a driver callback is allowed to work, but as a rule of thumb a well behaving driver callback should return before a millisecond has passed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions