#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [x] Each component has a single commit (if not, squash them into one commit)
- [x] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### 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 --
* core: dns slow queries reporting
-- File Changes --
M src/core/cfg.lex (3)
M src/core/cfg.y (3)
M src/core/cfg_core.c (3)
M src/core/cfg_core.h (1)
M src/core/resolve.c (17)
M src/core/resolve.h (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1824.patchhttps://github.com/kamailio/kamailio/pull/1824.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1824
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/1826
-- Commit Summary --
* pkg/docker: Updated submodule
* pkg/kamailio/alpine: Update APKBUILD
* pkg/docker: Alpine switched to use openssl. Updated rules for alpine docker container
* kamdbctl: Merged patch from alpine packaging (#1786)
-- File Changes --
M pkg/docker (2)
D pkg/kamailio/alpine/0004-src_core_tcp_read_c.patch (20)
M pkg/kamailio/alpine/APKBUILD (12)
M pkg/kamailio/alpine/kamailio.initd (2)
D pkg/kamailio/alpine/kamctl_build.patch (236)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/1826.patchhttps://github.com/kamailio/kamailio/pull/1826.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1826
Module: kamailio
Branch: master
Commit: ec993297b38b5d90e88d838f7d126317d6ab4641
URL: https://github.com/kamailio/kamailio/commit/ec993297b38b5d90e88d838f7d12631…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2019-02-01T19:31:45+01:00
modules: readme files regenerated - rr ... [skip ci]
---
Modified: src/modules/rr/README
---
Diff: https://github.com/kamailio/kamailio/commit/ec993297b38b5d90e88d838f7d12631…
Patch: https://github.com/kamailio/kamailio/commit/ec993297b38b5d90e88d838f7d12631…
---
diff --git a/src/modules/rr/README b/src/modules/rr/README
index 9feab35738..4fe696ee3a 100644
--- a/src/modules/rr/README
+++ b/src/modules/rr/README
@@ -408,6 +408,7 @@ modparam("rr", "ignore_sips", 1)
* 2 - route calculation based on flow-token has been successful
* -1 - route calculation has been unsuccessful
* -2 - outbound flow-token shows evidence of tampering
+ * -3 - next hop is taken from a preloaded route set
This function can be used from REQUEST_ROUTE.