OpenVZ Forum


Home » General » Support » Minimum UBC Workable Settings For Templates
Minimum UBC Workable Settings For Templates [message #44464] Fri, 09 December 2011 09:31 Go to next message
gabrielharrison is currently offline  gabrielharrison
Messages: 2
Registered: December 2011
Junior Member
Hi,

There is lots of information available for how to split resources between containers for a given hardware node and how to use user_beancounter to monitor requirements but I can't find much about recommended configs for different types of containers.

I've just tried to set up Apache/MySQL/PHP on a external hosted VZ for which the UBC values can't be changed and am getting lots of kmemsize failcounts. If I reduce the number of Apache processes I then get lots of tcpsndbuf failcounts.

Does anyone have any recommendations for what is feasable for given UBC values? If Apache/MySQL/PHP is not possible on the VZ I've got I'll give up now and buy one elsewhere.

I've included my user_beancounters output below.

Thanks,

Gabriel

---

Version: 2.5
resource held maxheld barrier limit failcnt
kmemsize 5131983 5175590 31457280 34603008 1130
lockedpages 0 0 512 512 0
privvmpages 54580 54687 1048576 1153433 0
shmpages 658 658 32768 32768 0
dummy 0 0 9223372036854775807 9223372036854775807 0
numproc 34 34 128 128 0
physpages 16527 16505 2147483647 2147483647 0
vmguarpages 0 0 262144 2147483647 0
oomguarpages 16527 16505 9223372036854775807 2147483647 0
numtcpsock 7 7 720 720 0
numflock 4 4 376 413 0
numpty 1 1 32 32 0
numsiginfo 0 1 512 512 0
tcpsndbuf 122528 122528 3440640 5406720 0
tcprcvbuf 114688 114688 3440640 5406720 0
othersockbuf 6984 6984 2252160 4194304 0
dgramrcvbuf 0 0 524288 576716 0
numothersock 5 5 720 720 0
dcachesize 376160 379916 5242880 5767168 0
numfile 1490 1494 8192 8192 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
numiptent 18 18 200 205 0
Re: Minimum UBC Workable Settings For Templates [message #44692 is a reply to message #44464] Thu, 22 December 2011 12:54 Go to previous messageGo to next message
kir is currently offline  kir
Messages: 1645
Registered: August 2005
Location: Moscow, Russia
Senior Member

http://wiki.openvz.org/Resource_shortage
or yet better
http://wiki.openvz.org/VSwap


Kir Kolyshkin
http://static.openvz.org/userbars/openvz-developer.png
Re: Minimum UBC Workable Settings For Templates [message #44698 is a reply to message #44692] Thu, 22 December 2011 17:00 Go to previous messageGo to next message
gabrielharrison is currently offline  gabrielharrison
Messages: 2
Registered: December 2011
Junior Member
Hi,

I was looking recommended mimimum for typical templates.

For example a LAMP template has proved to be too much for the 64bit VZs with only 30Mb of kmemsize at 1and1.co.uk but there was no way to know this up front.

I've now emailed several hosting providers to ask for their UBC values but without recommended minimums its dificult to choose a provider.

Gabriel
Re: Minimum UBC Workable Settings For Templates [message #44701 is a reply to message #44464] Thu, 22 December 2011 22:36 Go to previous message
Ales is currently offline  Ales
Messages: 330
Registered: May 2009
Senior Member
I think what you're asking is impossible to specify. You can take a template, happily run Apache with a small static site and have it work well for the next five years. And you could take the same template, start up Apache & Tomcat and max resources out just by starting the services.

I guess one could only come up with some general numbers trough methodical testing, ie. one could specify that one needs at least this much resources to:

- start up apache with php and a mysql server on SL 6 stock template without any visitors/users
- start up the same config with stock Wordpress added, without any visitors
- start up the same config and serve 10 concurrent Wordpress visitors
- etc. etc.

But than you take that stock Wordpress, install a custom theme, a plugin or two, add one or two .js scripts and... kaboom. Your resource needs are completely different.

Same goes for OS settings. Give me a stock openvz SL6 template to start with and about 20 seconds and a couple of conf file edits later, my VPS will use a completely different amount of resources than it used to.

So, my advice would be - choose a provider that can offer you good support, clear line of resource upgrades if your site grows, etc. That's pretty much all you can do.

Then set everything up as good as you can, test your OS template and code and see how much resources you really need.

[Updated on: Thu, 22 December 2011 22:38]

Report message to a moderator

Previous Topic: OpenVAS Within Container
Next Topic: Network issues
Goto Forum:
  


Current Time: Mon Nov 04 07:34:55 GMT 2024

Total time taken to generate the page: 0.03484 seconds