Welcome! Log In Create A New Profile

Advanced

Re: Measuring nginx's efficiency

Lucas Rolff
June 29, 2017 01:46PM
If your current apache configuration serves static files via the php engine, then you're doing something very wrong.

You might or might not see any speed gain depending on your apache configuration, but you should see a big difference in the amount of resources used to serve traffic.
As Valentin mentioned, it's about scalability majority of the time - and that in itself will decrease your costs in hardware or resources that is required to be able to serve your static traffic, and I'm sure whomever you have to prove to, why you should switch from Apache to nginx, would love to see that the cost of running your current setup might decrease to some or to huge extend.

If you run wrk as suggested below, you will get a bunch of useful data that will help you chose whichever software solution is the best to use.



On 29/06/2017, 19.38, "nginx on behalf of ST" <nginx-bounces@nginx.org on behalf of smntov@gmail.com> wrote:

>On Thu, 2017-06-29 at 16:16 +0300, Valentin V. Bartenev wrote:
>> On Thursday 29 June 2017 15:32:21 ST wrote:
>> > On Thu, 2017-06-29 at 15:09 +0300, Valentin V. Bartenev wrote:
>> > > On Thursday 29 June 2017 14:00:37 ST wrote:
>> > > > Hello,
>> > > >
>> > > > with your help I managed to configure nginx and our website now can be
>> > > > accessed both - through apache and nginx.
>> > > >
>> > > > Now, how can I prove to my boss that nginx is more efficient than apache
>> > > > to switch to it? How do I measure its performance and compare it to that
>> > > > of apache? Which tools would you recommend?
>> > > >
>> > > > Thank you in advance!
>> > > >
>> > >
>> > > I suggest wrk.
>> > >
>> > > https://github.com/wg/wrk
>> > >
>> >
>> > Should I stress our production system with this tool? Our system blocks
>> > users that make to many requests in a given amount of time...
>> > Also, how do I prove that static content is now served faster?
>> >
>> > Thank you.
>> >
>>
>> Switching from Apache to nginx usually isn't about speed, but about scalability.
>> It's all about how many users/connections you can serve from the same hardware.
>>
>
>Shouldn't it be also about speed, at least for static content, that no
>longer needs to be served through php-engine? And thus overall loading
>speed should be higher?
>
>_______________________________________________
>nginx mailing list
>nginx@nginx.org
>http://mailman.nginx.org/mailman/listinfo/nginx
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Measuring nginx's efficiency

ST June 29, 2017 07:02AM

Re: Measuring nginx's efficiency

Valentin V. Bartenev June 29, 2017 08:10AM

Re: Measuring nginx's efficiency

ST June 29, 2017 08:34AM

Re: Measuring nginx's efficiency

Valentin V. Bartenev June 29, 2017 09:18AM

Re: Measuring nginx's efficiency

ST June 29, 2017 01:40PM

Re: Measuring nginx's efficiency

Lucas Rolff June 29, 2017 01:46PM

Re: Measuring nginx's efficiency

ST June 29, 2017 02:48PM

Re: Measuring nginx's efficiency

Lucas Rolff June 29, 2017 03:04PM

Re: Measuring nginx's efficiency

gariac June 29, 2017 03:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 197
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready