lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Khludnev (JIRA)" <>
Subject [jira] [Commented] (SOLR-13029) Allow HDFS backup/restore buffer size to be configured
Date Sat, 19 Jan 2019 18:47:00 GMT


Mikhail Khludnev commented on SOLR-13029:

bq. I used a heap dump to confirm that the buffer really was the size I set in the configuration.
I don't think we can afford it with Jenkins. 

> Allow HDFS backup/restore buffer size to be configured
> ------------------------------------------------------
>                 Key: SOLR-13029
>                 URL:
>             Project: Solr
>          Issue Type: Improvement
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Backup/Restore, hdfs
>    Affects Versions: 7.5, 8.0
>            Reporter: Tim Owen
>            Priority: Major
>         Attachments: SOLR-13029.patch, SOLR-13029.patch
> There's a default hardcoded buffer size setting of 4096 in the HDFS code which means
in particular that restoring a backup from HDFS takes a long time. Copying multi-GB files
from HDFS using a buffer as small as 4096 bytes is very inefficient. We changed this in our
local build used in production to 256kB and saw a 10x speed improvement when restoring a backup.
Attached patch simply makes this size configurable using a command line setting, much like
several other buffer size values.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message