Skip to content

nodes status should include connection and graph stats#52

Merged
tegefaulkes merged 1 commit into
stagingfrom
feature-cli-polish-2
Nov 16, 2023
Merged

nodes status should include connection and graph stats#52
tegefaulkes merged 1 commit into
stagingfrom
feature-cli-polish-2

Conversation

@addievo

@addievo addievo commented Nov 5, 2023

Copy link
Copy Markdown
Contributor

Description

Needs a rebase after merge of #45

Currently, nodes status lacks a lot of vital information, this PR aims to add some extra information to nodes status to make it more informational.

Currently, we have added

  • Number of active connections.
  • Total nodes created.

Issues Fixed

Tasks

  • 1. Implement active connections.
  • 2. Implement total nodes.
  • 3. Implement node graph information other than total nodes.

Final checklist

  • Domain specific tests
  • Full tests
  • Updated inline-comment documentation
  • Lint fixed
  • Squash and rebased
  • Sanity check the final build

@ghost

ghost commented Nov 5, 2023

Copy link
Copy Markdown
👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@addievo addievo assigned addievo and amydevs and unassigned addievo Nov 5, 2023
@addievo addievo mentioned this pull request Nov 5, 2023
@CMCDragonkai CMCDragonkai assigned tegefaulkes and unassigned amydevs Nov 14, 2023
@CMCDragonkai

Copy link
Copy Markdown
Member

If this only requires minor changes, then we should just get this in @tegefaulkes

@tegefaulkes

Copy link
Copy Markdown
Contributor

I've rebased.

Looking over this, I think that it needs a bit more work. The agent status handler needs to be updated to provide the stats. This needs to be implemented in Polykey. Right now the command does separate RPC calls to collect the stats.

@CMCDragonkai

Copy link
Copy Markdown
Member

You can go ahead and work on this if you can merge in today. We got other stuff to do too.

@tegefaulkes

Copy link
Copy Markdown
Contributor

I'm adding some useful stats to the NodeConnectionManager.

connectionsActive
connectionsMadeForward
connectionsMadeReverse
connectionsUsage
connectionsAcquired
streamsMadeForward
streamsMadeReverse
streamsActive

@CMCDragonkai

Copy link
Copy Markdown
Member

Are you going to store these stats somewhere? Or are they just counts of whatever state we have? Cause I'd want to avoid storing any state, where it would be more appropriate for the audit domain in MatrixAI/Polykey#628

@tegefaulkes

tegefaulkes commented Nov 15, 2023

Copy link
Copy Markdown
Contributor

I'm just adding nodes stats for now. We can expand on this later with other stats if anything else seems useful while testing.

They're just in-memory counts for now. anything persistent would be for the audit domain.

@tegefaulkes

Copy link
Copy Markdown
Contributor

I'm considering this mostly done now.

When I did the rebase I cut out a bunch of changes that didn't make sense given the scope of this PR. I need to go over the old code which I saved in feature-cli-polish-2-BACKUP branch and see what's actually needed. I need some information on what 8b1191c was trying to do. It conflicted with a lot of changes in staging and there is no mention of this in the PR or issue.

@CMCDragonkai

Copy link
Copy Markdown
Member

@addievo can you provide commentary about 8b1191c and @tegefaulkes make a judgement call on what's needed.

@CMCDragonkai

Copy link
Copy Markdown
Member

And if so, merge and go ahead to the nodes hole punching refactoring!

@tegefaulkes
tegefaulkes merged commit 3e9e965 into staging Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

nodes status command should include connection and graph stats

4 participants