All Projects → Coderik → portal-gun

Coderik / portal-gun

Licence: MIT License
Deep Learning on Amazon EC2 Spot Instances without the agonizing pain.

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to portal-gun

py-spotme
A CLI tool that creates AWS spot instances on the fly
Stars: ✭ 16 (-76.81%)
Mutual labels:  ec2-spot-instances

Portal Gun

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].