[OpenNMS/opennms] ebfbd2: NMS-20027: pass SNMP interface id to the direction...
Marshall Massengill via opennms-cvs <[email protected]>
| Newsgroups | gmane.network.opennms.cvs |
|---|---|
| Message-ID | <OpenNMS/opennms/push/refs/heads/mm/NMS-20027-smoke/[email protected]> |
Branch: refs/heads/mm/NMS-20027-smoke
Home: https://github.com/OpenNMS/opennms
Commit: ebfbd292b21132abf6bcc9b003ba1c81e826738d
https://github.com/OpenNMS/opennms/commit/ebfbd292b21132abf6bcc9b003ba1c81e826738d
Author: Marshall Massengill <[email protected]>
Date: 2026-07-22 (Wed, 22 Jul 2026)
Changed paths:
M features/flows/elastic/src/main/resources/org/opennms/netmgt/flows/elastic/common.ftl
M features/flows/elastic/src/main/resources/org/opennms/netmgt/flows/elastic/series_for_missing.ftl
M features/flows/elastic/src/main/resources/org/opennms/netmgt/flows/elastic/series_for_others.ftl
M features/flows/elastic/src/main/resources/org/opennms/netmgt/flows/elastic/series_for_terms.ftl
M features/flows/elastic/src/test/java/org/opennms/netmgt/flows/elastic/ProportionalSumQueryTest.java
Log Message:
-----------
NMS-20027: pass SNMP interface id to the direction script as a parameter
The unknown-direction handling in the raw flow series queries inlined the
SNMP interface id into the Painless script source, producing a distinct
script per interface. On busy clusters that generates a stream of one-off
compilations and can trip the dynamic script compilation rate limit
(observed as high script.compilation_limit_triggered counts in the field).
Render the interface id via script params instead, so the source is
identical across interfaces and Elasticsearch compiles and caches it once.
Verified on Elasticsearch 7.13.x: 25 queries with distinct interface ids
produce 0 additional compilations with the parameterized form versus 25
with the inlined form, and the aggregation still classifies unknown-direction
flows as ingress/egress by matching input/output interface.
To unsubscribe from these emails, change your notification settings at https://github.com/OpenNMS/opennms/settings/notifications
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/wiki/index.php?page=MailingListFaq
opennms-cvs mailing list
To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-cvs