Code Monkey home page Code Monkey logo

zerotocloud's Introduction

Zero To Cloud With @NetflixOSS

Netflix has released a multitude of tools and applications to help in using the Cloud. Being infrastructure, they are more difficult to setup that just consuming a client library like a JAR in Central. In general, each application can run independently, but they work better together. This tutorial is focused on bringing up the @NetflixOSS stack on a fresh AWS account, in a similar style to how Netflix does it internally.

We are actively tuning the steps and will post the specific steps here for OSCON 2014.

Assumptions

  • Working in US West (Oregon) aka us-west-2. You’re flexible to do another region, but "Keep it Local" (We’re in Portland after all)
  • We’re performing non destructive operations, so if you have an existing AWS account setup, that will be fine and they won’t conflict. But it might be easier to find instances, etc if using a new region.
  • In the case of existing infrastructure, like keys, please follow the instructions closely and do not re-use existing provisioned items. I wouldn’t want to be responsible for opening up a security hole in existing infrastructure.
  • There are plenty of opportunities to lock down these applications at the network layer or the application layer. Or restrict what the instances can do. References will be made to additional security precautions, but they have not all been integrated into this tutorial.
  • This is not a developing for the cloud tutorial, that makes for a great followup. Given enough time, we can talk about it.
  • This will cost money. Not much, but some.

Tutorial

  1. Sign up for AWS
  2. Log into AWS Console
  3. Create Key Pair
  4. Create Jumphost
  5. Create a role
  6. Create a user
  7. Create Security Group for ELBs
  8. Create Foundation AMI
  9. Setup Jumphost
  10. Setup Credentials
  11. Build and Bake BaseAMI
  12. Build and Bake Asgard
  13. Standup Asgard using Asgard
  14. Build and Bake Edda
  15. Build and Bake Eureka

When all done, ilrelevant of how far you get make sure to read the Clean up instructions below, so that you don't get charged for resources that you're not using.

Extras

Setting up infrastructure can be frought with problems, so if you've made this far in the allocated time, congratulate yourself. Here are some additional exercises which can help expand your knowledge of the Netflix stack or the AWS in general.

Clean up

The actions taken in this tutorial have create resources which AWS will charge you for. A couple of hours of usage won't add up to much. If you accidentally leave our instances running your volumes allocated, the costs can add up fast.

  1. In Asgard, Delete all AutoScaling Groups
  2. In Asgard, Delete all Load Balancers
  3. In Asgard, Delete all Security Groups
  4. In Asgard, Delete all Applications (these are stored in SimpleDB and miniscule in size)
  5. In the EC2 Console, go to the AMI page and de-register all of the AMIs you created
  6. In the EC2 Console, go to the snapshots section, delete all of the snapshots

FYI, The last two items would normally be cleaned up by Janitor monkey.

TODO

  • UDF variables from Asgard aren’t in the ubuntu user’s env
  • Have versions of modules match what is being wrapped
  • Stop tomcat on karyon instance
  • Multiple Eureka instances in different zones.

zerotocloud's People

Contributors

lesleyryan avatar mtripoli avatar quidryan avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.