Skip to content

Commit

Permalink
Update README.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
mazzzystar authored Oct 20, 2016
1 parent 3df57e7 commit 63084e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* 存入数据库的ip每天也要经过测试,存在剔除、评分机制,多次不合格的ip将被删除,每个ip都被评分,我们最终可以按得分排名获得稳定、低响应时间的优质ip。

存储如下图所示:
![](ip.png)
![ip在数据库中的存储结构](https://github.com/fancoo/Proxy/blob/master/images/data.png)


### 参数
Expand Down Expand Up @@ -56,4 +56,4 @@ CHECK_TIME_INTERVAL = 12*3600 # check per half day.

* 数据库中ip评价准则
* 检测过程中累计超时次数>```USELESS_TIME```&&成功率<```SUCCESS_RATE```就被剔除。
```score = (success_rate + test_times / 500) / avg_response_time```, 原来的考虑是```score = success_rate / avg_response_time```, 即:评分=成功率/平均响应时间, 考虑到检测合格过100次的老ip比新ip更有价值,检测次数也被引入评分。
```score = (success_rate + test_times / 500) / avg_response_time```, 原来的考虑是```score = success_rate / avg_response_time```, 即:评分=成功率/平均响应时间, 考虑到检测合格过100次的老ip比新ip更有价值,检测次数也被引入评分。

0 comments on commit 63084e9

Please sign in to comment.