Re: [icinga-users] Using the database as a session store for PHP

2017-02-26 Thread Peter Eckel
Hi Blerim, thanks for the input. Unfortunately memcached is not the perfect solution as it doesn't provide any kind of authentication and/or encryption, with makes it fine for pure local use but hard to sell in a security-aware environment - especially since session data is quite an interest

Re: [icinga-users] Using the database as a session store for PHP

2017-02-24 Thread Blerim Sheqa
It _should_ be possible to use multiple memcached servers as session storage for your PHP sessions. One memcached goes on each of your Icinga Web 2 instances. I used memcached for PHP sessions before and its a common use case, but never tried it with Icinga Web 2. I found a good article about i

Re: [icinga-users] Using the database as a session store for PHP

2017-02-24 Thread Luca Lesinigo
Il giorno 24 feb 2017, alle ore 14:17, Peter Eckel ha scritto: > Hi Luca, >> Of course you’d have problems during an actual failover (one backend fails >> or you manually take it out of the pool) but it should be a minor issue. > that's exactly the issue I'm trying to solve. My other solution (

Re: [icinga-users] Using the database as a session store for PHP

2017-02-24 Thread Peter Eckel
Hi Luca, > Of course you’d have problems during an actual failover (one backend fails or > you manually take it out of the pool) but it should be a minor issue. that's exactly the issue I'm trying to solve. My other solution (keeping the sessions directory in sync) is quite clumsy, and I'm loo

Re: [icinga-users] Using the database as a session store for PHP

2017-02-24 Thread Peter Eckel
Hi Pascal, > I think the sessions is the least of the problems. We run load -balanced > icingaweb2 setup and the re-login is not an issue. The major thing is the > configs that are not yet database driven. ( dashboards, announcements, ). > User pref can now be in database. > > So if you don't

Re: [icinga-users] Using the database as a session store for PHP

2017-02-24 Thread Pascal Larivee
I think the sessions is the least of the problems. We run load -balanced icingaweb2 setup and the re-login is not an issue. The major thing is the configs that are not yet database driven. ( dashboards, announcements, ). User pref can now be in database. So if you don't have a mean to replicate

Re: [icinga-users] Using the database as a session store for PHP

2017-02-24 Thread Luca Lesinigo
Il giorno 24 feb 2017, alle ore 13:33, Peter Eckel ha scritto: > Hi, > I'm planning to set up a redundant setup with two nodes running Icinga Web 2 > behind a HAproxy instance. > In the default configuration, PHP session storage is in the local file system > on the Icinga Web 2 servers. This