No description
Find a file
martinsumner cf66431c8e Smoother handling of back-pressure
The Penciller had two problems in previous commits:
- If it had a push_mem soon after a L0 file had been created, the
push_mem would stall waiting for the L0 file to complete - and this
count take 100-200ms
- The penciller's clerk favoured L0 work, but was lazy about asking for
other work in-between, so often the L1 layer was bursting over capacity
and the clerk was doing nothing but merging more L0 files in (with those
merges getting more and more expensive as they had to cover more and
more files)

There are some partial resolutions to this.  There is now an aggressive
timeout when checking whther the L0 file is ready on a push_mem, and if
the timeout is breached the error is caught and a 'returned' message
goes back to the Bookie.  the Bookie doesn't now empty its cache, it
carrie son filling it, but on some probability it will keep trying to
push_mem on future pushes.  This increases Jitter around the expensive
operation and split out the L0 delay into defined chunks.

The penciller's clerk is now more aggressive in asking for work.  There
is also some simplification of the relationship between clerk timeouts
and penciller back-pressure.

Also resolved is an issue of inconcistency between the loader and the on
startup (replaying the transaction log) and the standard push_mem
process.  The loader was not correctly de-duplicating by adding first
(in order) to a tree before outputting the list from the tree.

Some thought will be given later as to whether non-L0 work can be safely
prioritised if the merge process still keeps getting behind.
2016-10-20 02:23:45 +01:00
include Penciller Manifest and Locking 2016-10-19 17:34:58 +01:00
src Smoother handling of back-pressure 2016-10-20 02:23:45 +01:00
test Redundant clauses 2016-10-19 20:51:30 +01:00
.gitignore Dialyzer changes 2016-09-20 10:17:24 +01:00
LICENSE Initial commit 2015-04-30 09:56:16 +01:00
README.md Initial commit 2015-04-30 09:56:16 +01:00
rebar.lock Dialyzer changes 2016-09-20 10:17:24 +01:00

eleveleddb

Experiment for learning more about LSM trees