[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-misc
Subject:    Re: Varnish performance with phpinfo
From:       Johan Hendriks <joh.hendriks () gmail ! com>
Date:       2017-06-28 8:58:44
Message-ID: d242bf46-0827-0d39-6ac8-ddc5ea8e62d4 () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


I created a .html file from the php.info page and the results are the same.
So i think it is a local problem on the client.
Thank you for your time an sorry for the noice.

Regards,
Johan Hendriks


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


[Attachment #5 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    I created a .html file from the php.info page and the results are
    the same.<br>
    So i think it is a local problem on the client. <br>
    Thank you for your time an sorry for the noice.<br>
    <br>
    Regards,<br>
    Johan Hendriks<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Op 23/06/2017 om 17:36 schreef
      Guillaume Quintard:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJ6ZYQwm7Gc+sN4n4eBFsyAvt55c796LWDzwgMTS4p3V3rFg7A@mail.gmail.com">
      <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">&lt;<a
              href="mailto:joh.hendriks@gmail.com" target="_blank"
              moz-do-not-send="true">joh.hendriks@gmail.com</a>&gt;</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"
                  moz-do-not-send="true">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">&lt;<a
                            href="mailto:joh.hendriks@gmail.com"
                            target="_blank" \
moz-do-not-send="true">joh.hendriks@gmail.com</a>&gt;</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" \
                moz-do-not-send="true">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"
                                \
moz-do-not-send="true">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"
                                \
moz-do-not-send="true">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"
                                \
moz-do-not-send="true">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"
                                \
                moz-do-not-send="true">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"
                                \
moz-do-not-send="true">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"
                                \
                moz-do-not-send="true">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" \
moz-do-not-send="true">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" \
                moz-do-not-send="true">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"
                                \
moz-do-not-send="true">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"
                                \
moz-do-not-send="true">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"
                                \
moz-do-not-send="true">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"
                                \
                moz-do-not-send="true">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>
                              *   &lt;&lt; Request  &gt;&gt; 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" \
                moz-do-not-send="true">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" \
moz-do-not-send="true">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" \
moz-do-not-send="true">varnish-misc@varnish-cache.org</a><br>  <a
                            \
href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc"  \
                rel="noreferrer" target="_blank"
                            \
moz-do-not-send="true">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"
              moz-do-not-send="true">varnish-misc@varnish-cache.org</a><br>
            <a
              href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc"
                
              rel="noreferrer" target="_blank" \
moz-do-not-send="true">https://www.varnish-cache.org/<wbr>lists/mailman/listinfo/<wbr>varnish-misc</a><br>
  </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
  </body>
</html>



_______________________________________________
varnish-misc mailing list
varnish-misc@varnish-cache.org
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic