Skip to content

Instantly share code, notes, and snippets.

GET /foo/bar {
sub vcl_recv {
}
}
all {
vcl_recv {
}
}
GET /foo/bar {
sub vcl_receive {
}
sub vcl_fetch {
}
}
GET /baz/boing {
...
backend default {
.host = "127.0.0.1";
.port = "3000";
}
C{
#include <dlfcn.h>
typedef int twitter_is_fresh_t(char *, char *);
static twitter_is_fresh_t *twitter_is_fresh_ptr;
namespace :deploy do
task :restart do
configuration = "#{stage}-#{release_name}"
run <<-CMD
echo -e "vcl.load #{configuration} /usr/local/etc/varnish/#{stage}.vcl\nvcl.use #{configuration}" | nc localhost 6082
CMD
end
end
0 Backend_health - mongrels[1] Still healthy 4--X-S-RH 5 2 5 0.000664 0.000730 HTTP/1.1 200 OK
0 Backend_health - mongrels Still healthy 4--X-S-RH 5 2 5 0.000764 0.000802 HTTP/1.1 200 OK
0 Backend_health - mongrels[1] Still healthy 4--X-S-RH 5 2 5 0.000818 0.000752 HTTP/1.1 200 OK
0 Backend_health - mongrels Still healthy 4--X-S-RH 5 2 5 0.000746 0.000788 HTTP/1.1 200 OK
0 Backend_health - mongrels[1] Still healthy 4--X-S-RH 5 2 5 0.000750 0.000751 HTTP/1.1 200 OK
0 Backend_health - mongrels Still healthy 4--X-S-RH 5 2 5 0.000747 0.000778 HTTP/1.1 200 OK
0 CLI - Rd ping
0 CLI - Wr 0 200 PONG 1226356959 1.0
0 Backend_health - mongrels[1] Still healthy 4--X-S-RH 5 2 5 0.000688 0.000736 HTTP/1.1 200 OK
0 Backend_health - mongrels Still healthy 4--X-S-RH 5 2 5 0.000724 0.000764 HTTP/1.1 200 OK
0 Backend_health - mongrels Still healthy 4--X-S-RH 5 2 5 0.000638 0.000789 HTTP/1.1 200 OK
0 Backend_health - mongrels[1] Still healthy 4--X-S-RH 5 2 5 0.000842 0.000878 HTTP/1.1 200 OK
0 Backend_health - mongrels Still healthy 4--X-S-RH 5 2 5 0.000873 0.000810 HTTP/1.1 200 OK
0 Backend_health - mongrels[1] Still healthy 4--X-S-RH 5 2 5 0.000895 0.000882 HTTP/1.1 200 OK
0 CLI - Rd ping
0 CLI - Wr 0 200 PONG 1226357032 1.0
0 Backend_health - mongrels Still healthy 4--X-S-RH 5 2 5 0.000804 0.000808 HTTP/1.1 200 OK
0 Backend_health - mongrels[1] Still healthy 4--X-S-RH 5 2 5 0.000902 0.000887 HTTP/1.1 200 OK
7 SessionOpen c 127.0.0.1 49941 :81
11 SessionOpen c 127.0.0.1 49942 :81
0 Backend_health - mongrels Still healthy 4--X-S-RH 5 2 5 0.000773 0.000849 HTTP/1.1 200 OK
0 Backend_health - mongrels[1] Still healthy 4--X-S-RH 5 2 5 0.000702 0.000825 HTTP/1.1 200 OK
0 Backend_health - mongrels Still healthy 4--X-S-RH 5 2 5 0.000780 0.000831 HTTP/1.1 200 OK
0 Backend_health - mongrels[1] Still healthy 4--X-S-RH 5 2 5 0.000765 0.000810 HTTP/1.1 200 OK
0 CLI - Rd ping
0 CLI - Wr 0 200 PONG 1226357087 1.0
0 Backend_health - mongrels Still healthy 4--X-S-RH 5 2 5 0.000760 0.000814 HTTP/1.1 200 OK
0 Backend_health - mongrels[1] Still healthy 4--X-S-RH 5 2 5 0.000755 0.000796 HTTP/1.1 200 OK
0 Backend_health - mongrels Still healthy 4--X-S-RH 5 2 5 0.000758 0.000800 HTTP/1.1 200 OK
0 Backend_health - mongrels[1] Still healthy 4--X-S-RH 5 2 5 0.000727 0.000779 HTTP/1.1 200 OK
#include <stdio.h>
#include <pthread.h>
#include "config.h"
#include "memcached.h"
void make_thread_local_connection_key();
void memcached_destroy(void *connection);
void make_prototypical_connection();
void initialize_process();
0 Backend_health - mongrels Still healthy 4--X-S-RH 5 2 5 0.000724 0.000796 HTTP/1.1 200 OK
0 Backend_health - mongrels[1] Still healthy 4--X-S-RH 5 2 5 0.000641 0.000812 HTTP/1.1 200 OK
0 CLI - Rd ping
0 CLI - Wr 0 200 PONG 1226356025 1.0
0 Backend_health - mongrels Still healthy 4--X-S-RH 5 2 5 0.000725 0.000778 HTTP/1.1 200 OK
0 Backend_health - mongrels[1] Still healthy 4--X-S-RH 5 2 5 0.000633 0.000767 HTTP/1.1 200 OK
7 SessionOpen c 127.0.0.1 47704 :81
11 ReqStart c 127.0.0.1 47691 1463837261
11 RxRequest c GET
11 RxURL c /statuses/user_timeline.xml
9 RxRequest c GET
9 RxURL c /statuses/user_timeline.xml
9 RxProtocol c HTTP/1.1
9 RxHeader c Authorization: Basic amFjazoxMjM0
9 RxHeader c User-Agent: curl/7.18.1 (i386-apple-darwin9.2.2) libcurl/7.18.1 zlib/1.2.3
9 RxHeader c Host: localhost
9 RxHeader c Accept: */*
9 VCL_call c recv
9 VCL_return c lookup
9 VCL_call c hash