Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Commit

Permalink
add weightRobin strategy algorithm is refer to nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
yufuqiang committed May 7, 2024
1 parent 77d19b0 commit 34e9dcf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion source/cluster_manager/strategy.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ var randomlyPick = function () {
};
};

//when all the candidate load is low it like roundRobin,when candidate load is hight is will
//Algorithm is from https://github.com/phusion/nginx/commit/27e94984486058d73157038f7950a0a36ecc6e35
//code is from https://github.com/nginx/nginx/blob/489e1e61912a808fdaffb4f513426cb285f267a3/src/http/ngx_http_upstream_round_robin.c#L522
var weightRobin = function() {
Expand Down

0 comments on commit 34e9dcf

Please sign in to comment.