Hi Sebastian,
Post by Sebastian DammHi Daniel,
thanks for the explanation and blog post. However, this is a different
approach than the asynchronous sqlops function, right? In sqlops, the
request is sent to an asynchronous worker in Kamailio and does the SQL
operation when possible. In acc, only the request is a different one.
And if the MySQL server really has a problem, it can happen that it
doesn't return from the an INSERT DELAYED query immediately. If the
MySQL query is not detached from the SIP worker, the problem of a
blocking SIP proxy is still there. Is it possible to use the
asynchronous worker for the acc requests, too?
the are two kind of operations that can be enabled for acc: insert
delayed is done when db_insert_mode=1, async insert is done when
db_insert_mode=2.
async insert is done via an asynchronous worker, same mechanism as for
sql_query_async() -- in other words, the insert query to db is not
executed by the sip worker.
Cheers,
Daniel
Post by Sebastian DammBest Regards,
Sebastian
On Tue, Oct 21, 2014 at 4:21 PM, Daniel-Constantin Mierla
Hello,
it is possible, with same limitation that the database connector
module needs to support async operation -- see db_insert_mode
parameter for acc module.
-
http://by-miconda.blogspot.de/2014/10/kamailio-42-tips-8-asynchronous.html
Cheers,
Daniel
Post by Sebastian DammHi,
http://by-miconda.blogspot.de/2014/10/kamailio-42-tips-4-asynchronous-sql.html
I was wondering whether there are any plans of bringing that
feature to the acc module, too. We have seen it in the past that
a blocking database server brought our proxy to a halt because
the acc module was blocking, too. So this could help a lot if the
acc entries were written asynchronously.
Best Regards,
Sebastian
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing
list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda