Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
70de08d2
Commit
70de08d2
authored
Jan 06, 2016
by
Federico G. Schwindt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First pass at using PARAM
parent
e6321479
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
83 additions
and
506 deletions
+83
-506
params.h
bin/varnishd/common/params.h
+0
-95
mgt_param_tbl.c
bin/varnishd/mgt/mgt_param_tbl.c
+0
-384
mgt_pool.c
bin/varnishd/mgt/mgt_pool.c
+0
-9
params.h
include/tbl/params.h
+83
-18
No files found.
bin/varnishd/common/params.h
View file @
70de08d2
...
@@ -88,18 +88,6 @@ struct params {
...
@@ -88,18 +88,6 @@ struct params {
uid_t
uid
;
uid_t
uid
;
gid_t
gid
;
gid_t
gid
;
/* TTL used for lack of anything better */
double
default_ttl
;
/* Default grace period */
double
default_grace
;
/* Default keep period */
double
default_keep
;
/* Maximum concurrent sessions */
unsigned
max_sess
;
/* Worker threads and pool */
/* Worker threads and pool */
unsigned
wthread_min
;
unsigned
wthread_min
;
unsigned
wthread_max
;
unsigned
wthread_max
;
...
@@ -112,97 +100,14 @@ struct params {
...
@@ -112,97 +100,14 @@ struct params {
ssize_t
wthread_stacksize
;
ssize_t
wthread_stacksize
;
unsigned
wthread_queue_limit
;
unsigned
wthread_queue_limit
;
/* Memory allocation hints */
unsigned
workspace_backend
;
unsigned
workspace_client
;
unsigned
workspace_session
;
unsigned
workspace_thread
;
unsigned
vsl_buffer
;
unsigned
http_req_size
;
unsigned
http_req_hdr_len
;
unsigned
http_resp_size
;
unsigned
http_resp_hdr_len
;
unsigned
http_max_hdr
;
unsigned
vsl_reclen
;
double
timeout_linger
;
double
timeout_idle
;
double
pipe_timeout
;
double
send_timeout
;
double
idle_send_timeout
;
#ifdef HAVE_TCP_KEEP
#ifdef HAVE_TCP_KEEP
double
tcp_keepalive_time
;
double
tcp_keepalive_time
;
unsigned
tcp_keepalive_probes
;
unsigned
tcp_keepalive_probes
;
double
tcp_keepalive_intvl
;
double
tcp_keepalive_intvl
;
#endif
#endif
/* Fetcher hints */
ssize_t
fetch_chunksize
;
ssize_t
fetch_maxchunksize
;
unsigned
nuke_limit
;
/* Listen depth */
unsigned
listen_depth
;
/* CLI related */
double
cli_timeout
;
unsigned
cli_limit
;
unsigned
ping_interval
;
/* LRU list ordering interval */
double
lru_interval
;
/* Maximum restarts allowed */
unsigned
max_restarts
;
/* Maximum backend retriesallowed */
unsigned
max_retries
;
/* Maximum esi:include depth allowed */
unsigned
max_esi_depth
;
/* Rush exponent */
unsigned
rush_exponent
;
/* Default connection_timeout */
double
connect_timeout
;
/* CLI buffer size */
unsigned
cli_buffer
;
/* Prefer IPv6 connections to backend*/
unsigned
prefer_ipv6
;
/* Acceptable clockskew with backends */
unsigned
clock_skew
;
unsigned
syslog_cli_traffic
;
unsigned
http_range_support
;
unsigned
http_gzip_support
;
unsigned
gzip_buffer
;
unsigned
gzip_level
;
unsigned
gzip_memlevel
;
double
critbit_cooloff
;
double
vcl_cooldown
;
double
shortlived
;
struct
vre_limits
vre_limits
;
struct
vre_limits
vre_limits
;
/* Install a SIGSEGV handler */
unsigned
sigsegv_handler
;
/* VSM dimensions */
ssize_t
vsm_space
;
ssize_t
vsl_space
;
struct
poolparam
req_pool
;
struct
poolparam
req_pool
;
struct
poolparam
sess_pool
;
struct
poolparam
sess_pool
;
struct
poolparam
vbo_pool
;
struct
poolparam
vbo_pool
;
...
...
bin/varnishd/mgt/mgt_param_tbl.c
View file @
70de08d2
This diff is collapsed.
Click to expand it.
bin/varnishd/mgt/mgt_pool.c
View file @
70de08d2
...
@@ -191,15 +191,6 @@ struct parspec WRK_parspec[] = {
...
@@ -191,15 +191,6 @@ struct parspec WRK_parspec[] = {
"be dropped instead of queued."
,
"be dropped instead of queued."
,
EXPERIMENTAL
,
EXPERIMENTAL
,
"20"
,
""
},
"20"
,
""
},
{
"rush_exponent"
,
tweak_uint
,
&
mgt_param
.
rush_exponent
,
"2"
,
NULL
,
"How many parked request we start for each completed "
"request on the object.
\n
"
"NB: Even with the implict delay of delivery, "
"this parameter controls an exponential increase in "
"number of worker threads."
,
EXPERIMENTAL
,
"3"
,
"requests per request"
},
{
"thread_pool_stack"
,
{
"thread_pool_stack"
,
tweak_bytes
,
&
mgt_param
.
wthread_stacksize
,
tweak_bytes
,
&
mgt_param
.
wthread_stacksize
,
NULL
,
NULL
,
NULL
,
NULL
,
...
...
include/tbl/params.h
View file @
70de08d2
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment