LazyZhu

Results 11 comments of LazyZhu

> What's the point to support this format while we already have an almost equivalent and much memory efficient mmdb format? MaxMind GeoLite2 has issue with CN IPs, and [maxminddb-rust](https://github.com/oschwald/maxminddb-rust)...

@bigplum Simon, Nice to see you here, :). @daogangtang I'm looking and trying Django-like lua frameworks which can use with ngx_lua, but no lucky to find one. I found [Tir](https://github.com/zedshaw/Tir)...

Nice work. 策略方面没有问题, 测试方面需要加强. 目前影响代理体验的服务器因素有三个: 延迟, 带宽,, 稳定性. 目前大部分有自动测试功能的软件都只是做了延迟测试, 但晚上网络高峰时期大部分代理都会出现间断性的丢包, 这时延迟测试反而成了弊端, 自动检测极易选择不稳定的低延迟代理. 目前只有 [shadowsocks-rust](https://github.com/shadowsocks/shadowsocks-rust/tree/master/crates/shadowsocks-service/src/local/loadbalancing) 同时检测延迟和稳定性, 实际使用下来体验也是最好的, @badO1a5A90 你可以移植下么.

> > Nice work. > > 策略方面没有问题, 测试方面需要加强. > > 目前影响代理体验的服务器因素有三个: 延迟, 带宽,, 稳定性. > > 目前大部分有自动测试功能的软件都只是做了延迟测试, 但晚上网络高峰时期大部分代理都会出现间断性的丢包, 这时延迟测试反而成了弊端, 自动检测极易选择不稳定的低延迟代理. > > 目前只有 [shadowsocks-rust](https://github.com/shadowsocks/shadowsocks-rust/tree/master/crates/shadowsocks-service/src/local/loadbalancing) 同时检测延迟和稳定性, 实际使用下来体验也是最好的, @badO1a5A90 你可以移植下么. > >...

> > 对于持续丢包的代理有效, 但实际情况是代理间歇性丢包呢? 唯一的解决方法是调低测试间隔. > > 确实如此, 目前调低测试间隔才会对网络的稳定性更敏感. > 另一种方式是加长测试的时间(即增加下载量的大小) > > > shadowsocks-rust 默认是通过计算代理前10分钟的综合评分(延迟和稳定性)连选择的. > > 这个其实算是具体的策略了, 他的稳定性是基于什么评估的? https://github.com/shadowsocks/shadowsocks-rust/blob/master/crates/shadowsocks-service/src/local/loadbalancing/server_stat.rs#L71 // Score = (norm_lat * 1.0 + prop_err *...

@badO1a5A90 https://github.com/v2fly/v2ray-core/pull/589 同样通过采样数量计算标准差的方式来选择线路.

其实redis-storage在redis基础上增加了leveldb的“客户端”功能,可以用来处理leveldb数据库,这样好理解些。

我用ngx_lua的redis库做了测试对比: redis http://198.74.110.195/t1 https://gist.github.com/aaecf819d4d8f539ab4b redis-storage http://198.74.110.195/t2 https://gist.github.com/ed560f14576810718c3d 不仅可以直观比较两者区别,还发现运行 rl 命令后,比较前后 ds_hxxx 命令的响应值,redis出现了错误。

恩,多个变量,还有支持forbid_action。 我是nginx新手,经常去你的blog的,http://www.pagefault.info ,希望多讲解些 nginx lua 方面的实例。