<div dir="ltr">Simple way to test: grow the info.html size :-)</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div>
<br><div class="gmail_quote">On Fri, Jun 23, 2017 at 4:52 PM, Johan Hendriks <span dir="ltr"><<a href="mailto:joh.hendriks@gmail.com" target="_blank">joh.hendriks@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>Thanks for you answer.<br>
      I was thinking about that also, but I could not find anything that
      pointed in that direction.<br>
      But should I hit that limit also with the info.html file then or
      could it be the size of the page.<br>
      The info.html is off cource way smaller than the whole <a href="http://php.info" target="_blank">php.info</a>
      page.<br>
    </p>
    <p>regards<br>
      Johan<br>
    </p>
    <br>
    <div class="m_-248045550267559229moz-cite-prefix">Op 23/06/2017 om 10:58 schreef
      Guillaume Quintard:<br>
    </div><div><div class="h5">
    <blockquote type="cite">
      <div dir="ltr">Stupid question but, aren't you being limited by
        your client, or a firewall, maybe?</div>
      <div class="gmail_extra"><br clear="all">
        <div>
          <div class="m_-248045550267559229gmail_signature" data-smartmail="gmail_signature">
            <div dir="ltr">
              <div>-- <br>
              </div>
              Guillaume Quintard<br>
            </div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">On Fri, Jun 2, 2017 at 12:06 PM, Johan
          Hendriks <span dir="ltr"><<a href="mailto:joh.hendriks@gmail.com" target="_blank">joh.hendriks@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div text="#000000" bgcolor="#FFFFFF">
              <p>Hello all, First sorry for the long email.<br>
                I have a strange issue with varnish. At least I think it
                is strange.</p>
              <p>We start some tests with varnish, but we have an issue.<br>
                <br>
                I am running varnish 4.1.6 on FreeBSD 11.1-prerelease.
                Where varnish listen on port 82 and apache on 80, This
                is just for the tests.<br>
                We use the following start options.<br>
                <br>
                # Varnish<br>
                varnishd_enable="YES"<br>
                varnishd_listen="<a href="http://192.168.2.247:82" target="_blank">192.168.2.247<wbr>:82</a>"<br>
                varnishd_pidfile="/var/run/var<wbr>nishd.pid"<br>
                varnishd_storage="default=mall<wbr>oc,2024M"<br>
                varnishd_config="/usr/local/et<wbr>c/varnish/default.vcl"<br>
                varnishd_hash="critbit"<br>
                varnishd_admin=":6082"<br>
                varnishncsa_enable="YES"<br>
                <br>
                We did a test with a static page and that went fine.
                First we see it is not cached, second attempt is cached.<br>
              </p>
              <p>root@desk:~ # curl -I <a class="m_-248045550267559229m_6521151771164034998moz-txt-link-abbreviated" href="http://www.testdomain.nl:82/info.html" target="_blank">www.testdomain.nl:82/info.html</a><br>
                HTTP/1.1 200 OK<br>
                Date: Fri, 02 Jun 2017 09:19:52 GMT<br>
                Last-Modified: Thu, 01 Jun 2017 12:50:37 GMT<br>
                ETag: "cf4-550e57bc1f812"<br>
                Content-Length: 3316<br>
                Content-Type: text/html<br>
                cache-control: max-age = 259200<br>
                X-Varnish: 2<br>
                Age: 0<br>
                Via: 1.1 varnish-v4<br>
                Server: varnish<br>
                X-Powered-By: My Varnish<br>
                X-Cache: MISS<br>
                Accept-Ranges: bytes<br>
                Connection: keep-alive<br>
                <br>
                root@desk:~ # curl -I <a class="m_-248045550267559229m_6521151771164034998moz-txt-link-abbreviated" href="http://www.testdomain.nl:82/info.html" target="_blank">www.testdomain.nl:82/info.html</a><br>
                HTTP/1.1 200 OK<br>
                Date: Fri, 02 Jun 2017 09:19:52 GMT<br>
                Last-Modified: Thu, 01 Jun 2017 12:50:37 GMT<br>
                ETag: "cf4-550e57bc1f812"<br>
                Content-Length: 3316<br>
                Content-Type: text/html<br>
                cache-control: max-age = 259200<br>
                X-Varnish: 5 3<br>
                Age: 6<br>
                Via: 1.1 varnish-v4<br>
                Server: varnish<br>
                X-Powered-By: My Varnish<br>
                X-Cache: HIT<br>
                Accept-Ranges: bytes<br>
                Connection: keep-alive<br>
                <br>
                if I benchmark the server I get the following.<br>
                First is derectly to Apache<br>
              </p>
              <p>root@testserver:~ # bombardier -c400 -n10000 <a class="m_-248045550267559229m_6521151771164034998moz-txt-link-freetext" href="http://www.testdomain.nl/info.html" target="_blank">http://www.testdomain.nl/info.<wbr>html</a><br>
                Bombarding <a class="m_-248045550267559229m_6521151771164034998moz-txt-link-freetext" href="http://www.testdomain.nl/info.html" target="_blank">http://www.testdomain.nl/info.<wbr>html</a>
                with 10000 requests using 400 connections<br>
                 10000 / 10000 [=============================<wbr>==============================<wbr>==]
                100.00% 0s<br>
                Done!<br>
                Statistics        Avg      Stdev        Max<br>
                  Reqs/sec     12459.00     898.32      13301<br>
                  Latency       31.04ms    25.28ms   280.90ms<br>
                  HTTP codes:<br>
                    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0<br>
                    others - 0<br>
                  Throughput:    42.16MB/s<br>
                <br>
                This is via varnish. So that works as intended.<br>
                Varnish does its job and servers the page better.<br>
              </p>
              <p>root@testserver:~ # bombardier -c400 -n10000 <a class="m_-248045550267559229m_6521151771164034998moz-txt-link-freetext" href="http://www.testdomain.nl:82/info.html" target="_blank">http://www.testdomain.nl:82/in<wbr>fo.html</a><br>
                Bombarding <a class="m_-248045550267559229m_6521151771164034998moz-txt-link-freetext" href="http://www.testdomain.nl:82/info.html" target="_blank">http://www.testdomain.nl:82/in<wbr>fo.html</a>
                with 10000 requests using 400 connections<br>
                 10000 / 10000 [=============================<wbr>==============================<wbr>==]
                100.00% 0s<br>
                Done!<br>
                Statistics        Avg      Stdev        Max<br>
                  Reqs/sec     19549.00    7649.32      24313<br>
                  Latency       17.90ms    66.77ms   485.07ms<br>
                  HTTP codes:<br>
                    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0<br>
                    others - 0<br>
                  Throughput:    71.58MB/s<br>
                <br>
                <br>
                The next one is against a info.php file, which runs
                phpinfo(); <br>
                <br>
                So first agains the server without varnish.<br>
              </p>
              <p>root@testserver:~ # bombardier -c400 -n10000 <a class="m_-248045550267559229m_6521151771164034998moz-txt-link-freetext" href="http://www.testdomain.nl/info.php" target="_blank">http://www.testdomain.nl/info.<wbr>php</a><br>
                Bombarding <a class="m_-248045550267559229m_6521151771164034998moz-txt-link-freetext" href="http://www.testdomain.nl/info.php" target="_blank">http://www.testdomain.nl/info.<wbr>php</a>
                with 10000 requests using 400 connections<br>
                 10000 / 10000 [=============================<wbr>==============================<wbr>=]
                100.00% 11s<br>
                Done!<br>
                Statistics        Avg      Stdev        Max<br>
                  Reqs/sec       828.00     127.66       1010<br>
                  Latency      472.10ms    59.10ms   740.43ms<br>
                  HTTP codes:<br>
                    1xx - 0, 2xx - 10000, 3xx - 0, 4xx - 0, 5xx - 0<br>
                    others - 0<br>
                  Throughput:    75.51MB/s<br>
                <br>
                But then against the server with varnish.<br>
                So we make sure it is in cache <br>
              </p>
              <p>root@desk:~ # curl -I <a class="m_-248045550267559229m_6521151771164034998moz-txt-link-abbreviated" href="http://www.testdomain.nl:82/info.php" target="_blank">www.testdomain.nl:82/info.php</a><br>
                HTTP/1.1 200 OK<br>
                Date: Fri, 02 Jun 2017 09:36:16 GMT<br>
                Content-Type: text/html; charset=UTF-8<br>
                cache-control: max-age = 259200<br>
                X-Varnish: 7<br>
                Age: 0<br>
                Via: 1.1 varnish-v4<br>
                Server: varnish<br>
                X-Powered-By: My Varnish<br>
                X-Cache: MISS<br>
                Accept-Ranges: bytes<br>
                Connection: keep-alive<br>
                <br>
                root@desk:~ # curl -I <a class="m_-248045550267559229m_6521151771164034998moz-txt-link-abbreviated" href="http://www.testdomain.nl:82/info.php" target="_blank">www.testdomain.nl:82/info.php</a><br>
                HTTP/1.1 200 OK<br>
                Date: Fri, 02 Jun 2017 09:36:16 GMT<br>
                Content-Type: text/html; charset=UTF-8<br>
                cache-control: max-age = 259200<br>
                X-Varnish: 10 8<br>
                Age: 2<br>
                Via: 1.1 varnish-v4<br>
                Server: varnish<br>
                X-Powered-By: My Varnish<br>
                X-Cache: HIT<br>
                Accept-Ranges: bytes<br>
                Connection: keep-alive<br>
                <br>
                So it is in cache now.<br>
                root@testserver:~ # bombardier -c400 -n10000 <a class="m_-248045550267559229m_6521151771164034998moz-txt-link-freetext" href="http://www.testdomain.nl:82/info.php" target="_blank">http://www.testdomain.nl:82/in<wbr>fo.php</a><br>
                Bombarding <a class="m_-248045550267559229m_6521151771164034998moz-txt-link-freetext" href="http://www.testdomain.nl:82/info.php" target="_blank">http://www.testdomain.nl:82/in<wbr>fo.php</a>
                with 10000 requests using 400 connections<br>
                 10000 / 10000
                [=============================<wbr>==============================<wbr>==============================<wbr>==============================<wbr>==============================<wbr>==============================<wbr>========================]
                100.00% 8s<br>
                Done!<br>
                Statistics        Avg      Stdev        Max<br>
                  Reqs/sec      1179.00     230.77       1981<br>
                  Latency      219.94ms   340.29ms      2.00s<br>
                  HTTP codes:<br>
                    1xx - 0, 2xx - 9938, 3xx - 0, 4xx - 0, 5xx - 0<br>
                    others - 62<br>
                  Errors:<br>
                    dialing to the given TCP address timed out - 62<br>
                  Throughput:    83.16MB/s<br>
              </p>
              <p>I expected this to be much more in favour of varnish,
                but it even generated some errors! Time taken is lower
                but I expected it to be much faster. Also the 62 errors
                is not good i guess.<br>
                <br>
                I do see the following with varnish log<br>
                *   << Request  >> 11141123<br>
                -   Begin          req 1310723 rxreq<br>
                -   Timestamp      Start: 1496396250.098654 0.000000
                0.000000<br>
                -   Timestamp      Req: 1496396250.098654 0.000000
                0.000000<br>
                -   ReqStart       192.168.2.39 14818<br>
                -   ReqMethod      GET<br>
                -   ReqURL         /info.php<br>
                -   ReqProtocol    HTTP/1.1<br>
                -   ReqHeader      User-Agent: fasthttp<br>
                -   ReqHeader      Host: <a class="m_-248045550267559229m_6521151771164034998moz-txt-link-abbreviated" href="http://www.testdomain.nl:82" target="_blank">www.testdomain.nl:82</a><br>
                -   ReqHeader      X-Forwarded-For: 192.168.2.39<br>
                -   VCL_call       RECV<br>
                -   ReqUnset       X-Forwarded-For: 192.168.2.39<br>
                -   ReqHeader      X-Forwarded-For: 192.168.2.39,
                192.168.2.39<br>
                -   VCL_return     hash<br>
                -   VCL_call       HASH<br>
                -   VCL_return     lookup<br>
                -   Hit            8<br>
                -   VCL_call       HIT<br>
                -   VCL_return     deliver<br>
                -   RespProtocol   HTTP/1.1<br>
                -   RespStatus     200<br>
                -   RespReason     OK<br>
                -   RespHeader     Date: Fri, 02 Jun 2017 09:36:16 GMT<br>
                -   RespHeader     Server: Apache/2.4.25 (FreeBSD)
                OpenSSL/1.0.2l<br>
                -   RespHeader     X-Powered-By: PHP/7.0.19<br>
                -   RespHeader     Content-Type: text/html;
                charset=UTF-8<br>
                -   RespHeader     cache-control: max-age = 259200<br>
                -   RespHeader     X-Varnish: 11141123 8<br>
                -   RespHeader     Age: 73<br>
                -   RespHeader     Via: 1.1 varnish-v4<br>
                -   VCL_call       DELIVER<br>
                -   RespUnset      Server: Apache/2.4.25 (FreeBSD)
                OpenSSL/1.0.2l<br>
                -   RespHeader     Server: varnish<br>
                -   RespUnset      X-Powered-By: PHP/7.0.19<br>
                -   RespHeader     X-Powered-By: My Varnish<br>
                -   RespHeader     X-Cache: HIT<br>
                -   VCL_return     deliver<br>
                -   Timestamp      Process: 1496396250.098712 0.000058
                0.000058<br>
                -   RespHeader     Accept-Ranges: bytes<br>
                -   RespHeader     Content-Length: 95200<br>
                -   Debug          "RES_MODE 2"<br>
                -   RespHeader     Connection: keep-alive<br>
                <b>-   Debug          "Hit idle send timeout, wrote =
                  89972/95508; retrying"</b><b><br>
                </b><b>-   Debug          "Write error, retval = -1, len
                  = 5536, errno = Resource temporarily unavailable"</b><br>
                -   Timestamp      Resp: 1496396371.131526 121.032872
                121.032814<br>
                -   ReqAcct        82 0 82 308 95200 95508<br>
                -   End<br>
                <br>
                Sometimes I see this Debug line also -   <b>Debug         
                  "Write error, retval = -1, len = 95563, errno = Broken
                  pipe"</b><br>
                <br>
                <br>
                I also installed varnish 5.1.2 but the results are the
                same.<br>
                Is there something I miss?<br>
                <br>
                My vcl file is pretty basic.</p>
              <p><a class="m_-248045550267559229m_6521151771164034998moz-txt-link-freetext" href="https://pastebin.com/rbb42x7h" target="_blank">https://pastebin.com/rbb42x7h</a><br>
                <br>
                Thanks all for your time.<br>
                <br>
                regards<span class="m_-248045550267559229HOEnZb"><font color="#888888"><br>
                    Johan<br>
                    <br>
                  </font></span></p>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            varnish-misc mailing list<br>
            <a href="mailto:varnish-misc@varnish-cache.org" target="_blank">varnish-misc@varnish-cache.org</a><br>
            <a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/varnish<wbr>-misc</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </div></div></div>

<br>______________________________<wbr>_________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-misc</a><br></blockquote></div><br></div>