1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038
|
/*-
* Copyright (c) 2015-2020 Varnish Software AS
* All rights reserved.
*
* Author: Poul-Henning Kamp <phk@phk.freebsd.dk>
*
* SPDX-License-Identifier: BSD-2-Clause
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* PARAM(typ, fld, ...)
*
* typ: parameter type
* fld: struct params field name
* ...: struct parspec fields, except the non-const string fields
*/
/*lint -save -e525 -e539 -e835 */
#ifndef PARAM_ALL
# define PARAM_PRE
# define PARAM_POST
#endif
/*--------------------------------------------------------------------
* Simple parameters
*/
#define PARAM_SIMPLE(nm, typ, ...) \
PARAM_PRE \
PARAM(typ, nm, nm, tweak_##typ, &mgt_param.nm, __VA_ARGS__) \
PARAM_POST
#if defined(PLATFORM_FLAGS)
# error "Temporary macro PLATFORM_FLAGS already defined"
#endif
#if defined(HAVE_ACCEPT_FILTERS)
# define PLATFORM_FLAGS MUST_RESTART
#else
# define PLATFORM_FLAGS NOT_IMPLEMENTED
#endif
PARAM_SIMPLE(
/* name */ accept_filter,
/* type */ boolean,
/* min */ NULL,
/* max */ NULL,
/* def */ "on", /* default adjusted in mgt_param.c */
/* units */ "bool",
/* descr */
"Enable kernel accept-filters. This may require a kernel module to "
"be loaded to have an effect when enabled.\n\n"
"Enabling accept_filter may prevent some requests to reach Varnish "
"in the first place. Malformed requests may go unnoticed and not "
"increase the client_req_400 counter. GET or HEAD requests with a "
"body may be blocked altogether.",
/* flags */ PLATFORM_DEPENDENT | PLATFORM_FLAGS,
/* dyn_min_reason */ NULL,
/* dyn_max_reason */ NULL,
/* dyn_def_reason */ "on (if your platform supports accept filters)"
)
#undef PLATFORM_FLAGS
PARAM_SIMPLE(
/* name */ acceptor_sleep_decay,
/* type */ double,
/* min */ "0",
/* max */ "1",
/* def */ "0.9",
/* units */ NULL,
/* descr */
"If we run out of resources, such as file descriptors or worker "
"threads, the acceptor will sleep between accepts.\n"
"This parameter (multiplicatively) reduce the sleep duration for "
"each successful accept. (ie: 0.9 = reduce by 10%)",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ acceptor_sleep_incr,
/* type */ duration,
/* min */ "0",
/* max */ "1",
/* def */ "0",
/* units */ "seconds",
/* descr */
"If we run out of resources, such as file descriptors or worker "
"threads, the acceptor will sleep between accepts.\n"
"This parameter control how much longer we sleep, each time we "
"fail to accept a new connection.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ acceptor_sleep_max,
/* type */ duration,
/* min */ "0",
/* max */ "10",
/* def */ "0.05",
/* units */ "seconds",
/* descr */
"If we run out of resources, such as file descriptors or worker "
"threads, the acceptor will sleep between accepts.\n"
"This parameter limits how long it can sleep between attempts to "
"accept new connections.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ auto_restart,
/* type */ boolean,
/* min */ NULL,
/* max */ NULL,
/* def */ "on",
/* units */ "bool",
/* descr */
"Automatically restart the child/worker process if it dies."
)
PARAM_SIMPLE(
/* name */ ban_dups,
/* type */ boolean,
/* min */ NULL,
/* max */ NULL,
/* def */ "on",
/* units */ "bool",
/* descr */
"Eliminate older identical bans when a new ban is added. This saves "
"CPU cycles by not comparing objects to identical bans.\n"
"This is a waste of time if you have many bans which are never "
"identical."
)
PARAM_SIMPLE(
/* name */ ban_cutoff,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "0",
/* units */ "bans",
/* descr */
"Expurge long tail content from the cache to keep the number of bans "
"below this value. 0 disables.\n\n"
"When this parameter is set to a non-zero value, the ban lurker "
"continues to work the ban list as usual top to bottom, but when it "
"reaches the ban_cutoff-th ban, it treats all objects as if they "
"matched a ban and expunges them from cache. As actively used objects "
"get tested against the ban list at request time and thus are likely "
"to be associated with bans near the top of the ban list, with "
"ban_cutoff, least recently accessed objects (the \"long tail\") are "
"removed.\n\n"
"This parameter is a safety net to avoid bad response times due to "
"bans being tested at lookup time. Setting a cutoff trades response "
"time for cache efficiency. The recommended value is proportional to "
"rate(bans_lurker_tests_tested) / n_objects while the ban lurker is "
"working, which is the number of bans the system can sustain. The "
"additional latency due to request ban testing is in the order of "
"ban_cutoff / rate(bans_lurker_tests_tested). For example, for "
"rate(bans_lurker_tests_tested) = 2M/s and a tolerable latency of "
"100ms, a good value for ban_cutoff may be 200K.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ ban_lurker_age,
/* type */ duration,
/* min */ "0",
/* max */ NULL,
/* def */ "60",
/* units */ "seconds",
/* descr */
"The ban lurker will ignore bans until they are this old. "
"When a ban is added, the active traffic will be tested against it "
"as part of object lookup. Because many applications issue bans in "
"bursts, this parameter holds the ban-lurker off until the rush is "
"over.\n"
"This should be set to the approximate time which a ban-burst takes."
)
PARAM_SIMPLE(
/* name */ ban_lurker_batch,
/* type */ uint,
/* min */ "1",
/* max */ NULL,
/* def */ "1000",
/* units */ NULL,
/* descr */
"The ban lurker sleeps ${ban_lurker_sleep} after examining this "
"many objects."
" Use this to pace the ban-lurker if it eats too many resources."
)
PARAM_SIMPLE(
/* name */ ban_lurker_sleep,
/* type */ duration,
/* min */ "0",
/* max */ NULL,
/* def */ "0.010",
/* units */ "seconds",
/* descr */
"How long the ban lurker sleeps after examining ${ban_lurker_batch} "
"objects."
" Use this to pace the ban-lurker if it eats too many resources.\n"
"A value of zero will disable the ban lurker entirely."
)
PARAM_SIMPLE(
/* name */ ban_lurker_holdoff,
/* type */ duration,
/* min */ "0",
/* max */ NULL,
/* def */ "0.010",
/* units */ "seconds",
/* descr */
"How long the ban lurker sleeps when giving way to lookup"
" due to lock contention.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ first_byte_timeout,
/* type */ timeout,
/* min */ "0",
/* max */ NULL,
/* def */ "60",
/* units */ "seconds",
/* descr */
"Default timeout for receiving first byte from backend. We only "
"wait for this many seconds for the first byte before giving up.\n"
"VCL can override this default value for each backend and backend "
"request.\n"
"This parameter does not apply to pipe'ed requests."
)
PARAM_SIMPLE(
/* name */ between_bytes_timeout,
/* type */ timeout,
/* min */ "0",
/* max */ NULL,
/* def */ "60",
/* units */ "seconds",
/* descr */
"We only wait for this many seconds between bytes received from "
"the backend before giving up the fetch.\n"
"VCL values, per backend or per backend request take precedence.\n"
"This parameter does not apply to pipe'ed requests."
)
PARAM_SIMPLE(
/* name */ backend_idle_timeout,
/* type */ duration,
/* min */ "1",
/* max */ NULL,
/* def */ "60",
/* units */ "seconds",
/* descr */
"Timeout before we close unused backend connections."
)
PARAM_SIMPLE(
/* name */ backend_local_error_holddown,
/* type */ duration,
/* min */ "0.000",
/* max */ NULL,
/* def */ "10.000",
/* units */ "seconds",
/* descr */
"When connecting to backends, certain error codes "
"(EADDRNOTAVAIL, EACCESS, EPERM) signal a local resource shortage "
"or configuration issue for which retrying connection attempts "
"may worsen the situation due to the complexity of the operations "
"involved in the kernel.\n"
"This parameter prevents repeated connection attempts for the "
"configured duration.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ backend_remote_error_holddown,
/* type */ duration,
/* min */ "0.000",
/* max */ NULL,
/* def */ "0.250",
/* units */ "seconds",
/* descr */
"When connecting to backends, certain error codes (ECONNREFUSED, "
"ENETUNREACH) signal fundamental connection issues such as the backend "
"not accepting connections or routing problems for which repeated "
"connection attempts are considered useless\n"
"This parameter prevents repeated connection attempts for the "
"configured duration.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ backend_wait_timeout,
/* type */ timeout,
/* min */ "0.000",
/* max */ NULL,
/* def */ "0.000",
/* units */ "seconds",
/* descr */
"When a backend has no connections available for a transaction, "
"the transaction can be queued (see backend_wait_limit) to wait for "
"a connection. This is the default time that the transaction will "
"wait before giving up. VCL can override this default value for each "
"backend.\n\n"
"It is strongly advised to never set this higher than a couple of seconds.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ backend_wait_limit,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "0",
/* units */ NULL,
/* descr */
"Maximum number of transactions that can queue waiting for a backend "
"connection to become available. This default of 0 (zero) means that "
"there is no transaction queueing. VCL can override this default value "
"for each backend.\n\n"
"Note that this feature must be used with caution, as it can "
"cause threads to pile up and increase response times.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ cli_limit,
/* type */ bytes_u,
/* min */ "128b",
/* max */ "99999999b",
/* def */ "64k",
/* units */ "bytes",
/* descr */
"Maximum size of CLI response. If the response exceeds this "
"limit, the response code will be 201 instead of 200 and the last "
"line will indicate the truncation."
)
PARAM_SIMPLE(
/* name */ cli_timeout,
/* type */ timeout,
/* min */ "0.000",
/* max */ NULL,
/* def */ "60.000",
/* units */ "seconds",
/* descr */
"Timeout for the child's replies to CLI requests."
)
PARAM_SIMPLE(
/* name */ startup_timeout,
/* type */ timeout,
/* min */ "0.000",
/* max */ NULL,
/* def */ "0.000",
/* units */ "seconds",
/* descr */
"Alternative timeout for the initial worker process startup.\n"
"If cli_timeout is longer than startup_timeout, it is used instead."
)
PARAM_SIMPLE(
/* name */ clock_skew,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "10",
/* units */ "seconds",
/* descr */
"How much clockskew we are willing to accept between the backend "
"and our own clock."
)
PARAM_SIMPLE(
/* name */ clock_step,
/* type */ duration,
/* min */ "0.000",
/* max */ NULL,
/* def */ "1.000",
/* units */ "seconds",
/* descr */
"How much observed clock step we are willing to accept before "
"we panic."
)
PARAM_SIMPLE(
/* name */ connect_timeout,
/* type */ timeout,
/* min */ "0.000",
/* max */ NULL,
/* def */ "3.500",
/* units */ "seconds",
/* descr */
"Default connection timeout for backend connections. We only try "
"to connect to the backend for this many seconds before giving up. "
"VCL can override this default value for each backend and backend "
"request."
)
PARAM_SIMPLE(
/* name */ critbit_cooloff,
/* type */ duration,
/* min */ "60.000",
/* max */ "254.000",
/* def */ "180.000",
/* units */ "seconds",
/* descr */
"How long the critbit hasher keeps deleted objheads on the cooloff "
"list.",
/* flags */ WIZARD
)
PARAM_SIMPLE(
/* name */ default_grace,
/* type */ duration,
/* min */ "0.000",
/* max */ NULL,
/* def */ "10s",
/* units */ "seconds",
/* descr */
"Default grace period. We will deliver an object this long after "
"it has expired, provided another thread is attempting to get a "
"new copy.",
/* flags */ OBJ_STICKY,
/* dyn_min_reason */ NULL,
/* dyn_max_reason */ NULL,
/* dyn_def_reason */ "10s"
)
PARAM_SIMPLE(
/* name */ default_keep,
/* type */ duration,
/* min */ "0.000",
/* max */ NULL,
/* def */ "0s",
/* units */ "seconds",
/* descr */
"Default keep period. We will keep a useless object around this "
"long, making it available for conditional backend fetches. That "
"means that the object will be removed from the cache at the end "
"of ttl+grace+keep.",
/* flags */ OBJ_STICKY,
/* dyn_min_reason */ NULL,
/* dyn_max_reason */ NULL,
/* dyn_def_reason */ "0s"
)
PARAM_SIMPLE(
/* name */ default_ttl,
/* type */ duration,
/* min */ "0.000",
/* max */ NULL,
/* def */ "2m",
/* units */ "seconds",
/* descr */
"The TTL assigned to objects if neither the backend nor the VCL "
"code assigns one.",
/* flags */ OBJ_STICKY,
/* dyn_min_reason */ NULL,
/* dyn_max_reason */ NULL,
/* dyn_def_reason */ "2m"
)
PARAM_SIMPLE(
/* name */ http1_iovs,
/* type */ uint,
/* min */ "5",
/* max */ "1024", // XXX stringify IOV_MAX
/* def */ "64",
/* units */ "struct iovec (=16 bytes)",
/* descr */
"Number of io vectors to allocate for HTTP1 protocol transmission."
" A HTTP1 header needs 7 + 2 per HTTP header field."
" Allocated from workspace_thread."
" This parameter affects only io vectors used for client delivery."
" For backend fetches, the maximum number of io vectors (up to IOV_MAX)"
" is allocated from available workspace_thread memory.",
/* flags */ WIZARD
)
PARAM_SIMPLE(
/* name */ fetch_chunksize,
/* type */ bytes,
/* min */ "4k",
/* max */ NULL,
/* def */ "16k",
/* units */ "bytes",
/* descr */
"The default chunksize used by fetcher. This should be bigger than "
"the majority of objects with short TTLs.\n"
"Internal limits in the storage_file module makes increases above "
"128kb a dubious idea.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ fetch_maxchunksize,
/* type */ bytes,
/* min */ "64k",
/* max */ NULL,
/* def */ "0.25G",
/* units */ "bytes",
/* descr */
"The maximum chunksize we attempt to allocate from storage. Making "
"this too large may cause delays and storage fragmentation.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ gzip_buffer,
/* type */ bytes_u,
/* min */ "2k",
/* max */ NULL,
/* def */ "32k",
/* units */ "bytes",
/* descr */
"Size of malloc buffer used for gzip processing.\n"
"These buffers are used for in-transit data, for instance "
"gunzip'ed data being sent to a client.Making this space to small "
"results in more overhead, writes to sockets etc, making it too "
"big is probably just a waste of memory.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ gzip_level,
/* type */ uint,
/* min */ "0",
/* max */ "9",
/* def */ "6",
/* units */ NULL,
/* descr */
"Gzip compression level: 0=debug, 1=fast, 9=best"
)
PARAM_SIMPLE(
/* name */ gzip_memlevel,
/* type */ uint,
/* min */ "1",
/* max */ "9",
/* def */ "8",
/* units */ NULL,
/* descr */
"Gzip memory level 1=slow/least, 9=fast/most compression.\n"
"Memory impact is 1=1k, 2=2k, ... 9=256k."
)
PARAM_SIMPLE(
/* name */ http_gzip_support,
/* type */ boolean,
/* min */ NULL,
/* max */ NULL,
/* def */ "on",
/* units */ "bool",
/* descr */
"Enable gzip support. When enabled Varnish request compressed "
"objects from the backend and store them compressed. If a client "
"does not support gzip encoding Varnish will uncompress compressed "
"objects on demand. Varnish will also rewrite the Accept-Encoding "
"header of clients indicating support for gzip to:\n"
" Accept-Encoding: gzip\n"
"\n"
"Clients that do not support gzip will have their Accept-Encoding "
"header removed. For more information on how gzip is implemented "
"please see the chapter on gzip in the Varnish reference.\n"
"\n"
"When gzip support is disabled the variables beresp.do_gzip and "
"beresp.do_gunzip have no effect in VCL."
/* XXX: what about the effect on beresp.filters? */
)
PARAM_SIMPLE(
/* name */ http_max_hdr,
/* type */ uint,
/* min */ "32",
/* max */ "65535",
/* def */ "64",
/* units */ "header lines",
/* descr */
"Maximum number of HTTP header lines we allow in "
"{req|resp|bereq|beresp}.http (obj.http is autosized to the exact "
"number of headers).\n"
"Cheap, ~20 bytes, in terms of workspace memory.\n"
"Note that the first line occupies five header lines."
)
PARAM_SIMPLE(
/* name */ http_range_support,
/* type */ boolean,
/* min */ NULL,
/* max */ NULL,
/* def */ "on",
/* units */ "bool",
/* descr */
"Enable support for HTTP Range headers."
/* XXX: what about the effect on beresp.filters? */
)
PARAM_SIMPLE(
/* name */ http_req_hdr_len,
/* type */ bytes_u,
/* min */ "40b",
/* max */ NULL,
/* def */ "8k",
/* units */ "bytes",
/* descr */
"Maximum length of any HTTP client request header we will allow. "
"The limit is inclusive its continuation lines."
)
PARAM_SIMPLE(
/* name */ http_req_size,
/* type */ bytes_u,
/* min */ "0.25k",
/* max */ NULL,
/* def */ "32k",
/* units */ "bytes",
/* descr */
"Maximum number of bytes of HTTP client request we will deal with. "
"This is a limit on all bytes up to the double blank line which "
"ends the HTTP request. "
"The memory for the request is allocated from the client workspace "
"(param: workspace_client) and this parameter limits how much of "
"that the request is allowed to take up.\n\n"
"For HTTP2 clients, it is advertised as MAX_HEADER_LIST_SIZE in "
"the initial SETTINGS frame."
)
PARAM_SIMPLE(
/* name */ http_req_overflow_status,
/* type */ uint_orzero,
/* min */ "400",
/* max */ "499",
/* def */ "0",
/* units */ "HTTP status code or 0 to disable",
/* descr */
"HTTP status code to be returned if http_req_size is exceeded. "
"The default value of 0 closes the connection silently without "
"sending a HTTP response.\n"
"Note that there is no standard HTTP status which exactly matches "
"the implementation of http_req_size. 414 applies to the URL only, "
"while 413 applies to the request body. 400 is probably the least "
"incorrect alternative value to sending no response at all (0)."
)
PARAM_SIMPLE(
/* name */ http_resp_hdr_len,
/* type */ bytes_u,
/* min */ "40b",
/* max */ NULL,
/* def */ "8k",
/* units */ "bytes",
/* descr */
"Maximum length of any HTTP backend response header we will allow. "
" The limit is inclusive its continuation lines."
)
PARAM_SIMPLE(
/* name */ http_resp_size,
/* type */ bytes_u,
/* min */ "0.25k",
/* max */ NULL,
/* def */ "32k",
/* units */ "bytes",
/* descr */
"Maximum number of bytes of HTTP backend response we will deal "
"with. This is a limit on all bytes up to the double blank line "
"which ends the HTTP response.\n"
"The memory for the response is allocated from the backend workspace "
"(param: workspace_backend) and this parameter limits how much "
"of that the response is allowed to take up."
)
PARAM_SIMPLE(
/* name */ idle_send_timeout,
/* type */ timeout,
/* min */ "0s",
/* max */ "1h",
/* def */ "60s",
/* units */ "seconds",
/* descr */
"Send timeout for individual pieces of data on client connections."
" May get extended if 'send_timeout' applies.\n\n"
"When this timeout is hit, the session is closed.\n\n"
"See the man page for `setsockopt(2)` or `socket(7)` under"
" ``SO_SNDTIMEO`` for more information.",
/* flags */ DELAYED_EFFECT
)
PARAM_SIMPLE(
/* name */ listen_depth,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "1024",
/* units */ "connections",
/* descr */
"Listen queue depth.",
/* flags */ MUST_RESTART
)
PARAM_SIMPLE(
/* name */ lru_interval,
/* type */ duration,
/* min */ "0.000",
/* max */ NULL,
/* def */ "2.000",
/* units */ "seconds",
/* descr */
"Grace period before object moves on LRU list.\n"
"Objects are only moved to the front of the LRU list if they have "
"not been moved there already inside this timeout period. This "
"reduces the amount of lock operations necessary for LRU list "
"access.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ ban_any_variant,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "10000",
/* units */ "checks",
/* descr */
"Maximum number of possibly non matching variants that we evaluate "
"against the ban list during a lookup.\n"
"Setting this to 0 means that only the matching variants will be "
"evaluated against the current ban list."
)
PARAM_SIMPLE(
/* name */ max_esi_depth,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "5",
/* units */ "levels",
/* descr */
"Maximum depth of esi:include processing."
)
PARAM_SIMPLE(
/* name */ max_restarts,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "4",
/* units */ "restarts",
/* descr */
"Upper limit on how many times a request can restart.",
/* flags */ DELAYED_EFFECT
)
PARAM_SIMPLE(
/* name */ max_retries,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "4",
/* units */ "retries",
/* descr */
"Upper limit on how many times a backend fetch can retry.",
/* flags */ DELAYED_EFFECT
)
PARAM_SIMPLE(
/* name */ nuke_limit,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "50",
/* units */ "allocations",
/* descr */
"Maximum number of objects we attempt to nuke in order to make "
"space for a object body.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ panic_buffer,
/* type */ bytes_u,
/* min */ "4k",
/* max */ "10m",
/* def */ "64k",
/* units */ "bytes",
/* descr */
"Size of the panic message buffer.\n"
"The panic buffer is allocated in the working directory as memory "
"shared between the management and worker process, so sufficient "
"working directory space should be accounted for if this value is "
"adjusted. Panic messages are truncated to the configured size.",
/* flags */ MUST_RESTART
)
PARAM_SIMPLE(
/* name */ pcre2_jit_compilation,
/* type */ boolean,
/* min */ NULL,
/* max */ NULL,
/* def */ "on",
/* units */ "bool",
/* descr */
"Use the pcre2 JIT compiler if available."
)
PARAM_SIMPLE(
/* name */ ping_interval,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "3",
/* units */ "seconds",
/* descr */
"Interval between pings from parent to child.\n"
"Zero will disable pinging entirely, which makes it possible to "
"attach a debugger to the child.",
/* flags */ MUST_RESTART
)
PARAM_SIMPLE(
/* name */ pipe_sess_max,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "0",
/* units */ "connections",
/* descr */
"Maximum number of sessions dedicated to pipe transactions."
)
PARAM_SIMPLE(
/* name */ pipe_task_deadline,
/* type */ timeout,
/* min */ "0.000",
/* max */ NULL,
/* def */ "0s",
/* units */ "seconds",
/* descr */
"Deadline for PIPE sessions. Regardless of activity in either "
"direction after this many seconds, the session is closed."
)
PARAM_SIMPLE(
/* name */ pipe_timeout,
/* type */ timeout,
/* min */ "0.000",
/* max */ NULL,
/* def */ "60.000",
/* units */ "seconds",
/* descr */
"Idle timeout for PIPE sessions. If nothing have been received in "
"either direction for this many seconds, the session is closed."
)
PARAM_SIMPLE(
/* name */ prefer_ipv6,
/* type */ boolean,
/* min */ NULL,
/* max */ NULL,
/* def */ "off",
/* units */ "bool",
/* descr */
"Prefer IPv6 address when connecting to backends which have both "
"IPv4 and IPv6 addresses."
)
PARAM_SIMPLE(
/* name */ rush_exponent,
/* type */ uint,
/* min */ "2",
/* max */ NULL,
/* def */ "3",
/* units */ "requests per request",
/* descr */
"How many parked request we start for each completed request on "
"the object.\n"
"NB: Even with the implicit delay of delivery, this parameter "
"controls an exponential increase in number of worker threads.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ send_timeout,
/* type */ timeout,
/* min */ "0.000",
/* max */ NULL,
/* def */ "600.000",
/* units */ "seconds",
/* descr */
"Total timeout for ordinary HTTP1 responses. Does not apply to some"
" internally generated errors and pipe mode.\n\n"
"When 'idle_send_timeout' is hit while sending an HTTP1 response, the"
" timeout is extended unless the total time already taken for sending"
" the response in its entirety exceeds this many seconds.\n\n"
"When this timeout is hit, the session is closed",
/* flags */ DELAYED_EFFECT
)
PARAM_SIMPLE(
/* name */ shortlived,
/* type */ duration,
/* min */ "0.000",
/* max */ NULL,
/* def */ "10.000",
/* units */ "seconds",
/* descr */
"Objects created with (ttl+grace+keep) shorter than this are "
"always put in transient storage."
)
PARAM_SIMPLE(
/* name */ sigsegv_handler,
/* type */ boolean,
/* min */ NULL,
/* max */ NULL,
/* def */ "on",
/* units */ "bool",
/* descr */
"Install a signal handler which tries to dump debug information on "
"segmentation faults, bus errors and abort signals.",
/* flags */ MUST_RESTART
)
PARAM_SIMPLE(
/* name */ syslog_cli_traffic,
/* type */ boolean,
/* min */ NULL,
/* max */ NULL,
/* def */ "on",
/* units */ "bool",
/* descr */
"Log all CLI traffic to syslog(LOG_INFO)."
)
#if defined(HAVE_TCP_FASTOPEN)
# define PLATFORM_FLAGS MUST_RESTART
#else
# define PLATFORM_FLAGS NOT_IMPLEMENTED
#endif
PARAM_SIMPLE(
/* name */ tcp_fastopen,
/* type */ boolean,
/* min */ NULL,
/* max */ NULL,
/* def */ "off",
/* units */ "bool",
/* descr */
"Enable TCP Fast Open extension.",
/* flags */ PLATFORM_DEPENDENT | PLATFORM_FLAGS
)
#undef PLATFORM_FLAGS
#if defined(HAVE_TCP_KEEP)
# define PLATFORM_FLAGS EXPERIMENTAL
#else
# define PLATFORM_FLAGS NOT_IMPLEMENTED
#endif
PARAM_SIMPLE(
/* name */ tcp_keepalive_intvl,
/* type */ duration,
/* min */ "1",
/* max */ "100",
/* def */ NULL,
/* units */ "seconds",
/* descr */
"The number of seconds between TCP keep-alive probes. "
"Ignored for Unix domain sockets.",
/* flags */ PLATFORM_DEPENDENT | PLATFORM_FLAGS,
/* dyn_min_reason */ NULL,
/* dyn_max_reason */ NULL,
/* dyn_def_reason */ "platform dependent"
)
PARAM_SIMPLE(
/* name */ tcp_keepalive_probes,
/* type */ uint,
/* min */ "1",
/* max */ "100",
/* def */ NULL,
/* units */ "probes",
/* descr */
"The maximum number of TCP keep-alive probes to send before giving "
"up and killing the connection if no response is obtained from the "
"other end. Ignored for Unix domain sockets.",
/* flags */ PLATFORM_DEPENDENT | PLATFORM_FLAGS,
/* dyn_min_reason */ NULL,
/* dyn_max_reason */ NULL,
/* dyn_def_reason */ "platform dependent"
)
PARAM_SIMPLE(
/* name */ tcp_keepalive_time,
/* type */ duration,
/* min */ "1",
/* max */ "7200",
/* def */ NULL,
/* units */ "seconds",
/* descr */
"The number of seconds a connection needs to be idle before TCP "
"begins sending out keep-alive probes. "
"Ignored for Unix domain sockets.",
/* flags */ PLATFORM_DEPENDENT | PLATFORM_FLAGS,
/* dyn_min_reason */ NULL,
/* dyn_max_reason */ NULL,
/* dyn_def_reason */ "platform dependent"
)
#undef PLATFORM_FLAGS
PARAM_SIMPLE(
/* name */ timeout_idle,
/* type */ duration,
/* min */ "0s",
/* max */ "1h",
/* def */ "5s",
/* units */ "seconds",
/* descr */
"Idle timeout for client connections.\n\n"
"A connection is considered idle until we have received the full"
" request headers.\n\n"
"This parameter is particularly relevant for HTTP1 keepalive "
" connections which are closed unless the next request is received"
" before this timeout is reached."
)
PARAM_SIMPLE(
/* name */ timeout_linger,
/* type */ duration,
/* min */ "0.000",
/* max */ NULL,
/* def */ "0.050",
/* units */ "seconds",
/* descr */
"How long the worker thread lingers on an idle session before "
"handing it over to the waiter.\n"
"When sessions are reused, as much as half of all reuses happen "
"within the first 100 msec of the previous request completing.\n"
"Setting this too high results in worker threads not doing "
"anything for their keep, setting it too low just means that more "
"sessions take a detour around the waiter.",
/* flags */ EXPERIMENTAL
)
PARAM_SIMPLE(
/* name */ transit_buffer,
/* type */ bytes,
/* min */ "0k",
/* max */ NULL,
/* def */ "0k",
/* units */ "bytes",
/* descr */
"The number of bytes which Varnish buffers for uncacheable "
"backend streaming fetches - in other words, how many bytes "
"Varnish reads from the backend ahead of what has been sent to "
"the client.\n"
"A zero value means no limit, the object is fetched as fast as "
"possible.\n\n"
"When dealing with slow clients, setting this parameter to "
"non-zero can prevent large uncacheable objects from being "
"stored in full when the intent is to simply stream them to the "
"client. As a result, a slow client transaction holds onto a "
"backend connection until the end of the delivery.\n\n"
"This parameter is the default to the VCL variable "
"``beresp.transit_buffer``, which can be used to control the "
"transit buffer per backend request."
)
PARAM_SIMPLE(
/* name */ vary_notice,
/* type */ uint,
/* min */ "1",
/* max */ NULL,
/* def */ "10",
/* units */ "variants",
/* descr */
"How many variants need to be evaluated to log a Notice that there "
"might be too many variants."
)
PARAM_SIMPLE(
/* name */ vcl_cooldown,
/* type */ duration,
/* min */ "1.000",
/* max */ NULL,
/* def */ "600.000",
/* units */ "seconds",
/* descr */
"How long a VCL is kept warm after being replaced as the "
"active VCL (granularity approximately 30 seconds)."
)
PARAM_SIMPLE(
/* name */ max_vcl_handling,
/* type */ uint,
/* min */ "0",
/* max */ "2",
/* def */ "1",
/* units */ NULL,
/* descr */
"Behaviour when attempting to exceed max_vcl loaded VCL.\n"
"\n* 0 - Ignore max_vcl parameter.\n"
"\n* 1 - Issue warning.\n"
"\n* 2 - Refuse loading VCLs."
)
PARAM_SIMPLE(
/* name */ max_vcl,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "100",
/* units */ NULL,
/* descr */
"Threshold of loaded VCL programs. (VCL labels are not counted.)"
" Parameter max_vcl_handling determines behaviour."
)
PARAM_SIMPLE(
/* name */ vsm_free_cooldown,
/* type */ duration,
/* min */ "10.000",
/* max */ "600.000",
/* def */ "60.000",
/* units */ "seconds",
/* descr */
"How long VSM memory is kept warm after a deallocation "
"(granularity approximately 2 seconds)."
)
PARAM_SIMPLE(
/* name */ vsl_buffer,
/* type */ vsl_buffer,
/* min */ "267",
/* max */ NULL,
/* def */ "16k",
/* units */ "bytes",
/* descr */
"Bytes of (req-/backend-)workspace dedicated to buffering VSL "
"records.\n"
"When this parameter is adjusted, most likely workspace_client "
"and workspace_backend will have to be adjusted by the same amount.\n\n"
"Setting this too high costs memory, setting it too low will cause "
"more VSL flushes and likely increase lock-contention on the VSL "
"mutex.",
/* flags */ 0,
/* dyn_min_reason */ "vsl_reclen + 12 bytes"
)
PARAM_SIMPLE(
/* name */ vsl_reclen,
/* type */ vsl_reclen,
/* min */ "16b",
/* max */ "65535b", // VSL_LENMASK
/* def */ "255b",
/* units */ "bytes",
/* descr */
"Maximum number of bytes in SHM log record.",
/* flags */ 0,
/* dyn_min_reason */ NULL,
/* dyn_max_reason */ "vsl_buffer - 12 bytes"
)
PARAM_SIMPLE(
/* name */ vsl_space,
/* type */ bytes,
/* min */ "1M",
/* max */ "4G",
/* def */ "80M",
/* units */ "bytes",
/* descr */
"The amount of space to allocate for the VSL fifo buffer in the "
"VSM memory segment. If you make this too small, "
"varnish{ncsa|log} etc will not be able to keep up. Making it too "
"large just costs memory resources.",
/* flags */ MUST_RESTART
)
PARAM_SIMPLE(
/* name */ workspace_backend,
/* type */ bytes_u,
/* min */ "1k",
/* max */ NULL,
/* def */ "96k",
/* units */ "bytes",
/* descr */
"Bytes of HTTP protocol workspace for backend HTTP req/resp. If "
"larger than 4k, use a multiple of 4k for VM efficiency.",
/* flags */ DELAYED_EFFECT
)
PARAM_SIMPLE(
/* name */ workspace_client,
/* type */ bytes_u,
/* min */ "9k",
/* max */ NULL,
/* def */ "96k",
/* units */ "bytes",
/* descr */
"Bytes of HTTP protocol workspace for clients HTTP req/resp. Use a "
"multiple of 4k for VM efficiency.\n"
"For HTTP/2 compliance this must be at least 20k, in order to "
"receive fullsize (=16k) frames from the client. That usually "
"happens only in POST/PUT bodies. For other traffic-patterns "
"smaller values work just fine.",
/* flags */ DELAYED_EFFECT
)
PARAM_SIMPLE(
/* name */ workspace_session,
/* type */ bytes_u,
/* min */ "384b",
/* max */ NULL,
/* def */ "0.75k",
/* units */ "bytes",
/* descr */
"Allocation size for session structure and workspace. The "
"workspace is primarily used for TCP connection addresses. If "
"larger than 4k, use a multiple of 4k for VM efficiency.",
/* flags */ DELAYED_EFFECT
)
PARAM_SIMPLE(
/* name */ workspace_thread,
/* type */ bytes_u,
/* min */ "0.25k",
/* max */ "8k",
/* def */ "2k",
/* units */ "bytes",
/* descr */
"Bytes of auxiliary workspace per thread.\n"
"This workspace is used for certain temporary data structures "
"during the operation of a worker thread.\n"
"One use is for the IO-vectors used during delivery. Setting "
"this parameter too low may increase the number of writev() "
"syscalls, setting it too high just wastes space. ~0.1k + "
"UIO_MAXIOV * sizeof(struct iovec) (typically = ~16k for 64bit) "
"is considered the maximum sensible value under any known "
"circumstances (excluding exotic vmod use).",
/* flags */ DELAYED_EFFECT
)
PARAM_SIMPLE(
/* name */ h2_rx_window_low_water,
/* type */ bytes_u,
/* min */ "65535",
/* max */ "1G",
/* def */ "10M",
/* units */ "bytes",
/* descr */
"HTTP2 Receive Window low water mark.\n"
"We try to keep the window at least this big\n"
"Only affects incoming request bodies (ie: POST, PUT etc.)",
/* flags */ WIZARD
)
PARAM_SIMPLE(
/* name */ h2_rx_window_increment,
/* type */ bytes_u,
/* min */ "1M",
/* max */ "1G",
/* def */ "1M",
/* units */ "bytes",
/* descr */
"HTTP2 Receive Window Increments.\n"
"How big credits we send in WINDOW_UPDATE frames\n"
"Only affects incoming request bodies (ie: POST, PUT etc.)",
/* flags */ WIZARD
)
PARAM_SIMPLE(
/* name */ h2_window_timeout,
/* type */ timeout,
/* min */ "0",
/* max */ NULL,
/* def */ "5",
/* units */ "seconds",
/* descr */
"HTTP2 time limit without window credits. How long a stream may "
"wait for the client to credit the window and allow for more DATA "
"frames to be sent.",
/* flags */ WIZARD
)
#define H2_SETTING_NAME(nm) "SETTINGS_" #nm
#define H2_SETTING_DESCR(nm) \
"\n\nThe value of this parameter defines " H2_SETTING_NAME(nm) \
" in the initial SETTINGS frame sent to the client when a new " \
"HTTP2 session is established."
PARAM_SIMPLE(
/* name */ h2_header_table_size,
/* type */ bytes_u,
/* min */ "0b",
/* max */ NULL,
/* def */ "4k",
/* units */ "bytes",
/* descr */
"HTTP2 header table size.\n"
"This is the size that will be used for the HPACK dynamic\n"
"decoding table."
H2_SETTING_DESCR(HEADER_TABLE_SIZE)
)
PARAM_SIMPLE(
/* name */ h2_max_concurrent_streams,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "100",
/* units */ "streams",
/* descr */
"HTTP2 Maximum number of concurrent streams.\n"
"This is the number of requests that can be active\n"
"at the same time for a single HTTP2 connection."
H2_SETTING_DESCR(MAX_CONCURRENT_STREAMS)
)
/* We have a strict min at the protocol default here. This is because we
* don't have the 'use settings only after peer ack' in place yet. If the
* value is lower than the protocol default, the very first stream could
* get a flow control error.
*/
PARAM_SIMPLE(
/* name */ h2_initial_window_size,
/* type */ bytes_u,
/* min */ "65535b",
/* max */ "2147483647b",
/* def */ "65535b",
/* units */ "bytes",
/* descr */
"HTTP2 initial flow control window size."
H2_SETTING_DESCR(INITIAL_WINDOW_SIZE)
)
PARAM_SIMPLE(
/* name */ h2_max_frame_size,
/* type */ bytes_u,
/* min */ "16k",
/* max */ "16777215b",
/* def */ "16k",
/* units */ "bytes",
/* descr */
"HTTP2 maximum per frame payload size we are willing to accept."
H2_SETTING_DESCR(MAX_FRAME_SIZE)
)
PARAM_SIMPLE(
/* name */ h2_max_header_list_size,
/* type */ bytes_u,
/* min */ "0b",
/* max */ "2147483647b", /* NB: not the RFC maximum */
/* def */ "0b",
/* units */ "bytes",
/* descr */
"HTTP2 maximum size of an uncompressed header list. This parameter "
"is not mapped to " H2_SETTING_NAME(MAX_HEADER_LIST_SIZE) " in the "
"initial SETTINGS frame, the http_req_size parameter is instead.\n\n"
"The http_req_size advises HTTP2 clients of the maximum size for "
"the header list. Exceeding http_req_size results in a reset stream "
"after processing the HPACK block to preserve the connection, but "
"exceeding h2_max_header_list_size results in the HTTP2 connection "
"going away immediately.\n\n"
"If h2_max_header_list_size is lower than http_req_size, it has no "
"effect, except for the special value zero interpreted as 150% of "
"http_req_size."
)
#undef H2_SETTING_DESCR
#undef H2_SETTING_NAME
#define H2_RR_INFO \
"Changes to this parameter affect the default for new HTTP2 " \
"sessions. vmod_h2(3) can be used to adjust it from VCL."
PARAM_SIMPLE(
/* name */ h2_rapid_reset,
/* typ */ duration,
/* min */ "0.000",
/* max */ NULL,
/* def */ "1.000",
/* units */ "seconds",
/* descr */
"The upper threshold for how soon an http/2 RST_STREAM frame has "
"to be parsed after a HEADERS frame for it to be treated as "
"suspect and subjected to the rate limits specified by "
"h2_rapid_reset_limit and h2_rapid_reset_period.\n" H2_RR_INFO,
/* flags */ EXPERIMENTAL|DELAYED_EFFECT,
)
PARAM_SIMPLE(
/* name */ h2_rapid_reset_limit,
/* typ */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "100",
/* units */ NULL,
/* descr */
"HTTP2 RST Allowance.\n"
"Specifies the maximum number of allowed stream resets issued by\n"
"a client over a time period before the connection is closed.\n"
"Setting this parameter to 0 disables the limit.\n" H2_RR_INFO,
/* flags */ EXPERIMENTAL|DELAYED_EFFECT,
)
PARAM_SIMPLE(
/* name */ h2_rapid_reset_period,
/* typ */ duration,
/* min */ "1.000",
/* max */ NULL,
/* def */ "60.000",
/* units */ "seconds",
/* descr */
"HTTP2 sliding window duration for h2_rapid_reset_limit.\n" H2_RR_INFO,
/* flags */ EXPERIMENTAL|DELAYED_EFFECT|WIZARD,
)
/*--------------------------------------------------------------------
* Memory pool parameters
*/
#define PARAM_MEMPOOL(nm, def, descr) \
PARAM_PRE \
PARAM(poolparam, nm, nm, tweak_poolparam, &mgt_param.nm, \
NULL, NULL, def, NULL, \
descr \
"The three numbers are:\n" \
"\tmin_pool\tminimum size of free pool.\n" \
"\tmax_pool\tmaximum size of free pool.\n" \
"\tmax_age\tmax age of free element.") \
PARAM_POST
PARAM_MEMPOOL(
/* name */ pool_req,
/* def */ "10,100,10",
/* descr */
"Parameters for per worker pool request memory pool.\n\n"
)
PARAM_MEMPOOL(
/* name */ pool_sess,
/* def */ "10,100,10",
/* descr */
"Parameters for per worker pool session memory pool.\n\n"
)
PARAM_MEMPOOL(
/* name */ pool_vbo,
/* def */ "10,100,10",
/* descr */
"Parameters for backend object fetch memory pool.\n\n"
)
/*--------------------------------------------------------------------
* Thread pool parameters
*/
#define PARAM_THREAD(nm, fld, typ, ...) \
PARAM_PRE \
PARAM(typ, wthread_ ## fld, nm, tweak_ ## typ, \
&mgt_param.wthread_ ## fld, __VA_ARGS__) \
PARAM_POST
PARAM_THREAD(
/* name */ thread_pools,
/* field */ pools,
/* type */ uint,
/* min */ "1",
/* max */ NULL,
/* def */ "2",
/* units */ "pools",
/* descr */
"Number of worker thread pools.\n"
"\n"
"Increasing the number of worker pools decreases lock "
"contention. Each worker pool also has a thread accepting "
"new connections, so for very high rates of incoming new "
"connections on systems with many cores, increasing the "
"worker pools may be required.\n"
"\n"
"Too many pools waste CPU and RAM resources, and more than one "
"pool for each CPU is most likely detrimental to performance.\n"
"\n"
"Can be increased on the fly, but decreases require a "
"restart to take effect, unless the drop_pools experimental "
"debug flag is set.",
/* flags */ EXPERIMENTAL | DELAYED_EFFECT
)
PARAM_THREAD(
/* name */ thread_pool_max,
/* field */ max,
/* type */ thread_pool_max,
/* min */ NULL,
/* max */ NULL,
/* def */ "5000",
/* units */ "threads",
/* descr */
"The maximum number of worker threads in each pool.\n"
"\n"
"Do not set this higher than you have to, since excess "
"worker threads soak up RAM and CPU and generally just get "
"in the way of getting work done.",
/* flags */ DELAYED_EFFECT,
/* dyn_min_reason */ "thread_pool_min"
)
PARAM_THREAD(
/* name */ thread_pool_min,
/* field */ min,
/* type */ thread_pool_min,
/* min */ "5" /* TASK_QUEUE_RESERVE */,
/* max */ NULL,
/* def */ "100",
/* units */ "threads",
/* descr */
"The minimum number of worker threads in each pool.\n"
"\n"
"Increasing this may help ramp up faster from low load "
"situations or when threads have expired.\n"
"\n"
"Technical minimum is 5 threads, but this parameter is "
/* ^ TASK_QUEUE_RESERVE */
"strongly recommended to be at least 10",
/* 2 * TASK_QUEUE_RESERVE ^^ */
/* flags */ DELAYED_EFFECT,
/* dyn_min_reason */ NULL,
/* dyn_max_reason */ "thread_pool_max"
)
PARAM_THREAD(
/* name */ thread_pool_reserve,
/* field */ reserve,
/* type */ uint,
/* min */ NULL,
/* max */ NULL,
/* def */ "0",
/* units */ "threads",
/* descr */
"The number of worker threads reserved for vital tasks "
"in each pool.\n"
"\n"
"Tasks may require other tasks to complete (for example, "
"client requests may require backend requests, http2 sessions "
"require streams, which require requests). This reserve is to "
"ensure that lower priority tasks do not prevent higher "
"priority tasks from running even under high load.\n"
"\n"
"The effective value is at least 5 (the number of internal "
/* ^ TASK_QUEUE_RESERVE */
"priority classes), irrespective of this parameter.",
/* flags */ DELAYED_EFFECT,
/* dyn_min_reason */ NULL,
/* dyn_max_reason */ "95% of thread_pool_min",
/* dyn_def_reason */ "0 (auto-tune: 5% of thread_pool_min)"
)
PARAM_THREAD(
/* name */ thread_pool_timeout,
/* field */ timeout,
/* type */ duration,
/* min */ "10",
/* max */ NULL,
/* def */ "300",
/* units */ "seconds",
/* descr */
"Thread idle threshold.\n"
"\n"
"Threads in excess of thread_pool_min, which have been idle "
"for at least this long, will be destroyed.",
/* flags */ EXPERIMENTAL | DELAYED_EFFECT
)
PARAM_THREAD(
/* name */ thread_pool_watchdog,
/* field */ watchdog,
/* type */ duration,
/* min */ "0.1",
/* max */ NULL,
/* def */ "60",
/* units */ "seconds",
/* descr */
"Thread queue stuck watchdog.\n"
"\n"
"If no queued work have been released for this long,"
" the worker process panics itself.",
/* flags */ EXPERIMENTAL
)
PARAM_THREAD(
/* name */ thread_pool_destroy_delay,
/* field */ destroy_delay,
/* type */ duration,
/* min */ "0.01",
/* max */ NULL,
/* def */ "1",
/* units */ "seconds",
/* descr */
"Wait this long after destroying a thread.\n"
"\n"
"This controls the decay of thread pools when idle(-ish).",
/* flags */ EXPERIMENTAL | DELAYED_EFFECT
)
PARAM_THREAD(
/* name */ thread_pool_add_delay,
/* field */ add_delay,
/* type */ duration,
/* min */ "0",
/* max */ NULL,
/* def */ "0",
/* units */ "seconds",
/* descr */
"Wait at least this long after creating a thread.\n"
"\n"
"Some (buggy) systems may need a short (sub-second) "
"delay between creating threads.\n"
"Set this to a few milliseconds if you see the "
"'threads_failed' counter grow too much.\n"
"\n"
"Setting this too high results in insufficient worker threads.",
/* flags */ EXPERIMENTAL
)
PARAM_THREAD(
/* name */ thread_pool_fail_delay,
/* field */ fail_delay,
/* type */ duration,
/* min */ ".01",
/* max */ NULL,
/* def */ "0.2",
/* units */ "seconds",
/* descr */
"Wait at least this long after a failed thread creation "
"before trying to create another thread.\n"
"\n"
"Failure to create a worker thread is often a sign that "
" the end is near, because the process is running out of "
"some resource. "
"This delay tries to not rush the end on needlessly.\n"
"\n"
"If thread creation failures are a problem, check that "
"thread_pool_max is not too high.\n"
"\n"
"It may also help to increase thread_pool_timeout and "
"thread_pool_min, to reduce the rate at which treads are "
"destroyed and later recreated.",
/* flags */ EXPERIMENTAL
)
PARAM_THREAD(
/* name */ thread_stats_rate,
/* field */ stats_rate,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "10",
/* units */ "requests",
/* descr */
"Worker threads accumulate statistics, and dump these into "
"the global stats counters if the lock is free when they "
"finish a job (request/fetch etc.)\n"
"This parameters defines the maximum number of jobs "
"a worker thread may handle, before it is forced to dump "
"its accumulated stats into the global counters.",
/* flags */ EXPERIMENTAL
)
PARAM_THREAD(
/* name */ thread_queue_limit,
/* field */ queue_limit,
/* type */ uint,
/* min */ "0",
/* max */ NULL,
/* def */ "20",
/* units */ "requests",
/* descr */
"Permitted request queue length per thread-pool.\n"
"\n"
"This sets the number of requests we will queue, waiting "
"for an available thread. Above this limit sessions will "
"be dropped instead of queued.",
/* flags */ EXPERIMENTAL
)
PARAM_THREAD(
/* name */ thread_pool_stack,
/* field */ stacksize,
/* type */ bytes,
/* min */ NULL,
/* max */ NULL,
/* def */ NULL, /* default set in mgt_param.c */
/* units */ "bytes",
/* descr */
"Worker thread stack size.\n"
"This will likely be rounded up to a multiple of 4k"
" (or whatever the page_size might be) by the kernel.\n"
"\n"
"The required stack size is primarily driven by the"
" depth of the call-tree. The most common relevant"
" determining factors in varnish core code are GZIP"
" (un)compression, ESI processing and regular"
" expression matches. VMODs may also require"
" significant amounts of additional stack. The"
" nesting depth of VCL subs is another factor,"
" although typically not predominant.\n"
"\n"
"The stack size is per thread, so the maximum total"
" memory required for worker thread stacks is in the"
" order of size = thread_pools x thread_pool_max x"
" thread_pool_stack.\n"
"\n"
"Thus, in particular for setups with many threads,"
" keeping the stack size at a minimum helps reduce"
" the amount of memory required by Varnish.\n"
"\n"
"On the other hand, thread_pool_stack must be large"
" enough under all circumstances, otherwise varnish"
" will crash due to a stack overflow. Usually, a"
" stack overflow manifests itself as a segmentation"
" fault (aka segfault / SIGSEGV) with the faulting"
" address being near the stack pointer (sp).\n"
"\n"
"Unless stack usage can be reduced,"
" thread_pool_stack must be increased when a stack"
" overflow occurs. Setting it in 150%-200%"
" increments is recommended until stack overflows"
" cease to occur.",
/* flags */ DELAYED_EFFECT,
/* dyn_min_reason */ "sysconf(_SC_THREAD_STACK_MIN)",
/* dyn_max_reason */ NULL,
/* dyn_def_reason */ "80k"
)
#if defined(PARAM_ALL)
/*--------------------------------------------------------------------
* String parameters
*/
# define PARAM_STRING(nm, tw, pv, def, ...) \
PARAM_PRE \
PARAM(, , nm, tw, pv, NULL, NULL, def, NULL, __VA_ARGS__) \
PARAM_POST
PARAM_STRING(
/* name */ cc_command,
/* tweak */ tweak_string,
/* priv */ &mgt_cc_cmd,
/* def */ VCC_CC,
/* descr */
"The command used for compiling the C source code to a "
"dlopen(3) loadable object. The following expansions can "
"be used:\n\n"
"- %s: the source file name\n"
"- %o: the output file name\n"
"- %w: the cc_warnings parameter\n"
"- %d: the raw default cc_command\n"
"- %D: the expanded default cc_command\n"
"- %n: the working directory (-n option)\n"
"- %%: a percent sign\n"
"\n"
"Unknown percent expansion sequences are ignored, and to "
"avoid future incompatibilities percent characters should "
"be escaped with a double percent sequence.\n\n"
"The %d and %D expansions allow passing the parameter's "
"default value to a wrapper script to perform additional "
"processing.",
/* flags */ MUST_RELOAD | BUILD_OPTIONS,
/* dyn_min_reason */ NULL,
/* dyn_max_reason */ NULL,
/* dyn_def_reason */ "exec $CC $CFLAGS %w -shared -o %o %s"
)
PARAM_STRING(
/* name */ cc_warnings,
/* tweak */ tweak_string,
/* priv */ &mgt_cc_warn,
/* def */ VCC_WARN,
/* descr */
"Warnings used when compiling the C source code with "
"the cc_command parameter. By default, VCL is compiled "
"with the same set of warnings as Varnish itself.",
/* flags */ MUST_RELOAD | BUILD_OPTIONS,
/* dyn_min_reason */ NULL,
/* dyn_max_reason */ NULL,
/* dyn_def_reason */ "-Wall -Werror"
)
PARAM_STRING(
/* name */ h2_rxbuf_storage,
/* tweak */ tweak_storage,
/* priv */ &mgt_stv_h2_rxbuf,
/* def */ "Transient",
/* descr */
"The name of the storage backend that HTTP/2 receive buffers "
"should be allocated from.",
/* flags */ MUST_RESTART
)
PARAM_STRING(
/* name */ vcl_path,
/* tweak */ tweak_string,
/* priv */ &mgt_vcl_path,
/* def */ VARNISH_VCL_DIR,
/* descr */
"Directory (or colon separated list of directories) "
"from which relative VCL filenames (vcl.load and "
"include) are to be found. By default Varnish searches "
"VCL files in both the system configuration and shared "
"data directories to allow packages to drop their VCL "
"files in a standard location where relative includes "
"would work. Includes using +glob cannot be searched "
"in vcl_path.",
/* flags */ BUILD_OPTIONS,
/* dyn_min_reason */ NULL,
/* dyn_max_reason */ NULL,
/* dyn_def_reason */ "${sysconfdir}/varnish:${datadir}/varnish/vcl"
)
PARAM_STRING(
/* name */ vmod_path,
/* tweak */ tweak_string,
/* priv */ &mgt_vmod_path,
/* def */ VARNISH_VMOD_DIR,
/* descr */
"Directory (or colon separated list of directories) "
"where VMODs are to be found.",
/* flags */ BUILD_OPTIONS,
/* dyn_min_reason */ NULL,
/* dyn_max_reason */ NULL,
/* dyn_def_reason */ "${libdir}/varnish/vmods"
)
/*--------------------------------------------------------------------
* PCRE2 parameters
*/
# define PARAM_PCRE2(nm, pv, min, def, descr) \
PARAM_PRE \
PARAM(, , nm, tweak_uint, &mgt_param.vre_limits.pv, \
min, NULL, def, NULL, descr) \
PARAM_POST
PARAM_PCRE2(
/* name */ pcre2_match_limit,
/* priv */ match,
/* min */ "1",
/* def */ "10000",
/* descr */
"The limit for the number of calls to the internal match"
" logic in pcre2_match().\n\n"
"(See: pcre2_set_match_limit() in pcre2 docs.)\n\n"
"This parameter limits how much CPU time"
" regular expression matching can soak up."
)
PARAM_PCRE2(
/* name */ pcre2_depth_limit,
/* priv */ depth,
/* min */ "1",
/* def */ "20",
/* descr */
"The recursion depth-limit for the internal match logic"
" in a pcre2_match().\n\n"
"(See: pcre2_set_depth_limit() in pcre2 docs.)\n\n"
"This puts an upper limit on the amount of stack used"
" by PCRE2 for certain classes of regular expressions.\n\n"
"We have set the default value low in order to"
" prevent crashes, at the cost of possible regexp"
" matching failures.\n\n"
"Matching failures will show up in the log as VCL_Error"
" messages."
)
/*--------------------------------------------------------------------
* Parameter deprecated aliases
*
* When a parameter is renamed, but a deprecated alias is kept for
* compatibility, its documentation is minimal: only a description in
* manual pages, a description and current value in the CLI.
*
* The deprecated_dummy alias is here for test coverage.
*/
#define PARAM_ALIAS(al, nm) \
PARAM_PRE \
PARAM(, , al, tweak_alias, NULL, NULL, NULL, #nm, NULL, \
"Deprecated alias for the " #nm " parameter.") \
PARAM_POST
PARAM_ALIAS(deprecated_dummy, debug)
PARAM_ALIAS(vcc_err_unref, vcc_feature)
PARAM_ALIAS(vcc_allow_inline_c, vcc_feature)
PARAM_ALIAS(vcc_unsafe_path, vcc_feature)
# undef PARAM_ALIAS
# undef PARAM_PCRE2
# undef PARAM_STRING
#endif /* defined(PARAM_ALL) */
/*--------------------------------------------------------------------
* Bits parameters
*/
#define PARAM_BITS(nm, fld, def, descr) \
PARAM(nm, fld, nm, tweak_ ## nm, mgt_param.fld, NULL, NULL, \
def, NULL, descr)
PARAM_PRE
PARAM_BITS(
/* name */ debug,
/* fld */ debug_bits,
/* def */ "none",
/* descr */
"Enable/Disable various kinds of debugging.\n"
"\tnone\tDisable all debugging\n\n"
"Use +/- prefix to set/reset individual bits:")
#ifdef PARAM_ALL
# define DEBUG_BIT(U, l, d) "\n\t" #l "\t" d
# include "tbl/debug_bits.h"
#endif
PARAM_POST
PARAM_PRE
PARAM_BITS(
/* name */ experimental,
/* fld */ experimental_bits,
/* def */ "none",
/* descr */
"Enable/Disable experimental features.\n"
"\tnone\tDisable all experimental features\n\n"
"Use +/- prefix to set/reset individual bits:")
#ifdef PARAM_ALL
# define EXPERIMENTAL_BIT(U, l, d) "\n\t" #l "\t" d
# include "tbl/experimental_bits.h"
#endif
PARAM_POST
PARAM_PRE
PARAM_BITS(
/* name */ feature,
/* fld */ feature_bits,
/* def */
"none,"
"+validate_headers,"
"+vcl_req_reset",
/* descr */
"Enable/Disable various minor features.\n"
"\tdefault\tSet default value (deprecated: use param.reset)\n"
"\tnone\tDisable all features.\n\n"
"Use +/- prefix to enable/disable individual feature:")
#ifdef PARAM_ALL
# define FEATURE_BIT(U, l, d) "\n\t" #l "\t" d
# include "tbl/feature_bits.h"
#endif
PARAM_POST
PARAM_PRE
PARAM_BITS(
/* name */ vcc_feature,
/* fld */ vcc_feature_bits,
/* def */
"none,"
"+err_unref,"
"+unsafe_path",
/* descr */
"Enable/Disable various VCC behaviors.\n"
"\tdefault\tSet default value (deprecated: use param.reset)\n"
"\tnone\tDisable all behaviors.\n\n"
"Use +/- prefix to enable/disable individual behavior:")
#ifdef PARAM_ALL
# define VCC_FEATURE_BIT(U, l, d) "\n\t" #l "\t" d
# include "tbl/vcc_feature_bits.h"
#endif
PARAM_POST
PARAM_PRE
PARAM_BITS(
/* name */ vsl_mask,
/* fld */ vsl_mask,
/* def */
"all,"
"-Debug,"
"-ExpKill,"
"-H2RxBody,"
"-H2RxHdr,"
"-H2TxBody,"
"-H2TxHdr,"
"-Hash,"
"-ObjHeader,"
"-ObjProtocol,"
"-ObjReason,"
"-ObjStatus,"
"-VdpAcct,"
"-VfpAcct,"
"-WorkThread",
/* descr */
"Mask individual VSL messages from being logged.\n"
"\tall\tEnable all tags\n"
"\tdefault\tSet default value (deprecated: use param.reset)\n"
"\nUse +/- prefix in front of VSL tag name to unmask/mask "
"individual VSL messages. See vsl(7) for possible values.")
PARAM_POST
#undef PARAM_ALL
#undef PARAM_BITS
#undef PARAM_MEMPOOL
#undef PARAM_POST
#undef PARAM_PRE
#undef PARAM_SIMPLE
#undef PARAM_THREAD
#undef PARAM
/*lint -restore */
|