Hi, On Tue, Jan 12, 2010 at 10:39:08AM +0100, Florian Haas wrote: > On 2010-01-12 10:21, Raoul Bhatia [IPAX] wrote: > > On 01/11/2010 06:06 PM, Dejan Muhamedagic wrote: > >> Hi, > >> > >> On Mon, Jan 11, 2010 at 02:26:31PM +0100, Raoul Bhatia [IPAX] wrote: > >>> hi, > >>> > >>> i am hitting a nofile ulimit (ulimit -n) for my apache server. > >>> adding a "ulimit -n 4096" in the apache ocf resolves this issue. > >>> > >>> what would be a more appropriate way to set specific ulimits for > >>> certain ocf scripts? > >> Why not simply set that for root at boot? (it rhymes too :) > > > > because i do not like the idea that each and every process gets > > elevated limits by default. > > > > i think that there *should* be a generic way to configure ulimits an a > > per resource basis. > > I'm confident Dejan would be happy to accept a patch in which you add > such a parameter to each resource agent where it makes sense.
I'm not so sure about it :) Indeed there should be a way to set system resource limits, but I don't know which would be the right way. If it should be configured on a resource level, then I'd rather have it as some meta attribute. Cheers, Dejan > Cheers, > Florian > > _______________________________________________________ > Linux-HA-Dev: [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev > Home Page: http://linux-ha.org/ _______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
