Formatting code for WebServer
{{parent page="HomePage"}}
=== Information on web servers ===
== [[Apache Apache]] ==
== [[Lighttpd Lighttpd]] ==
== [[PHP php]] ==
== [[IIS IIS]] ==
== [[Squid Squid reverse proxy]] ==
== [[Pound Pound reverse proxy]]==
== [[Varnish Varnish reverse proxy]]==
== [[nginx ngnix reverse proxy]]==
== [[SunWebServer Sun Web Server]]==
===http compression check===
%%
# Look for Content-Encoding: gzip or Content-Encoding: deflate:
$ curl -L -I -H 'Accept-Encoding: gzip,deflate' http://www.godaddy.com 2>&1 | grep ^Content-Encoding
Content-Encoding: gzip
%%
===Load Balancing===
== [[HAproxy HAProxy]]==
==Testing vhost with curl==
%%
curl -H 'Host: www.mydomain.com' http://1.2.3.4/
%%
==Reverse proxy benchmark==
A simple benchmark using ab. It's an jsp page served from tomcat via apache + mod_jk. This probably does not reflect the real world usage as it's benchmarked from the same box.
""
<table border=1><tr><td>Server</td><td> Direct</td><td> Varnish</td><td>Nginx</td></tr>
<tr><td>Document size </td><td>417b </td><td>417b</td><td> 417b</td></tr>
<tr><td>Concurrent level</td><td> 100</td><td> 100 </td><td>100</td></tr>
<tr><td>Requests</td><td> 10000</td><td> 10000 </td><td>10000</td></tr>
<tr><td>Mean time/request </td><td>676.88ms </td><td>53.5ms</td><td> 56.27ms</td></tr>
<tr><td>Transfer rate</td><td> 94.51KB/s</td><td> 1284.88KB/s </td><td>1120.87KB/s</td></tr>
<tr><td>Failed requests </td><td>0</td><td> 0</td><td> 0</td></tr>
<tr><td>Longest request</td><td> 66042</td><td> 181 </td><td>406</td></tr>
</table>
""
=== Information on web servers ===
== [[Apache Apache]] ==
== [[Lighttpd Lighttpd]] ==
== [[PHP php]] ==
== [[IIS IIS]] ==
== [[Squid Squid reverse proxy]] ==
== [[Pound Pound reverse proxy]]==
== [[Varnish Varnish reverse proxy]]==
== [[nginx ngnix reverse proxy]]==
== [[SunWebServer Sun Web Server]]==
===http compression check===
%%
# Look for Content-Encoding: gzip or Content-Encoding: deflate:
$ curl -L -I -H 'Accept-Encoding: gzip,deflate' http://www.godaddy.com 2>&1 | grep ^Content-Encoding
Content-Encoding: gzip
%%
===Load Balancing===
== [[HAproxy HAProxy]]==
==Testing vhost with curl==
%%
curl -H 'Host: www.mydomain.com' http://1.2.3.4/
%%
==Reverse proxy benchmark==
A simple benchmark using ab. It's an jsp page served from tomcat via apache + mod_jk. This probably does not reflect the real world usage as it's benchmarked from the same box.
""
<table border=1><tr><td>Server</td><td> Direct</td><td> Varnish</td><td>Nginx</td></tr>
<tr><td>Document size </td><td>417b </td><td>417b</td><td> 417b</td></tr>
<tr><td>Concurrent level</td><td> 100</td><td> 100 </td><td>100</td></tr>
<tr><td>Requests</td><td> 10000</td><td> 10000 </td><td>10000</td></tr>
<tr><td>Mean time/request </td><td>676.88ms </td><td>53.5ms</td><td> 56.27ms</td></tr>
<tr><td>Transfer rate</td><td> 94.51KB/s</td><td> 1284.88KB/s </td><td>1120.87KB/s</td></tr>
<tr><td>Failed requests </td><td>0</td><td> 0</td><td> 0</td></tr>
<tr><td>Longest request</td><td> 66042</td><td> 181 </td><td>406</td></tr>
</table>
""