feat(stack): add spot instance support via MixedInstancesPolicy#184
Conversation
|
I have raised a support issue for this - https://support.semaphoreci.com/hc/en-us/requests/14811
please do let me know if any more info is needed over here? |
|
@Yashprime1 thanks a lot for the PR! 👍 Before we can merge, please sign your commits (we require signed commits for all contributions). Once they’re signed, just push again and we’ll review. Thanks! |
Add support for EC2 Spot instances in the Auto Scaling Group using MixedInstancesPolicy. This allows users to configure spot instance allocation strategy and on-demand capacity settings. New environment variables: - SEMAPHORE_AGENT_ON_DEMAND_BASE_CAPACITY: Minimum on-demand instances (default: 0) - SEMAPHORE_AGENT_ON_DEMAND_PERCENTAGE_ABOVE_BASE: Percentage of on-demand instances above base capacity (default: 100) - SEMAPHORE_AGENT_SPOT_ALLOCATION_STRATEGY: Spot allocation strategy (optional, e.g., 'price-capacity-optimized') The Auto Scaling Group now uses MixedInstancesPolicy instead of a simple launch template, enabling spot instance support while maintaining backward compatibility with existing configurations. Signed-off-by: yashdeep <yashdeep@clevertap.com>
…mbers Signed-off-by: yashdeep <yashdeep@clevertap.com>
5af3b0a to
26b0a75
Compare
@dexyk done signed please review now? |
|
/sem-approve |
|
@dexyk can you please help? I am unable to see the test results, but can you confirm since I could see all test cases passing in the GitHub check status here |
hamir-suspect
left a comment
There was a problem hiding this comment.
hey @Yashprime1 thanks for the PR, looks good, I'll merge this and create a new release so you can start using it.
Thanks @hamir-suspect |


Add support for EC2 Spot instances in the Auto Scaling Group using MixedInstancesPolicy. This allows users to configure spot instance allocation strategy and on-demand capacity settings.
New environment variables:
The Auto Scaling Group now uses MixedInstancesPolicy instead of a simple launch template, enabling spot instance support while maintaining backward compatibility with existing configurations.