Akash Mass Deploy is a console app for managing a large number of deployments on Akash Network™ infrastructure.
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.
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.
- Install Akash on the target Linux instance.
- Create an Akash wallet.
- Create and publish a certificate for the wallet.
The deployment mode is determined by one of the following command-line arguments:
[none]
– creates the number of deploymentsCREATE_DEPLOYMENTS
with the number of cores per deploymentDEFAULT_CORES
given by theconfig.js
filemanifests
– updates all active deployments with the currentdeploy.yml
filedeposits
– tops up all active deployments, to 5 AKT currentlycleanup
– tears down all nonfunctioning deploymentsinfo
– returns the state of all deployments
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 tofile
- 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
The following classes define important functionality:
MainClass
– is the app entry pointEnvVarsReplacer
– evaluates environment variables, caching for future use any that are setClientSSH
– manages the SSH connectionWallet
– stores Akash wallet infoInstance
– creates, updates, and tears down deploymentsInstanceList
– batches deployment commands and results, refilling and releasing funds as neededConverters
– performs various data conversions
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.
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.