Re: Seamless reloads: file descriptors utilization in LUA

2019-01-21 Thread William Lallemand
Hello, On Mon, Jan 21, 2019 at 06:53:12AM +0300, Wert wrote: > Hi, > > I'm talking only about performance ways) > > About socket. > I use UDP for sending, there are no reasons for delays. > However, my bad - I misunderstood some FDs in "lsof". It is not related to > that UDP-sending, that is

Re: Seamless reloads: file descriptors utilization in LUA

2019-01-20 Thread Wert
Hi, I'm talking only about performance ways) About socket. I use UDP for sending, there are no reasons for delays. However, my bad - I misunderstood some FDs in "lsof". It is not related to that UDP-sending, that is OK. About file system. I open file from disk for GeoIP, but finally it cached

Re: Seamless reloads: file descriptors utilization in LUA

2019-01-19 Thread Thierry Fournier
Hi, First, using: - fd for file system access - fd for tcp/udp connections throught Lua Socket are a bad ideas because these actions block HAProxy. While the fd/socket is waiting for data, HAProxy does nothing, and it not process any other connections. With other words: If you tcp

Re: Seamless reloads: file descriptors utilization in LUA

2019-01-16 Thread Wert
> CC'ing Thierry: as this has come on this discourse, can we have your > opinion about the FD's in LUA and howto best handle ulimit? > Apologies for the duplicate mail. > Thanks, > Lukas 1. FD I don't know your architecture too much. From user-side I just see no reasons to keep FD that

Re: Seamless reloads: file descriptors utilization in LUA

2019-01-02 Thread Lukas Tribus
Hello, On Wed, 2 Jan 2019 at 14:54, Lukas Tribus wrote: > > Hello, > > On Sun, 15 Jul 2018 at 07:19, Wert wrote: > > > > Hello, > > > > 1. When in LUA > > - I open some socket and left it unclosed (even UDP-sender socket) > > - Or open some files (for example, I use LUA-maxmind lib that opens

Re: Seamless reloads: file descriptors utilization in LUA

2019-01-02 Thread Lukas Tribus
Hello, On Sun, 15 Jul 2018 at 07:19, Wert wrote: > > Hello, > > 1. When in LUA > - I open some socket and left it unclosed (even UDP-sender socket) > - Or open some files (for example, I use LUA-maxmind lib that opens GEO-DB > file) > > It is never destroyed. With each reload amount of used

Seamless reloads: file descriptors utilization in LUA

2018-07-14 Thread Wert
Hello, 1. When in LUA - I open some socket and left it unclosed (even UDP-sender socket) - Or open some files (for example, I use LUA-maxmind lib that opens GEO-DB file) It is never destroyed. With each reload amount of used descriptors grows and finally reaches limits. According to "lsof", all