<commit_before># elb-sanity-test

#### by <NAME>

Are my AWS Elastic Load Balancers set up properly?
A test you can run to check your ELB for common gotchas.
See my article for a detailed examination of the tests that this utility conducts: http://shlomoswidler.com/2009/09/solving-common-elb-problems-with-sanity.html

The original Java implementation from Google Code and described in the article
is here in GitHub as branch **0.1**.

The **master** branch has been rewritten in Ruby and updates the tests for some of the
technology changes that AWS ELB has undergone in the past four years, such as
supporting the ELB-specific security group.

# Setup

1. Make sure you have a Ruby 1.9.3 environment.
2. Get this project from GitHub.
3. Make the ruby script executable: `chmod +x elb-sanity-check.rb`

# Usage
```
$ ./elb-sanity-check.rb
Commands:
  elb-sanity-test.rb check           # Checks ELBs for sanity
  elb-sanity-test.rb help [COMMAND]  # Describe available commands or one spe...

Options:
  -v, [--verbose], [--no-verbose]  # Show verbose output
  -d, [--debug], [--no-debug]      # Show debug output. Includes verbose output.
```
```
$ ./elb-sanity-test.rb help check
Usage:
  elb-sanity-test.rb check<commit_msg>Add GitHub link to project<commit_after># elb-sanity-test

#### by <NAME>

Are my AWS Elastic Load Balancers set up properly?
A test you can run to check your ELB for common gotchas.
See my article for a detailed examination of the tests that this utility conducts: http://shlomoswidler.com/2009/09/solving-common-elb-problems-with-sanity.html

The original Java implementation from Google Code and described in the article
is here in GitHub as branch **0.1**.

The **master** branch has been rewritten in Ruby and updates the tests for some of the
technology changes that AWS ELB has undergone in the past four years, such as
supporting the ELB-specific security group.

# Setup

1. Make sure you have a Ruby 1.9.3 environment.
2. Get this project from GitHub: https://github.com/shlomoswidler/elb-sanity-test
3. Make the ruby script executable: `chmod +x elb-sanity-check.rb`

# Usage
```
$ ./elb-sanity-check.rb
Commands:
  elb-sanity-test.rb check           # Checks ELBs for sanity
  elb-sanity-test.rb help [COMMAND]  # Describe available commands or one spe...

Options:
  -v, [--verbose], [--no-verbose]  # Show verbose output
  -d, [--debug], [--no-debug]      # Show debug output. Includes verbose output.
```
```
$ ./elb-sanity-test.rb help check
Usage:
  elb-sanity-test.rb check
{'fraction_non_alphanumeric': 0.10238095238095238, 'fraction_numerical': 0.011111111111111112, 'mean_word_length': 3.5670289855072466, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1232618', 'n_tokens_mistral': 828, 'n_tokens_neox': 788, 'n_words': 322}