Coder Social home page Coder Social logo

activemq-atlas's Introduction

This is a set of Atlas configs to bring up a network of Apache ActiveMQ brokers.

To use it, first build download the atlas binary (or check it out and build it) and make it executable (chmod +x ./atlas). The binary requires Java 1.6, so have Java installed, put that executable on your path and cd into your checkout of this project.

$ atlas -e ./env-ec2.rb -s sys-activemq.rb init
$ atlas update

It should ask you for your EC2 access credentials (get them here). Then it will take a while as it spins up EC2 instances, installs, and wires things up. Once it finishes, you can see what is there and ssh into instances:

$ atlas ls
$ atlas ssh shell

The shell host has a small ruby script at ~/smoke_test.rb that connects to different brokers in the network and sends a message. Run it via

$ ./smoke_test.rb

And you should get a message telling you that it works. Play around with it and have fun!

When you are finished playing, you can tear down the servers that were set up with:

$ atlas destroy

When you want to play again you can go in and start them via atlas update again. Do the work from the same directory as it stores state (like your AWS access credentials) .atlas/.

Notes:

  • ActiveMQ is installed under /opt/activemq
  • The brokers are listening for OpenWire on port 61616, Stomp on 61612, and Stomp+NIO on 61613
  • The best way to restart a broker is sudo service activemq restart
  • The progress bars get confused sometimes, sorry.

activemq-atlas's People

Contributors

brianm avatar

Stargazers

 avatar

Watchers

 avatar  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.