[S] Change in libosmo-sigtran[master]: tcap_as_loadshare: rework rate counter load sharing for a TCAP begin ...
lynxis has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sigtran/+/44083?usp=email ) Change subject: tcap_as_loadshare: rework rate counter load sharing for a TCAP begin message. ...................................................................... tcap_as_loadshare: rework rate counter load sharing for a TCAP begin message. Move the counter from tcap:asp:selected -> tcap:loadshare:success to make space for failed load sharing. Implement failed load sharing rate counter (tcap:loadshare:failure) Related: SYS#8283 Change-Id: I6a0dc75e945a7a9688386e9bcd842bf7e9bc1d1e --- M src/ss7_as.c M src/ss7_as.h M src/tcap_as_loadshare.c 3 files changed, 8 insertions(+), 4 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved diff --git a/src/ss7_as.c b/src/ss7_as.c index 91d7234..0e91b6f 100644 --- a/src/ss7_as.c +++ b/src/ss7_as.c @@ -143,8 +143,10 @@ "tcap:decode:success", "Number of successful decoded TCAP messages (loadshare-tcap)" }, [SS7_AS_CTR_TCAP_DECODE_FAILURE] = { "tcap:decode:failure", "Number of TCAP messages which could not decoded (loadshare-tcap)" }, - [SS7_AS_CTR_TCAP_ASP_SELECTED] = { - "tcap:asp:selected", "ASP selection successful for a TCAP-message (loadshare-tcap)" }, + [SS7_AS_CTR_TCAP_LOAD_SHARE_SUCCESS] = { + "tcap:loadshare:success", "Successful ASP selection for a TCAP Begin message (loadshare-tcap)" }, + [SS7_AS_CTR_TCAP_LOAD_SHARE_FAILURE] = { + "tcap:loadshare:failure", "Could not find a valid ASP for a TCAP Begin message (loadshare-tcap)" }, [SS7_AS_CTR_TCAP_ASP_FALLBACK] = { "tcap:asp:fallback", "A non-starting TCAP message had to be routed by round-robin over all ASP. (loadshare-tcap)" }, [SS7_AS_CTR_TCAP_ASP_FAILED] = { diff --git a/src/ss7_as.h b/src/ss7_as.h index 40dc422..e2327bc 100644 --- a/src/ss7_as.h +++ b/src/ss7_as.h @@ -68,7 +68,8 @@ #ifdef WITH_TCAP_LOADSHARING SS7_AS_CTR_TCAP_DECODE_SUCCESS, SS7_AS_CTR_TCAP_DECODE_FAILURE, - SS7_AS_CTR_TCAP_ASP_SELECTED, + SS7_AS_CTR_TCAP_LOAD_SHARE_SUCCESS, + SS7_AS_CTR_TCAP_LOAD_SHARE_FAILURE, SS7_AS_CTR_TCAP_ASP_FALLBACK, SS7_AS_CTR_TCAP_ASP_FAILED, SS7_AS_CTR_TCAP_TRACK_MISS, diff --git a/src/tcap_as_loadshare.c b/src/tcap_as_loadshare.c index f7ac84d..5d15afc 100644 --- a/src/tcap_as_loadshare.c +++ b/src/tcap_as_loadshare.c @@ -661,10 +661,11 @@ * is allowed (e.g., round robin)." */ asp = select_asp_tcap_enabled_rr(as); if (asp) { - rate_ctr_inc2(as->ctrg, SS7_AS_CTR_TCAP_ASP_SELECTED); + rate_ctr_inc2(as->ctrg, SS7_AS_CTR_TCAP_LOAD_SHARE_SUCCESS); } else { /* Couldn't find a suitable canditate */ LOGPAS(as, DLTCAP, LOGL_DEBUG, "Couldn't find a suitable canditate for TCAP Begin otid %u\n", parsed.otid); + rate_ctr_inc2(as->ctrg, SS7_AS_CTR_TCAP_LOAD_SHARE_FAILURE); rc = -ENOKEY; goto out_free_sua; } -- To view, visit https://gerrit.osmocom.org/c/libosmo-sigtran/+/44083?usp=email To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings?usp=email Gerrit-MessageType: merged Gerrit-Project: libosmo-sigtran Gerrit-Branch: master Gerrit-Change-Id: I6a0dc75e945a7a9688386e9bcd842bf7e9bc1d1e Gerrit-Change-Number: 44083 Gerrit-PatchSet: 5 Gerrit-Owner: lynxis <lynxis@fe80.eu> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: lynxis <lynxis@fe80.eu> Gerrit-Reviewer: pespin <pespin@sysmocom.de>
participants (1)
-
lynxis