I have web-server (nginx) with 1 Gbps port. How can I limit total trafic (sum of input and output) of the server to 100 TB per month?
This question appears to be off-topic. The users who voted to close gave these specific reasons:
- "Questions must be relevant to professional system administration. Server Fault is a site dedicated to professionals; novice questions are off-topic. Please see the Help Center for more information on topicality. The best advice we can give you is to hire a professional to help you out." – Chris S
- "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Nathan C, dawud
The 319 came from Google. They assume 30.4 days in a month. 60% of the time it's right all the time...
Normally, transfer and storage sizes use binary prefixes (ie kb = 1024b; yes this is incorrectly using the 'kilo-' prefix, and should be using 'kibi-'... not getting into that). Line rates correctly use SI prefixes. With that in mind the calculation should be:
Using correct SI prefixes throughout:
Using all binary prefixes:
Check the fine print of your hosting company for which method they use.