Hello!
On Fri, May 20, 2016 at 7:03 AM, RJoshi wrote:
> Regarding ngx.shared.dict and lrrcache, do I need to explicitly flush the
> expired record?
No, don't do that. Both of them have some kind of GC themselves.
> I see memory growing and not sure if this is the cause.
>
As long as it's not growing forever, then it's fine. Almost every GC
has some latency.
> Is there any setting where I can force purging/GC of these expired records
> immediatly?
>
You can use shdict:flush_expired() and collectgarbage("collect") to
force a full GC cycle for shdict and lrucache, respectively. But these
operations are usually very expensive and blocking, and they are not
usually necessary at all. So be careful.
Regards,
-agentzh