Giter Site home page Giter Site logo

vlmaier / testing-cluster Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mischcon/clustering

0.0 0.0 0.0 5.2 MB

Java/Scala based testing cluster w/ Akka framework.

License: Apache License 2.0

Shell 0.04% Ruby 10.11% C++ 0.74% Python 0.01% C 6.18% Java 11.37% Scala 8.80% Makefile 0.37% HTML 0.05% Ragel 2.29% Hack 60.03%
akka java java-reflection-api master-slave-architecture master-slave-cluster scala testing testing-clusters testing-tool actor-model actors virtual-machines

testing-cluster's Introduction

Testing Cluster

WHAT IS THIS?

We are proud to present our Scala-Java-based Testing Cluster to you! The basic idea is to run test agains multiple instances of an to-be-tested application. The instances of the application are run in virtual machines, since virtual machines make provisioning and reconfiguring very easy - and they also provide the ability to run anything you want (Linux, Windows, OS X, iOS, Android, ...) on anything you want (Linux, Windows, OS X, even your smartphone (Yup, Scala can be run on a smartphone)).

The cluster can be seen as three different parts that work together:

1. Central Administration / "The Master"

This part is responsible for providing the tasks, collecting / persisting the results, keeping track of all other parts, responding to failures / failure recovery and is the main entry point for all other parts.

2. Executors

This part is responsible for the actual execution of the tasks.

3. Virtual Machines

This part is responsible for the hosting of the to-be-tested application. It also keeps track of its own workload and asks the Central Administration for new tasks (task "pulling").

There is only one instance of the Central Administration, but there can be multiple instances of Executors and Virtual Machines. Usually there is at least one Virtual Machine (+ some Executors) located on the same physical node as the Central Administration, which means that the cluster can be run on a single physical node. If you add more physical nodes to the cluster, than those nodes will host Virtual Machines and Executors on them, which will increase the amount of tasks that are being run in parallel.

The more physical nodes - the faster the execution of all tasks

HOW DOES IT WORK?

The Cluster is based on the Akka Framework. Akka is one implementation of the Actor Model - a model of concurrent computation that treats small, independent units (so called "actors") as the universal primitives. Those actors depend on each other (every actor has a parent actor that supervises it), which is why we used this model for our implementation since it is very resilient and "self healing". We keep the "core" on the Central Administration and everything else can be outsourced to other nodes - if one of those nodes looses its connection to the cluster than the "parent" recognizes that and can react accordingly.

HOW CAN I USE IT?

Check our documentation!

CAN I DO OTHER THINGS APART FROM TESTING WITH THIS THING?

Theoretically yes, but our main goal was to provide a testing cluster. If you read through the documentation you will get an idea about how this thing works ;)

ENOUGH OF THE THEORETICAL STUFF - I WANT TO SEE SOME ACTION!!!

It seems as if you are one of the unpatient guys... you want action? You get action!

  1. Install / Complile the cluster (described here)
  2. Navigate to PROJECT_ROOT/scripts and run the create_test_jar.sh script - now you have a PROJECT_ROOT/scripts/TestJar.jar file
  3. Run java -jar PROJECT_ROOT/target/scala-*.*/Clustering.jar master -i PROJECT_ROOT/scripts/TestJar.jar --verbose (where *.* is your scala version) and feel the magic... โœจ

You now can check your hypervisor - eventually more and more VMs will be started.

If you check the API (http://IP_OF_YOUR_CLUSTER:8080/api) you can see the actor hierarchy (/tree), the global status (/status) and a report of the tasks (/reporting). Via /upload you can also upload new task jar files.

DOCUMENTATION:

testing-cluster's People

Contributors

vlmaier avatar oliverziegert avatar mischcon 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.