Questions tagged [spot-instances]

56 questions
6
votes
2 answers

Amazon EC2-what is the difference between on demand and on spot instances other than pricing that spot is more cheaper than on demand

i want to the difference between spot and on demand instances. I know there is a price difference between these two but other than this i want to know the differences. Please help me
4
votes
1 answer

How to use Azure Spot instances on Databricks

Spot instances brings the posibility to use free resources in the cloud paying a lower price, however if the cloud demand is increased your resources will be dealocated. This is very usefull for non critical workloads whenever you can aford to loose…
Daniel Argüelles
  • 2,229
  • 1
  • 33
  • 56
4
votes
2 answers

AWS EC2 spot instance availability

I am using the API call request_spot_instances to create spot instance without specifying any availability zone. Normally a random AZ is picked by the API. The spot request sometimes would return a no capacity status whereas I could request for a…
Jonathan Tse
  • 875
  • 1
  • 9
  • 14
3
votes
1 answer

What happens if a spot instance isn't available for an AWS autoscaling group?

If I have an autoscaling group that consists of on-demand and spot instances with a minimum of 4 on-demand instances, and the extra capacity consisting of spot instances, what happens if it needs to scale up with a spot instance, and there isn't an…
2
votes
2 answers

aws spot instances are evicted much sooner and more often than expected

I am trying to use aws spot instances (m5.large in eu-west-2 region) with a maximum bid equal to the price of on demand instances. According to https://aws.amazon.com/ec2/spot/instance-advisor/ these instances should have a < 5% frequency of…
2
votes
1 answer

How to simulate BidEvictedEvent for EC2 spot instances?

I have an application load balancer that contains several EC2 spot instances. I found that one of them was terminated because of BidEvictedEvent, i.e., someone requested a spot instance with a price higher than mine. The BidEvictedEvent made my web…
Brian
  • 12,145
  • 20
  • 90
  • 153
2
votes
1 answer

How can I specify that I only want Spot Instances for my Elastic Beanstalk application?

My env.yaml has: aws:ec2:instances: InstanceTypes: g4dn.xlarge,c5.4xlarge,r5.2xlarge,r5a.xlarge EnableSpot: true SpotMaxPrice: "0.15" but when I do eb create, it still asks me: Would you like to enable Spot Fleet requests for this…
Shamoon
  • 41,293
  • 91
  • 306
  • 570
2
votes
1 answer

Attaching an EBS volume to AWS Batch Compute Environments

I want to set up AWS Batch running few python scripts to do some batch operations on file fetched from S3 and post processing they need to be saved to a volume. For this I want to configure compute environments in AWS batch. I wish to use spot…
1
vote
1 answer

In what task state can AWS Fargate spot interruption happen?

I couldn't find a documentation on, in which task state does AWS interrupt a Fargate spot task ? Can interruption happen during "provisioning", "pending" and "deprovisioning" states as well ? Do interruptions only happen during "running" state ? I…
m00s3
  • 124
  • 7
1
vote
1 answer

How to avoid ECS Spot instance termination while processing user requests?

I'm planning to run an ECS cluster with an ALB in front of spot instances. As an example: A user's request enters a container that is running on spot, but before getting the response, the spot instance is terminated. That will return an error,…
1
vote
0 answers

Job with self-hosted gitlab runner (aws ec2 autoscale spot instance) sometimes stuck infinitely on cache downloading

I have a bit of a specific problem Sometimes on our runner, a job will be stuck infinitely on the cache downloading. This runner is a runner that use aws ec2 spot instance to run Here's the config.toml: concurrent = 32 check_interval =…
1
vote
3 answers

k8s pods to schedule in both spot and on-demand instances in EKS

we are planning to introduce AWS spot instances in production ( non-prod is running with spot already ). In order to achieve HA we are running HPA with minimum replicas 2 for all critical deployments. Because of the spot instances behaviour we want…
Anil Kumar
  • 381
  • 1
  • 2
  • 9
1
vote
2 answers

SageMaker Estimator use_spot_instances causes Invalid MaxWaitTimeInSeconds

Managed Spot Training: Save Up to 90% On Your Amazon SageMaker Training Jobs says: Setting it up is extremely simple, as it should be when working with a fully-managed service: If you’re using the console, just switch the feature on. If you’re…
mon
  • 18,789
  • 22
  • 112
  • 205
1
vote
1 answer

Terminate spot instance after each successful job using Gitlab CI

I have been working around Gitlab CI from couple of days. I have setup the EC2 -ASG as runner with spot instances. I wonder if we have any solution such that it should delete the spot instance right after the job is successful. Following is the…
1
vote
1 answer

Is it possible to attach volume and elastic IP automatically to Spot ec2 instance?

I would like to try to setup AWS Launch Template, or just Spot request (persistance) and I need automatically attach my specific volume. The main idea - spot instance will be process data and store it in a separate volume. When Spot will die,…
prosto.vint
  • 1,403
  • 2
  • 17
  • 30
1
2 3 4