Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-5451

Query Performance Improvement by avoiding multiple local ip acquisitions

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.0-alpha
    • 5.0-alpha
    • None
    • None

    Description

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

      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.

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dorriszhang Ruixuan Zhang
            dorriszhang Ruixuan Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment