kytos-ng / kytos

Kytos SDN Platform. Kytos is designed to be easy to install, use, develop and share Network Apps (NApps).
https://kytos-ng.github.io/
MIT License
2 stars 7 forks source link

Feat/rate limits 2 #453

Closed Ktmi closed 3 months ago

Ktmi commented 4 months ago

Closes #245

Summary

Adds in rate limits to core queues, and additionally allows setting conditions on those limits.

Local Tests

I've done some local testing. Using moving_window as the strategy results in the rate limit being effectively half of whatever you set it to. However, using fixed_window as the strategy results in the expected rate limit being achieved. To test the rate limit I use the methodology from here.

End-to-End Tests

Haven't run E2E tests yet, will be running them soon.

Ktmi commented 3 months ago

I think the main concerns with this have already been mapped out, and that this has been shown to not necessarily be the right path for rate limits moving forward.