lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-5043) hostname lookup in SystemInfoHandler should be refactored so it's possible to not block core (re)load for long periouds on misconfigured systems
Date Tue, 06 Dec 2016 21:49:58 GMT

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

ASF subversion and git services commented on SOLR-5043:
-------------------------------------------------------

Commit 135604f6327032d0258227aaa524369203d40822 in lucene-solr's branch refs/heads/branch_6x
from Chris Hostetter
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=135604f ]

SOLR-5043: New solr.dns.prevent.reverse.lookup system property that can be used to prevent
long core (re)load delays on systems with missconfigured hostname/DNS

(cherry picked from commit 8b98b158ff9cc2a71216e12c894ca14352d31f0e)


> hostname lookup in SystemInfoHandler should be refactored so it's possible to not block
core (re)load for long periouds on misconfigured systems
> ------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-5043
>                 URL: https://issues.apache.org/jira/browse/SOLR-5043
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Hoss Man
>         Attachments: SOLR-5043-lazy.patch, SOLR-5043.patch, SOLR-5043.patch
>
>
> SystemInfoHandler currently lookups the hostname of the machine on it's init, and caches
for it's lifecycle -- there is a comment to the effect that the reason for this is because
on some machines (notably ones with wacky DNS settings) looking up the hostname can take a
long ass time in some JVMs...
> {noformat}
>   // on some platforms, resolving canonical hostname can cause the thread
>   // to block for several seconds if nameservices aren't available
>   // so resolve this once per handler instance 
>   //(ie: not static, so core reload will refresh)
> {noformat}
> But as we move forward with a lot more multi-core, solr-cloud, dynamically updated instances,
even paying this cost per core-reload is expensive.
> we should refactoring this so that SystemInfoHandler instances init immediately, with
some kind of lazy loading of the hostname info in a background thread, (especially since hte
only real point of having that info here is for UI use so you cna keep track of what machine
you are looking at)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message