alibaba / alibaba/Sentinel

api gateway的模式集群下流控和sentinel-dashboard不准确的讨论

Open
#1,304 3 comments 0 reactions 0 assignees View on GitHub
kind/discussion
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

## Issue Description

Type: *feature request*

### Describe what happened (or what feature you want)
我使用多台集群部署了sentinel的gateway模式,然后前面加了一层LB,当流量打入的时候是负载均衡随机到不同的gateway集群,gatewa的配置是落地到nacos,虽然这种模式可以水平扩展增加gateway的抗压能力,但是对于的流控规则就并不是精确的了,假设流控规则我配置了1秒一次,如果我有3台机器,那每台的限制都是1秒一次,但是由于是lb随机到每台机,这样其实就会变成了1秒3次,而且对于的sentinel-dashboard显示的qps也是随机到每台机器的mertics,并不是总的汇总,这块如果要做集群,有什么好的方案可以精确这块数据吗?

### Describe what you expected to happen

api gateway集群模式,如果是单节点当量很大的时候没有办法支持大业务,多机部署是很必要的,想要解决集群模式下流控规则精确限制和sentinel-dashboard后台qps汇总显示

Contributor guide

Open the contributing guide

Research direction

Start with the API gateway cluster flow-control path and sentinel-dashboard metrics handling, then trace how rules stored in Nacos are applied across gateways behind the load balancer. Define how rate limits should be coordinated cluster-wide and how dashboard QPS should be aggregated, since the issue names no files or tests and requires a design decision.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.