I have mod_xml_cdr set with a url to POST entries to. The DNS record is something along the lines of: cdr.mydomain.com. 600 IN CNAME mydomain.com. mydomain.com. 600 IN A 10.10.10.1 mydomain.com. 600 IN A 10.10.10.2 Only one of the two web servers is receiving any POSTs. I tried adding "curl_easy_setopt(curl_handle, CURLOPT_DNS_CACHE_TIMEOUT, 0);" to mod_xml_cdr.c, to no avail. Any ideas? -jbn
Hello Justin, have you tried to DNS lookup the cdr.mydomain.com for serveral times to see if DNS round robin really works? On 04/06/2010 12:47 AM, Justin B Newman wrote:
I have mod_xml_cdr set with a url to POST entries to.
The DNS record is something along the lines of:
cdr.mydomain.com. 600 IN CNAME mydomain.com. mydomain.com. 600 IN A 10.10.10.1 mydomain.com. 600 IN A 10.10.10.2
Only one of the two web servers is receiving any POSTs.
I tried adding "curl_easy_setopt(curl_handle, CURLOPT_DNS_CACHE_TIMEOUT, 0);" to mod_xml_cdr.c, to no avail.
Any ideas?
-jbn
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Most probably RR is not working for CNAME. You should really try: cdr.mydomain.com. IN A 10.10.10.1 cdr.mydomain.com. IN A 10.10.10.2 On 04/06/2010 12:47 AM, Justin B Newman wrote:
I have mod_xml_cdr set with a url to POST entries to.
The DNS record is something along the lines of:
cdr.mydomain.com. 600 IN CNAME mydomain.com. mydomain.com. 600 IN A 10.10.10.1 mydomain.com. 600 IN A 10.10.10.2
Only one of the two web servers is receiving any POSTs.
I tried adding "curl_easy_setopt(curl_handle, CURLOPT_DNS_CACHE_TIMEOUT, 0);" to mod_xml_cdr.c, to no avail.
Any ideas?
-jbn
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Sounds like something more appropriate for a load balancer, such as lvs ( http://www.linuxvirtualserver.org/). DNS round robin also can't detect failure and stopping routing requests to the node, while a tool like lvs could. On Mon, Apr 5, 2010 at 4:01 PM, Nazim Aghabayov <nazim.aghabayov@gmail.com>wrote:
Most probably RR is not working for CNAME. You should really try:
cdr.mydomain.com. IN A 10.10.10.1 cdr.mydomain.com. IN A 10.10.10.2
On 04/06/2010 12:47 AM, Justin B Newman wrote:
I have mod_xml_cdr set with a url to POST entries to.
The DNS record is something along the lines of:
cdr.mydomain.com. 600 IN CNAME mydomain.com. mydomain.com. 600 IN A 10.10.10.1 mydomain.com. 600 IN A 10.10.10.2
Only one of the two web servers is receiving any POSTs.
I tried adding "curl_easy_setopt(curl_handle, CURLOPT_DNS_CACHE_TIMEOUT, 0);" to mod_xml_cdr.c, to no avail.
Any ideas?
-jbn
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Agree, load balancer is better. It seems that libcurl doesn't respect DNS RR. On 04/06/2010 05:47 AM, Rob Forman wrote:
Sounds like something more appropriate for a load balancer, such as lvs (http://www.linuxvirtualserver.org/).
DNS round robin also can't detect failure and stopping routing requests to the node, while a tool like lvs could.
On Mon, Apr 5, 2010 at 4:01 PM, Nazim Aghabayov <nazim.aghabayov@gmail.com <mailto:nazim.aghabayov@gmail.com>> wrote:
Most probably RR is not working for CNAME. You should really try:
cdr.mydomain.com <http://cdr.mydomain.com>. IN A 10.10.10.1 cdr.mydomain.com <http://cdr.mydomain.com>. IN A 10.10.10.2
On 04/06/2010 12:47 AM, Justin B Newman wrote: > I have mod_xml_cdr set with a url to POST entries to. > > The DNS record is something along the lines of: > > cdr.mydomain.com <http://cdr.mydomain.com>. 600 IN CNAME mydomain.com <http://mydomain.com>. > mydomain.com <http://mydomain.com>. 600 IN A 10.10.10.1 > mydomain.com <http://mydomain.com>. 600 IN A 10.10.10.2 > > Only one of the two web servers is receiving any POSTs. > > I tried adding "curl_easy_setopt(curl_handle, > CURLOPT_DNS_CACHE_TIMEOUT, 0);" to mod_xml_cdr.c, to no avail. > > Any ideas? > > -jbn > > _______________________________________________ > FreeSWITCH-users mailing list > FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users > http://www.freeswitch.org >
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Mon, Apr 5, 2010 at 8:47 PM, Rob Forman <rob4manhere@gmail.com> wrote:
Sounds like something more appropriate for a load balancer, such as lvs (http://www.linuxvirtualserver.org/).
DNS round robin also can't detect failure and stopping routing requests to the node, while a tool like lvs could.
On Tue, Apr 6, 2010 at 7:39 AM, Nazim Aghabayov <nazim.aghabayov@gmail.com> wrote:
Agree, load balancer is better. It seems that libcurl doesn't respect DNS RR.
In this case, I'm primarily interested in failover. Yes, a load balancer might be more appropriate in the grand scheme of the world, but because mod_xml_cdr retries a given URL upon failure, much of the same result could be achieved with significantly less complexity if round robin worked. For my purposes, I've gone ahead and defined "url" multiple times; mod_xml_cdr will try them one after the other. I lose randomness, but I can of course define that on a server-by-server basis. Ugly, but adding a load balancer to the mix seems like an unnecessary point of failure for this use case. Thanks for all your thoughts, Yours, -jbn
On Tue, Apr 06, Justin B Newman wrote: Snip...
For my purposes, I've gone ahead and defined "url" multiple times; mod_xml_cdr will try them one after the other. I lose randomness, but I can of course define that on a server-by-server basis. Ugly, but adding a load balancer to the mix seems like an unnecessary point of failure for this use case.
You can setup the load balancer to failover. It seems like you've figured out a solution though. --FC
participants (4)
-
Frank Carmickle
-
Justin B Newman
-
Nazim Aghabayov
-
Rob Forman