Hi Michiel,
Thanks for the answer; There's some food for thought in there.
Of course, we don't use a MySQL server for our Customer data; That would have been too easy... ;-) So the proxy solution doesn't apply. (We use a MS-SQL non-clustered backend btw)
My understanding is now the following:
For LDAP:
For ODBC:
- The LDAP solution I gave works ok for Auth.pm as a connection to one of the LDAP servers is initiated at every agent login (see Kernel::System::Auth::LDAP->Auth()).
- The LDAP solution I gave wouldn't work perfectly for CustomerUser.pm as a connection to one of the LDAP servers would be initiated at application startup, and kept open until application ends (see Kernel::System::CustomerUser::LDAP->new()). Failover to another LDAP server would thus require restarting the application.
Based on this understanding, I think I'll go for a scripted import of CustomerUser and CustomerCompany data.
- I can't use 2 data backends as OTRS crashes when any of the backends is unavailable + it's not efficient (but I don't really matter about that)
Other options that I'm still considering are:
((enjoy))
- Customize OTRS so that it won't die when a CustomerUser backend isn't available => This doesn't seem doable
- Customize OTRS so that it accepts a 2nd DSN to try to connect to in case it fails to connect to the primary one at application startup => Restarting the application would still be needed in case of backend failure.
- Add DBD::Multiplex support to OTRS => Doesn't seem well supported (no package in Ubuntu)
Cyrille
Le 25/04/2013 09:54, Michiel Beijen a écrit :
Hi Cyrille,First of all, if you use a MySQL server it's typically better and faster to connect via DBD::mysql rather than via ODBC.Second, you'll want to use MySQL-proxy or a similar solution as a 'load balancer' for your MySQL cluster.That way from OTRS you connect to only one 'virtual' server.If you'd define two data backends all queries typically hit all cluster database nodes which seems very inefficient to me.With the LDAP example you gave the 'failover' happens at connection time.Within mod_perl typically the connection is not set up for each query but only once and then is kept open by Apache::DBI.
Michiel BeijenSenior DeveloperOTRS BVSchipholweg 1032316 XC LeidenThe NetherlandsOTRS 3.2 - More than a Help Desk System – Process and Customer Management – Be an early bird with our special offer - http://j.mp/11TFPSr
On Wed, Apr 24, 2013 at 4:56 PM, Cyrille Bollu <cyrille.bollu@belnet.be> wrote:
Hi list,
I'm trying to find out how I could setup OTRS to use a redundant ODBC backend for CustomerUser objects.
I initially thought I could setup 2 backends pointing to 2 mirrored mysql servers. But, it seems that OTRS' code dies with a nice HTTP 500 error when a backend isn't available.
Has anyone already worked on such a setup?
I remember doing such a setup for agents authentication with an LDAP backend using the following in config.pm:
# LDAP agent backend
my @ldaphosts = ('ldap2','ldap1');
$Self->{'AuthModule'} = 'Kernel::System::Auth::LDAP';
$Self->{'AuthModule::LDAP::Host'} = \@ldaphosts;
...
And it seem to work fine at that time.
Now, is there an easy solution for ODBC backends?
Best regards,
Cyrille
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
--------------------------------------------------------------------- OTRS mailing list: otrs - Webpage: http://otrs.org/ Archive: http://lists.otrs.org/pipermail/otrs To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
---------------------------------------------------------------------
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs