Varnish原理与基础配置详解
subroutines。
-hcritbitvarnish-4.0.5 revision 07eff4c29Type help for command list.Type quit to close CLI session. help 200 help [ command ] ping [ timestamp ] auth response quitbannerstatusstartstopvcl.load configname filename vcl.inline configname quoted_VCLstring vcl.use configname vcl.discard configname vcl.listparam.show [ -l ] [ param ] param.set param value panic.showpanic.clearstorage.listvcl.show [ -v ] configname backend.list [ backend_expression ] backend.set_health backend_expression state ban field operator arg [ field oper arg ] .. .ban.list 输入一些命令进行简单操作 ping 200PONG 1588839300 1.0vcl.list 200available0 bootactive0 reload_2020-05-07T15:59:30status200Child in state runningvcl.show reload_2020-05-07T15:59:30200vcl 4.0 ; # Default backend definition. Set this to point to your content server. backend default { .host 192.168.147.132 ; .port 80 ; } ······ 查看线程池数量 param.show thread_pools200thread_poolsValue is: 2 [ pools ] ( default ) Default is: 2Minimum is: 1Number of worker thread pools.Increasing number of worker pools decreases lock contention.Too many pools waste CPU and RAM resources,使用VCL编写的缓存策略通常保存至.vcl文件中其需要编译成二进制的格式后才能由varnish调用 二、安装配置varnish [ rootcentos7 ~ ] # yum install -y varnish
评论列表