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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Installation & Hosting

Grav on Kubernetes with NFS (EFS) persistent storage

Started by Stoyan Stoyanov 5 years ago · 0 replies · 797 views
5 years ago

Hi, I am trying to containerize an existing Grav installation and made quite good progress, but am running into a weird issue I hope someone on this forum can help with. Due to the nature of the new platform, I store the "pages" directory on a remote NFS (EFS) volume, which is mounted locally and symlinked into place. The problem with that is that "Init frontend routes" process takes several seconds to complete (see image below).

Screen Shot 2021-03-12 at 4.37.27 PM|690x148

If the pages directory is local, the issue goes away ("Init frontend routes" takes less than a 100ms), which depending on what the "Init frontend routes" process does may be expected.

Now, if I move all the directories out of pages (but still on the remote NFS storage) and symlink them inside the pages directory, it works as fast as when the pages subdirectories are local.

What does the Init frontend routes perform? Does it index all the files/directories under pages? Does this process fail silently if pages' subdirectories are symlinks and that maybe speeds up things? If so, is there any downside of such a failure to traverse the entire pages' subtree on "Init frontend routes"?

Thanks!

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by antoinep, 22 hours ago
7 73 4 hours ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 65 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 65 8 months ago
Installation & Hosting · by N, 12 months ago
3 76 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 65 1 year ago