摘要: 参考:https://blog.csdn.net/qq_29677867/article/details/90114001 一、nginx 做静态服务器 location /static/ { root /data/db; } http://xx.xx.xx.xx:90/static/images/ 阅读全文
posted @ 2020-08-20 16:35 停不下的时光 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/qq_29677867/article/details/90114433 一、限流算法 1. 令牌桶算法 算法思想是: 令牌以固定速率产生,并缓存到令牌桶中 令牌桶放满时,多余的令牌被丢弃 请求要消耗等比例的令牌才能被处理 令牌不够时,请求被缓存 2 阅读全文
posted @ 2020-08-20 16:11 停不下的时光 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/qq_29677867/article/details/90114076 使用 nginx 做负载均衡的两大模块: upstream 定义负载节点池 location 模块进行 URL 匹配 proxy 模块发送请求给 upstream 定义的节点池 阅读全文
posted @ 2020-08-20 14:50 停不下的时光 阅读(176) 评论(0) 推荐(0) 编辑