[ https://issues.apache.org/jira/browse/SOLR-7458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14528688#comment-14528688 ]
Mark Miller commented on SOLR-7458: ----------------------------------- What if we added DirectoryFactory to awareCompatibility in SolrResourceLoader and make HdfsDirectoryFactory implement SolrCoreAware. That get's us access to the SolrCore from inform which will fire before init. From the SolrCore we can access the CoreContainer and the solr.xml config that get us the configured host name. bq. The general solution to determining a hostname for a machine is very difficult, since any given server could have multiple interfaces with multiple names for each alias, etc. Right. That is my concern. That's why we use the following process for Solr: * If no host is specified, guess which to use. * Allow a specific host override to be specified. If we don't happen to match up, won't we report the wrong results about what is local? > Expose HDFS Block Locality Metrics > ---------------------------------- > > Key: SOLR-7458 > URL: https://issues.apache.org/jira/browse/SOLR-7458 > Project: Solr > Issue Type: Improvement > Components: SolrCloud > Reporter: Mike Drob > Assignee: Mark Miller > Labels: metrics > Attachments: SOLR-7458.patch, SOLR-7458.patch > > > We should publish block locality metrics when using HDFS. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org