You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Siyao Meng (Jira)" <ji...@apache.org> on 2019/09/09 21:56:00 UTC
[jira] [Commented] (HDFS-14283) DFSInputStream to prefer cached
replica
[ https://issues.apache.org/jira/browse/HDFS-14283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16926127#comment-16926127 ]
Siyao Meng commented on HDFS-14283:
-----------------------------------
[~leosun08] Any work done on your side yet? If not I can take over this one.
[~jojochuang] I'm a bit worried that using enabling this by default could cause hot spot issue on those DataNodes with cached replicas.
> DFSInputStream to prefer cached replica
> ---------------------------------------
>
> Key: HDFS-14283
> URL: https://issues.apache.org/jira/browse/HDFS-14283
> Project: Hadoop HDFS
> Issue Type: Improvement
> Affects Versions: 2.6.0
> Environment: HDFS Caching
> Reporter: Wei-Chiu Chuang
> Assignee: Lisheng Sun
> Priority: Major
>
> HDFS Caching offers performance benefits. However, currently NameNode does not treat cached replica with higher priority, so HDFS caching is only useful when cache replication = 3, that is to say, all replicas are cached in memory, so that a client doesn't randomly pick an uncached replica.
> HDFS-6846 proposed to let NameNode give higher priority to cached replica. Changing a logic in NameNode is always tricky so that didn't get much traction. Here I propose a different approach: let client (DFSInputStream) prefer cached replica.
> A {{LocatedBlock}} object already contains cached replica location so a client has the needed information. I think we can change {{DFSInputStream#getBestNodeDNAddrPair()}} for this purpose.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)
---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org