Skip to content

Source code for Akash Provider Daemon

Notifications You must be signed in to change notification settings

devalpatel67/provider

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
Jan 13, 2023
Dec 7, 2023
Jun 9, 2023
Nov 15, 2023
Jan 9, 2024
Jan 9, 2024
Jan 9, 2024
Jan 9, 2024
Nov 15, 2023
Jan 9, 2024
Nov 15, 2023
Nov 15, 2023
Jan 9, 2024
Jul 28, 2023
Nov 15, 2023
Nov 15, 2023
Jan 9, 2024
Jan 9, 2024
Aug 9, 2023
Jan 9, 2024
Nov 15, 2023
Sep 22, 2022
Aug 14, 2023
Nov 3, 2023
Jul 28, 2023
Jun 9, 2023
Aug 9, 2023
Apr 17, 2023
Apr 17, 2023
Aug 9, 2023
Jun 17, 2023
Jun 19, 2023
Jan 9, 2024
Nov 15, 2023
Jan 9, 2024
Jan 9, 2024
Jan 13, 2023
Jan 9, 2024
Apr 17, 2023
Apr 17, 2023

Repository files navigation

Akash Provider Daemon

tests

This folder contains the Akash Provider Daemon. This piece of software listens to events emitted from the Akash blockchain (code in ../app/app.go) and takes actions on a connected Kubernetes cluster to provision compute capacity based on the bids that the configured provider key wins. The following are the pieces of the daemon:

Development environment

This doc guides through setting up local development environment

Structure

The bid engine queries for any existing orders on chain, and based on the on-chain provider configuration, places bids on behalf of the configured provider based on configured selling prices for resources. The daemon listens for changes in the configuration so users can use automation tooling to dynamically change the prices they are charging w/o restarting the daemon. You can see the key management code for provider tx signing in cmd/run.go.

The cluster package contains the necessary code for interacting with clusters of compute that a provider is offering on the open marketplace to deploy orders on behalf of users creating deployments based on manifests. Right now only kubernetes is supported as a backend, but providers could easily implement other cluster management solutions such as OpenStack, VMWare, OpenShift, etc...

The cobra command line utility that wraps the rest of the code here and is buildable.

Declares the pubsub events that the provider needs to take action on won leases and received manifests.

Contains hanlder code for the rest server exposed by the provider

About

Source code for Akash Provider Daemon

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 90.3%
  • Shell 4.6%
  • Makefile 4.5%
  • Other 0.6%