You can set disk quotas for a site and control what happens to the site when the quota is exceeded.
Set Disk Quota For A Site
Go to WPCloudDeploy -> WordPress Sites
Scroll down to the site you want to work with
Click on the TITLE/DOMAIN NAME (usually the first or second column)
Look for the QUOTAS & LIMITS metabox on the right hand side of the screen
Set the quota in megabytes (eg: 1024)
Click the UPDATE button on the upper right of the screen.
Set Default Disk Quota For All Sites
If you want all your sites to have the same quota you can do so in the settings area.
Go to WPCloudDeploy -> Settings
Click on the APP:WORDPRESS SETTINGS tab
On the left side click on the SITES tab
Under the DISK QUOTA section, enter a value for the field labeled QUOTA FOR SITES WITHOUT A QUOTA
Click the SAVE SETTINGS button at the bottom of the screen.
This option applies to all sites that do not have a separate quota set – i.e.: any site with a zero quota.
Setting this value to zero will disable it and is the default value for new WPCD installations.
Set a Disk Quota For All New Sites
You can automatically have a disk quota stamped on each new site.
Go to WPCloudDeploy -> Settings
Click on the APP:WORDPRESS SETTINGS tab
On the left side click on the SITES tab
Under the DISK QUOTA section, enter a value for the field labeled QUOTA FOR NEW SITES
Click the SAVE SETTINGS button at the bottom of the screen.
This option will apply a quota value to all new sites and will be visible in the site’s QUOTAS & LIMITS metabox on the right hand side of the site detail screen.
Disable Sites When Quota is Met or Exceeded
You can disable a site when the quota has been exceeded as follows:
Go to WPCloudDeploy -> Settings
Click on the APP:WORDPRESS SETTINGS tab
On the left side click on the SITES tab
Under the DISK QUOTA section, check the box for DISABLE SITE WHEN QUOTA EXCEEDED
Click the SAVE SETTINGS button at the bottom of the screen.
Apply An Admin Lock When Quota is Met or Exceeded
You can apply an admin lock to a site when the quota has been exceeded as follows:
Go to WPCloudDeploy -> Settings
Click on the APP:WORDPRESS SETTINGS tab
On the left side click on the SITES tab
Under the DISK QUOTA section, check the box for APPLY ADMIN LOCK WHEN QUOTA EXCEEDED
Click the SAVE SETTINGS button at the bottom of the screen.
Quotas are evaluated once a day when callbacks are run and data is pushed from servers to the plugin.
If your use case is such that you need regular alerts on disk usage then you should use the alerts functions with MONIT that are available under a server’s HEALING tab.