办理健康证需要什么| 6月12日什么星座| 净化心灵是什么意思| 肩胛骨痛是什么原因| 龙眼和桂圆有什么区别| 世界上最大的湖是什么湖| 组织部副部长是什么级别| nike是什么牌子| 左眼跳什么右眼跳什么| affairs是什么意思| 活好的女人有什么表现| 开放性骨折是什么意思| 膝关节积液吃什么药| 杭州都有什么区| 右眼皮跳是什么预兆男| 月经量突然减少是什么原因| 什么叫meta分析| 心字底的字有什么| 单号是什么| 人造棉是什么面料| 血糖偏高能吃什么水果| 名不见经传是什么意思| 肺部增殖灶是什么意思| 后卫是什么意思| 羊驼为什么吐口水| 儿童上火了吃什么降火最快| 熊掌有什么功效与作用| 例假淋漓不尽是什么原因造成的| 肺结节是什么| 罗马布是什么面料| 黄瓜吃了有什么好处| 小腿浮肿是什么病| 气质是什么| 中国的国粹是什么| 脚底褪皮是什么原因| 生普属于什么茶| 海啸是什么意思| 心衰是什么病| 蒲公英长什么样| 圣灵是什么意思| 茭白不能和什么一起吃| 亡羊补牢说明什么道理| 高考三百多分能上什么学校| 精子是什么味道的| 免疫五项能查出什么病| 胎儿双肾盂分离是什么意思| 结婚有什么好处| 69年鸡是什么命| 回肠荡气什么意思| ab和o型血生的孩子是什么血型| 外向是什么意思| 肠易激综合症吃什么药| 用神是什么意思| 静脉曲张是什么原因| 淡定自若什么意思| 看好你是什么意思| 咽喉炎吃什么| 打脸是什么意思| 打了封闭针后要注意什么事项| 无赖不还钱最怕什么| 11月9号是什么星座| 花生为什么叫落花生| 感染是什么症状| 暗网是什么| 问其故的故是什么意思| 什么是食品安全| 农历六月是什么生肖| 鹅蛋有什么营养| 身上长红色的痣是什么原因| 汗是什么味道| 盛夏什么意思| 拉屎特别臭是什么原因| 梦见洗脚是什么意思| 阳痿是什么原因造成的| sport是什么意思| 一个马一个尧读什么| 欲代表什么生肖| 膀胱结石是什么症状| 胰腺炎为什么血糖高| 什么家常菜好吃| 我行我素的人什么性格| 感冒流鼻涕咳嗽吃什么药好| st什么意思| 干咳吃什么药效果好| 月寸读什么| 鼻涕黄粘稠是什么原因| 仔是什么意思| 失重感是什么感觉| 10月15号是什么星座的| 90年属什么的生肖| 湿气严重吃什么药好得快| 固体玉米糖浆是什么| 污蔑是什么意思| 落英缤纷是什么意思| 乾字五行属什么| 豆五行属什么| 尿不尽是什么意思| 孕妇吃什么补钙| 女人性冷淡用什么药| 沙土地适合种什么农作物| 牙齿浮起来是什么原因| 省政协主席是什么级别| 殿后和垫后有什么区别| 神经衰弱挂什么科| 房客是什么意思| 四面弹是什么面料| 恩五行属性是什么| 贾乃亮演过什么电视剧| 眩晕是什么原因| 甲胎蛋白高是什么原因| 刺史相当于现在的什么官| 三保是什么| review是什么意思| used是什么意思| 维生素d什么时候吃| 怀孕是什么感觉| 眼睛充血是什么原因引起的| 盆腔炎吃什么消炎药效果好| 淀粉酶高有什么危害| 头晕眼花是什么原因| 1942年属什么生肖属相| 杜甫世称什么| 刘璋和刘备什么关系| 多心是什么意思| 安利是什么意思| 毛主席的女儿为什么姓李| 新生儿湿疹抹什么药膏| 王不留行是什么| 怀孕了吃什么| 春天是什么颜色的| 市级三好学生有什么用| 赛脸什么意思| mom是什么意思| 嗳气和打嗝有什么区别| 一月出生是什么星座| 大便多是什么原因| 胎位loa是什么意思| 小姑独处是什么意思| 明朝北京叫什么| 关爱是什么意思| 尿路感染是什么原因造成的| 人体乳头瘤病毒是什么| 小腿胀痛是什么原因| 种草什么意思| 穿什么衣服| 中度肠化是什么意思| 天麻不能和什么一起吃| 小儿呕吐是什么原因引起的| 痛风吃什么食物| 胆碱是什么| 什么人不适合做纹绣师| 甲状腺结节吃什么药好| 不妄作劳什么意思| 突然恶心想吐是什么原因| 择期手术是什么意思| 内热是什么意思| 钻石和锆石有什么区别| 靶向药是什么意思| 世界上最大的单位是什么| 经常吃维生素c有什么好处和坏处| 风属于五行属什么| 晚上失眠是什么原因| 宫腔镜是什么手术| 非你不可什么意思| 活菩萨是什么意思| essence是什么意思| 鱼缸为什么不能送人| 前胸后背疼挂什么科| 为什么打喷嚏| 素质教育是什么| 田七和三七有什么区别| 司空见惯是说司空见惯了什么| 老花眼有什么症状| 宫颈纳氏腺囊肿是什么意思| 四川为什么叫四川| 汤姆猫是什么品种| 十二月十二日是什么星座| 戏耍的近义词是什么| 与虎谋皮是什么生肖| 夜盲症是什么症状| 不苟言笑的苟是什么意思| 什么是超度| 失眠有什么办法解决| 保妇康栓治疗什么妇科病| 分解酒精的是什么酶| 但微颔之的之是什么意思| 观音得道日是什么时候| 凌晨一点是什么时辰| 尿胆原阴性是什么意思| 胪是什么意思| 媚字五行属什么| bosch是什么牌子| std是什么意思| 马甲线长什么样| 八卦是什么| 什么的石头| 北京晚上有什么好玩的景点| 心影增大是什么意思| crp高是什么原因| 小便有点红是什么原因| 财运亨通是什么意思| 陈皮有什么功效作用| 玉鸟吃什么饲料好| 四大发明有什么| 咳血是什么原因引起的| 秋老虎是什么意思| 什么车不能开| 五月份是什么季节| 兰州大学什么专业最好| 气溶胶传播是什么意思| 脚心出汗是什么原因女| 做梦梦见棺材和死人是什么意思| 小炒肉用什么肉| 中央政法委书记什么级别| 唐氏综合征是什么原因造成的| 男人射精什么感觉| bl是什么单位| 什么是佝偻病有什么症状| 什么最赚钱| 退烧药吃多了有什么副作用| 总胆红素高是怎么回事有什么危害| 蜂蜡有什么用| 独善其身是什么意思啊| 胰腺炎是什么引起的| 烙馍卷菜搭配什么菜| 脾胃是什么意思| 七月份出生是什么星座| 机车什么意思| 黄花菜不能和什么一起吃| AT代表什么| 梦见找对象是什么意思| 孕妇吃鸽子蛋对胎儿有什么好处| alex是什么意思| 太阳穴疼痛是什么原因| 脑瘫是什么症状| 花可以组什么词| 猴和什么相冲| 女人喝白茶有什么好处| 软化耳屎的药水叫什么| 双子座男生喜欢什么样的女生| ex是什么的缩写| 女人高潮是什么感觉| 心有戚戚焉什么意思| 四个月是什么字| ku是什么单位| 肚子长痘痘是什么原因| 喝什么泡水降血压最好| 全身spa是什么意思| 脑供血不足挂什么科| 新生儿头发稀少是什么原因| 平躺就咳嗽是什么原因| 睾丸痛什么原因| 老人流口水是什么原因引起的| 安慰的意思是什么| 四面八方什么生肖| 肚脐眼周围痛什么原因| 导盲犬一般是什么品种| 什么呢| 产妇月子里可以吃什么水果| 麻雀为什么跳着走| 洗牙有什么好处和坏处| 上次闰六月是什么时候| 女生自慰什么感觉| 清补凉是什么| 百度Jump to content

