Skip to content

NMS-20352: Publish telemetryd connector configs once per location - #8895

Open
cgorantla wants to merge 3 commits into
foundation-2026from
cg/jira/NMS-20352
Open

cgorantla wants to merge 3 commits into
foundation-2026from
cg/jira/NMS-20352

Conversation

@cgorantla

@cgorantla cgorantla commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Publish telemetryd connector configs once per location instead of per node.
Batch service tracker changes so telemetryd builds all connector configs in a change and publishes once per location. Interpolated parameters are computed once
Fixes startup time with Telemetryd

External References

…tead of per node

Batch service tracker changes so telemetryd builds all connector configs in a change and
publishes once per location. Interpolated parameters are computed once and the duplicate
connector guard works.
…S-20352

# Conflicts:
#	opennms-dao/src/main/java/org/opennms/netmgt/dao/support/DefaultServiceTracker.java
#	opennms-dao/src/test/java/org/opennms/netmgt/dao/support/DefaultServiceTrackerTest.java

@marshallmassengill marshallmassengill left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving but there are some minor things we may want to fix since we're in here:

  • Failed config build drops the node permanently. ConnectorManager.java:116. Verified: node 0 never republished after later changes. Retry failed refs on the next update call; don't rethrow.
  • Failed publish retries only on a change in that location. ConnectorManager.java:136. Verified: no-change refreshes and other-location changes don't retry. Acceptable; a retry timer would close it.
  • HashMap order churns twin patches. LocationPublisher.java:43. Verified: adding 3 configs across a resize = 567 ops at 190 nodes, 2289 at 1530; LinkedHashMap = 3.
  • Per-service publish/remove are dead in production. OpenConfigTwinPublisher.java:33. Verified: only the openconfig itest calls them.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants