Le jeudi 14 juillet 2011 à 11:34 -0400, Perrin Harkins a écrit :
> On Thu, Jul 14, 2011 at 11:21 AM, Vincent Veyron <vv.li...@wanadoo.fr> wrote:
> > Could you explain (very briefly) how clustering prevents file storage of
> > a session?
> 
> A cluster in this case means multiple servers, so they don't share a
> filesystem.  There are ways to share files of course, but the common
> solution is to put your session data in a database with remote access.
> 

This is what I first did, using Apache::Session. But I noticed the call
to tie was very slow (response time around 70ms with it, 15ms without
it), so I changed for Storable because filesystem reads were much
faster.

Also, I did not find how to store a hash in the database without tie. I
read it's possible to use Data::Dumper to write the data in a field and
read it as Perl code. Would that be a way to do it?

-- 
Vincent Veyron
http://marica.fr/
Logiciel de gestion des sinistres et des contentieux pour le service juridique





Reply via email to