Coder Social home page Coder Social logo

xmpp-server-benchmarks's Introduction

XMPP Server Benchmarks

Build Status

This repository should evolve to a fully automated server benchmark suite which tests various example scenarios using tsung.

It's currently in a very early stage, but if you'd like that, you're welcome to contribute.

Testing the setup

To see whether the playbook works is using Vagrant and testing the automated provisioner.

To test using Vagrant, you need a working Virtualbox and Vagrant setup. Then:

xmpp-server-benchmark$ cd provisioning
xmpp-server-benchmark/provisioning$ vagrant up

Repeated provisions you can run using:

xmpp-server-benchmark/provisioning$ vagrant provision

Running on ec2

Make sure you have boto (python-boto) installed before you proceed.

You can either create a file ~/.boto for your AWS access/secret keys or specify it on the commandline using AWS_ACCESS_KEY and AWS_SECRET_KEY.

After that, you should be able to run the benchmarks using:

$> AWS_REGION=eu-west-1 ansible-playbook -i provisioning/ec2 provisioning/ec2.yml

Replace the region with your preferred AWS region.

The default configuration will provision and run the tests on 1 tsung / 1 xmpp server. If you want to test with more, start the provisioning like this and replace the two counts with want you'd like to have:

$> AWS_REGION=eu-west-1 ansible-playbook -i provisioning/ec2 --extra-vars "client_count=1 server_count=3" provisioning/ec2.yml

Contributing scenarios

In order to contribute a scenario you need to make three changes:

  1. Add your scenario template as a jinja2 template to the directory provisioning/roles/scenarios/templates/
  2. Let the scenarios role copy your template on provisioning by adding an entry to provisioning/roles/scenarios/tasks/main.yml
  3. Add your scenario to the enabled_scenarios list in provisioning/group_vars/all

Contributing servers to test

Please have a look at an existing server setup in order to see how to do it.

  1. Take a look into the ejabberd role (provisioning/roles/ejabberd)
  2. Add your own role (or roles) (possibly by reusing one from ansible galaxy)
  3. Add the new role to provisioning/setup.yml
  4. Configure the server as enabled in provisioning/group_vars/all similar to existing entries

ToDo

  • Basic ansible & vagrant setup
  • Automated ejabberd setup incl. config
  • Automated MongooseIM setup incl. config
  • Basic tsung scenario for testing
  • Automated start of configured servers based on what to test & test them
  • Automated collection of tsung results back from the testing server
  • EC2 setup
  • Validate results are correct
  • Automate publishing of reports on a GH-Page (maybe)
  • Automated Prosody setup incl. config
  • Automated Tigase setup incl. config

xmpp-server-benchmarks's People

Contributors

mweibel avatar

Stargazers

Takayuki Kando avatar Oliver H. Rangel avatar Long Nguyen avatar Roman Soldatow avatar Steffen Larsen avatar

Watchers

Neustradamus avatar  avatar James Cloos avatar Steffen Larsen avatar Takayuki Kando avatar Edwin Mons avatar  avatar  avatar

Forkers

zooldk

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.