Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13234

Remove renew configuration instance in ConfiguredFailoverProxyProvider and reduce memory footprint for client

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: fs, ha, hdfs-client
    • Labels:
      None

      Description

      The memory footprint of #DFSClient is very considerable in some special scenario since there are many #Configuration instances and occupy much memory resource (In an extreme case, org.apache.hadoop.conf.Configuration occupies over 600MB we meet under HDFS Federation an HA with QJM and there are dozens of NameNodes). I think some new Configuration instance is not necessary. Such as #ConfiguredFailoverProxyProvider initialization.

        public ConfiguredFailoverProxyProvider(Configuration conf, URI uri,
            Class<T> xface, HAProxyFactory<T> factory) {
          this.xface = xface;
          this.conf = new Configuration(conf);
          ......
        }
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hexiaoqiao He Xiaoqiao
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: