vp->nconn++;
AZ(pthread_mutex_unlock(&vbemtx));
connect_to_backend(vc, bp);
+ VSL_stats->backend_conn++;
event_set(&vc->ev, vc->fd, EV_READ | EV_PERSIST, vbe_rdf, vc);
event_base_set(vbe_evb, &vc->ev);
}
struct vbe_conn *vc;
int i;
+ VSL_stats->backend_recycle++;
vc = ptr;
VSL(SLT_BackendReuse, vc->fd, "");
i = write(vbe_pipe[1], &vc, sizeof vc);
o = HSH_Lookup(w, sp->http);
sp->obj = o;
- if (o->busy)
+ if (o->busy) {
+ VSL_stats->cache_miss++;
VCL_miss_method(sp);
- else
+ } else {
+ VSL_stats->cache_hit++;
VCL_hit_method(sp);
+ }
return (0);
}
vca_return_session(sp);
return;
}
+ VSL_stats->client_req++;
AZ(pthread_mutex_lock(&sessmtx));
TAILQ_INSERT_TAIL(&shd, sp, list);
AZ(pthread_mutex_unlock(&sessmtx));
/* $Id$ */
-MAC_STAT(cli_conn, uint64_t, "u", "Client connections accepted")
-MAC_STAT(cli_req, uint64_t, "u", "Client requests received")
+MAC_STAT(client_conn, uint64_t, "u", "Client connections accepted")
+MAC_STAT(client_req, uint64_t, "u", "Client requests received")
-MAC_STAT(cache_hit, uint64_t, "u", "Cache hits")
-MAC_STAT(cache_miss, uint64_t, "u", "Cache misses")
+MAC_STAT(cache_hit, uint64_t, "u", "Cache hits")
+MAC_STAT(cache_miss, uint64_t, "u", "Cache misses")
-MAC_STAT(backend_conn, uint64_t, "u", "Backend connections initiated")
-MAC_STAT(backend_req, uint64_t, "u", "Backend requests sent")
+MAC_STAT(backend_conn, uint64_t, "u", "Backend connections initiated")
+MAC_STAT(backend_recycle, uint64_t, "u", "Backend connections recyles")