Subserver not disabled when over quota

Today one of the virtual server hosted on virtualmin reached it's bandwidth quota.

The main server, MySQL login, etc got disabled perfectly, but the sub server running under the main server didn't.

Is this a bug or just a design flaw?

Status: 
Closed (fixed)

Comments

Sounds like a design flaw. I presume you are wanting the sub-server's websites to be disabled too?

Hi Jamie,

Yes, that would be nice.. It was actually one of the sub servers causing the huge bandwidth use, and leaving that server enable would defeat the purpose of automatically disabling servers..

Thanks, Ivor

ronald's picture
Submitted by ronald on Tue, 06/16/2009 - 11:26 Pro Licensee

there is an option somewhere to have BW on aliases count to main server. I forgot where it was, but shouldn't sub-server be there as well?

Hi Ronald,

It's not counting that's the issue (bandwidth is counted fine, both accumulative for the main server and per-sub server..), it's the automatic disabling that doesn't occur for sub servers.

The next Virtualmin release will disable the top-level server and all sub-servers when the total bandwidth limit is exceeded..

ronald's picture
Submitted by ronald on Tue, 06/16/2009 - 17:46 Pro Licensee

that would not be happening by default I hope? The traffic generated by a sub-server will not count automatically to the main domain and disable the whole lot...

Let's say I give away small packages to let clients get acquainted to my services: client1.example.com, client2.example.com etc etc.

Now one of those clients exceeded the 1 GB traffic limit. Then all domains would stop working..including my own example.com which has 5GB traffic?

It should be an option in the server template or account plan somewhere instead of default behaviour...or am I misreading?

In Virtualmin, each top-level virtual server has a bandwidth limit which applies to it and all sub-servers. These are all managed under a single login, and will typically be owned by a single customer. So if the total bandwidth limit is exceeded, all will get disabled, as there is no concept of separate per-sub-server limits.

However, this is quite separate from DNS sub-domains. So you could have Virtualmin top-level servers client1.example.com and client2.example.com, and as long as they have separate administration logins and bandwidth limits, one being disabled will no effect the other.

ronald's picture
Submitted by ronald on Wed, 06/17/2009 - 10:17 Pro Licensee

This went through my head as well + that virtualmin "doesn't care" about names= result not sure. thanks for making it clear. This will work for me too. :)

Automatically closed -- issue fixed for 2 weeks with no activity.