Skip to content

Server-based Grid Node used by the PyGrid platform

License

Notifications You must be signed in to change notification settings

a1302z/GridNode

 
 

Repository files navigation

foobar-logo

Tests License OpenCollective

GridNode

GridNode helps to data owners manage their data, being the place where data lives. It is part of the PyGrid Platform:

  • PyGrid. A server based application used to manage/monitor/control and route grid Nodes/Workers remotely.
  • GridNode. A server based application used to store and manage data access in a secure and private way.
  • GridWorkers. Clientd based app that uses different Syft based libraries to perform federated learning (ex: syft.js, KotlinSyft, SwiftSyft).

Installation

Use the package manager pip to install GridNode

git clone https://github.com/OpenMined/GridNode
pip install .

Usage

python -m grid <arguments>

You can pass the arguments or use environment variables to set the gateway configs.

Arguments

  -h, --help                shows the help message and exit
  -p [PORT], --port [PORT]  port to run server on (default: 5000)
  --host [HOST]             the grid gateway host
  --num_replicas            the number of replicas to provide fault tolerance to model hosting
  --start_local_db          if this flag is used a SQLAlchemy DB URI is generated to use a local db

Environment Variables

  • GRID_GATEWAY_PORT - Port to run server on.
  • GRID_GATEWAY_HOST - The grid gateway host
  • NUM_REPLICAS - Number of replicas to provide fault tolerance to model hosting
  • DATABASE_URL - The gateway database URL
  • SECRET_KEY - The secret key

Example:

python -m grid --id=alice --port=5000

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Contributors

Please make sure to fill this section in with all former and current contributors to the project. Documentation on how to do this is located here.

License

Apache License 2.0

About

Server-based Grid Node used by the PyGrid platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 85.1%
  • HTML 9.3%
  • JavaScript 4.7%
  • Other 0.9%