Skip to content

Instantly share code, notes, and snippets.

@PharkMillups
Created July 28, 2010 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PharkMillups/495990 to your computer and use it in GitHub Desktop.
Save PharkMillups/495990 to your computer and use it in GitHub Desktop.
<roidrage> anyone ever put a reverse proxy in front of riak?
<technoweenie> some people in a HN thread mentioned throwing nginx in front
of it for auth purposes
<guestuser> i currently am transferring data from tokyo to riak and am using
a patched nginx to distribute writes
<justinsheehy> I know of at least one Varnish-fronted instance.
I don't have access to it so can't give details, but it exists.
<copious> we use varnish to route PUT/GET requests for our data storage,
VCL is extremely extensible for that type of thing. Easier to write that than to patch nginx.
<roidrage> what does varnish cache on with riak? i've been wondering how to put a cache in
front of couchdb and figured riak might have similar ways/problems/solutions. i'd expected
to be able to cache on the etag but varnish doesn't seem to support that unfortunately,
neither does nginx as it seems
<enquora> roidrage: I've wondered the same thing, although it looks as though I can
avoid a proxy completely now so it's become less of an issue. Can varnish not do this
with VCL?
<enquora> what I meant was, using an inline c function?
<enquora> using it for his hosted couchdb operation
<enquora> AFAIK
<roidrage> hum, he didn't mention it when i brought it up over there.
<roidrage> enquora: that depends on your viewpoint. varnish can handle clients with the
etag, but not backends
<enquora> hmmm
<roidrage> i don't know, haven't looked that deep into it, i was just mind-blown
it's not possible yet
<enquora> there's another reverse-proxy that kocolosk on #couchdb recommends,
sorry, forgotten the name. Documentation is weird, but he swears by it.
<enquora> using it for his hosted couchdb operation
<enquora> AFAIK
<roidrage> hum, he didn't mention it when i brought it up over there.
<drev1> roidrage: can you pass Etags through Varnish directly to Riak?
<enquora> roidrage: I just asked him, but no response. I'll see if I can dig it up
in my transcript logs.
<roidrage> drev1: that i don't know.
<roidrage> i was just curious if people have dealt with this kind of stuff. and
was sort of disappointed today that varnish doesn't seem to handle backends based on etag
<enquora> roidrage: it's HAProxy. http://haproxy.1wt.eu/
<seancribbs> HAProxy is just a reverse-proxy/load-balancer. it doesn't cache
<roidrage> yeah exactly. it's super-awesome though :)
<seancribbs> indeed
<enquora> this is why we're moving as quickly as possible to a no-middleware environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment