Hello,
I would like to limit the Bandwidth a client gets for hes Game Servers instead of limiting slots,
Could this be added to cPGS?.
Thanks.
Hello,
I would like to limit the Bandwidth a client gets for hes Game Servers instead of limiting slots,
Could this be added to cPGS?.
Thanks.
I was thinking something allong the same lines earlier aswell... Although my suggestion may be taking it too far.. Limiting a certain amount of Memmory per reseller account, then limiting a certain amount of memmory for user accounts aswell
I dont even think it would be possible for cPGS to monitor the bandwidth
I like the idea about limiting by memory![]()
Well does the Bandwidth used on cPGS Game servers count towards the particular account its used on if that account has a Bandwidth limit?,
And im sure they can develope a API with the WHM Bandwidth monitor etc.
Jordanlw - If cPGS ran only on cPanel machines, then there would be a chance I could use iptables to monitor bandwidth usage like WHM does. Unfortunately, the majority of games are run on 'remote' servers; these remote servers can run pretty much any linux distro and do not require iptables support, kernel module support. The bandwidth used on game servers is also so minimal that almost no game server provider even counts it as a metric for charging for game servers, it's all about the game+slots+mods from what I've seen so far. I could probably make it so it was monitored if it was available, but that's a lot of time for a feature that isn't 100% needed, more like something better for a slow week on cPGS. One option might be to use libpcap to monitor all relevant traffic or something like Darkstat http://dmr.ath.cx/net/darkstat/ , however that's quite involved.
The memory limiting yall are talking about would require a VPS level of control of resources, meaning custom kernels and kernel modules. I could try it with bash ulimit's but that's terribly hackish. What I could do is make a cron script to run every N minutes and compare the memory usage of a game to what they are 'allowed' and report it to some email address and/or to outright kill the process.
I think it'd be cool to have both of these as features, but the practicality of them with current (generic) OS resource management isn't too hot. I'll keep my eyes and ears open on ways to do these reliably across the board; the more options the better.
So you might consider having bandwidth limitations for Game servers hosted on cPanel servers?
Jordanlw - Yeh, it's not outside the realm of possibility by any means, but honestly it probably won't show up in a new release for quote some time. It really boils down to user demand; what the majority wants weighed against what is possible and realistic. What sort of action(s) would you want it to take when it found a user's game install using more bandwidth than it's allowed ? Notification ? Notification and server stopped and disabled from starting ? Also, are you thinking in like a monthly allotment of bandwidth or a max rate, like 500KB/s at any given time ?