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

Nodes on the chain with GPUs has be querable #737

Closed
3 tasks done
muhamadazmy opened this issue Jun 13, 2023 · 5 comments
Closed
3 tasks done

Nodes on the chain with GPUs has be querable #737

muhamadazmy opened this issue Jun 13, 2023 · 5 comments
Assignees
Labels
type_feature New feature or request
Milestone

Comments

@muhamadazmy
Copy link
Member

muhamadazmy commented Jun 13, 2023

Users of the grid need to be able to find and query available nodes that has GPUs

  • allow a node to set gpu to true/false
  • add client methods
  • add graphql indexing
@muhamadazmy
Copy link
Member Author

@DylanVerstraete DylanVerstraete added this to the 2.5.0 milestone Jun 13, 2023
@DylanVerstraete
Copy link
Contributor

How we implemented #726 is pretty generic in a way that the concept allows to set an extra price for additional "features" that a node has. So querying this storage map gives a list of nodes that have an extra price attached which can then be queried via RMB for a list of features (gpu, high end cpu, ...)

@DylanVerstraete
Copy link
Contributor

We came to the solution that we will store a boolean in a seperate storage map that indicates if the node has a GPU or not, this can be set by the node itself and also be queries by the clients.

@DylanVerstraete DylanVerstraete moved this to In Progress in 3.11.x Jun 13, 2023
@DylanVerstraete DylanVerstraete added the type_feature New feature or request label Jun 13, 2023
@DylanVerstraete DylanVerstraete self-assigned this Jun 13, 2023
@DylanVerstraete DylanVerstraete moved this from In Progress to Verification in 3.11.x Jun 13, 2023
@DylanVerstraete
Copy link
Contributor

can be deployed when threefoldtech/tfchain_graphql#105 is merged and released

@mohamedamer453
Copy link

Verified on devnet.

tfchain

from polkadot UI -> Chain State -> tfgridmodule nodes with gpus can be queried using nodeGpuStatus

image

and extra fees can be queried from Chain State -> smartContractModule -> dedicatedNodesExtraFee

image

graphql

Nodes with gpu can be queried from graphql as seen in threefoldtech/tfchain_graphql#104 (comment)

@github-project-automation github-project-automation bot moved this from Verification to Done in 3.11.x Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type_feature New feature or request
Projects
No open projects
Status: Done
Development

No branches or pull requests

3 participants