Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Best practices for running behind a load balancer

Started by Muut Archive 9 years ago · 2 replies · 519 views
9 years ago

Are there guidelines on how to run Grav behind a load balancer? I don't mind if the Admin doesn't have redundancy, but the content generated for users visiting to my site needs more resiliency than a single machine can provide.

Could we do something as simple as rsync a set of directories on a machine running the Admin to set of machines running core?

Also, are there caveats for running Grav core behind a load balancer? I ran across an issue on the Grav git page stating that sticky sessions are necessary to avoid cache conflicts between servers. Has anyone run into any other issues?

9 years ago

As Grav is file based, then as long as the files are the same on both machines, you should have no problems. If there's 'dynamic' stuff going on that would mean data is going to be modified by the end users, then you will need to have some sort of rysnc going on to ensure the files stay in sync. That's pretty much it.

9 years ago

That's great to hear, man. I'm planning on a one way sync of the grav/user directory from an admin machine to multiple core machines.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1333 9 years ago
Archive · by Muut Archive, 9 years ago
2 924 9 years ago
Archive · by Muut Archive, 9 years ago
2 4055 9 years ago
Archive · by Muut Archive, 9 years ago
1 2933 9 years ago
Archive · by Muut Archive, 9 years ago
3 1110 9 years ago