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

New Feature: Outbound random selection for urlTest based on best latency. #1557

Open
wants to merge 36 commits into
base: dev-next
Choose a base branch
from

Conversation

ashly-right
Copy link

This feature provides a simple load balancer with a random/least-latency strategy. This update should be completely backward compatible.

An attribute named "randomize" was added to the urlTest outbound. the default value is false.

Functionality:
When randomize is set to true, the application makes a list of the best latency each time and selects one of them randomly for each new connection.

@ashly-right
Copy link
Author

@nekohasekai Dear
Could you please review this request whenever you can? Thank you very much.

@nekohasekai nekohasekai force-pushed the dev-next branch 6 times, most recently from f8ab52f to cc8ae72 Compare March 26, 2024 13:29
@ashly-right
Copy link
Author

@CodingMoeButa Thank you very much for your comment and test. You are right, there is a slight problem with the startup regarding the first testing

Pure randomization is a good solution for crawler purposes when you have tested the proxies before. But we need a solution for testing and randomization for an anti-censorship app. because we need to establish a reliable connection within all possible proxies.

I can implement a separate random outbound as well. but the question is whether the repository owner wants these features or not. I couldn't find a contribution rule. I hope one of the repo admins helps me.

@nekohasekai nekohasekai force-pushed the dev-next branch 4 times, most recently from a6b1f1b to 996c173 Compare May 21, 2024 07:17
@nekohasekai nekohasekai force-pushed the dev-next branch 19 times, most recently from c5776d8 to b20369e Compare May 29, 2024 09:34
@scplay
Copy link

scplay commented May 30, 2024

Hope new feature like load balancer in clash, poll and hash map

@nekohasekai nekohasekai force-pushed the dev-next branch 5 times, most recently from fb8d54d to 3c2ce4d Compare May 31, 2024 05:34
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.

None yet

7 participants