Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Intermittent long pauses when running as server #80

Open
timhaak opened this issue Jun 11, 2023 · 7 comments
Open

Intermittent long pauses when running as server #80

timhaak opened this issue Jun 11, 2023 · 7 comments

Comments

@timhaak
Copy link

timhaak commented Jun 11, 2023

When under high load, the server pauses for a couple of seconds now and again.

I've tried to work out what could have caused this.

But at my wits end to find this.

Has someone else seen something similar?

@ArjixWasTaken
Copy link

When under high load, the server pauses for a couple of seconds now and again.

you most likely encountered javascript's garbage collector

@timhaak
Copy link
Author

timhaak commented Sep 27, 2024

Hmm I tested changing the settings related to this.

I eventually tracked it down to a specific DNS request that was causing the problem though not to why.

Assuming it was broken in some way. If the clients who were sending that were blocked the pause never occurred.

Stopped debugging as moved over to using Coredns which is currently working really well for us.

@ArjixWasTaken
Copy link

sadly coredns doesn't seem to cover my needs 😔
I am stuck maintaining another library for dns packets

@timhaak
Copy link
Author

timhaak commented Sep 27, 2024

What are you needs?

@ArjixWasTaken
Copy link

Contacting a mongo database, storing cache in redis/memcached and contacting some REST APIs for each dns request.
Sounds too complex to make as a coredns plugin.

@ArjixWasTaken
Copy link

Don't worry though, the dns server is already written and has been working for like a decade now.
I am just trying to refactor my predecessors' code and maybe switch libraries.

@timhaak
Copy link
Author

timhaak commented Sep 28, 2024

:) Cool understand

The above should be very doable via a plugin, as I'm doing something of a similar level of complexity.

The migration over was as simple as all the logic, which had been sorted in the node code, being far simpler to iterate.

Having said that, if we didn't have the bug, I also wouldn't have done the rewrite :)

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

No branches or pull requests

2 participants