Re: Question about data_dir and attachment_dir when using MySQL backend with squirrelmail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Dave McMurtrie wrote:
> 
> Tomas Kuliavas wrote:
>> 
>> Attachment directory stores temporary data. It does not matter which host
>> stores it as long as web client keeps talking to same host during
>> session.
>> Address books and user preferences are stored in shared location, because
>> this data must be shared between web hosts. You don't know which web host
>> will be used by load balanced web client.
>> 
> 
> I can see how it makes sense to store preferences and addressbook data 
> in a database when using a stateful load-balancer in front of a 
> multi-webserver configuration.  Both of those sets of data need to 
> persist long-term, spanning the duration of multiple sessions.
> 
> I still fail to see much benefit to using ADODB to store session data in 
> a database with this configuration, as the session data could just be 
> stored in a local filesystem if a stateful load-balancer is being used. 
>   When writing session data to local disk, the configuration is much 
> simpler and the chance of any type of transient failure to access 
> session data would be greatly reduced.
> 
> If I come across as being argumentative about this, I don't mean to be 
> and I do apologize.  It just seems strange that folks have put effort 
> into documenting this and making it work when there seems to be no 
> compelling use for it.  It's because of this that I asked the question 
> in the first place.  I really feel like I must be missing something
> obvious.
> 
> Thanks again for your response,
> 

If sessions and preferences are stored in database, you will need shared
location only for temporary data. Technically you could use FTP server as
attachment directory, but SquirrelMail might be unable handle additional FTP
errors.

Document about sessions in database was created because people can use
database to store session data, not because it is useful in some real setup.
Person that wrote initial doc tested it on local setup. Such setup is
deviation from standard PHP settings and it might trigger some issues that
are not visible in standard file based session handler.

-- 
Tomas
-- 
View this message in context: http://www.nabble.com/Question-about-data_dir-and-attachment_dir-when-using-MySQL-backend-with-squirrelmail-tp21175274p21192737.html
Sent from the squirrelmail-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux