Search |
||
Extending the Grizzly HTTP Runtime VII: Cluster/load balance GrizzlyAdapter using ApachePosted by jfarcand on April 8, 2009 at 3:49 PM PDT
With the release of Grizzly 1.9.11, it is now possible to cluster/load balance your GrizzlyAdapter using Apache! As I described in the previous entry on the topic(I,II,II,IV, V, VI), it is quite simple to embed Grizzly using its' extension point: GrizzlyAdapter: Now let's assume you want to add clustering/load balancing support to your GrizzlyAdapter. To add such support, let's use Apache 2 and mod_jk. To install mod_jk and Apache, just install mod_jk module (see here for an example):
With the above, we are telling Apache to forward (via mod_jk) all requests starting with /grizzly to .... GrizzlyWebServer! How? Let's take the previous example and add support for mod_jk: Just compile, java -jar ...That's it! Now any blog talking about mod_jk clustering/load balancing configuration can be used with your GrizzlyAdapter. As an example, take a look at this one For any questions, post them to users@grizzly.dev.java.net or tweet us here.
technorati: grizzly web server embedded »
Related Topics >>
Glassfish Comments
Comments are listed in date ascending order (oldest first)
Submitted by nopjn on Tue, 2009-04-14 00:35.
Hi,
A crazy idea: in this age of lightweightness, I think a small, embeddable and powerful Java load balancer (with no session replication) based on Grizzly with out-of-the-box config for Tomcat and Glassfish would have a [Borat voice]Great Success[/Borat voice]...the Sun Web Server monster....[Borat voice again]Not so much...[/Borat voice again]
Every Java developer hates Apache config files.
Enfin, moi, ce que je dis...
Olivier Allouch
www.illicotravel.com
|
||
|
|