249是什么意思| 京东白条什么时候还款| atp 是什么| 8月10日什么星座| 新陈代谢是什么| s和m什么意思| 中午是什么时辰| 十二生肖为什么老鼠排第一| 空虚是什么意思| 黍是什么意思| 大腿为什么会长妊娠纹| 苦海无涯回头是岸是什么意思| 肾囊肿有什么症状表现| 猪头三是什么意思| 淼怎么读什么意思| 小腹胀痛男性什么原因| 双相情感障碍吃什么药| 多吃海带有什么好处和坏处| 怀孕前期有什么症状| zeesea是什么牌子| 儿童肠系膜淋巴结炎吃什么药| 请问紫苏叶有什么功效| 吃什么长头发又密又多| 匙仁是牛的什么部位| 十月一日是什么节| 经常咳嗽是什么原因| 梦见洗鞋子是什么意思| 美女的阴暗是什么样的| 打嗝是什么原因引起的| 游丝是什么意思| 梦见网鱼是什么征兆| 女司机为什么开不好车| 冰激凌和冰淇淋有什么区别| 6月15是什么星座| 不自觉是什么意思| 可字五行属什么| 喝什么解渴| 总胆汁酸高是什么原因| 瑶柱是什么东西| 什么是黑咖啡| 黄金果是什么水果| 花名是什么意思| 知识渊博是什么意思| 什么菜下饭又好吃| 前年是什么年| 细菌性肺炎吃什么药| 什么是冬虫夏草| 双手抽筋是什么原因| 为什么会莫名其妙流鼻血| 愿力是什么意思| 吃什么可以降血脂| 锁水是什么意思| 沙茶酱是什么做的| 为什么会得尿毒症| 211是什么| 男士脸黑穿什么颜色好| loewe是什么牌子| 老公不交工资意味什么| max是什么品牌| 魄力是什么意思| 广东属于什么气候| 湿气重吃什么调理| 猫的胡须有什么用处| cpv是什么病毒| 翡翠的种水是什么意思| 喜金是什么意思| 高筋面粉和低筋面粉有什么区别| 维生素b有什么作用| 什么是掌跖脓疱病| 茶壶嘴为什么不能对着人| 骨髓纤维化是什么病| 打蛋白针有什么作用| 什么玻璃| 意义是什么意思| 海葡萄是什么东西| NT是检查什么| 做腹部彩超挂什么科| 孕妇不能吃什么东西| 识大体是什么意思| 右手有点麻是什么原因| 掷是什么意思| 用什么水和面烙饼最软| 伦字五行属什么| 为什么叫a股| sweat是什么意思| 嘴角疱疹用什么药膏| 小便憋不住尿裤子是什么情况| 人体最大的排毒器官是什么| 什么充电宝可以带上飞机| 马日冲鼠是什么意思| 二十二岁属什么| 猫薄荷对猫有什么作用| 调教什么意思| 不走寻常路是什么意思| 吃芒果有什么坏处| 上升星座是什么意思| 疑虑是什么意思| 雅诗兰黛是什么档次| 什么情况下需要根管治疗| 真太阳时是什么意思| 龙眼是什么季节的水果| 什么是强势的女人| 为什么尿频| 人彘是什么| 舌头变黑是什么原因| 葡萄糖偏高有什么问题| 大牙什么时候换| 腹部增强ct能检查出什么| chihiro是什么意思| 嘴巴里苦是什么原因| 命门是什么意思| 右手大拇指发麻是什么原因| 心服口服是什么意思| 腹部叩诊什么音正常| 放屁多是什么病的征兆| 三八妇女节送老婆什么礼物好| 考试用什么笔| 老年人喝什么蛋白粉好| 晚上睡不着觉是什么原因| 不什么思什么| orf是什么意思| choker什么意思| 变态反应科是看什么病的| 来姨妈喝什么比较好| 结婚23年是什么婚| 胃疼是什么病| 什么是邪淫| 艾滋病是什么病毒| 4月28号是什么星座| 孕妇吃什么鱼| 冠脉cta主要检查什么| 火腿是什么动物的腿| 绒穿和羊穿有什么区别| 皮肤癣用什么药| 阴干吃什么补雌激素| 黑色素通过什么排出来| 拉肚子发热是什么情况| 什么样的红点是艾滋病| 跳蛛吃什么| 拉姆是什么意思| 急性乳腺炎是什么原因引起的| 什么东西晚上才生出尾巴| 经常低血糖是什么原因| 睡觉腿麻是什么原因引起| 子痫是什么意思| 领结婚证需要准备什么| 冰粉是什么做的| 管科是什么专业| 被子什么材质的好| 跳蚤怕什么| plg是什么意思| 30岁以上适合用什么牌子的护肤品| 谷氨酸是什么| honor是什么牌子| 董监高是什么意思| 心脏做什么检查最准确| 子宫内膜增生是什么原因| 疣是什么意思| 想吃辣是身体缺乏什么| 毛囊炎是什么原因引起的| 1级高血压是什么意思| hcg什么意思| 练字用什么笔好| hippo什么意思| 尿点什么意思| 喝蒲公英根有什么好处| 桃胶是什么东西| 挂什么科| 尿急尿频吃什么药| 指甲是白色的是什么原因| 什么茶养肝护肝| 血小板偏低是什么原因| 桃子又什么又什么填空| 捉奸什么意思| 兔和什么生肖最配| 功能性消化不良吃什么药| 裸车是什么意思| 脚后跟开裂用什么药| 为什么会打呼噜| 什么是碱性食物有哪些| 解语花是什么意思| 归来是什么意思| ta代表什么| 宅基地是什么意思| 中性粒细胞绝对值高是什么原因| 五百年前是什么朝代| 兑卦五行属什么| 下午3点是什么时辰| 很容易饿是什么原因| 什么情况下会流前列腺液| ariel是什么意思| 且行且珍惜什么意思| 一九九七年属什么生肖| 1688是什么| 河蟹吃什么食物| momo是什么意思| 心慌吃什么药| 拉不出尿是什么原因| loho是什么牌子| 手指甲有黑色条纹是什么原因| 面首什么意思| 空调滤芯什么牌子好| 气血虚吃什么补最快女人| 肌酸激酶高是什么病| 牛的三合和六个合生肖是什么| 枫叶是什么颜色| 水至清则无鱼什么意思| 广州有什么山| 樱桃有什么功效| 鸭肉和什么不能一起吃| 胃肠湿热吃什么中成药| 没品什么意思| 条件致病菌是什么意思| 减肥早餐吃什么最好| 幽门螺旋杆菌阳性代表什么| 三手烟是什么意思| 阑尾炎做什么检查| remember是什么意思| 心脏t波改变吃什么药| 唇珠在面相中代表什么| 月经黑色的是什么原因| 庞统为什么要献连环计| 杏林是什么意思| 大便粘马桶吃什么药| 日不落是什么意思| 朱元璋是什么朝代| 台湾什么时候回归| 调羹是什么意思| 早博是什么意思| 吃什么水果能降血压| 喝什么牌子的水最健康| 香港特首什么级别| 魏征字什么| 荸荠读音是什么| 河南什么烟出名| 7月14日是什么日子| 惊世骇俗的意思是什么| 蝈蝈为什么不叫| 什么的山野| 按人中有什么作用| 10月25日什么星座| 冰释前嫌的释是什么意思| 慈字五行属什么| 胆毒是什么原因引起的| 鸟吃什么食物| 驻马店古代叫什么| 鲨鱼是什么动物| 倒挂金钩是什么意思| 双头蛇是什么意思| 1980年属什么| 胰岛素起什么作用| 海扶治疗是什么| 三湖慈鲷可以和什么鱼混养| 什么蛋营养价值最高| 乡试第一名叫什么| 门静脉增宽是什么意思| 吃什么东西涨奶最快| 妞字五行属什么| 脾切除后有什么影响和后遗症| 人最怕什么| 马赛克是什么意思啊| 抓兔子的狗叫什么名字| 汴去掉三点水念什么| 阴性什么意思| 百度Jump to content

车讯:神经网络研发顺利 特斯拉将发布8.1系统

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]
什么方法可以治打嗝 前列腺钙化是什么原因引起的 集体户口什么意思 脸上长红色的痘痘是什么原因 ab型血和o型血的孩子是什么血型
月经量少是什么原因啊 白麝香是什么味道 四季如春是什么生肖 什么是团队 磨砂膏有什么作用
驰骋沙场百战威是什么生肖 蜱虫长什么样 我是什么结构 事倍功半的意思是什么 平板支撑是什么
茶叶蛋用什么茶叶最好 绿豆和什么一起煮好 无花果有什么作用 减肥早餐吃什么好 晴纶是什么材质
她将是你的新娘是什么歌hcv7jop5ns0r.cn 空窗期什么意思hcv9jop2ns6r.cn palace什么牌子xinmaowt.com 脚气是什么菌引起的hcv8jop2ns1r.cn 出阁是什么意思hcv8jop6ns3r.cn
刑事拘留意味着什么hcv9jop5ns2r.cn 口臭吃什么hcv7jop7ns1r.cn 脚筋疼是什么原因hcv8jop6ns2r.cn 拉仇恨是什么意思hcv9jop5ns7r.cn 长江后浪推前浪是什么生肖bfb118.com
门神是什么意思hcv8jop6ns0r.cn 三个直念什么hcv9jop4ns3r.cn 有蛇进屋预兆着什么hcv8jop1ns7r.cn 4ever是什么意思helloaicloud.com 笑对人生是什么意思hcv8jop6ns6r.cn
海粉是什么hcv9jop6ns9r.cn 半身不遂是什么原因引起的hcv9jop1ns0r.cn 中班小朋友应该学什么hcv7jop6ns4r.cn 什么是小数hlguo.com 我们为什么会笑hcv8jop9ns4r.cn
百度