Squid Web Cache Wiki

Squid Web Cache 文档

🔗 特性:基于 SRV 的源服务器定位

🔗 概念验证代码

配置片段

url_rewrite_program /path/to/srv-redir.pl
url_rewrite_children 5
url_rewrite_concurrency 0
url_rewrite_host_header off

一些可调参数在重定向器脚本本身中。

🔗 详细信息

DNS SRV 记录,在 RFC 2782 中定义,可以通过一种非常直接的方式,在一定程度上实现高可用性和负载均衡。它们的查询结构包含一个命名约定,用于定位某个知名的网络服务,而它们的应答结构包含两个不同的字段,用于指示一组特定指针的优先级级别。

例如,查询:` _http._tcp.www.kinkie.it. SRV ` 可能会返回类似以下的结果

优先级 权重 目标
10 10 srv1.kinkie.it.
10 10 srv2.kinkie.it.
20 5 backupsrv.kinkie.it.

引自 RFC

A client MUST attempt to
contact the target host with the lowest-numbered priority it can
reach; target hosts with the same priority SHOULD be tried in an
order defined by the weight field.  The range is 0-65535.  This
is a 16 bit unsigned integer in network byte order.
[...]
The weight field specifies a
relative weight for entries with the same priority. Larger
weights SHOULD be given a proportionately higher probability of
being selected.

(已过期的)Internet Draft draft-andrews-http-srv 试图解决通用寻址方案的一些不一致之处。

🔗 状态

重定向器在 0.4 版本时符合 RFC 标准。Andrews 的草案是下一个集成目标。

分类: WantedFeature

导航:站点搜索站点页面类别🔼 向上