Search code examples
amazon-web-servicesdcos

DC/OS on AWS Free Tier


How to deploy and run DC/OS on AWS Free Tier? The Free Tier allows only t2.micro instances only and gives 750h/month free.

I tried to edit the DC/OS Amazon S3 template replacing the m3.xlarge instances with t2.micro but the deployment failed.

The error I got was:

The following resource(s) failed to create: [PublicSlaveServerGroup, SlaveServerGroup]. . Rollback requested by user.

CREATE_FAILED   AWS::AutoScaling::AutoScalingGroup  PublicSlaveServerGroup  Virtualization type 'hvm' is required for instances of type 't2.micro'. 

Ensure that you are using an AMI with virtualization type 'hvm'. For more information, see http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/virtualization_types.html. Launching EC2 instance failed.

Solution

  • DC/OS does not operate within a small enough resource envelope to be run on free-tier AWS EC2 instances.

    Specifically, DC/OS networking components require at least 2 cores per node.

    t2.micro (free tier) has only 1 vCPU and 1 GB memory.

    Aside from the hard CPU constraint, DC/OS consists of >30 component services which can use a significant amount of memory, especially on master nodes. While it may be possible to deploy DC/OS masters with 1 GB memory, virtual memory, and swapping, the experience will not be enjoyable. Agents with 1 GB memory will have half of that reserved for the system, and half for user tasks, which means you wont be able to deploy much.

    If you want to try DC/OS for free, try the containerized or virtualized local deployments: