Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2017-11-07, 23:05:16

Author Topic: tengine optimizations  (Read 1132 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
tengine optimizations
« on: 2015-05-11, 14:35:57 »
Some needed changes ;)

See: http://tengine.taobao.org/document/benchmark.html

and https://dmsimard.com/2014/06/21/a-use-case-of-tengine-a-drop-in-replacement-and-fork-of-nginx/

"With nginx, the upload took 1 minute 13 seconds.
With Tengine, the upload took 41 seconds.

That’s a difference of more than 30 seconds !"

user nginx;

worker_processes auto;
worker_rlimit_nofile 400000;

pid /var/run/nginx.pid;

events {
    worker_connections 20480;
    multi_accept on;
    use epoll;
    reuse_port on;
}

http {
    add_header Cache-Control public;

    server_names_hash_max_size 4096;
    server_names_hash_bucket_size 2048;

    types_hash_bucket_size 256;
    types_hash_max_size 2048;

    client_header_buffer_size 2k;
    client_header_timeout 90s;
    client_body_timeout 90s;
    send_timeout 90s;

    client_max_body_size 64M;
    client_body_buffer_size 128k;

    sendfile        on;
    tcp_nopush      on;
    tcp_nodelay     on;
    server_tokens   off;

    proxy_request_buffering off;
    fastcgi_request_buffering off;


    include '/etc/nginx/conf.d/*.conf';
}

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: tengine optimizations
« Reply #1 on: 2015-05-11, 14:53:10 »
Paramanter 'reuse_port on;', 'proxy_request_buffering off;' and ' fastcgi_request_buffering off;' also exists in original nginx?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: tengine optimizations
« Reply #2 on: 2015-05-11, 17:35:41 »
Paramanter 'reuse_port on;', 'proxy_request_buffering off;' and ' fastcgi_request_buffering off;' also exists in original nginx?.

I need to check ;)

BTW - aren't you worried about using tengine - it doesn't have so many updates as nginx.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,944
  • Karma: +1/-0
    • View Profile
Re: tengine optimizations
« Reply #3 on: 2015-05-11, 17:41:14 »
reuse_port on; does not exist

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,381
  • Karma: +112/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: tengine optimizations
« Reply #4 on: 2015-05-11, 17:50:24 »
Paramanter 'reuse_port on;', 'proxy_request_buffering off;' and ' fastcgi_request_buffering off;' also exists in original nginx?.

I need to check ;)

BTW - aren't you worried about using tengine - it doesn't have so many updates as nginx.
Tengine based on stable version of Nginx. Kloxo-MR using dev/mainline version of Nginx.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.036 seconds with 17 queries.

web stats analysis
 
Mirror created by MasterkinG32.CoM