Repository navigation
Conversation
…ectionId (fixes valkey-io#464) Signed-off-by: Raj Gahoi <gahoiraj01@gmail.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Change: Bug fix · Severity of issue fixed: Low Merge Risk: ⚪ Minimal · up to
|
|
Hi @RajGahoi, thank you for this PR and for the tests on both slices. We are going to close it for now. Changing the key of the CPU and memory state is a decision about the state model, and #464 does not define it fully:
Our contribution guide asks for an approved design before changes like this. We will post on #464 when the cluster work decides the identifiers. If you want to work on it then, please open a Design Discussion that answers the questions above, and tag the maintainers. Thanks again for your work on the dashboard metrics. |
Fixes #464
Description
Memory and CPU usage metrics are fetched from the metrics server at the node level. Previously, the backend tagged replies with \connectionId\ and the frontend stored state per connection. Consequently, when multiple connections existed to the same node across different databases (e.g. \host-6379-db0\ and \host-6379-db1), duplicate copies of the same CPU and memory data were stored in state.
This PR addresses #464 by:
odeId\ (\ oNodeId(connectionId)).
odeId\ (using \ oNodeId), collapsing multiple database connections to the same node into a single source of truth.
odeId\ and db-suffixed \connectionId\ via \ oNodeId, maintaining seamless compatibility with existing component calls.
Testing
pm --workspace apps/frontend run lint: 0 errors
pm --workspace apps/frontend run test: 19 test suites, 250 tests passed (100% green)
pm --workspace apps/server run lint: 0 errors