-
Notifications
You must be signed in to change notification settings - Fork 217
Description
Add Security group filtering to DesiredLRP
Summary
Proposing to modify the DesiredLRPFilter and DesiredLRPs response to route-emitter to exclude Security group rules, and to modify the route emitter to only request the lighter version of the DesiredLRPs
Detailed description
In cases where there are a huge amount of security groups in a single space and multiple apps deployed in that space we notice that the network traffic consistently increases as more apps are added to a space.
After investigation we found that it was due to the large amount of security groups being sent by the bbs to components that do not need them.
Bellow are screenshots of Average network activity from AWS before and after the proposed fix
As you can see in the screenshots the network traffic grew by 500% over the course of the test from average of 15 MB to average of 90 MB over the course of 8 hours.
While filtering the security groups the increase was only 13% over the same time period.
Without security group filtering
With security group filtering
To reproduce
Create 3000 security group rules and apply them to a space
Deploy 50 applications with 100 routes each In that space
Monitor IaaS network traffic from the Diego-api and network traffic to the Diego-cells
Diego repository PR's
Additional Text Output, Screenshots, or contextual information (optional)
None.