diff options
author | meskio <meskio@torproject.org> | 2021-06-25 13:47:47 +0200 |
---|---|---|
committer | meskio <meskio@torproject.org> | 2021-07-07 19:36:20 +0200 |
commit | 7a1857c42fdbaf78207d9e25ea814fe1d531036c (patch) | |
tree | e241c4139ff997a1cbc67cf8114e3548134426bc /doc | |
parent | 74bdb85b300cfec1694ffdb091a0efec31326579 (diff) | |
download | snowflake-7a1857c42fdbaf78207d9e25ea814fe1d531036c.tar.gz snowflake-7a1857c42fdbaf78207d9e25ea814fe1d531036c.zip |
Make the proxy to report the number of clients to the broker
So the assignment of proxies is based on the load. The number of clients
is ronded down to 8. Existing proxies that doesn't report the number
of clients will be distributed equaly to new proxies until they get 8
clients, that is okish as the existing proxies do have a maximum
capacity of 10.
Fixes #40048
Diffstat (limited to 'doc')
-rw-r--r-- | doc/broker-spec.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/broker-spec.txt b/doc/broker-spec.txt index 9e4b8ae..f2cd231 100644 --- a/doc/broker-spec.txt +++ b/doc/broker-spec.txt @@ -141,7 +141,9 @@ POST /proxy HTTP { Sid: [generated session id of proxy], Version: 1.1, - Type: ["badge"|"webext"|"standalone"|"mobile"] + Type: ["badge"|"webext"|"standalone"|"mobile"], + NAT: ["unknown"|"restricted"|"unrestricted"], + Clients: [number of current clients, rounded down to multiples of 8] } ``` |