spotty-cloud / spotty

Training deep learning models on AWS and GCP instances
https://spotty.cloud
MIT License
491 stars 43 forks source link

Why starts on-Demand instance? #89

Closed PapoKarlo closed 3 years ago

PapoKarlo commented 3 years ago

Hi, i try this config

`project: name: aws-project syncFilters:

containers:

instances:

and get On-Demand Instance

+-------------------+---------------------+ | Instance State | running | +-------------------+---------------------+ | Instance Type | p2.xlarge | +-------------------+---------------------+ | Availability Zone | us-east-2c | +-------------------+---------------------+ | Public IP Address | 3.134.103.146 | +-------------------+---------------------+ | Purchasing Option | On-Demand Instance | +-------------------+---------------------+ | Instance Price | $0.9000 (us-east-1) | +-------------------+---------------------+

where mistake?

apls777 commented 3 years ago

Set the spotInstance parameter to "true" in the instance configuration: https://spotty.cloud/docs/providers/aws/instance-parameters.html.

PapoKarlo commented 3 years ago

thanks.

and how to terminate instance then script finish?

apls777 commented 3 years ago

Use the spotty stop command.

PapoKarlo commented 3 years ago

thanks