Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning of requirements to build Plone #1558

Merged
merged 2 commits into from Oct 27, 2023

Conversation

@netlify
Copy link

netlify bot commented Oct 26, 2023

Deploy Preview for 6-docs-plone-org ready!

Name Link
🔨 Latest commit e3d692f
🔍 Latest deploy log https://app.netlify.com/sites/6-docs-plone-org/deploys/653c0273356ae700081be461
😎 Deploy Preview https://deploy-preview-1558--6-docs-plone-org.netlify.app/install/install-from-packages.html
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Sponsor Member

@tkimnguyen tkimnguyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You might also consider explaining that the ram build requirements are greater for Volto front ends as compared to classic UI

@stevepiercy
Copy link
Contributor Author

@kenmanheimer

@stevepiercy
Copy link
Contributor Author

Will merge when green.

@stevepiercy stevepiercy merged commit cc22c3b into 6.0 Oct 27, 2023
6 checks passed
@stevepiercy stevepiercy deleted the requirements-to-build-volto branch October 27, 2023 18:43
@@ -38,6 +36,17 @@ You may host multiple Plone sites on the same server.
- Minimum 512 MB hard disk space is required.
40 GB or more hard disk space is recommended.

````{warning}
When you _build_ Plone, it will approximately double RAM requirements to _install_ Plone.
Copy link
Sponsor Member

@davisagli davisagli Oct 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh? Building and installing are the same, no? The distinction we really want to make is that building Plone takes more RAM than running a basic Plone site, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this context of a cookiecutter install, I thought we install already built Docker images. Is that not correct?

Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevepiercy No, not really.

Running the cookiecutter creates a project structure including a Makefile with various commands. It does not immediately run any of those commands.

Some of the commands install and run Plone without using containers: make install, make start-backend, make start-frontend.

Some of the commands build Docker images for the project (based on the released base images, plus project-specific code) and run Plone using them: make build-images, the various commands starting with stack-, and the various commands related to acceptance tests.

All of these require the RAM to build Plone (particularly I think it's the webpack compilation that is RAM-intensive)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, then maybe this?

When you _install_ or _build_ Plone, it will approximately double RAM requirements to _run_ Plone.

Also is the preceding bullet point even true anymore?

-   Minimum 256 MB RAM and 512 MB of swap space per Plone site is required.
    2 GB or more RAM per Plone site is recommended.

Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about:

Installing and running the Plone backend requires at least 256 MB of RAM and 512 MB of swap space per Plone site.
2 GB or more RAM per Plone site is recommended.
Building the Volto frontend requires 2 GB of RAM.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wasn't there something about lxml when installing Plone backend that bumped up RAM requirements? Ah, maybe swap? https://community.plone.org/t/struggling-to-install-plone-on-ubuntu-droplet/3301/6

Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stevepiercy hmm, ok, I didn't know about that. Although these days in most cases on Linux pip will be able to fetch a prebuilt binary wheel for lxml rather than building it in situ.

How about something along these lines:

Running Plone requires at least 512 MB of RAM per Plone site. 2 GB or more RAM per Plone site is recommended.
2 GB or more RAM may also be needed temporarily while installing Plone and building the frontend assets with webpack. On a machine without much RAM, one way to get through the installation is to add swap.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a messy section. See new PR: #1561

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants