Giter VIP home page Giter VIP logo

joinmassive / akash-mass-deploy Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 2.0 110 KB

Akash Mass Deploy is a console app for creating and managing a large number of deployments on Akash Network infrastructure.

Home Page: https://joinmassive.com/daas

License: GNU Affero General Public License v3.0

C# 98.41% JavaScript 1.59%
akash blockchain deployment tendermint container cli clustering cryptocurrency csharp docker

akash-mass-deploy's Introduction

Akash Mass Deploy

Akash Mass Deploy is a console app for managing a large number of deployments on Akash Network™ infrastructure.

Motivation

The tools available for deploying workloads to Akash, the desktop app Akashlytics Deploy, the web app Akash Deploy, and the native command-line interface, are ideal for single deployments but aren’t suited to orchestrating multiple deployments.

The Akash Mass Deploy app was developed to run a Massive® testnet across the network and can be used to automate similar mass deployments.

Summary

Akash Mass Deploy extends the command-line interface to add coordination functions by connecting to an Akash-loaded Linux instance over SSH.

Deployments are created with the user-supplied Akash wallet, certificate, and configuration files; active deployments are maximized by closing any that become stale and by maintaining a list of providers that fail repeatedly for the deployment configuration so should be avoided later on.

Configuring

  1. Install Akash on the target Linux instance.
  2. Create an Akash wallet.
  3. Create and publish a certificate for the wallet.

Usage

The deployment mode is determined by one of the following command-line arguments:

  • [none] – creates the number of deployments CREATE_DEPLOYMENTS with the number of cores per deployment DEFAULT_CORES given by the config.js file
  • manifests – updates all active deployments with the current deploy.yml file
  • deposits – tops up all active deployments, to 5 AKT currently
  • cleanup – tears down all nonfunctioning deployments
  • info – returns the state of all deployments

Limitations

Akash Mass Deploy is experimental at the moment and, in particular:

  • Can control no more than 500 simultaneous deployments and doesn’t support paging
  • Prompts for a password on first run, via dialog box if AKASH_KEYRING_BACKEND is set to (the default) os or via command line if set to file
  • Retries most Akash commands up to 3x but still doesn’t account for all intermittent failure modes, like those involving connectivity problems
  • Has been developed in MonoDevelop for Linux and hasn’t been tested in Windows

C# class details

The following classes define important functionality:

  • MainClass – is the app entry point
  • EnvVarsReplacer – evaluates environment variables, caching for future use any that are set
  • ClientSSH – manages the SSH connection
  • Wallet – stores Akash wallet info
  • Instance – creates, updates, and tears down deployments
  • InstanceList – batches deployment commands and results, refilling and releasing funds as needed
  • Converters – performs various data conversions

License

Copyright 2022 Massive Computing, Inc.

This program is free software, excluding the brand features identified in the Exceptions below: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

Exceptions

The Massive logos, trademarks, domain names, and other brand features used in this program cannot be reused without permission and no license is granted thereto.

The referenced Akash Network name, logo, and service names are trademarks or trade dress of Overclock Labs, Inc.; any use thereof is subject to their own license terms.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.