【问题标题】:Slots in the loadbalancer algorithm?负载均衡器算法中的插槽?
【发布时间】:2018-08-17 22:27:48
【问题描述】:

通过 `kong' api gateway 的文档,在上游服务器中有一个叫做槽的概念。我没明白那个意思。请分享这方面的知识。

【问题讨论】:

    标签: load-balancing kong


    【解决方案1】:

    我看了一下Kong源代码,这是相对于外部resty lib的:

    https://github.com/Kong/lua-resty-dns-client/blob/c25166d25bb2b5cbdc2e3fa9cb4d5d510f69a2c1/src/resty/dns/balancer/round_robin.lua#L86

    几个槽被创建成一个环,并基于分配在槽上的权重(~10000 默认值)。 然后增加一个指针以找到要使用的对等点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-08-19
      • 2021-12-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多