Skip to content

Conversation

@dkoerichbird
Copy link
Contributor

@dkoerichbird dkoerichbird commented Sep 29, 2025

Note

Announces dnsbuf deprecation (removed in 4.8) and updates Momentum 3/4 docs with availability, guidance, and minor formatting tweaks.

  • Documentation updates for dnsbuf:
    • Deprecation: Added note that dnsbuf was deprecated in Momentum 4.8 and is no longer supported (Momentum 3 and 4 pages).
    • Availability clarified: Momentum 4 page now states availability from 4.2 through 4.7.
    • Configuration example: Updated comments to note Linux buffer sizes are set to 131072.
    • Monitoring guidance: Added note to prefer HTTP-API statistics over the summary command.
    • Formatting: Normalized "Configuration Change." bolding and fixed code block fencing/newline.

Written by Cursor Bugbot for commit e8e1b9c. This will update automatically on new commits. Configure here.

Signed-off-by: Doug Koerich <douglas.koerich@bird.com>
@netlify
Copy link

netlify bot commented Sep 29, 2025

Deploy Preview for support-docs ready!

Name Link
🔨 Latest commit e8e1b9c
🔍 Latest deploy log https://app.netlify.com/projects/support-docs/deploys/68f26b934403ca000884ea2f
😎 Deploy Preview https://deploy-preview-807--support-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

<a name="example.dnsbuf"></a>

```
dnsbuf {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we still have dnsbuf module? I thought we moved the config options to global.

And this options only work for ARES resolver, right? I don't see it's called out here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The dnsbuf module was retained for back compatibility, but you can see in the source code PR that it changes the new global configuration behind the scenes.
And yes, this is only applicable for ARES (indeed, it always was, even in the 4.7 version and older ones).

Copy link
Contributor

@juliebin juliebin Oct 16, 2025

Choose a reason for hiding this comment

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

So the config option defined in the module will be actually taken for the global? Why is it? We don't normally do it.
I would prefer to remove them from the dnsbuf module and only keep it as global.

Copy link
Contributor Author

@dkoerichbird dkoerichbird Oct 16, 2025

Choose a reason for hiding this comment

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

So the config option defined in the module will be actually taken for the global? Why is it? We don't normally do it.

The original implementation of dnsbuf relied on the UDP sockets that Momentum created for ARES in the glue logic with the imported library, so the changes in the options could be set at runtime, e.g., with a reload of the configuration.
Now the UDP buffers for the sockets created internally by ARES need to be configured at the library instantiation, i.e., during ecelerity startup. I looked for an example in the source where the core searches for and reads the options of an instantiated module to be applied during startup; however, I think that this is not possible with the current support of the modules API.

I would prefer to remove them from the dnsbuf module and only keep it as global.

If we replace the dnsbuf options with the global options, we'll break the configuration of customers that use that module.

Copy link
Contributor

Choose a reason for hiding this comment

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

  1. If we can re-initialize ARES lib/channels before, we should be able to do it now. But the easiest way right now is to keep the UG clear that such configuration change requires Momentum restart
  2. We don't want to keep supporting deprecated features. If dnsbuf has no need to exist any more, customers using it right now will fail to start Momentum and a one time fix to move the configuration to global will fix it. I'd like to go this route. Not mentioning that it's very unlikely dnsbuf is actually in use.

/opt/msys/ecelerity/bin/ec_console | grep DNS); echo; done
```

The following is an example in which Momentum started with ~30,000 unresolvable domains in the queue. Notice that the "packet receive errors" number has increased, and there are a high number of pending DNS queries.
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this meant to show the output from the above summary cmd and grep? It isn't, unless maybe you added a -C1 to the grep.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That would print the previous and next lines of the lines containing "DNS" in the command output, what I think is not the purpose here.

Copy link
Contributor

Choose a reason for hiding this comment

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

My point was that this example output does have lines before and after the lines with 'DNS' in them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I see your point, you were referring to the next snippet, sorry.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually, that output is for a 4.7 version and earlier, when there were fewer "DNS" lines in the summary output.
The first line comes from the output of netstat.

Signed-off-by: Doug Koerich <douglas.koerich@bird.com>
@dkoerichbird dkoerichbird marked this pull request as draft October 17, 2025 13:51
Signed-off-by: Doug Koerich <douglas.koerich@bird.com>
@dkoerichbird dkoerichbird marked this pull request as ready for review October 17, 2025 16:05
@dkoerichbird
Copy link
Contributor Author

The changes in documentation are limited to announcing that the dnsbuf was deprecated in 4.8. Unless we decide to backport the global options to GA releases, I'd hold documenting them until the next Momentum release (5.2?).

@dkoerichbird dkoerichbird changed the title TASK-91082: Changing dnsbuf documentation TASK-91082: Announce dnsbuf module deprecation Oct 17, 2025
Signed-off-by: Doug Koerich <douglas.koerich@bird.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants