commit | f76a21f78c2066f74fb04875006e08bc7a9413db | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sat Oct 17 19:45:42 2020 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sat Oct 17 19:49:49 2020 +0200 |
tree | 7df552bfb1964e8327fce1339251569ad8fec454 | |
parent | 58bc9c1ced43b7802200d4d71e0eb5f850e0e801 [diff] |
MINOR: lb/first: use a read lock in fas_get_next_server() The "first" algorithm creates a lot of contention because all threads focus on the same server by definition (the first available one). By turning the exclusive lock to a read lock in fas_get_next_server(), the request rate increases by 16% for 8 threads when many servers are getting close to their maxconn.