Stefan de Konink | 2 Oct 19:11 2008
Picon
Picon

High Availability Active-Active, is a Cherokee 'only' solution safe?


I have some years(?) experience with Cherokee now, I know if I don't
develop anything keeps on running, and is usually (always ;) a good
choice to implement on a mission critical application.

Currently for a new website someone asked for a specific load-balancing
technique. Which I think in Cherokee terms is easy to solve:

 [Cherokee Server]
      /     \
[fcgi-php] [fcgi-php]
[ server ] [ server ]

This probably scales well. But now; what if you a priori know:

1) One Brave Chief cannot handle the load due to heavy SSL
2) The amount of traffic to one machine is just too much
3) If failing = big problems

I wonder what the users here would choose. Would you go with something
like LVS, or would you take another balancing approach?

Stefan
Tim Post | 3 Oct 04:40 2008
Picon

Re: High Availability Active-Active, is a Cherokee 'only' solution safe?

On Thu, 2008-10-02 at 19:11 +0200, Stefan de Konink wrote:

> This probably scales well. But now; what if you a priori know:
> 
> 1) One Brave Chief cannot handle the load due to heavy SSL
> 2) The amount of traffic to one machine is just too much
> 3) If failing = big problems
> 
> 
> I wonder what the users here would choose. Would you go with something
> like LVS, or would you take another balancing approach?

It really depends. For most situations, I try to make sure that the site
operator has to make only minimal (if any) changes to their code.
Sometimes sessions can be problematic, other times the application
itself must have at least one shared mount for certain configuration
files or other temporary data.

This works well for me:

                         [ CVIP ]
                         /      \
               [ crossroads]   [ crossroads ]
             /    \                  /       \
   [ cherokee ] [ cherokee ]  [ cherokee ] [ cherokee ] 
      /   \       /    \      /     |    \     /     \
  [    ] [   ] [   ] [   ]  [   ] [   ] [   ] [   ] [   ]
 [                fcgi-php as you noted prior            ]

It is relatively easy to scale and / or package as virtual appliances to
(Continue reading)

Stefan de Konink | 3 Oct 04:58 2008
Picon
Picon

Re: High Availability Active-Active, is a Cherokee 'only' solution safe?


Tim Post schreef:
> It really depends. For most situations, I try to make sure that the site
> operator has to make only minimal (if any) changes to their code.
> Sometimes sessions can be problematic, other times the application
> itself must have at least one shared mount for certain configuration
> files or other temporary data.

True, but I think that is usually PHP related. And where session data
essencially could be shared.

> This works well for me:
> 
>                          [ CVIP ]

Are you using a Cluster Virtual IP adres in Master-Slave, or are you
able to use the left hand and right hand crossroads instance (with their
respectable cherokee instances)?

>                          /      \
>                [ crossroads]   [ crossroads ]
>              /    \                  /       \
>    [ cherokee ] [ cherokee ]  [ cherokee ] [ cherokee ] 
>       /   \       /    \      /     |    \     /     \
>   [    ] [   ] [   ] [   ]  [   ] [   ] [   ] [   ] [   ]
>  [                fcgi-php as you noted prior            ]
> 
> It is relatively easy to scale and / or package as virtual appliances to
> be deployed on a farm. There are many other options other than
> crossroads for load balancing too.
(Continue reading)

Tim Post | 3 Oct 10:54 2008
Picon

Re: High Availability Active-Active, is a Cherokee 'only' solution safe?

On Fri, 2008-10-03 at 04:58 +0200, Stefan de Konink wrote:

> Are you using a Cluster Virtual IP adres in Master-Slave, or are you
> able to use the left hand and right hand crossroads instance (with their
> respectable cherokee instances)?

Currently master-slave however I'm looking to a 'smarter' more elegant
takeover. For instance, accounting for drunken NOC monkey in data center
pulling the wrong cables repeatedly during his work and quickly
replacing them. That scenario just happened to me, actually. I ended up
on someone else's private switch :|

The idea being, quickly figure out if crossroads1 is going to be
intermittent for some time.

I am __just__ now moving from pound to crossroads .. so I still have
some learning curve to get through.

> So basically the only 'redudant' part is the [ crossroads ] instance,
> the rest is 'reused' by both of them :)

Yes, whichever crossroads LB is bound to the (non local) CVIP is
directing traffic over nn Cherokee nodes. Cherokee takes care of the
rest, which is why I'm urging people to use it (and even lowering my fee
for setup if they do).

As noted prior, the only funky part is tweaking the takeover. You don't
want it to be like a flickering DPDT toggle switch which can easily
happen.

(Continue reading)

J.SkyWave | 4 Oct 07:52 2008
Picon

Elgg on Cherokee - rewrite help.

I'm trying to get Elgg running on Cherokee, but I think I need some
help with the rewrite rules it wants to create.

Here is its .htaccess file.

# Elgg htaccess directives
# Copyright Curverider Ltd 2008
# License http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU
Public License version 2
# Link http://elgg.org/

