Opened 12 years ago

Closed 12 years ago

#2 closed enhancement (fixed)

Upgrade open file limits in vserver context

Reported by: Vincent Caron Owned by: Lucas Bonnet
Priority: minor Component: RoR Farm
Keywords: Cc:

Description

A client reached a default of 256 open files in a vserver VM context. We can upgrade this limit to 1024 (done for this very client). This still looks a good number if we plan to maintain roughly 16 VMs per physical server. To be applied where suitable:

Other VMs will catch up later, no need to explicitly reboot them all now.

Change History (3)

comment:1 Changed 12 years ago by Lucas Bonnet

Doc: http://linux-vserver.org/Memory_Limits

  • to set it dynamically to all running vservers, one can loop over vserver ids and do vlimit -c <ID> --nofile 1024 and also edit the nofile in /etc/vervsers/<NAME>/rlimits/nofile
  • to set it for newly created VMs, I don't see how to set a default value, so I think that echoing 1024 in rlimits/nofile before starting the VM will do.

comment:2 Changed 12 years ago by Lucas Bonnet

Update, the limit is actually already defined in ror-farm-add, so it's just a matter of updating it to 1024.

comment:3 Changed 12 years ago by lucas

Resolution: fixed
Status: newclosed

(In [62]) ror-farm-add: increase openfd and nofile to 1024 (closes #2)

Note: See TracTickets for help on using tickets.