A command line tool that automates repetitive tasks associated with the management of Spot Instances on Amazon EC2 service.
Project description
Command line tool that automates routine tasks associated with the management of Spot Instances on Amazon EC2 service.
Primarily it is intended to simplify usage of AWS Spot Instances for Deep Learning. This focus will further shape the future development.
Documentation
Full documentation can be found at http://portal-gun.readthedocs.io.
Installation
It is strongly recommended to install Portal Gun in a virtual Python environment.
To install the latest stable version from the PyPI:
$ pip install -U portal-gun
To install the latest pre-release version from the PyPI:
$ pip install -U portal-gun --pre
Refer to the documentation for details regarding general configuration and portal specification.
Basic Usage
1. Persistent volumes
Use volume group of commands to work with EBS volumes.
Create a new volume:
$ portal volume create
List created volumes:
$ portal volume list
Update previously created volume:
$ portal volume update <Volume-Id> [-n <New-Name>] [-s <New-Size>]
Delete previously created volume:
$ portal volume delete <Volume-Id>
2. Portals
Create draft specification for a new portal:
$ portal init <Portal-Name>
Open a portal (request a new Spot Instance):
$ portal open <Portal-Name>
Connect to the Spot Instance via ssh:
$ portal ssh <Portal-Name>
Connect to the Spot Instance via ssh and attach to a tmux session (session name is optional):
$ portal ssh <Portal-Name> -t [<Session-Name>]
Close opened portal (cancel Spot Instance request):
$ portal close <Portal-Name>
Get information about a portal:
$ portal info <Portal-Name>
3. Channels
Start syncing files across the channels configured for a portal:
$ portal channel <Portal-Name>
License
MIT licensed. See the bundled LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file portal-gun-0.2.0.tar.gz
.
File metadata
- Download URL: portal-gun-0.2.0.tar.gz
- Upload date:
- Size: 17.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9413c227f48e747f2c95e54f0024f735067b8a2586bda97312018da6299eb94a |
|
MD5 | 16703c02512aa87b8c19c481ad60cc42 |
|
BLAKE2b-256 | 8f3acc90892812f76b970b9ee3a844843c8807da4bbacaa262b054bb4852ef3c |
File details
Details for the file portal_gun-0.2.0-py2-none-any.whl
.
File metadata
- Download URL: portal_gun-0.2.0-py2-none-any.whl
- Upload date:
- Size: 27.9 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e353ccd088a00d3aa6fe2aa131fb5ab9e8711fb83280a725d25b84a8e73bfd0 |
|
MD5 | 3fefb2ab11f9f86fde9a6d216a57d76b |
|
BLAKE2b-256 | de540692f47129fe8ecb0c62d538f10bf1989142ea489740ff7f143c5a27218a |