<IfModule !mod_rewrite.c>
    # ugly ugly hack to detect missing mod_rewrite
    # RedirectMatch must be to an absolute destination, so forces 500
error...
    ErrorDocument 500 "Elgg error: Apache does not have mod_rewrite
loaded. Please check your Apache setup."
    RedirectMatch 302 .* index.php
</IfModule>

<Files "htaccess-dist">
    order allow,deny
    deny from all
</Files>

# Don't listing directory
Options -Indexes

# Follow symbolic links
Options +FollowSymLinks
(Continue reading)

Taher Shihadeh | 6 Oct 13:06 2008

Re: Setting up PHP in Cherokee 0.9.1

Hi Marcos.
It should work out of the box. I'm not sure why it isn't.
First check that your installed php-cgi  supports fastcgi. The *fcgi* part must appear.

taher <at> borg:~/src/cherokee/trunk/doc$ php-cgi -v
PHP 5.2.4-2ubuntu5.3 with Suhosin-Patch 0.9.6.2 (cgi-fcgi) (built: Jul 23 2008 06:38:29)

If the problem is unix-socket related, ¿could you try setting it up so that it uses a host:port?
Simply change your 'php' information source, where it says 
Connection: 
 /tmp/cherokee-php.sock   --> localhost:1234

Interpreter: 
/usr/bin/php-cgi -b /tmp/cherokee-php.sock  ---> /usr/bin/php-cgi -b 1234

Let's see if we can crack this one ;)

Regards

On Sunday 05 October 2008 18:34:08, Marcos wrote:
> Hi,
> 
> I've just installed Cherokee and I'm now trying to setup PHP on it. I've found 
> the documentation part of the cookbook that explains how to set PHP, and it 
> seems that it should be configured by default. I think it is, because I see the 
> 'php' information source there.
> 
> I have installed the php5-cgi package (running Debian stable), but no 
> /tmp/cherokee-php.sock file is created after restarting the server.
> 
(Continue reading)

Taher Shihadeh | 6 Oct 17:48 2008
Picon

Re: Cherokee Digest, Vol 4, Issue 3 reply to Message: 1

AFAIK cgi-fcgi enabled PHP is the default for Debian and Ubuntu. I couldn't 'm not sure about other distributions.
If by any chance your version didn't support it, you would have to build PHP from source with the
--enable-fastcgi flag. 
You'll probably find much better info about that at php.net

On Monday 06 October 2008 17:15:55, Viktor S. Kristensen wrote:
> Yes! a little guide how to install php fast cgi or something similar would be awesome! 
> /Viktor
--

-- 
taher <at> shihadeh.net
http://unixwars.com
Leonel Nunez | 6 Oct 19:44 2008

Cherokee 0.9.2 Ubuntu Hardy

Hello :

After Alvaro's friday talk about cheroke  I've decided to give it a try 
and I started to like it.
I was looking for the 0.9.2 package for ubuntu and found  none
I've already made the  debs  for  0.9.2 for Ubuntu Hardy  based on  
Debian unstable 0.8.1
Later this day I will push to my ppa.lauchpad.net

I'll let you know the  apt sources if you want to give it a try in Ubuntu ..

Great piece of software  Thank  You all ..

Leonel Nunez
Alvaro Lopez Ortega | 6 Oct 19:48 2008

Cherokee 0.9.3 released!

               ===================================
                    Cherokee 0.9.3 released!
               ===================================

Cherokee is a very fast, flexible and easy to configure Web Server.
It supports the widespread technologies nowadays: FastCGI, SCGI, PHP,
CGI, TLS and SSL encrypted connections, Virtual hosts, Authentication,
on the fly encoding, Apache compatible log files, HTTP load balancing,
data base balancing, and much more.

Cherokee also provides an easy to use configuration interface that
allows to configure the server from top to bottom without having to
edit a text configuration file.

Please visit the Cherokee Web Server site for more information:

            http://www.cherokee-project.com/

Availability
------------
- Main site:
http://www.cherokee-project.com/download/0.9/0.9.3/cherokee-0.9.3.tar.gz

- US Mirror:
http://cherokee.osuosl.org/0.9/0.9.3/cherokee-0.9.3.tar.gz

Changes
-------
A bug in the internal cache mechanism could lead the server to crash.  
This
(Continue reading)

leonel | 6 Oct 19:59 2008

Cherokee 0.9.2 Ubuntu Hardy

Hello :

After Alvaro's friday talk about cheroke  I've decided to give it a try 
and I started to like it.
I was looking for the 0.9.2 package for ubuntu and found  none
I've already made the  debs  for  0.9.2 for Ubuntu Hardy  based on  
Debian unstable 0.8.1
Later this day I will push to my ppa.lauchpad.net

I'll let you know the  apt sources if you want to give it a try in 
Ubuntu ..

Great piece of software  Thank  You all ..

Leonel Nunez

Gmane