But that does not tell me bandwidth used, clients served.
If i enable Snowflake logging i guess there is no logging only of summary like once per day one line of bandwidth statistics. On Debian kind of Linux, should I create somehow the tmpfs kind of mount point and somehow redirect Snowflake logging to a file that i will always create at boot etc. which commands to execute? I wish Snowflake devs allow customized logging or even basic logging by default (like one line per day summarizing stats of the app).
Actually, there is a summary now.
I’m running Snowflake standalone with “-log” to a file and I have these cool summary:
2023/02/09 13:30:55 In the last 1h0m0s, there were 354 connections. Traffic Relayed ↑ X KB, ↓ Y KB.
2023/02/09 14:30:55 In the last 1h0m0s, there were 346 connections. Traffic Relayed ↑ X KB, ↓ Y KB.
2023/02/09 15:30:55 In the last 1h0m0s, there were 379 connections. Traffic Relayed ↑ X KB, ↓ Y KB.
(Redacted the amount of traffic relayed.)
In addition to that, I also installed vnstat package, because I wanted to compare how much bandwidth a standalone proxy is consuming vs an obsf4 bridge.
If you are only logging summaries a couple times per day non-verbosely you probably don’t need to worry about over-shooting the write cycles on your flash drive. If you’d still rather use a tmpfs take a look at mount(8) manpage and/or simply run ‘mount -t tmpfs’ to see what tmpfs mounts you already have and use those as a starting point; Debian systems usually have several.