Are you talking about <a href="http://wiki.nginx.org/HttpLuaModule">http://wiki.nginx.org/HttpLuaModule</a> ?<br>From what I've heard about ngx_lua people are using it in large production environments and I haven't heard them complain about GC pauses (at least not publicly on the mailing list). But that doesn't mean that Mike is wrong. The Lua GC is known to not scale that well when the number of objects increases. Whether you hit those limits can only be determined by actually trying :)<br>
<br><br>Dirk F.<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 8, 2012 at 10:25 PM, Dave Bailey <span dir="ltr"><<a href="mailto:dave@daveb.net" target="_blank">dave@daveb.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>I am thinking of embedding Lua into nginx for some things where I need a little more flexibility than my current module implementations allow. Before I invest the time into this, I was wondering if any of you have looked into the LuaJit GC latency. Mike Pall has a wiki page outlining his plans for a new GC in LuaJIT 3.0:<br>
<br><a href="http://wiki.luajit.org/New-Garbage-Collector" target="_blank">http://wiki.luajit.org/New-Garbage-Collector</a><br><br>It sounds like he is not too thrilled with the performance of the current (2.0) LuaJit GC, but I don't know if this means it's something I would need to worry about, or if the latency of the current GC is fine. Has anyone done any profiling to measure this on nginx under "real" load (e.g. 1k-2k req/s and 100-200+ Mbits/s bandwidth per worker, or somewhere in that range)? I like the flexibility that embedding LuaJit would give me, but can't really afford GC pauses unless I know the latency is going to stay below some reasonable value (maybe in the realm of 100 microseconds).<br>
<br>I am mainly interested in relatively simple Lua operations for now, such as customized URL routing and other things that one could expect to be done once per request. Any info would be much appreciated. Thanks-<br>
<br>
-dave<br><br>
<br>_______________________________________________<br>
nginx-devel mailing list<br>
<a href="mailto:nginx-devel@nginx.org">nginx-devel@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-devel" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-devel</a><br></blockquote></div><br></div>