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

Saving the config is not on every client (Rate limit). Improved performance on large configs #40

Merged
merged 8 commits into from
Jul 10, 2023

Conversation

FokiDoki
Copy link
Owner

@FokiDoki FokiDoki commented Jul 9, 2023

Now the config is not saved after each created peer. Saving occurs no more frequently than wg.config.save.min-interval ms. (2000 by default)
look at the diagram. Vertical axis - time to generate a new client (Fully automatic generation including PSK), Horizontal
axis - number of already added clients

draw

The new version is almost independent of the number of existing clients, and generates clients in a stable time

@FokiDoki FokiDoki added the enhancement New feature or request label Jul 9, 2023
@FokiDoki FokiDoki merged commit 0ceed42 into master Jul 10, 2023
@FokiDoki FokiDoki deleted the RateLimitedConfigSave branch July 10, 2023 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant