Varnish 调优
来源:互联网 发布:传世1.0源码 编辑:程序博客网 时间:2024/04/29 20:22
varnish非常适合做静态服务器,性能超越nginx,一些web静态资源如css,js,图片等可以放进去,以实现在页面之间共享缓存资源。
To see further description of these settings, also check param.show -l in the Varnish management interface.
• -p thread_pool_min=200 (default: 5)
Idle threads are harmless. This number is multipled by the number of thread pools you have available, and the total should be roughly what you need to run on a normal day.
• -p thread_pool_max=4000 (default 1000)
The maximum number of threads is in essence limited by available file descriptors, however, setting it too high does not increase performance. Having a number of idle threads is reasonably harmless, but do not increase this number above roughly 5000 or you risk running into file-descriptor related issues, among other things.
• -p thread_pool_add_delay=2 (default: 20ms, default in master: 2ms)
Reducing the add_delay lets you create threads faster which is essential - specially at startup - to avoid filling up the queue and dropping requests.
• -p session_linger=100 OR MORE (default: 0ms in <= 2.0.4 and 50ms in > 2.0.4)
To avoid too much context switching when you starve your CPU (and in general), letting each thread wait for new requests is essential. The value depends on how long it takes you to deliver the typical object. This will also reduce the amount of threads piling up (which is somewhat counter intuitive).
• -s malloc,(YOURMEMORY-20%)G
Keep data in memory using -s malloc.
- Varnish调优
- Varnish 调优
- Varnish
- Varnish
- Varnish
- varnish
- varnish
- Varnish
- varnish
- varnish
- varnish
- Varnish
- varnish
- varnish
- varnish
- varnish
- varnish
- Varnish
- 个人开发者app消息推送简单实现思路
- 使用PropertyPlaceholderConfigurer读取.properties文件(2)-处理加密属性
- 一桩善举挽救了两条人命
- 【Kaggle练习赛】之Digit Recognizer
- 屏蔽本层以下的层的touch消息
- Varnish 调优
- 读什么——书摘,浓缩知识,如影随行
- 使用druid连接池的超时回收机制排查连接泄露问题
- linux消息队列的内核限制
- 判断代理是否为空
- Excel的自定义单元格格式
- Atlassian、Slack 以及 ChatOps 未来的前景如何?
- SCXML有限状态自动机
- 盘点机器学习领域的五大流派