New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Limiting BW in a VPS
inthecloudblog
Member
in Help
Hi guys I have a VPS ( I do not own the server nor own the root access to it) and I need to limit the bandwidth of it per day. I've asked and googled and didn't find anything.
Can this be done with some linux tool ?
Comments
I don't see how you could limit it when you don't have any control over it.
Your systems administrator can do it for you, why do you not have root access.
I think he's referring to the host server.
Do you mean the speed or the transfer? Both are possible..
Speed: http://www.cyberciti.biz/faq/linux-change-the-speed-and-duplex-settings-of-an-ethernet-card/
Transfer could be done with a cron to check the usage from ifconfig (generally accurate) and stop/start the device.
I get the feeling it's worth getting a VPS with more bandwidth though.
that's right!
They do offer 1gbit "unmetered" but would cap you to 10 mbits if you exceed the 60 mbits barrier for some consecutive days.
Your solution almost hit the nail on the head. What I need is actually the speed per day and make some basic math and cut down resources if that exceeds their policy.
Concerning my needs I can stay below that but I'm not sure how to implement it. Will read your link and send it to my coder to make some adhoc solution.
Speed per day? You can do bandwidth per second. Other limits are simply contractual and more or less automatically enforced.
@Clouvider @jhadley
this is what contabo says:
In that case you can limit your outgoing speed to 60Mbps tops.
https://www.iplocation.net/traffic-control
Or Google Linux traffic shaping
if you are using a vps panel like solusvm or virtulizor then it is possible.