commit | 7d6a1fa311312bb99b98f548399fc30fc7802ad7 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Dec 20 17:18:13 2019 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Dec 20 17:18:13 2019 +0100 |
tree | 6f4ee618986b27c930709a67d2f571c51f85fffb | |
parent | b3814c2ca8a8c28a890f8f50e0a35d5247222a12 [diff] |
BUG/MEDIUM: state-file: do not allocate a full buffer for each server entry Starting haproxy with a state file of 700k servers eats 11.2 GB of RAM due to a mistake in the function that loads the strings into a tree: it allocates a full buffer for each backend+server name instead of allocating just the required string. By just fixing this we're down to 80 MB. This should be backported to 2.1.