Skip to content

[Nexthop][bugfix] Start the fb303 stats-aggregation thread in the OSS fsdb server - #1743

Open
deepakgudiseva-nexthop wants to merge 2 commits into
meta:mainfrom
nexthop-ai:no-nos-fsdb-fix-fb303-counters-in-oss
Open

deepakgudiseva-nexthop wants to merge 2 commits into
meta:mainfrom
nexthop-ai:no-nos-fsdb-fix-fb303-counters-in-oss

Conversation

@deepakgudiseva-nexthop

@deepakgudiseva-nexthop deepakgudiseva-nexthop commented Oct 9, 2026 •

Copy link
Copy Markdown

Pre-submission checklist

  • I've ran the linters locally and fixed lint errors related to the files I modified in this PR. You can install the linters by running pip install -r requirements-dev.txt && pre-commit install
  • pre-commit run

Summary

fsdb records its stats through fb303::ThreadCachedServiceData, which buffers them per thread until a publish thread aggregates them into what getCounters() serves. Internal builds get that thread from the service framework in facebook/Server.cpp; the OSS oss/Server.cpp never starts it, so every thread-cached fsdb counter reads 0.

The agent (SwAgentInitializer), hw_agent (HwAgentMain) and qsfp_service (StatsPublisher) already start it themselves. This does the same for fsdb, at the same 1 s interval.

fsdb.rss still reads 0 in OSS because getMemoryUsage() is stubbed there; that is unchanged.

Test Plan

OSS build on hardware, fboss2 show fb303-counters --service fsdb --regex fb303_tcData_aggregate_call_count.sum, read twice 5 s apart:

  • before: 0 -> 0
  • after: 12517 -> 12767

…t it every fsdb fb303 counter reads 0.

Signed-off-by: deepakgudiseva-nexthop <deepakgudiseva@nexthop.ai>
@deepakgudiseva-nexthop
deepakgudiseva-nexthop requested a review from a team as a code owner October 9, 2026 19:18
@meta-cla meta-cla Bot added the CLA Signed label Oct 9, 2026
@deepakgudiseva-nexthop deepakgudiseva-nexthop changed the title [Nexthop] Start the fb303 stats-aggregation thread in the OSS fsdb server [Nexthop][bugfix] Start the fb303 stats-aggregation thread in the OSS fsdb server Oct 29, 2026
@github-actions github-actions Bot added nexthop project:bugfix FBOSS project: bugfix labels Oct 29, 2026
Signed-off-by: Deepak Gudiseva <deepakgudiseva@nexthop.ai>

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant