Enabling logging on gateway firewall rules in NSX Data Center edge nodes can be beneficial for monitoring and troubleshooting network traffic. However, enabling logging on many or all rules can potentially impact the performance of the edge nodes due to the additional overhead introduced by increased CPU usage, memory consumption, and disk I/O. It can also cause NSX services on the edge to go down or packet loss to occur in the datapath. This article addresses common concerns and provides guidance on the potential impacts and best practices for enabling logging on gateway firewall rules.
The potential performance impact arises from the additional processing required to log each traffic event that matches a firewall rule. When logging is enabled for a large number of rules, especially in environments with high traffic volume, the edge nodes may experience increased CPU and memory usage, as well as increased disk I/O, which could affect overall system performance.
get dataplane
commands at the admin console of an edge to review current usage statistics.
get dataplane cpu stats
shows the current usage in the dataplace of CPU for network packet queues.get dataplane cpu stats verbose
adds additional information if more detail is needed.get dataplane perfstats <interval in seconds>
will capture multiple data points over a given interval and display them on screen.