http://wiki.github.com/turbinado/turbinado/performance
other web haskell stuff
http://haskell.org/haskellwiki/Applications_and_libraries/Web_programming#Web_servers
Sunday, November 8, 2009
The most fundamental fact about the ideas of the political left is that they do not work. Therefore we
The most fundamental fact about the ideas of the political left is that they do not work. Therefore we should not be surprised to find the left concentrated in institutions where ideas do not have to work in order to survive.
— Thomas Sowell
http://quotes.cat-v.org/politics
— Thomas Sowell
http://quotes.cat-v.org/politics
Friday, November 6, 2009
Thursday, November 5, 2009
mouth breathing knuckle draggers running osucks virtualization is awesome!
http://www.youtube.com/bsdconferences
http://www.wellho.net/mouth/1939_mod-proxy-ajp-and-mod-proxy-balancer-examples.html
mod_proxy_ajp and mod_proxy_balancer examples
One of the major enhancements in release 2.2 of Apache httpd is the addition of the mod_proxy_ajp and mod_proxy_balancer modules to the standard distribution. Gone are the days of needing to build special modules such as Jserv, jk, jk2 and warp to have httpd act as a "front" to a Java (Tomcat) server - the module you need is already there.
Proxy forwarding to a Java Server
Here's an example of a proxied request from Apache httpd on to a server (probably Apache Tomcat) that's running the ajp protocol on port 5090:
ProxyPass /harry ajp://192.168.200.215:5090/latmjdemo
ProxyPassReverse /harry ajp://192.168.200.215:5090/latmjdemo
That's code to be added to the end of your httpd.conf file!
Proxy forwarding to a group of Java Servers
It gets even better ... mod_proxy_balancer lets you define a group of Java servers which you can forward your traffic on to - ideal on a busy site where the background task that's running in Java is a resource hog and needs to be shared between systems. Here's an example of what you would add to httpd.conf:
BalancerMember ajp://192.168.200.215:5090/latmjdemo
BalancerMember ajp://192.168.200.214:5009/latmjdemo
ProxyPass /prince balancer://catbox/
In this example, any references to the web resources on the server under the /prince directory will be forwarded to one of two other machines, on port 5090, and will be directed to the "latmjdemo" web application on there.
On our private Apache Tomcat course yesterday (based on / extended from our public course), we set up exactly this; although a production system would have identical applications on the two servers, we altered the background colour on one of them and it was fascinating to watch different delegates, and different reloads, coming up in either green or white.
More flexibility in forwarding to a group of Servers
The example above uses the default "round robin" scheduler - but there are other facilities available too to help you tune your forwarding. Here's a further example:
BalancerMember ajp://192.168.200.219:5009/latmjdemo loadfactor=1
BalancerMember ajp://192.168.200.218:5009/latmjdemo loadfactor=3
BalancerMember ajp://192.168.200.215:5009/latmjdemo status=+h
ProxySet lbmethod=bytraffic
ProxySet stickysession=JSESSIONID
ProxyPass /corgi balancer://kennel/
In this example, we are forwarding to 2 systems, in a ratio of 1 : 3 and we're allocating traffic based on the traffic quantities coming back from each server rather than the number of requests (so queries that generate a lot of traffic count for more). An extra machine has been designated as "hot swap" if neither of the others is available. Once a visitor is allocated to a particular machine for his forward, he'll continue to be forwarded to that same system while his JSESSIONID cookie remains live.
Some other notes about mod_proxy and family in Apache 2.2:
• ProxyPassMatch is available, which lets you specify a pattern (Regular Expression) for your forwarding - for example, if you wanted to forward all you image requests to an image server:
ProxyPassMatch ^/(.*\.jpg)$ http://images.wellho.net/$1
• mod_rewrite IS aware of mod_proxy_balancer, so that you can rewrite your requests as we do in many parts of our site, and then forward them on to other systems through an appropriate balancer.
• As from Apache 2.2.9, ProxyPassReverse is also mod_proxy_balancer aware.
Further reading ... There's a very good paper by Jim Jagielski - here - on these and more extra facilities. Documentation for mod_proxy_balancer is here, and there's a good description of reverse proxies here.
(written 2008-12-13 08:53:06)
One of the major enhancements in release 2.2 of Apache httpd is the addition of the mod_proxy_ajp and mod_proxy_balancer modules to the standard distribution. Gone are the days of needing to build special modules such as Jserv, jk, jk2 and warp to have httpd act as a "front" to a Java (Tomcat) server - the module you need is already there.
Proxy forwarding to a Java Server
Here's an example of a proxied request from Apache httpd on to a server (probably Apache Tomcat) that's running the ajp protocol on port 5090:
ProxyPass /harry ajp://192.168.200.215:5090/latmjdemo
ProxyPassReverse /harry ajp://192.168.200.215:5090/latmjdemo
That's code to be added to the end of your httpd.conf file!
Proxy forwarding to a group of Java Servers
It gets even better ... mod_proxy_balancer lets you define a group of Java servers which you can forward your traffic on to - ideal on a busy site where the background task that's running in Java is a resource hog and needs to be shared between systems. Here's an example of what you would add to httpd.conf:
BalancerMember ajp://192.168.200.215:5090/latmjdemo
BalancerMember ajp://192.168.200.214:5009/latmjdemo
ProxyPass /prince balancer://catbox/
In this example, any references to the web resources on the server under the /prince directory will be forwarded to one of two other machines, on port 5090, and will be directed to the "latmjdemo" web application on there.
On our private Apache Tomcat course yesterday (based on / extended from our public course), we set up exactly this; although a production system would have identical applications on the two servers, we altered the background colour on one of them and it was fascinating to watch different delegates, and different reloads, coming up in either green or white.
More flexibility in forwarding to a group of Servers
The example above uses the default "round robin" scheduler - but there are other facilities available too to help you tune your forwarding. Here's a further example:
BalancerMember ajp://192.168.200.219:5009/latmjdemo loadfactor=1
BalancerMember ajp://192.168.200.218:5009/latmjdemo loadfactor=3
BalancerMember ajp://192.168.200.215:5009/latmjdemo status=+h
ProxySet lbmethod=bytraffic
ProxySet stickysession=JSESSIONID
ProxyPass /corgi balancer://kennel/
In this example, we are forwarding to 2 systems, in a ratio of 1 : 3 and we're allocating traffic based on the traffic quantities coming back from each server rather than the number of requests (so queries that generate a lot of traffic count for more). An extra machine has been designated as "hot swap" if neither of the others is available. Once a visitor is allocated to a particular machine for his forward, he'll continue to be forwarded to that same system while his JSESSIONID cookie remains live.
Some other notes about mod_proxy and family in Apache 2.2:
• ProxyPassMatch is available, which lets you specify a pattern (Regular Expression) for your forwarding - for example, if you wanted to forward all you image requests to an image server:
ProxyPassMatch ^/(.*\.jpg)$ http://images.wellho.net/$1
• mod_rewrite IS aware of mod_proxy_balancer, so that you can rewrite your requests as we do in many parts of our site, and then forward them on to other systems through an appropriate balancer.
• As from Apache 2.2.9, ProxyPassReverse is also mod_proxy_balancer aware.
Further reading ... There's a very good paper by Jim Jagielski - here - on these and more extra facilities. Documentation for mod_proxy_balancer is here, and there's a good description of reverse proxies here.
(written 2008-12-13 08:53:06)
how world works and being a hater
pal: yeah she met a guy on forbes 400, now she will ask for a drop of his bucket
(01:58:54 PM) meawake: hey gime 100k
(01:59:09 PM) meawake: man life is about putting yourself in an arena to ask for tons fo cash
(01:59:14 PM) meawake: thats what entrepreneurs d
(01:59:16 PM) meawake: do
(01:59:21 PM) meawake: hey loan me 4mil
(01:59:23 PM) meawake: I got a biz
(01:59:26 PM) meawake: then it goes outa biz
(01:59:29 PM) meawake: they pocket 600k
(01:59:36 PM) meawake: and fiel for bankruptcy for company
(01:59:39 PM) meawake: then start another
(01:59:42 PM) meawake: repeat
(01:59:46 PM) meawake: thats way to success
(02:00:06 PM) meawake: which means banks are taking it in the ass for companys that dont make it
(02:00:17 PM) meawake: thats how they jsutify making loans with money they dont have
(02:00:22 PM) meawake: man it all makes sense
(02:00:28 PM) meawake: the twisted morals of it
(02:00:49 PM) meawake: if bank could loan only money deposited then no oen would get loan unless very sure of making money
(02:00:59 PM) meawake: because bank couldnt cope with loss by loan ing more loans
(02:01:04 PM) meawake: its captial would shrink
(02:01:19 PM) meawake: instead they constatnly counterifeit money and make money suppyl large
(02:01:21 PM) meawake: larger
(02:03:07 PM) meawake: wow man
(02:03:18 PM) meawake: they make fake money until they have winners
(02:03:24 PM) meawake: and wrote off losses with fake money
(02:03:30 PM) meawake: but with real winners the money is real
(02:03:33 PM) meawake: as is the fake
(02:03:38 PM) meawake: they act as if it isnt there
(02:03:42 PM) meawake: no risk
(01:58:54 PM) meawake: hey gime 100k
(01:59:09 PM) meawake: man life is about putting yourself in an arena to ask for tons fo cash
(01:59:14 PM) meawake: thats what entrepreneurs d
(01:59:16 PM) meawake: do
(01:59:21 PM) meawake: hey loan me 4mil
(01:59:23 PM) meawake: I got a biz
(01:59:26 PM) meawake: then it goes outa biz
(01:59:29 PM) meawake: they pocket 600k
(01:59:36 PM) meawake: and fiel for bankruptcy for company
(01:59:39 PM) meawake: then start another
(01:59:42 PM) meawake: repeat
(01:59:46 PM) meawake: thats way to success
(02:00:06 PM) meawake: which means banks are taking it in the ass for companys that dont make it
(02:00:17 PM) meawake: thats how they jsutify making loans with money they dont have
(02:00:22 PM) meawake: man it all makes sense
(02:00:28 PM) meawake: the twisted morals of it
(02:00:49 PM) meawake: if bank could loan only money deposited then no oen would get loan unless very sure of making money
(02:00:59 PM) meawake: because bank couldnt cope with loss by loan ing more loans
(02:01:04 PM) meawake: its captial would shrink
(02:01:19 PM) meawake: instead they constatnly counterifeit money and make money suppyl large
(02:01:21 PM) meawake: larger
(02:03:07 PM) meawake: wow man
(02:03:18 PM) meawake: they make fake money until they have winners
(02:03:24 PM) meawake: and wrote off losses with fake money
(02:03:30 PM) meawake: but with real winners the money is real
(02:03:33 PM) meawake: as is the fake
(02:03:38 PM) meawake: they act as if it isnt there
(02:03:42 PM) meawake: no risk
Wednesday, November 4, 2009
Subscribe to:
Posts (Atom)