News for hackers. Stuff that matters.
Re:WireGuard is now in Linus' tree by matthewaveryusa on Wednesday January 29, 2020 @09:41AM (#22180950)
Can you talk a bit more about your setup with patroni, postgresql and glusterFS. Are you running postgres on a glusterfs? How well does that work?

From my experience file locking on a distributed filesystem is either not implemented correctly or has piss-poor performance -- and databases use them

Re:WireGuard is now in Linus' tree by adevx on Wednesday January 29, 2020 @11:25AM (#22182261)
I run a distributed Node.js Express app that has a media folder mounted (fuse) across all node instances. GlusterFS runs with replicated volumes. As GlusterFS is not super fast, I use an Nginx cache in front of all media files. (I should probably use a CDN) PostgreSQL does not run over GlusterFS for the reasons you mentioned. For ease of configuration each node has an HAProxy instance that knows where the master PostgreSQL instance lives. Patroni as well as the Node.js (typescript) app uses Consul for leader election.