Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carbonfive/john
C5 LA's current bathroom status
https://github.com/carbonfive/john
Last synced: about 2 months ago
JSON representation
C5 LA's current bathroom status
- Host: GitHub
- URL: https://github.com/carbonfive/john
- Owner: carbonfive
- Created: 2012-11-28T19:03:25.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-02-25T18:18:47.000Z (almost 10 years ago)
- Last Synced: 2024-04-15T12:18:27.766Z (10 months ago)
- Language: Ruby
- Homepage:
- Size: 438 KB
- Stars: 4
- Watchers: 76
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
John
====Can I go?
### Usage
$ bundle exec foreman start
Open a web browser: `http://localhost:9393`
### Testing
In a terminal window:
# redis-server
In a separate terminal:
# rake
### CLI
$ thor bathroom:status
> The john is not occupied.### Running with init.d
You may need to use sudo for these commands:
$ cp scripts/john.init.d.sample /etc/init.d/john
$ chmod +x /etc/init.d/john
$ /etc/init.d/john start### Load testing
We use JMeter to test server performance.
$ brew install jmeter
# Testing on production
$ RACK_ENV=production rake performance:test# Testing locally
$ rake performance:testThen wait. You will see output like:
```
summary + 9 in 35s = 0.3/s Avg: 14273 Min: 14174 Max:
14397 Err: 0 (0.00%)
summary = 21 in 70s = 0.3/s Avg: 15163 Min: 13002 Max: 20387
Err: 0 (0.00%)
```The key metric is the `0.3/s` metric, which means that at the 35 second
mark, the server was able to respond to 0.3 requests per second.