Il giorno 24 feb 2017, alle ore 13:33, Peter Eckel <[email protected]> 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 works very fine unless the load balancer 
> decides to fail over to the other server, in which case the user needs to 
> re-login. 
> Has anyone tried to use the database (in this case, PostgreSQL) as the 
> session store for the Icinga Web 2 PHP instance? That setup works perfectly 
> for Grafana, so I think it would be worth a try with Icinga Web 2 as well.
While I have not actually tried with Icinga, you should be able to set up 
session affinity in the load balancer (eg. HAproxy) so sessions will always go 
to the same backend.
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.

--
Luca Lesinigo
LM Networks Srl

_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to