Closed skypodolsky closed 1 year ago
That said, why is UDP used here? Is there a scenario where we need to run the driver on one host and collect metrics on another?
We might need some proxy in the future (this utility was planned as a proxy initially), so I decided to lay some foundation for that 🙂
This commit introduces the console debug utility for the elastio-snap driver. The design is the following:
nl_debug
(debugging utility)The events are sent as multicast messages, so potential packet drops are possible. All messages have sequence numbers and
nl_debug
detects if any packet drops took place. If yes, it specifies the amount of missed packets. Despite the drops are possible, practically, they don't occur.The utility supports different filtering that simplifies debugging:
The Netlink part is not compiled by default, so there is a 0% chance it can degrade the driver performance. A special flag should be set manually to include it:
sudo make NETLINK_DEBUG=y
Closes #272