Pre-Submission Checklist

Type Of Change

Checklist:

Description

I remember there was some discussion about adding DNS statistics, I think I remember a discussion involving @ngvoice Carsten ?

This is adding a parameter to the core dns_slow_query_ms

Example:

dns_slow_query_ms=100

When using the internal resolver any query taking more than dns_slow_query_ms will be lodged as a warning :

dns_slow_query_ms=10 (example with 10ms)

 5(5960) WARNING: <core> [core/resolve.c:752]: get_record(): res_search[35][us-west-wa.sip.flowroute.com]elapsed[12ms]
 5(5960) WARNING: <core> [core/resolve.c:752]: get_record(): res_search[1][ep-us-west-wa-01.flowroute.com]elapsed[12ms]

and a statistic counter will be incremented :

kamcmd stats.fetch dns:slow_dns_request
{
    dns.slow_dns_request: 1
}

I think this will be a good start to monitor the impact of slow DNS queries on Kamailio.


You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/1824

Commit Summary

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.