Page 1 of 1

Bludit multi-server

Posted: Sun May 12, 2019 1:13 am
by bozodev
I am new to Bludit.

First I want to say thank you to anyone involved in putting this together. It is truly amazing.

I have been looking for the perfect Flat File CMS to run on my Raspberry Pi cluster. I wanted something that was lean but powerful. Bludit is exactly it.

The hardest thing to figure out for my use case was getting it to work across multiple servers. I have setup scripts on my "dev" server that basically syncs the site to each of the other "nodes". It is working brilliantly. Since the "deploy" scripting actually puts the "dev" node into the load balancing rotation I did have to write another script to go into what I call "admin" mode so I put just the "dev" node into rotation then I can login and make edits. Then I deploy and voila!

If you would like to check it out: https://pilab.dev

I am using my customized version of BLEKATHLON and have started writing plugins. So far I have created one that shows the current node in the footer.

Thanks

Re: Bludit multi-server

Posted: Mon May 13, 2019 10:56 am
by Edi
Thank you for sharing. An interesting project!

Re: Bludit multi-server

Posted: Mon May 13, 2019 9:58 pm
by bozodev
Edi wrote:
Mon May 13, 2019 10:56 am
Thank you for sharing. An interesting project!
Thanks! I am working on a more sophisticated deploy process to leverage tmpfs and lsyncd.

Re: Bludit multi-server

Posted: Wed May 15, 2019 7:48 pm
by bozodev
I have re-thought my deployment process. Now I have a setup that uses a different site for the "source of truth" and then the ci/cd process promotes to the nodes from there.

Works really well.

I would love it if bludit somehow had some way to work more natively with a load balanced setup. The main issue I have is with login sessions.

Re: Bludit multi-server

Posted: Sat May 18, 2019 1:55 pm
by diego
Hi,
really nice project, also I saw in the footer of the site which node answer.

What you need for the login is in the load balancer use sticky session and for the storage a simple solution could be NFS to share the files system and a little more complex do a GlusterFS, maybe you can dedicate one node for storage.

Regards

Re: Bludit multi-server

Posted: Sat May 18, 2019 5:43 pm
by bozodev
diego wrote:
Sat May 18, 2019 1:55 pm
Hi,
really nice project, also I saw in the footer of the site which node answer.

What you need for the login is in the load balancer use sticky session and for the storage a simple solution could be NFS to share the files system and a little more complex do a GlusterFS, maybe you can dedicate one node for storage.

Regards
Thank you!

I haven't tested the sticky session on my lb yet but I have considered that. I just want to be sure that unauthenticated visitors aren't stuck on the same node.

I am very interested in the setting up a cluster fs. I have not wanted to use a simple NFS since that could be a bottle neck.

This project is a place for me to learn and share so it's a good place to try new things.