Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Euruko 2011 - In the Loop
D Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
css
file
js
lib
slides
traces
.gitignore
Gemfile
Gemfile.lock
README.md
Rakefile
config.ru
index.html

README.md

In the Loop - Euruko 2011

Tracing scripts, HTTP endpoints and slides for In the Loop - Euruko 2011

Dependencies

HOWTO

There's a bunch of rake tasks defined for instrumentation

methodmissing:euruko lourens$ rake -T
rake blocking_cpu       # Blocking on CPU
rake blocking_cpu0      # Blocking on CPU - iterator
rake blocking_io        # Blocking on I/O
rake blocking_io0       # Blocking on I/O - pooled
rake context_switch     # Kernel / user space switches
rake non_blocking_io    # Non-Blocking I/O
rake reactor            # Reactor events
rake server             # Start server
rake trace_server       # Trace server
rake write_queue_large  # Write queue latency, large response
rake write_queue_small  # Write queue latency, small response

Start up a HTTP server in another Terminal :

methodmissing:euruko lourens$ rake server
/Users/lourens/.rvm/gems/ruby-1.8.7-p334@rails3/bundler/gems/eventmachine-c455a9579106/lib/em/version.rb:2: warning: already initialized constant VERSION
>> Thin web server (v1.2.11 codename Bat-Shit Crazy)
>> Maximum connections set to 1024
>> Listening on 0.0.0.0:8000, CTRL+C to stop

Have fun!

Something went wrong with that request. Please try again.