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

Use registration.json format instead of switches.json to get uplink speed #260

Merged
merged 2 commits into from
Apr 10, 2024

Conversation

nkinkade
Copy link
Contributor

@nkinkade nkinkade commented Apr 10, 2024

All physical machines have a systemd service that runs on boot which configures the fq qdisc on the default network interface. In order to properly configure the maxrate setting the script currently relies on the switches.json format. The problem is that not every physical site has a switch any longer, now that the ISC minimal site is moving to production. This PR changes the script to get the sites uplink speed from the registration.json siteinfo format, which will have a record for every machine at every site, no matter whether it is physical, virtual, full or minimal etc.


This change is Reviewable

Now that we are going to support minimal sites with only a single machine and
now switch we can no longer reliably get ulink speed information from the
switches.json siteinfo format, since minimal sites don't have a switch. This
commit changes the source for getting the uplink speed to the registration.json
format.
@nkinkade nkinkade requested a review from cristinaleonr April 10, 2024 21:01
Copy link

@cristinaleonr cristinaleonr left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! 1 of 1 approvals obtained

@nkinkade nkinkade merged commit 05caa82 into main Apr 10, 2024
2 of 5 checks passed
@nkinkade nkinkade deleted the sandbox-kinkade branch April 10, 2024 21:50
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