karlma / fusionpbx

Automatically exported from code.google.com/p/fusionpbx
0 stars 0 forks source link

Load balancing does not seem to work correctly #906

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
With load balancing enabled try to call an extension on serverB in same domain 
from serverA.

Call just hangs for about 30 seconds and then goes through to voicemail on same 
server. The call to serverB is never attempted.

This seems to be memcache related as adding the following line:

source = "database";

just before:

                --build the XML string from the database
                        if (source == "database") then
                                --database connection
                                        if (continue) then
in file: /app/xml_handler/resources/scripts/directory/directory.lua

Seems to cure the issue.

Original issue reported on code.google.com by Digitald...@gmail.com on 7 Apr 2015 at 12:21

GoogleCodeExporter commented 9 years ago
I plan to review this in next month, I will set up my second server soon.

So according your comment, just adding sources fix it? any side effects?

Original comment by luis.dan...@gmail.com on 30 Apr 2015 at 1:17

GoogleCodeExporter commented 9 years ago
There do not seem to be any side effects but obviously no memcached is being 
used, every call is a db lookup.

Original comment by Digitald...@gmail.com on 30 Apr 2015 at 3:31

GoogleCodeExporter commented 9 years ago
I can confirm this affects, 3.6 and 3.8, i will work on a fix, that if 
condition must be tuned

Original comment by luis.dan...@gmail.com on 7 Jun 2015 at 7:40

GoogleCodeExporter commented 9 years ago
fixed on 3.9

Original comment by luis.dan...@gmail.com on 11 Jun 2015 at 12:30