tempesta-tech / tempesta

All-in-one solution for high performance web content delivery and advanced protection against DDoS and web attacks
https://tempesta-tech.com/
GNU General Public License v2.0
621 stars 103 forks source link

Add static tracepoints #2118

Open const-t opened 6 months ago

const-t commented 6 months ago

Scope

Need to add static tracepoints to key parts of Tempesta FW, they are very helpful for performance analyzing. Now I can suggest following places: TLS handshake begin/end, request/response forwarding begin/end. During working on Tempesta's performance we can discover another appropriate places where we need to add trace point.

krizhanovsky commented 2 months ago

Reference Static Keys kernel documentation.

I think it does make sense to make at least some of T_DBG messages to switch on/off by the static keys, e.g. printing full HTTP headers. Switching on and off such logging might be extremely helpful for online debugging and security incidents handling.

Need to write a good wiki page. Also please create an appropriate test switching on/off tracing under load.