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

Some fixes for the loadbalancing changes #121

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

DasSkelett
Copy link
Member

@DasSkelett DasSkelett commented Jan 9, 2024

Some bugs I noticed while trying out #87 on a gateway:

  • [worker] Use pyroute2.IPRoute instead of .NDB to get wg link address, as NDB() takes 20 seconds to instantiate
  • [worker] Fix get_connected_peers_coun() for peers without handshake time
  • [broker] Use total_peers count to correctly calculate diff to expected peers
  • [broker] Don't update worker status on MQTT messages if it hasn't actually changed (mostly to reduce log spam)

@DasSkelett DasSkelett added bug Something isn't working python Pull requests that update Python code labels Jan 9, 2024
@DasSkelett DasSkelett force-pushed the loadbalancing-fixes branch 2 times, most recently from 6f1f70f to 169e076 Compare January 10, 2024 19:31
- [worker] Use pyroute2.IPRoute instead of .NDB to get wg link address, as NDB() takes 20 seconds to instantiate
- [worker] Fix get_connected_peers_count() for peers without handshake time
- [broker] Use peer count sum from all domains to correctly calculate diff to expected peers in get_best_worker()
- [broker] Don't update worker status on MQTT messages if it hasn't actually changed
@DasSkelett DasSkelett marked this pull request as ready for review January 23, 2024 18:33
@DasSkelett DasSkelett requested a review from a team January 23, 2024 19:16
@DasSkelett DasSkelett merged commit b7d6e16 into freifunkMUC:main Jan 23, 2024
5 checks passed
@DasSkelett DasSkelett deleted the loadbalancing-fixes branch January 23, 2024 22:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants