]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ssl: rename and document the tune.ssl.cachesize option
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Nov 2012 15:32:15 +0000 (16:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 16 Nov 2012 15:47:10 +0000 (16:47 +0100)
Its was initially called "tune.sslcachesize" but not documented, let's
rename it and document it.

doc/configuration.txt
src/cfgparse.c

index 84a3f9a4836f49b58f3ee7141a80124a1ac86efa..9efd6025dc2294cd4e4b9ca908b9b0afcc02f167 100644 (file)
@@ -475,6 +475,7 @@ The following keywords are supported in the "global" section :
    - tune.rcvbuf.server
    - tune.sndbuf.client
    - tune.sndbuf.server
+   - tune.ssl.cachesize
    - tune.zlib.memlevel
    - tune.zlib.windowsize
 
@@ -849,6 +850,16 @@ tune.sndbuf.server <number>
   to the kernel waiting for a large part of the buffer to be read before
   notifying haproxy again.
 
+tune.ssl.cachesize <number>
+  Sets the size of the global SSL session cache, in number of sessions. Each
+  entry uses approximately 600 bytes of memory. The default value may be forced
+  at build time, otherwise defaults to 20000. When the cache is full, the most
+  idle entries are purged and reassigned. Higher values reduce the occurrence
+  of such a purge, hence the number of CPU-intensive SSL handshakes by ensuring
+  that all users keep their session as long as possible. All entries are pre-
+  allocated upon startup and are shared between all processes if "nbproc" is
+  greater than 1.
+
 tune.zlib.memlevel <number>
   Sets the memLevel parameter in zlib initialization for each session. It
   defines how much memory should be allocated for the intenal compression
index 569fcd354e5720adee562f60bf2f21aa7f6cdb49..0ca7a6f9741f19d565a7140b959ca8b27c9d8813 100644 (file)
@@ -563,7 +563,7 @@ int cfg_parse_global(const char *file, int linenum, char **args, int kwm)
                global.tune.chksize = atol(args[1]);
        }
 #ifdef USE_OPENSSL
-       else if (!strcmp(args[0], "tune.sslcachesize")) {
+       else if (!strcmp(args[0], "tune.ssl.cachesize")) {
                if (*(args[1]) == 0) {
                        Alert("parsing [%s:%d] : '%s' expects an integer argument.\n", file, linenum, args[0]);
                        err_code |= ERR_ALERT | ERR_FATAL;