Comments (4)
WithCPUThreshold?
from aegis.
WithCPUThreshold?
类似于 WithCPUQuota 吧,现在是可以获取到真实的CPU使用情况,比如当前使用了25%,但是无法获取实际容器能使用的最大值,比如当前检测到CPU使用了25%,但是实际容器只能使用50%,那么这个25%对容器来说就是50%了。
具体就是通过 cgroup 获取 quota 这段代码,无法获取到真实的 quota,会以 CPU 核数作为 quota ╮(╯▽╰)╭
from aegis.
WithCPUThreshold?
类似于 WithCPUQuota 吧,现在是可以获取到真实的CPU使用情况,比如当前使用了25%,但是无法获取实际容器能使用的值,比如当前检测到CPU使用了25%,但是实际容器只能使用50%,那么这个25%整体就是50%了
那你直接使用WithCPUThreshold修改就好了呀
from aegis.
WithCPUThreshold?
类似于 WithCPUQuota 吧,现在是可以获取到真实的CPU使用情况,比如当前使用了25%,但是无法获取实际容器能使用的值,比如当前检测到CPU使用了25%,但是实际容器只能使用50%,那么这个25%整体就是50%了
那你直接使用WithCPUThreshold修改就好了呀
诶,好像可以,曲线救国也不是不行,但是总感觉不科学,属于是治标不治本了,还是加个 WithCPUQuota 比较合理。
from aegis.
Related Issues (11)
- [BUG] Invalid number of arguments?
- lastAppendTime设置可能会延迟 HOT 1
- bbr限流实现 maxInFlight 方法可能有误 HOT 5
- window.Bucket为什么不直接使用数值类型统计 HOT 4
- minRT in bbr may be wrong HOT 1
- Limiter 接口 Allow() 方法是否考虑传入 ctx 和 req HOT 4
- 直接用CPU的值做判断
- pointer arithmetic result points to invalid allocation in the murmur
- bbr 限流算法部分为什么没有排空逻辑? HOT 1
- breaker&limiter api definition
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 aegis.