--
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openresty-en/2258c4a4-6f5e-48d4-822e-0028d00952aen%40googlegroups.com.
That’s quite a work you are up to.
Do you run standalone OpenResty or as multiple pods on k8s (for redundancy)?
Might be easier to replace OS file system based caching with REDIS one?
No idea if caching subsystem is pluggable, tho…
Good luck in any case!
On the 2nd thought, you can check headers sent to client and update REDIS, right?
You will know cache hit/miss status and time stamp.
You can lookup other metadata through the file system API, if needed?
To view this discussion on the web visit https://groups.google.com/d/msgid/openresty-en/99a0c9f9-fe3a-4ccb-88fa-e582ee383df7n%40googlegroups.com.
Take a look at this page. I would use header_filter_by_lua. You should be able to get both cache hit/miss status and some meta info.
--
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openresty-en/CAP%2BvvEu4VXuL_jAE8an9FVYE2fhuXt5FXwFAWPf3xHmwv3bNXw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openresty-en/CAH-v62F23YO4Pue%2BngJeET9jwGYKK8H6m4m8RNsK7TsyAo0GHw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openresty-en/CAH-v62EL0hGarPkPLQjRzMc_HZxvXvdQo4T612UJvwJQsCjbOA%40mail.gmail.com.
Jason,
>Yes this should be easy. Use proxy_cache as normal but send it through another port also on your nginx before going upstream.
Yep, should work too.
Tho, wouldn’t it result in cached content double buffering (sort of)?
Andrei,
Keep us posted on you progress, please?
Jason,
>Yes this should be easy. Use proxy_cache as normal but send it through another port also on your nginx before going upstream.
Yep, should work too.
Tho, wouldn’t it result in cached content double buffering (sort of)?
--On Monday, September 14, 2020 at 7:32:06 PM UTC-4 lag...@gmail.com wrote:Hello,Thanks for the tips. Would it be possible to use sr_cache similar to https://github.com/openresty/srcache-nginx-module#caching-with-redis, maintain the cache data in nginx vs redis and only leverage the sr_cache PUT to store the cache key and a few arbitrary headers?On Tue, Sep 15, 2020 at 2:21 AM Jason Godsey <ja...@godsey.net> wrote:Yes this should be easy. Use proxy_cache as normal but send it through another port also on your nginx before going upstream. In that location block, log the request being fetched as it was a miss by definition. No need to track headers unless you are trying to report on upstream cache availability.--On Mon, Sep 14, 2020 at 10:24 AM Andrei <lag...@gmail.com> wrote:Hello,Would it be possible to have a subrequest or something similar only add an entry in Redis when a new cache file is created? In short, I'm wondering if it's possible to basically track cache data using Redis.Thanks!
--
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openresty-en/CAP%2BvvEu4VXuL_jAE8an9FVYE2fhuXt5FXwFAWPf3xHmwv3bNXw%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/openresty-en/CAH-v62F23YO4Pue%2BngJeET9jwGYKK8H6m4m8RNsK7TsyAo0GHw%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "openresty-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openresty-en...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openresty-en/95198681-8822-403a-9e5e-aa39881020c0n%40googlegroups.com.