accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-2889) Batch metadata table updates for new walogs
Date Mon, 30 Jun 2014 19:50:24 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-2889?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14048042#comment-14048042
] 

Josh Elser commented on ACCUMULO-2889:
--------------------------------------

bq. The calls to ThriftClientHandler.applyUpdates(TInfo, long, TKeyExtent, List<TMutation>)
are async thrift calls. The client makes the calls against a sessionid. On the tserver side
it buffers data for that sessionid (periodically dumping to walog and in-mem map depending
on memory use)

But since those are separate thrift calls, they'll all be done in their own thread, right?
That's the only point I was trying to make. I wouldn't think that async thrift calls are handled
outside of the normal threadpool, but I haven't read the code either.

The SharedBatchWriter is (scarily) exactly what I was thinking about. Get out of my head,
[~kturner].

> Batch metadata table updates for new walogs
> -------------------------------------------
>
>                 Key: ACCUMULO-2889
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2889
>             Project: Accumulo
>          Issue Type: Improvement
>    Affects Versions: 1.5.1, 1.6.0
>            Reporter: Jonathan Park
>            Assignee: Jonathan Park
>         Attachments: ACCUMULO-2889.0.patch.txt, ACCUMULO-2889.1.patch, accumulo-2889-withpatch.png,
accumulo-2889_withoutpatch.png, batch_perf_test.sh, run_all.sh, start-ingest.sh
>
>
> Currently, when we update the Metadata table with new loggers, we will update the metadata
for each tablet serially. We could optimize this to instead use a batchwriter to send all
metadata updates for all tablets in a batch.
> A few special cases include:
> - What if the !METADATA tablet was included in the batch?
> - What about the root tablet?
> Benefit:
> In one of our clusters, we're experiencing particularly slow HDFS operations leading
to large oscillations in ingest performance. We haven't isolated the cause in HDFS but when
we profile the tservers, we noticed that they were waiting for metadata table operations to
complete. This would target the waiting.
> Potential downsides:
> Given the existing locking scheme, it looks like we may have to lock a tablet for slightly
longer (we'll lock for the duration of the batch).



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message