Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spike: Tracking the number of accounts a miner has setup #622

Open
2 tasks
giovaroma opened this issue Nov 5, 2024 · 4 comments
Open
2 tasks

spike: Tracking the number of accounts a miner has setup #622

giovaroma opened this issue Nov 5, 2024 · 4 comments
Labels

Comments

@giovaroma
Copy link

giovaroma commented Nov 5, 2024

Problem

  • we do not formally know the capacity of all the miners in the network
  • How many logins users do have
    • We can only see that by observing "passively" the events in the network (e.g. errors)
  • We currently cannot measure network capacity/efficiency
  • We do not know the state of some the nodes this is to be further defined by Chris chatting with Bob.

Acceptance criteria

  • We know of an approach that we can use to track how many accounts are set by a peer id
  • This information can be used and tracked via API

Notes:

We had a report on the testnet that a miner is taking advantage of the testnet campaign but this cannot be validated. To further understand this we would need to be able to:

Tracking the number of accounts a miner has setup because out performance might just be that they added more accounts recently therefore they have more capacity

Slack conversation for full context here: https://masafinance.slack.com/archives/C028C3D5FD3/p1730827864336509

@theMultitude
Copy link
Contributor

A loom and notebook detailing my findings.

@theMultitude
Copy link
Contributor

Essentially I backed into this information by picking the unique authentication errors by peer_id to get a count of the unique usernames associated with each.

@theMultitude theMultitude self-assigned this Nov 6, 2024
@mudler
Copy link
Contributor

mudler commented Nov 18, 2024

@theMultitude is there anything needed from this card left?

@mudler mudler changed the title Tracking the number of accounts a miner has setup spike: Tracking the number of accounts a miner has setup Dec 2, 2024
@mudler mudler added the spike label Dec 2, 2024
@mudler mudler changed the title spike: Tracking the number of accounts a miner has setup [S] spike: Tracking the number of accounts a miner has setup Dec 2, 2024
@mudler mudler changed the title [S] spike: Tracking the number of accounts a miner has setup spike: Tracking the number of accounts a miner has setup Dec 2, 2024
@restevens402
Copy link
Contributor

Notes:

  • make sure the uuid is readily available everywhere we send events
  • Event service needs a new event LoginEvent with corresponding table
    • PeerId
    • service user id
    • timestamps that are useful
    • success/failure
    • error (optional)
    • service type (Twitter / Discord etc)
  • Add to the Nodes event service to call the actual Event Service
  • Add sending the event in the workflow for twitter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants