Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Euruko 2011 - In the Loop

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 css
Octocat-spinner-32 file
Octocat-spinner-32 js
Octocat-spinner-32 lib
Octocat-spinner-32 slides
Octocat-spinner-32 traces
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Rakefile
Octocat-spinner-32 index.html

In the Loop - Euruko 2011

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



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, CTRL+C to stop

Have fun!

Something went wrong with that request. Please try again.