Netflix / concurrency-limits

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Queuesize problem in Gradient2Limit

Jon-Gaara opened this issue · comments

Why does queuesize in Gradient2Limit always return 4 instead of using the square root as written in the "Performance Under Load" article? What's the purpose of doing this?

1694511328907

That paper describes our experience with the original gradient limit. The gradient2 algorithm converges faster than gradient and benefits less from the quick growth. Using a fixed queueSize is simpler so we've left that as the default.

It remains possible to configure the limiter to use the square root function for queue size by passing it via the builder.

thanks.