You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mikhail Khludnev (JIRA)" <ji...@apache.org> on 2018/12/01 11:05:00 UTC
[jira] [Commented] (SOLR-13029) Allow HDFS buffer size to be
configured
[ https://issues.apache.org/jira/browse/SOLR-13029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16705779#comment-16705779 ]
Mikhail Khludnev commented on SOLR-13029:
-----------------------------------------
I suppose this setting should be set as HdfsBackupRepository configuration in solrconfig.xml. The second consideration is that it shouldn't impact HdfsDirectory, which is used for holding index.
> Allow HDFS buffer size to be configured
> ---------------------------------------
>
> Key: SOLR-13029
> URL: https://issues.apache.org/jira/browse/SOLR-13029
> Project: Solr
> Issue Type: Improvement
> Security Level: Public(Default Security Level. Issues are Public)
> Components: Backup/Restore, hdfs
> Affects Versions: 7.5, master (8.0)
> Reporter: Tim Owen
> Priority: Major
> Attachments: 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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org