npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bonkers

v0.0.9

Published

A distributed load test framework using Amazon EC2 instances

Downloads

2

Readme

bonkers

A distributed load test framework using Amazon EC2 instances.

This project makes it simple to launch and control lots of Amazon EC2 instances. By default, it will test the amount of persistent connections a server can manage, but can be easily rewritten to make any test.

Originally it was written to make a Node.js 1 million connections test using 40 EC2 Micro instances.

Usage

# First, install Node.js (see http://nodejs.org)
# The installation is tested on Ubuntu 12.04.

git clone git://github.com/jedi4ever/bonkers.git
cd bonkers

# Install all needed modules.
npm install

# Edit accessKeyId, accessKeySecret in bonkers.json
# https://portal.aws.amazon.com/gp/aws/securityCredentials
# Also, choose regions where you wish your instances to be launched.
# Full list: ["ap-northeast-1", "ap-southeast-1", "eu-west-1", "sa-east-1", "us-east-1", "us-west-1", "us-west-2"]
# Important! In all these regions you should edit Security Group 'default' to open control port 8889 for TCP 0.0.0.0/0 
nano bonkers.json

# Start 10 instances evenly distributed across the regions.
# All instances are tagged according to 'instanceTags' field in bonkers.json.
./bin/bonkers up 10

# Watch status of our instances (similar to 'top' command).
# Launch a separate terminal for this.
./bin/bonkers status

# Set the target IP of server to test.
./bin/bonkers set host <ip>

# Set the amount of connections to keep with the target from EACH instance.
./bin/bonkers set n 1000

# Maximum recommended value = 25000 for EC2 Micro instance.
./bin/bonkers set n 25000

# Restart node process in all instances (recommended to do between tests).
./bin/bonkers reload

# After all tests, terminate all instances that we started (all existing instances are not touched).
./bin/bonkers destroy all

How does it work?

The framework uses a 'Cloud Init' feature of Ubuntu AWS images. When an instance is to be started, a vanilla image of Ubuntu is used (by default Ubuntu 12.04 64bit EBS), which runs a script given in file cloud-config.sh. The script installs Node.js, main file agent.js and an Upstart job to launch it. After this, the agent.js starts listening on control port (8889 by default) and obeys given commands (see the source).

At any time you can edit agent.js and all new instances will use the new version of it.

License: MIT