hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wujinhu (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HADOOP-15027) AliyunOSS: Support multi-thread pre-read to improve read from Hadoop to Aliyun OSS performance
Date Wed, 10 Jan 2018 11:33:00 GMT

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

wujinhu edited comment on HADOOP-15027 at 1/10/18 11:32 AM:
------------------------------------------------------------

Change some default configurations.

{code:java}
-  public static final long MULTIPART_DOWNLOAD_SIZE_DEFAULT = 1024 * 1024;
+  public static final long MULTIPART_DOWNLOAD_SIZE_DEFAULT = 512 * 1024;

   public static final String MULTIPART_DOWNLOAD_THREAD_NUMBER_KEY =
           "fs.oss.multipart.download.threads";
-  public static final int MULTIPART_DOWNLOAD_THREAD_NUMBER_DEFAULT = 16;
+  public static final int MULTIPART_DOWNLOAD_THREAD_NUMBER_DEFAULT = 10;

   public static final String MAX_TOTAL_TASKS_KEY = "fs.oss.max.total.tasks";
   public static final int MAX_TOTAL_TASKS_DEFAULT = 128;

   public static final String MULTIPART_DOWNLOAD_AHEAD_PART_MAX_NUM_KEY =
           "fs.oss.multipart.download.ahead.part.max.number";
-  public static final int MULTIPART_DOWNLOAD_AHEAD_PART_MAX_NUM_DEFAULT = 8;
+  public static final int MULTIPART_DOWNLOAD_AHEAD_PART_MAX_NUM_DEFAULT = 4;
{code}



was (Author: wujinhu):
Change some default configuration.

{code:java}
-  public static final long MULTIPART_DOWNLOAD_SIZE_DEFAULT = 1024 * 1024;
+  public static final long MULTIPART_DOWNLOAD_SIZE_DEFAULT = 512 * 1024;

   public static final String MULTIPART_DOWNLOAD_THREAD_NUMBER_KEY =
           "fs.oss.multipart.download.threads";
-  public static final int MULTIPART_DOWNLOAD_THREAD_NUMBER_DEFAULT = 16;
+  public static final int MULTIPART_DOWNLOAD_THREAD_NUMBER_DEFAULT = 10;

   public static final String MAX_TOTAL_TASKS_KEY = "fs.oss.max.total.tasks";
   public static final int MAX_TOTAL_TASKS_DEFAULT = 128;

   public static final String MULTIPART_DOWNLOAD_AHEAD_PART_MAX_NUM_KEY =
           "fs.oss.multipart.download.ahead.part.max.number";
-  public static final int MULTIPART_DOWNLOAD_AHEAD_PART_MAX_NUM_DEFAULT = 8;
+  public static final int MULTIPART_DOWNLOAD_AHEAD_PART_MAX_NUM_DEFAULT = 4;
{code}


> AliyunOSS: Support multi-thread pre-read to improve read from Hadoop to Aliyun OSS performance
> ----------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-15027
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15027
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/oss
>    Affects Versions: 3.0.0
>            Reporter: wujinhu
>            Assignee: wujinhu
>         Attachments: HADOOP-15027.001.patch, HADOOP-15027.002.patch, HADOOP-15027.003.patch,
HADOOP-15027.004.patch, HADOOP-15027.005.patch, HADOOP-15027.006.patch, HADOOP-15027.007.patch,
HADOOP-15027.008.patch, HADOOP-15027.009.patch, HADOOP-15027.010.patch, HADOOP-15027.011.patch,
HADOOP-15027.012.patch
>
>
> Currently, AliyunOSSInputStream uses single thread to read data from AliyunOSS,  so we
can do some refactoring by using multi-thread pre-read to improve read performance.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message