[horde] temp files in horde

cheese at nosuchhost.net cheese at nosuchhost.net
Wed Apr 1 11:52:15 UTC 2020

thanks for your fast answer. sorry if i did not bring all needed info

we have Hashtable as sessionhandler and in php we store sessiondata in
memcache (clustered over 2 systems). the data in tmpdir *seems* to come
only from imp.
sql is a galera/mysql database in our installation and shared across all 8

$conf['session']['name'] = 'Horde';
$conf['session']['use_only_cookies'] = true;
$conf['session']['timeout'] = 0;
$conf['session']['cache_limiter'] = 'nocache';
$conf['session']['max_time'] = 32400;
$conf['sessionhandler']['params']['track'] = true;
$conf['sessionhandler']['type'] = 'HashTable';
$conf['sessionhandler']['hashtable'] = true;
$conf['vfs']['params']['driverconfig'] = 'horde';
$conf['vfs']['type'] = 'Sql';

what i miss is an explicit configured vfsroot.


On Wed, 1 Apr 2020, Arjen de Korte wrote:

> Citeren cheese at nosuchhost.net:
>>  dear all,
>>  hope you are being healthy even during corona-time.
>>  i have a question concerning $conf['tmpdir'] from conf.php
>>  we have several horde-instances behind a loadbalancer and those hordes
>>  share a single tmpdir. this was because if we take down one of our
>>  horde-machine for maintenance we would like our users to be able to work
>>  without interruption.
> Sharing a single tmpdir is probably *not* the best idea. What you really want 
> in this scenario, is sharing the session data (and maybe VFS). In order to do 
> that, configure a Session Handler that is able to support this (a Distributed 
> Hashtable or if you can't use that, either SQL or NoSQL Database). You really 
> shouldn't use filebased sessions in a load balancing setup. You may need to 
> configure a common $conf[vfs][params][vfsroot] too.
>>  now we see alot of files in that shared folder:
>>  * we have a lot of img* files, some of them with size 0
>>  * Horde* files, some of them empty, some with image-data, some with
>>  contents of adressbooks
>>  * horde_dns.cache - we once had troubles as that file got currupted and
>>  all apaches crashed because of that.
>>  * horde_form* - most of them empty
>>  * impatt* - seem to be attachments
>>  * php* - images and other data
>>  * .horde/imp/compose/uuid files - some seem to be complete mails, some
>>  just images, zip-files
>>  are there any implications in sharing those folder between all instances
>>  of our hordes? maybe horde1 and horde2 try to use the same file?
>>  how often should we delete files from that folder. we had lots of old
>>  files there, some of them several weeks or even months.
> Clearing the session files after $conf[session][max_time] is probably safe to 
> do. Regarding stuff in the VFS, depends on how you configured this.
>>  any best-practise from other installations?
>>  thanks for all input
>>  yours
>>  josef
> -- 
> Horde mailing list
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org

More information about the horde mailing list