Skip to content

Conversation

otofune
Copy link
Member

@otofune otofune commented Dec 28, 2018

To prevent slow dns resolution in vm on linux.
In December 2018, linux kernel may have race in conntrack.
See: https://www.weave.works/blog/racy-conntrack-and-dns-lookup-timeouts

At crowi, this problem causes very slow responses from /files/:id.

To prevent slow dns resolution in vm on linux.
In December 2018, linux kernel may have race in conntrack.
See: https://www.weave.works/blog/racy-conntrack-and-dns-lookup-timeouts
@otofune
Copy link
Member Author

otofune commented Dec 28, 2018

I'm wondering ...

  • Is it better to use Config (w/ set by form) to determine whether to enable dnscache?
    I used environment variables for it. This workaround is required by environment reason, so I think this choice is valid.
    But, I don't know theory...

Copy link
Member

@sotarok sotarok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmm, I'm not sure wether the best practice or not, but it would be nice for the performance improvement.

@otofune otofune merged commit 9988aa9 into master Jan 24, 2019
@otofune otofune deleted the improve/lookup-dns-with-cache branch January 24, 2019 02:22
@sotarok sotarok mentioned this pull request Jun 27, 2019
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants