Ruixuan Zhang created KYLIN-5451:
------------------------------------

             Summary: Query Improvement by avoiding multiple local ip 
acquisitions
                 Key: KYLIN-5451
                 URL: https://issues.apache.org/jira/browse/KYLIN-5451
             Project: Kylin
          Issue Type: Improvement
    Affects Versions: 5.0-alpha
            Reporter: Ruixuan Zhang
            Assignee: Ruixuan Zhang
             Fix For: 5.0-alpha
         Attachments: 1c7d7dab-613c-4863-bd7d-66e3988c16ff.png

AddressUtil#getLocalHostExactAddress might slow the query because of multiple 
local ip acquisitions in 
org.springframework.cloud.commons.util.InetUtils#findFirstNonLoopbackHostInfo.
h2. Fix Design

Add cache of LOCAL_IP_ADDRESS. Thus, the cache is updated when calling 
AddressUtil#getLocalHostExactAddress at the first time, then the cache can be 
used afterwards.

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to