Want more timely Centmin Mod News Updates?
Become a Member

Cloudflare How much of your bandwidth/requests are served by Cloudflare?

Discussion in 'Web Development & Web Performance' started by deltahf, Jul 11, 2018.

  1. gabel

    gabel Premium Member Premium Member

    56
    32
    18
    Jan 7, 2016
    Ratings:
    +51
    Local Time:
    11:00 AM
    1.9.9
    MariaDB 10
    here are my latest usage stats from Cloudflare, the website grew since March. The server runs so smoothly with centminmod, makes my life so much easier.
    [​IMG]
     
    • Winner Winner x 2
    • Informative Informative x 1
  2. jcat

    jcat Member

    115
    18
    18
    Jun 21, 2015
    Ratings:
    +46
    Local Time:
    6:00 AM
    This is from our CloudFlare partner account, these are stats for sites within our account so the savings actually go beyond this but CF saves us quite a bit of bandwidth every month :)

    upload_2019-8-22_8-53-15.png
    upload_2019-8-22_8-53-34.png

    Majority being WordPress sites.
     
    • Informative Informative x 1
  3. eva2000

    eva2000 Administrator Staff Member

    43,579
    9,885
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,265
    Local Time:
    8:00 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    wow congrats on the continued growth and glad to see Centmin Mod helping do it's part in serving your site :)
    sweet interesting to see stats from Cloudflare partner side. So these sites prodiminantly use Centmin Mod or a mix of different control panels and non-control panel stack setups ?

    With my new centmin mod lemp stack created wordpress blog at About - Server Manager Guide I put cloudflare in front though from the linked cloudflare before and after pagespeed, you can see centmin mod holding it's own against with cloudflare speed :)

    Traffic is low but bandwidth savings is very nice :D

    upload_2019-8-23_7-4-34.png
     
    • Like Like x 2
  4. jcat

    jcat Member

    115
    18
    18
    Jun 21, 2015
    Ratings:
    +46
    Local Time:
    6:00 AM
    Its a mix, but I'd say at least half is centminmod and the rest would be cPanel.

    Yeah you can't beat the bandwidth savings :)

    And How To Install DirectAdmin Control Panel On CentOS 7 - Server Manager Guide nice, we are going to be switching to DA so that will come in handy :) I was all excited that installing open lightspeed was as easy as:

    Code:
    # openlitespeed
     ./build set mod_ruid2 no
     ./build set webserver openlitespeed
     ./build set php1_mode lsphp
     ./build openlitespeed
     ./build php n
     ./build rewrite_confs
    to find out, open litespeed doesn't support .htaccess........... man what a disappointment :(
     
    • Informative Informative x 1
  5. eva2000

    eva2000 Administrator Staff Member

    43,579
    9,885
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,265
    Local Time:
    8:00 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    @jcat nice mix :) Glad you like the DA install guide :) Yeah with Openlitespeed .htaccess file isn't supported directly, all mod_rewrite rules go into openlitespeed config file sort of like moving .htaccess rules into Apache httpd.conf. For shared hosting like setups, price of Litespeed Enterprise license over Openlitespeed free edition, is worth every penny just to have direct .htaccess file support.
     
  6. jcat

    jcat Member

    115
    18
    18
    Jun 21, 2015
    Ratings:
    +46
    Local Time:
    6:00 AM
    Yep, couldn't agree more.
     
    • Like Like x 1
  7. gabel

    gabel Premium Member Premium Member

    56
    32
    18
    Jan 7, 2016
    Ratings:
    +51
    Local Time:
    11:00 AM
    1.9.9
    MariaDB 10
    Centminmod also powers the servers where the video are hosted but those are not served through Cloudflare. Between the 3 that use more than 1000TB month, i would say centminmod does a great job keeping them up and secure.
     
    • Informative Informative x 1
  8. Rake-GH

    Rake-GH Active Member

    101
    40
    28
    Jul 29, 2019
    USA
    Ratings:
    +67
    Local Time:
    6:00 AM
    default
    default
    firefox_2019-08-27_19-46-33.png

    See that DDOS at the end? I was getting the same 40gbps ddos on my shared host and they suspended us, even with cloudflare enough requests were going through to mess it up. I was getting ready to switch to centminmod on a VPS anyways, I was running it on a test server. But I had to very quickly migrate my live site to centminmod and everything has been fine ever since :) Still learning a few things but got most of it down.
     
    • Informative Informative x 1
  9. rdan

    rdan Well-Known Member

    4,879
    1,162
    113
    May 25, 2014
    Ratings:
    +1,745
    Local Time:
    6:00 PM
    Mainline
    10.2
    My 1st 24 hours on Cloudflare using XenForo 2.1 :)

    upload_2019-8-31_2-31-50.png
     
    • Like Like x 1
  10. eva2000

    eva2000 Administrator Staff Member

    43,579
    9,885
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,265
    Local Time:
    8:00 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Sweet - 1000TB/month is ALOT !

    Great to hear :)

    So you finally updated to XF 2.1 for your own forums or this is a different forum ?
     
  11. rdan

    rdan Well-Known Member

    4,879
    1,162
    113
    May 25, 2014
    Ratings:
    +1,745
    Local Time:
    6:00 PM
    Mainline
    10.2
    Just my own Forum.
    I deploy Cloudflare to remedy some connectivity issue with my poor local ISP to/from OVH SGP.
    With Cloudflare I didn't suffer those timeout issues.

    Plus, bandwidth savings.
    I maximize my 10TB monthly quota with OVH.

    Instead of upgrading to Unlimited traffic - 250Mbps $109 vs $20 on CLoudflare :)
     
    Last edited: Sep 2, 2019
    • Like Like x 4
  12. rdan

    rdan Well-Known Member

    4,879
    1,162
    113
    May 25, 2014
    Ratings:
    +1,745
    Local Time:
    6:00 PM
    Mainline
    10.2
    After 1 week on Cloudflare :)

    upload_2019-9-8_2-9-44.png

    at 89.52% Percent Cached, very much satisfied :).
    XF 2.1.3 (without caching for attachment yet except for images).
     
    • Like Like x 1
  13. pamamolf

    pamamolf Premium Member Premium Member

    3,737
    362
    83
    May 31, 2014
    Ratings:
    +696
    Local Time:
    1:00 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Yeah i am getting also around 89-92 % caching for my invision forum :)
     
    • Like Like x 1
  14. jair

    jair Member

    48
    7
    8
    Jan 8, 2017
    Ratings:
    +17
    Local Time:
    1:00 PM
    Do you use any special page rules or this is by default? My IPS community is very image heavy, but I get only 60%.
     
  15. pamamolf

    pamamolf Premium Member Premium Member

    3,737
    362
    83
    May 31, 2014
    Ratings:
    +696
    Local Time:
    1:00 PM
    Nginx-1.17.x
    MariaDB 10.3.x
    Default...
     
    • Like Like x 1
  16. pdinh97qng

    pdinh97qng Member

    79
    10
    8
    Jan 24, 2016
    Ratings:
    +25
    Local Time:
    3:00 AM
    I’m currently on CloudFlare free and willing to move to Pro soon. Here’s is how cloudflare cache my small XenForo forum in 24 hours. Thanks to centminmod + pagespeed + Cloudflare, my site is load pretty fast even the server is not located in my country and it took only 200-300 MB Ram for 1100 online (compare with night time, around 20-30 online).
     

    Attached Files:

    • Informative Informative x 1
  17. eva2000

    eva2000 Administrator Staff Member

    43,579
    9,885
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,265
    Local Time:
    8:00 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
  18. eva2000

    eva2000 Administrator Staff Member

    43,579
    9,885
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,265
    Local Time:
    8:00 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    From February 24, 2020 onwards started using Cloudflare Workers for caching too to allow me to do CF edge cache TTL below min 30 minute available on Cloudflare Business plan i.e. CF edge cache TTL of 2-20 minutes. This reduces my CF cache hit rate but allows fresher cached pages which aren't too stale at min CF edge cache TTL of 30 minutes.

    You can see Feb 24th onwards where cache misses have increased :)

    xf15-switch-to-cf-worker-01.png

    xf15-switch-to-cf-worker-02.png

    xf15-switch-to-cf-worker-analytics-01.png

    xf15-switch-to-cf-worker-analytics-02.png

    xf15-switch-to-cf-worker-analytics-03.png

    xf15-switch-to-cf-worker-analytics-04.png

    curious how everyone else is doing ? :)
     
    • Informative Informative x 1
  19. rdan

    rdan Well-Known Member

    4,879
    1,162
    113
    May 25, 2014
    Ratings:
    +1,745
    Local Time:
    6:00 PM
    Mainline
    10.2
    You mean code like this?
    Code:
    addEventListener('fetch', event => {
      event.respondWith(noCacheOnCookie(event.request))
    })
    
    async function noCacheOnCookie(request) {
      // Determine which group this request is in.
      const cookie = request.headers.get('Cookie')
      const cacheSeconds = 600
      if (cookie
        && (
          cookie.includes(`xf_user`)
          || cookie.includes(`xf_session_admin`)
          || cookie.includes(`xf_lscxf_logged_in`)
        )) {
        const bustedRequest = new Request(request, { cf: { cacheTtl: -1 } })
        const response = await fetch(bustedRequest)
    
        const newHeaders = new Headers(response.headers)
        newHeaders.append('xf-cache-busted', `true`)
        return new Response(response.body, {
          status: response.status,
          statusText: response.statusText,
          headers: newHeaders
        })
      } else {
        // Edge Cache for 10 minutes
        return fetch(new Request(request, { cf: { cacheTtl: cacheSeconds } }))
      }
    }
     
  20. eva2000

    eva2000 Administrator Staff Member

    43,579
    9,885
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,265
    Local Time:
    8:00 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Similar but that code won't work on xenforo unless you combine with Cloudflare business plan's bypass on cookie anyway.