-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Set weights in route manager #309
base: main
Are you sure you want to change the base?
Set weights in route manager #309
Conversation
Thanks! I'm adding this to my todo list for a vintage_net pass next week. I understand the motivation and agree that this is needed. |
I'm looking through the interface prioritization code. I'm thinking that I'd prefer a way to move this into VintageNet's configuration rather than making it changeable at runtime. The reason is to remove the case where interfaces are prioritized one way and then at a later time they're prioritized another way. I think this might lead to some confusion if there's TCP connection that can be made before or after the priority change based on lucky timing. I suppose the question is whether you know at compile time whether you want |
See #332. My thought now is that for your case where you don't want the default way that you supply a callback function that returns the metric. I think that the code that you'll need will be pretty short and easier to understand. Something like:
While I didn't do it in that PR, I'm tempted to remove the |
The changes seem like a nice improvement over the current implemenatation.
That's something I was about to ask. In the system I'm currently working on there's the ability for users to choose their own prioritization between network interfaces (some might prefer ethernet, some cellular, …). Therefore we need not only a way to customize the priorities statically, but also dynamically. We can probably use our own global state in combination with the new |
Adding this was proposed on slack. I couldn't find tests for that genserver. I'm not sure if this is fine to add like that.