This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /foo/bar { | |
sub vcl_recv { | |
} | |
} | |
all { | |
vcl_recv { | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GET /foo/bar { | |
sub vcl_receive { | |
} | |
sub vcl_fetch { | |
} | |
} | |
GET /baz/boing { | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[pivot1@twitter-web029 ~]$ curl -H "Host: twitter.com" http://pivot4:pivots2pandas@localhost:81/statuses/user_timeline.xml -vvvvv | |
* About to connect() to localhost port 81 | |
* Trying 127.0.0.1... connected | |
* Connected to localhost (127.0.0.1) port 81 | |
* Server auth using Basic with user 'pivot4' | |
> GET /statuses/user_timeline.xml HTTP/1.1 | |
> Authorization: Basic XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX | |
> User-Agent: curl/7.15.5 (x86_64-redhat-linux-gnu) libcurl/7.15.5 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 | |
> Accept: */* | |
> Host: twitter.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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(); | |
OlderNewer