Git Product home page Git Product logo

Comments (11)

fevangelou avatar fevangelou commented on June 16, 2024

First off, Engintron by default will only cache static files. Think of it like your own CloudFlare on your server.

Secondly, if you wanna get better performance, you have to enable micro-caching. You do this by editing via WHM > Plugins > Engintron the main Nginx vhost file - default.conf - and commenting out the line 15 (check the comment there). This enables a 1 sec cache which works miracles when you have a large number of concurrent connections. That's why, if you enable this and run a simple Apache Benchmark test, you'll notice a site's serving capacity can raise from a few dozen - couple of hundred requests per second to thousands. I have Engintron deployed on various productions servers of all sizes and types (VPS or dedicated) and the best improvement I've seen was a Joomla site with lots of content going from less than 100 requests per second to 19,000!

Micro-caching works on GET and HEAD requests, never on POST. So even if you have user generated content, users won't notice and better still, guest users will be visiting an extremely fast website.

The case with StackOverflow is much different. It's one app, so they can handle caching differently so it can't be compared to how caching would work on a single server.

If you deploy Engintron, I'd like your feedback with micro-caching on :)

from engintron.

masteranalyze avatar masteranalyze commented on June 16, 2024

I will test it also on dedicated,once cpanel team,maybe solve that bug on easyapache 4 that we talked about earlier.

And i will use it for joomla too.

From your reports and test benchmarks comparated to the initial varnish implementation you did for joomla,this one is more good or ?

Maybe you can provide some numbers ,varnish vs nginx.

And what the heck happened when from 100 request seconds did go to 19.000? It was some kind of attack or suddenly social traffic spike ?!

"Micro-caching works on GET and HEAD requests, never on POST. So even if you have user generated content, users won't notice and better still, guest users will be visiting an extremely fast website."

The case of stackoverflow,i gaved just an example,as i know some people from their tech staff,and they work like on cache.

So if you enable the 1 sec cache that does miracles,and you have 100 post and an users comes and post the 101 comment,the 100 post will be already cache ?And it only cache 1 post ?And not 101 post back again?That is the point....

from engintron.

fevangelou avatar fevangelou commented on June 16, 2024

You can't realy compare Varnish with Nginx. Varnish is for reverse proxy & caching only, not serving. Nginx is a full webserver with both reverse proxy/caching and serving capabilities.

My company uses Varnish with Nginx and PHP5-FPM on Ubuntu servers, without cPanel. In fact, I'm working on a small admin panel for all that, which I plan on releasing by the summer. The performance there does not compare to anything else.

As for the site I mentioned, the test was an Apache Benchmark, not an actual traffic spike. The trick with microcaching is pretty simple: keep a 1 second cache. If you have 100s of requests per second, only 1 will be served directly from Apache, all the rest from the server. Nginx is perfect for that (unlike Varnish which I don't know if it's capable for such short caching times) and it's also a recommended way to serve dynamic content, coming from the Nginx creators themselves.

from engintron.

masteranalyze avatar masteranalyze commented on June 16, 2024

And that 1 second cache setup,will do the whole miracle on the whole dynamic content ??

I really hope cpanel solves fast with easyapache4,as i really need to test this out!

from engintron.

fevangelou avatar fevangelou commented on June 16, 2024

Correct. I hate to break it to you though, but I doubt cPanel will resolve the issue fast. Besides, EA4 is still considered beta, so they are kind of covered against their users.

from engintron.

masteranalyze avatar masteranalyze commented on June 16, 2024

Don`t worry,i will help you,so they can solve it soon....maybe even this week!

Of course they are covered,they are all the time covered!

from engintron.

masteranalyze avatar masteranalyze commented on June 16, 2024

Till next week,we mostly should have an update,i spoked with them on phone,i will keep track on this.

If we wont have it,like they promised,im going down to easyapache 3,until things are fixed and out totally of beta!
Either way this will be solved...but it`s good to keep on eye on easyapache 4 solving of the problem,as easyapache4 sooner or later will become standard,and they might even drop easyapache3,once ea4 works.

p.s:fev do you have any ideea if the pecl pear on ea3,does have any problem?As i want to put the APCU,and give it try,as this is another reason i consider back to ea3,as this is not fixed for ea4 and no timeframe at all for when this is going to be solved.

from engintron.

fevangelou avatar fevangelou commented on June 16, 2024

Follow the guide for installing APC(u) in this project's wiki: https://github.com/nuevvo/engintron/wiki/10.-Beyond-Engintron:-Install-APC(u)-in-cPanel

The wiki has many more optimization guides too.

Considering this issue resolved as well.

from engintron.

masteranalyze avatar masteranalyze commented on June 16, 2024

thanks fev,for it,i will take an look,just get back to easyapache3,after that i will deploy engintron.

I saw that basically when joomla will use nginx instead of apache,i have to redo some settings according to this guide : https://docs.joomla.org/Nginx ?!
https://docs.joomla.org/Enabling_Search_Engine_Friendly_%28SEF%29_URLs_on_Nginx

As mostly i use joomla,or is already setup after installing engintron?!!

from engintron.

fevangelou avatar fevangelou commented on June 16, 2024

Not really, if you use Engintron, you don't need to change anything either in .htaccess files or in Nginx's configuration.

from engintron.

masteranalyze avatar masteranalyze commented on June 16, 2024

good to hear that,i will give it an spin soon,did get back in ea3 meantime!

from engintron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.