Bludit multi-server

Post Reply
bozodev
Jr. Bludit
Posts: 4
Joined: Sun May 12, 2019 1:03 am

Sun May 12, 2019 1:13 am

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
Checkout Pi Lab (Powered by Bludit & Raspberry Pi)
User avatar
Edi
Site Admin
Posts: 1471
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Contact:

Mon May 13, 2019 10:56 am

Thank you for sharing. An interesting project!
Planet Bludit, Tipps, Snippets und nützliche Links. - Newsletter, Informationen zu Bludit (auf Deutsch).
bozodev
Jr. Bludit
Posts: 4
Joined: Sun May 12, 2019 1:03 am

Mon May 13, 2019 9:58 pm

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.
Checkout Pi Lab (Powered by Bludit & Raspberry Pi)
bozodev
Jr. Bludit
Posts: 4
Joined: Sun May 12, 2019 1:03 am

Wed May 15, 2019 7:48 pm

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.
Checkout Pi Lab (Powered by Bludit & Raspberry Pi)
User avatar
diego
Site Admin
Posts: 688
Joined: Sat May 16, 2015 2:53 pm
Contact:

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
bozodev
Jr. Bludit
Posts: 4
Joined: Sun May 12, 2019 1:03 am

Sat May 18, 2019 5:43 pm

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.
Checkout Pi Lab (Powered by Bludit & Raspberry Pi)
Post Reply