Comments (2)
Sentinel 指标统计的滑动窗口中每个小窗口的初始时间都是经过对齐的(间隔默认 500 ms),而不是当前时间,因此会存在时间偏差导致多通过的情况。
比如流量的时间范围(取后四位):1258 - 2258
理想的情况是:
瞬间20个请求 这段时间无法通过
↓ ↓
| o | |
1258 1758 2258 (windowStart)
但实际的窗口是:
瞬间20个请求 这段时间无法通过 第一个窗口过期,因此又可以进入 20 个
↓ ↓ ↓
| o | | o |
1000 1500 2000 2500 (windowStart)
from sentinel.
感谢回答。
我理解了,然后今天看了下这一块的代码,sentinel是以500ms为一个时间监控窗口,所以我问题中所描述的2倍其实也不准确,只是因为我测试的时间少,使得增加的起始时间片段和结束时间片段的qps刚好和qps一样。。
from sentinel.
Related Issues (20)
- 如何在springcloud3中开启openfeign对sentinel的支持 HOT 2
- Use a fixed metric name for sentinel prometheus exporter HOT 1
- 替换ThreadLocal<SimpleDateFormat>以适配Java21虚拟线程 HOT 1
- [BUG] HOT 1
- [WeeklyReport] Weekly report for Sentinel 1/29/2024 to 2/5/2024
- [BUG] 容器ip和宿主机ip怎么指定 HOT 1
- [BUG] NPE causes SystemRule cannot effect HOT 1
- [BUG] 使用的是1.8版本,在在sentinel界面左侧没有看到应用的名称,而是类似uuid的名称
- [BUG] 实时监控图中【拒绝QPS】展示错误!
- [BUG] 集群流控页面token-server不能正确显示 HOT 2
- 如何批量设置熔断规则 HOT 2
- sentinel控制台没有应用信息 HOT 10
- 为什么我的控制台机器列表的ip是错误的
- Sentinel规则持久化到Nacos配置中心报错 HOT 3
- [BUG] 熔断后无法恢复
- [BUG] passDefaultLocalCheck pass request more than limit HOT 2
- [BUG] feign.sentinel.enable=true Error HOT 1
- spring.cloud.sentinel.transport.client-ip 真是一个糟糕的配置
- 希望可以给一个sentinel1.8.2版本接入nacos数据源的教程谢谢 HOT 1
- 如何控制不在服务器上生成sentinel的文件(csp路径下的那些文件) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentinel.