haproxy three parallel requests, return first one that isn't 404?
I have three servers storing files. One stores the most common ones, another the "not so common" ones, and finally another storing stuff that's mostly never accessed. Right now i have them under subdomains (like a-cdn.domain.me, b-cdn.domain.me etc), and when somebody requests something on a-cdn if it's missing it's redirected to b, and then eventually to c.
I'd like to speed this up since it gets really slow with requests to b or c, and i was thinking about doing the three "a, b, c" requests in parallel, and then return the first non-4xx ones. Has anybody done a setup like this, or similar?
I also looked for distributed filesystems, and saw seaweedfs, but apparently it doesn't let you easily move files between servers, and when files have to get requested it's still from separate servers (there isn't a master "gateway" you can request files from). This would be my go-to path to be honest, if there was a way to fuse mount everything.