西安机动车突破250万辆,您是否赞成限号限行?

From Wikipedia, the free encyclopedia
Varnish
Developer(s)Poul-Henning Kamp, Redpill-Linpro, Varnish Software
Stable release
7.7.1[1] Edit this on Wikidata / 12 May 2025; 2 months ago (12 May 2025)
Repository
Written inC
Operating systemBSD, Linux, Unix
TypeHTTP accelerator
Licensetwo-clause BSD license
Websitevarnish-cache.org Edit this on Wikidata
百度 所有这一切,都对提高党的执政能力特别是坚持科学执政、民主执政、依法执政提出了新的要求。

Varnish is a reverse caching proxy[2] used as HTTP accelerator for content-heavy dynamic web sites as well as APIs. In contrast to other web accelerators, such as Squid, which began life as a client-side cache, or Apache and nginx, which are primarily origin servers, Varnish was designed as an HTTP accelerator. Varnish is focused exclusively on HTTP, unlike other proxy servers that often support FTP, SMTP, and other network protocols.

History

[edit]

The project was initiated by the online branch of the Norwegian tabloid newspaper Verdens Gang. The architect and lead developer is Danish independent consultant Poul-Henning Kamp[2] (a well-known FreeBSD developer), with management, infrastructure and additional development originally provided by the Norwegian Linux consulting company Linpro. The support, management and development of Varnish was later spun off into a separate company, Varnish Software.

Varnish is free and open-source software, available under a two-clause BSD license. Commercial support is available from Varnish Software, amongst others.

Version 1.0 of Varnish was released in 2006,[3][4] Varnish 2.0 in 2008,[5] Varnish 3.0 in 2011,[6] Varnish 4.0 in 2014,[7] Varnish 5.0 in 2016,[8] Varnish 6.0 in March 2018,[9] and Varnish 7.0 in September 2021.[10]

Architecture

[edit]

Varnish stores data in virtual memory and leaves the task of deciding what is stored in memory and what gets paged out to disk to the operating system. This helps avoid the situation where the operating system starts caching data while it is moved to disk by the application.

Varnish is heavily threaded, with each client connection being handled by a separate worker thread. When the configured limit on the number of active worker threads is reached, incoming connections are placed in an overflow queue; when this queue reaches its configured limit incoming connections will be rejected.

The principal configuration mechanism is Varnish Configuration Language (VCL), a domain-specific language (DSL) used to write hooks that are called at critical points in the handling of each request. Most policy decisions are left to VCL code, making Varnish more configurable and adaptable than most other HTTP accelerators.[citation needed] When a VCL script is loaded, it is translated to C, compiled to a shared object by the system compiler, and loaded directly into the accelerator which can thus be reconfigured without a restart.

A number of run-time parameters control things such as the maximum and the minimum number of worker threads, various timeouts, etc. A command-line management interface allows these parameters to be modified, and new VCL scripts to be compiled, loaded and activated, without restarting the accelerator.

In order to reduce the number of system calls in the fast path to a minimum, log data is stored in shared memory, and the task of monitoring, filtering, formatting and writing log data to disk is delegated to a separate application.

Performance metrics

[edit]

Varnish Cache can speed up information delivery by a factor of several hundred. To ensure proper operation and performance, Varnish exposes metrics that can be monitored in the following areas:[11]

  • Client metrics: client connections and requests
  • Cache performance: cache hits, evictions
  • Thread metrics: thread creation, failures, queues
  • Backend metrics: success, failure, and health of backend connections

Metric collection

[edit]

Varnish Cache ships with monitoring and logging tools. One of the most used is varnishstat which gives a detailed snapshot of Varnish's current performance. It provides access to in-memory statistics such as cache hits and misses, resource consumption, threads created, and more.[12]

varnishstat

[edit]

Running varnishstat from the command line returns a continuously updating list of all available Varnish metrics. If the -1 flag is added, varnishstat will exit after printing the list one time.[13] Varnishstat can be used as a standalone tool to spot-check the health of the cache. In order to graph metrics over time, correlate with other statistics from across an infrastructure, and set up alerts about any problems that may arise, monitoring services can integrate with Varnish and collect varnishstat metrics.

Varnishlog running with a Wikimedia backend

varnishlog

[edit]

Varnishlog is a tool that can be used to debug or tune Varnish's configuration, as it provides detailed information about each individual request.

Load balancing

[edit]

Varnish supports load balancing using both a round robin and a random director, both with a per-backend weighting. Basic health-checking of backends is also available.[14]

Other features

[edit]

Varnish Cache also features:

  • Plugin support with Varnish Modules, also called VMODs[15]
  • Support for Edge Side Includes including stitching together compressed ESI fragments
  • gzip Compression and Decompression
  • DNS, Random, Hashing and Client IP-based Directors
  • HTTP Streaming Pass & Fetch
  • Experimental support for Persistent Storage, without LRU eviction
  • Saint[16] and Grace[17][18] modes.
    • If a server malfunctions and returns HTTP status code 500, Grace mode will ignore expiry headers and continue to return cached versions. Saint mode is for use when load balancing, where a failing server is blocked for a quarantine period and excluded from the server pool.

See also

[edit]

References

[edit]
  1. ^ "Releases & Downloads".
  2. ^ a b Feryn, Thijs. "1. What Is Varnish Cache? - Getting Started with Varnish Cache [Book]". O'Reilly Media. Retrieved 2025-08-06.
  3. ^ "Catalyst Advent Calendar - Day 14". www.catalystframework.org. Archived from the original on July 22, 2012. Retrieved Sep 4, 2020.
  4. ^ Sm?rgrav, Dag-Erling (Sep 20, 2006). "Varnish 1.0 released". Retrieved Sep 4, 2020.
  5. ^ Heen, Tollef Fog (Oct 15, 2008). "Varnish 2.0 released!". Retrieved Sep 4, 2020.
  6. ^ Heen, Tollef Fog (Jun 17, 2011). "Varnish 3.0.0 released". Retrieved Sep 4, 2020.
  7. ^ Karstensen, Lasse (Apr 10, 2014). "Varnish 4.0.0 released". Retrieved Sep 4, 2020.
  8. ^ "Varnish Cache 5.0.0 — Varnish HTTP Cache". varnish-cache.org. Retrieved Sep 4, 2020.
  9. ^ Poul-Henning Kamp (15 March 2018). "Varnish 6.0 Released". Retrieved 15 May 2018.
  10. ^ Poul-Henning Kamp (9 August 2022). "Varnish Cache 7.0.0 released". Retrieved 9 August 2022.
  11. ^ "Top Varnish performance metrics". Top Varnish performance metrics. Jul 28, 2015. Retrieved Sep 4, 2020.
  12. ^ "How to collect Varnish metrics". How to collect Varnish metrics. Jul 28, 2015. Retrieved Sep 4, 2020.
  13. ^ "varnishstat(1): HTTP accelerator statistics - Linux man page". linux.die.net. Retrieved Sep 4, 2020.
  14. ^ "BackendPolling – Varnish". Varnish-cache.org. Archived from the original on 2025-08-06. Retrieved 2025-08-06.
  15. ^ "VMODs Directory (Varnish Modules and Extensions) | Varnish Community". Varnish-cache.org. Retrieved 2025-08-06.
  16. ^ "Saint Mode". Varnish. Archived from the original on 7 May 2011.
  17. ^ "Grace Mode". Varnish. Archived from the original on 9 May 2011.
  18. ^ Feryn, Thijs (2017). Getting Started with Varnish Cache: Accelerate Your Web Applications. O'Reilly Media, Inc. p. 85. ISBN 9781491972229.
[edit]
鳄龟吃什么 喝什么降血糖 剖腹产坐月子吃什么 台湾以前叫什么名字 甜瓜不能和什么一起吃
次抛是什么意思 一什么阳光 十八岁成人礼送什么礼物 申时出生五行缺什么 秋葵有什么功效
苎麻是什么 旁风草长什么样 舌头破了是什么原因 什么眉什么目 co2cp在医学上是什么
什么惊什么怪 眼睛长黄斑是什么原因 肝脏钙化灶什么意思 肚脐下三寸是什么位置 褪黑素有什么用
烂仔是什么意思hcv9jop5ns1r.cn 突然暴瘦是什么原因hcv9jop2ns7r.cn 遐想的意思是什么hcv9jop1ns9r.cn 鱼香肉丝用什么肉做hcv8jop0ns3r.cn 灵芝的功效与作用是什么hcv8jop8ns7r.cn
aq是什么hcv8jop2ns3r.cn 什么牌子的蜂胶最好hcv8jop9ns1r.cn 南辕北辙是什么故事hcv8jop7ns6r.cn 龙猫吃什么hcv8jop4ns0r.cn 卵巢增大是什么原因引起的hcv8jop3ns7r.cn
小狗吐白沫不吃东西没精神吃什么药hcv9jop0ns0r.cn 男人结扎有什么好处hcv8jop6ns3r.cn siri什么意思hcv8jop9ns8r.cn 清火喝什么茶hcv9jop4ns4r.cn 什么是脱敏hcv7jop4ns6r.cn
尿糖1十是什么意思hcv9jop3ns4r.cn 子五行属什么hcv7jop9ns8r.cn 用进废退什么意思hcv8jop5ns9r.cn 补气血吃什么水果hcv7jop6ns6r.cn 大学211和985是什么意思hcv7jop4ns6r.cn
百度