Skip to content

Conversation

@oops10101
Copy link

A traffic control feature was needed in my case (the majority of cloud providers do not offer unlimited traffic and the usage can get out of hand pretty quickly and even lead to unwanted charges/invoices). These changes solve this problem by adding a Traffic control feature to the script. So far I did test ist in a couple of my environments, and it works, but feel free to only use the useful parts.

Summary of the changes/additions:

Traffic monitoring - Tracks cumulative upload/download by parsing Docker logs
Configurable limit - Set monthly GB cap during install or via conduit traffic limit
Automatic enforcement - Background monitor stops the container when the limit is exceeded
Persistent tracking - Usage survives container/server restarts via traffic.dat
Delta-based counting - Detects container restarts to avoid double-counting

Thank you.

@oops10101 oops10101 changed the title traffic control and limitation feature Traffic control feature Jan 28, 2026
@oops10101 oops10101 changed the title Traffic control feature Traffic control feature Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant