You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the length of {% glossarytooltip 0bc9c8bc-de1a-4a06-9c99-a89a29c30645 %}cache{% endglossarytooltip %} tags used by Magento exceed Varnish's default of 8192 characters, you can see HTTP 503 (Backend Fetch Failed) errors in the browser. The errors might display similar to the following:
13
+
If the length of {% glossarytooltip 0bc9c8bc-de1a-4a06-9c99-a89a29c30645 %}cache{% endglossarytooltip %} tags used by Magento exceed Varnish's default (8K), you can see HTTP 503 (Backend Fetch Failed) errors in the browser. The errors might display similar to the following:
14
14
15
15
Error 503 Backend fetch failed
16
16
Backend fetch failed
17
17
18
-
To resolve this issue, increase the default value of `http_resp_hdr_len` in your Varnish configuration file as follows:
18
+
To resolve this issue, increase the default value of the `http_resp_hdr_len` parameter in your Varnish configuration file. The `http_resp_hdr_len` parameter specifies the max header length _within_ the total default response size (32K).
19
+
20
+
<divclass="bs-callout bs-callout-info"id="info">
21
+
<spanclass="glyphicon-class">
22
+
<p>If the <code>http_resp_hdr_len</code> value exceeds 32K, you must also increase the default response size using the <code>http_resp_size</code> parameter.</p></span>
23
+
</div>
19
24
20
25
1. As a user with `root` privileges, open your Vanish configuration file in a text editor:
21
26
@@ -25,13 +30,17 @@ To resolve this issue, increase the default value of `http_resp_hdr_len` in your
25
30
26
31
2. Search for the `http_resp_hdr_len` parameter.
27
32
3. If the parameter doesn't exist, add it after `thread_pool_max`.
28
-
4. Set `http_resp_hdr_len` to a value equal to the product count of your largest {% glossarytooltip 50e49338-1e6c-4473-8527-9e401d67ea2b %}category{% endglossarytooltip %} multiplied by 30. (Each product tag is about 21 characters in length.)
33
+
4. Set `http_resp_hdr_len` to a value equal to the product count of your largest {% glossarytooltip 50e49338-1e6c-4473-8527-9e401d67ea2b %}category{% endglossarytooltip %} multiplied by 21. (Each product tag is about 21 characters in length.)
34
+
35
+
For example, setting the value to 64000 should work if your largest category has 3,000 products:
29
36
30
-
For example, setting the value to 64000 should work if your largest category has 3,050 products.
37
+
-p http_resp_hdr_len=64000 \
38
+
39
+
5. Set the `http_resp_size` to a value that accommodates the increased response header length.
31
40
32
41
For example:
33
42
34
-
-p http_resp_hdr_len=64000 \
43
+
-p http_resp_size=65536 \
35
44
36
45
A snippet follows:
37
46
@@ -42,5 +51,6 @@ To resolve this issue, increase the default value of `http_resp_hdr_len` in your
If the length of {% glossarytooltip 0bc9c8bc-de1a-4a06-9c99-a89a29c30645 %}cache{% endglossarytooltip %} tags used by Magento exceed Varnish's default of 8192 characters, you can see HTTP 503 (Backend Fetch Failed) errors in the browser. The errors might display similar to the following:
15
+
If the length of {% glossarytooltip 0bc9c8bc-de1a-4a06-9c99-a89a29c30645 %}cache{% endglossarytooltip %} tags used by Magento exceed Varnish's default (8K), you can see HTTP 503 (Backend Fetch Failed) errors in the browser. The errors might display similar to the following:
16
16
17
17
Error 503 Backend fetch failed
18
18
Backend fetch failed
19
19
20
-
To resolve this issue, increase the default value of `http_resp_hdr_len` in your Varnish configuration file as follows:
20
+
To resolve this issue, increase the default value of the `http_resp_hdr_len` parameter in your Varnish configuration file. The `http_resp_hdr_len` parameter specifies the max header length _within_ the total default response size (32K).
21
+
22
+
<divclass="bs-callout bs-callout-info"id="info">
23
+
<spanclass="glyphicon-class">
24
+
<p>If the `http_resp_hdr_len` value exceeds 32K, you must also increase the default response size using the `http_resp_size` parameter.</p></span>
25
+
</div>
21
26
22
27
1. As a user with `root` privileges, open your Vanish configuration file in a text editor:
23
28
@@ -27,14 +32,20 @@ To resolve this issue, increase the default value of `http_resp_hdr_len` in your
27
32
28
33
2. Search for the `http_resp_hdr_len` parameter.
29
34
3. If the parameter doesn't exist, add it after `thread_pool_max`.
30
-
4. Set `http_resp_hdr_len` to a value equal to the product count of your largest {% glossarytooltip 50e49338-1e6c-4473-8527-9e401d67ea2b %}category{% endglossarytooltip %} multiplied by 30. (Each product tag is about 21 characters in length.)
35
+
4. Set `http_resp_hdr_len` to a value equal to the product count of your largest {% glossarytooltip 50e49338-1e6c-4473-8527-9e401d67ea2b %}category{% endglossarytooltip %} multiplied by 21. (Each product tag is about 21 characters in length.)
31
36
32
-
For example, setting the value to 64000 should work if your largest category has 3,050 products.
37
+
For example, setting the value to 64000 should work if your largest category has 3,000 products.
33
38
34
39
For example:
35
40
36
41
-p http_resp_hdr_len=64000 \
37
42
43
+
5. Set the `http_resp_size` to a value that accommodates the increased response header length.
44
+
45
+
For example:
46
+
47
+
-p http_resp_size=65536 \
48
+
38
49
A snippet follows:
39
50
40
51
# DAEMON_OPTS is used by the init script.
@@ -44,6 +55,7 @@ To resolve this issue, increase the default value of `http_resp_hdr_len` in your
0 commit comments