Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Dev

[PATCH] Update graph

 

 

Varnish dev RSS feed   Index | Next | Previous | View Threaded


fgsch at lodoss

Jul 4, 2013, 8:19 AM

Post #1 of 2 (61 views)
Permalink
[PATCH] Update graph

As mentioned on the #varnish irc channel, the diff below updates the graph
so it's clearer that vcl_recv() goes to vcl_hash() on lookup, pass and pipe.

Thanks,

f.-

diff --git a/bin/varnishd/cache_center.c b/bin/varnishd/cache_center.c
index 599d0e7..d11d600 100644
--- a/bin/varnishd/cache_center.c
+++ b/bin/varnishd/cache_center.c
@@ -1077,7 +1077,9 @@ DOT lookup2 [
DOT shape=diamond
DOT label="obj.f.pass ?"
DOT ]
-DOT hash -> lookup [label="hash",style=bold,color=green]
+DOT hash -> lookup [style=bold,color=green]
+DOT hash -> pipe [style=bold,color=orange]
+DOT hash -> pass2 [style=bold,color=red]
DOT lookup -> lookup2 [label="yes",style=bold,color=green]
DOT }
DOT lookup2 -> hit [label="no", style=bold,color=green]
@@ -1364,11 +1366,11 @@ DOT label="vcl_recv()|req."
DOT ]
DOT }
DOT RESTART -> recv
-DOT recv -> pipe [label="pipe",style=bold,color=orange]
-DOT recv -> pass2 [label="pass",style=bold,color=red]
+DOT recv -> hash [label="lookup",style=bold,color=green]
+DOT recv -> hash [label="pass",style=bold,color=red]
+DOT recv -> hash [label="pipe",style=bold,color=orange]
DOT recv -> err_recv [label="error"]
DOT err_recv [label="ERROR",shape=plaintext]
-DOT recv -> hash [label="lookup",style=bold,color=green]
*/

static int


fgsch at lodoss

Jul 31, 2013, 6:11 PM

Post #2 of 2 (21 views)
Permalink
Re: [PATCH] Update graph [In reply to]

And against master:

diff --git a/bin/varnishd/cache/cache_req_fsm.c
b/bin/varnishd/cache/cache_req_fsm.c
index 5ee6d14..ec7505c 100644
--- a/bin/varnishd/cache/cache_req_fsm.c
+++ b/bin/varnishd/cache/cache_req_fsm.c
@@ -762,7 +762,7 @@ cnt_restart(const struct worker *wrk, struct req *req)
DOT subgraph xcluster_recv {
DOT recv [
DOT shape=record
-DOT
label="{cnt_recv:|{vcl_recv\{\}|req.*}|{<pipe>pipe?|<pass>pass?|<error>error?|<lookup>lookup?}}"
+DOT
label="{cnt_recv:|{vcl_recv\{\}|req.*}|{<pass>pass?|<lookup>lookup?|<pipe>pipe?|<error>error?}}"
DOT ]
DOT }
DOT subgraph xcluster_hash {
@@ -771,12 +771,14 @@ DOT shape=record
DOT label="{cnt_recv:|{vcl_hash\{\}|req.*}}"
DOT ]
DOT }
-DOT recv:pipe -> pipe [style=bold,color=orange]
-DOT recv:pass -> pass [style=bold,color=red]
+DOT recv:pipe -> hash [style=bold,color=orange]
+DOT recv:pass -> hash [style=bold,color=red]
#DOT recv:error -> err_recv
#DOT err_recv [label="ERROR",shape=plaintext]
DOT recv:lookup -> hash [style=bold,color=green]
-DOT hash -> lookup [label="hash",style=bold,color=green]
+DOT hash -> lookup [style=bold,color=green]
+DOT hash -> pipe [style=bold,color=orange]
+DOT hash -> pass [style=bold,color=red]
*/

static enum req_fsm_nxt

Varnish dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.