What does Distributed-Something cost?#
Distributed-Something is run by a series of three commands, only one of which incurs costs at typical scale of usage:
setup
creates a queue in SQS and a cluster, service, and task definition in ECS.
ECS is entirely free.
SQS queues are free to create and use up to 1 million requests/month.
submitJobs
places messages in the SQS queue which is free (under 1 million requests/month).
startCluster
is the only command that incurs costs with initiation of your spot fleet request, creating machine alarms, and optionally creating a run dashboard.
The spot fleet is the major cost of running Distributed-Something, exact pricing of which depends on the number of machines, type of machines, and duration of use. Your bid is configured in the config file.
Spot fleet costs can be minimized/stopped in multiple ways:
We encourage the use of
monitor
during your job to help minimize the spot fleet cost as it automatically scales down your spot fleet request as your job queue empties and cancels your spot fleet request when you have no more jobs in the queue. Note that you can also perform a more aggressive downscaling of your fleet by monitor by engaging Cheapest mode (seemore information here
).If your job is finished, you can still initiate
monitor
to perform the same cleanup (without the automatic scaling).If you want to abort and clean up a run, you can purge your SQS queue in the AWS SQS console (by selecting your queue and pressing Actions => Purge) and then initiate
monitor
to perform the same cleanup.You can stop the spot fleet request directly in the AWS EC2 console by going to Instances => Spot Requests, selecting your spot request, and pressing Actions => Cancel Spot Request.
After the spot fleet has started, a Cloudwatch instance alarm is automatically placed on each instance in the fleet. Cloudwatch instance alarms are currently $0.10/alarm/month. Cloudwatch instance alarm costs can be minimized/stopped in multiple ways:
If you run monitor during your job, it will automatically delete Cloudwatch alarms for any instance that is no longer in use once an hour while running and at the end of a run.
If your job is finished, you can still initiate
monitor
to delete Cloudwatch alarms for any instance that is no longer in use.In AWS Cloudwatch console you can select unused alarms by going to Alarms => All alarms. Change Any State to Insufficient Data, select all alarms, and then Actions => Delete.
We provide a hygiene script that will clean up old alarms for you.
Cloudwatch Dashboards are currently free for 3 Dashboards with up to 50 metrics per month and are $3 per dashboard per month after that. Cloudwatch Dashboard costs can be minimized/prevented in multiple ways:
You can choose not to have Distributed-Something create a Dashboard by setting
CREATE_DASHBOARD = 'False'
in your config file.We encourage the use of
monitor
during your job as if you have setCLEAN_DASHBOARD = 'True'
in your config file it will automatically delete your Dashboard when your job is done.If your job is finished, you can still initiate
monitor
to perform the same cleanup (without the automatic scaling).You can manually delete Dashboards in the Cloudwatch Console by going to Dashboards, selecting your Dashboard, and selecting Delete.