Anyway, ACK from me.
ulimit is less evil than sudo

On Sun, Jun 13, 2021, 4:25 PM Tim Düsterhus <t...@bastelstu.be> wrote:

> Ilya,
>
> On 6/13/21 3:18 PM, Илья Шипицин wrote:
> > It was in my to do list as well. I recall I ran tests without increasing
> > limits.
> >
> > Which test requires 50000 open files? Maybe the one currently disabled?
> >
> > Also, it does not like a good pattern to open so many files. If we really
> > use as many files, shouldn't we revisit that area?
>
> The issue is that HAProxy attempts to increase the soft ulimit to the
> hard ulimit during startup. This fails on macOS which has a soft limit
> of ~10k and a hard limit of ~500k, but does not allow to actually
> increase the soft limit without being root.
>
> That's why I'm updating the ulimit manually before starting HAProxy.
> This will update both the soft as well as the hard limit, resulting in
> HAProxy not needing to do anything, thus succeeding on macOS.
>
> I surely could've used an even smaller number, but 5k is something that
> worked just fine on my first attempt, so that one it is. In fact the
> limit I set is even lower than the default of macOS.
>
> Best regards
> Tim Düsterhus
>

Reply via email to