Skip to content
WP Cloud
WP Cloud
    • For Hosts
    • For Agencies
    • For Registrars
    • For Native Hosting
    • Performance
    • Security
    • Real-Time Automated Failover
    • Vertical Scaling and Bursting
    • WordPress Management
    • PanelAlpha Integration: White-Label WordPress Control Panel for Hosts
    • EasyEngine Panel Integration: Visual WordPress Management for WP Cloud
    • FAQs
    • WP Cloud API
    • Partner Portal
    • Documentation
    • New Partner Guide
    • Pressable
    • Convesio
    • Porkbun
    • PanelAlpha
    • Ivapix
    • UNC Greensboro
    • Impressive Hosting
    • Blog
    • Performance Benchmarks
  • Connect With Us
  • Login ↗
Start Here ↗
  • Solutions

    • For Hosts
    • For Agencies
    • For Registrars
    • For Native Hosting
    • Featured Partners

    Features

    • Performance
    • Security
    • Real-Time Automated Failover
    • Vertical Scaling and Bursting
    • WordPress Management

    Integrations

    • PanelAlpha Integration
    • Easy Engine Panel Integration

    Resources

    • FAQs
    • WP Cloud API
    • Partner Portal
    • Documentation
    • New Partner Guide
  • Case Studies
    • PressableA case study about how WP Cloud supports Pressable to power millions of page views daily.
    • Convesio
    • Porkbun
    • PanelAlpha
    • Ivapix
    • UNC Greensboro
    • Newspack
    • Inverse Paradox
  • Insights
    • Podcast
    • BlogWP Cloud blog page with latest news and updates about the platform.
    • Performance Benchmarks
  • Connect With Us
  • Login ↗
Start Here ↗

Browse

    • WP Cloud platform overview
    • Onboard and launch with WP Cloud
    • WP Cloud Partner Portal
    • Get support from WP Cloud
    • WP Cloud glossary
    • Manage and secure API keys
    • Client SSH
    • WP Cloud API quick start
    • Webhooks
    • Run bulk tasks across sites
      • Manage site domains and aliases
      • Domain verification records
      • TLS certificates
      • Manage custom TLS certificates
      • Cloudflare and WP Cloud
    • Clone a site
    • Configure resources, site type, and billing with site meta
    • Delete a site
    • Persistent data
    • Staging sites
    • Migrate a site to WP Cloud
      • SSH and SFTP access models
      • Client SSH
      • User SSH and SFTP access
      • Database credentials
      • phpMyAdmin
      • ABSPATH
      • Default wp-config.php
      • Site constants
      • Configure redirects and headers with custom-redirects.php
      • Akismet and Jetpack
      • Blocked and unsupported plugins
      • PHP lifecycle and supported versions
      • Symlinks and managed software
      • WordPress versions
      • Install Composer and WP-CLI packages
      • Manage platform software with WP-CLI
      • Useful WP-CLI commands
    • Transactional email
    • WordPress multisite
    • Cron scheduling
    • Decoupled and headless WordPress
    • Repair Yoast indexables
      • Page Cache
      • Edge Cache
      • Object Cache
      • Image transformation
      • Offload image sub-sizes
    • Configure lightweight 404s for static files
      • DDoS protection
      • Defensive Mode
      • Rate limiting
      • Network and web application firewalls
      • Bot protection
      • Password protection
      • HTTP and security headers
      • PHP filesystem access permissions
      • Scan a site for malware
    • Backups overview
    • Create an on-demand backup
    • Restore a backup
    • Jetpack backups
      • Error logs
      • Web server logs
    • Metrics
    • Application performance monitoring
    • Automated failover
    • IP ranges
    • Origin and edge servers
    • Server specifications and settings
    • EasyEngine integration
    • PanelAlpha integration
      • White labelling and co-marketing WP Cloud
      • WP Cloud logos
      • Terms of Service & Compliance
      • Prohibited content
      • Copyright infringement and takedown notifications
    • WP Cloud billing
    • WP Cloud for agencies and site networks
    • WP Cloud partner support options
    • Troubleshoot Page and Edge Cache
    • Troubleshoot HTTP 429 and 599 errors
    • WP Cloud HTTP status codes
    • Troubleshoot site performance
    • Cache slow database queries
    • Troubleshoot duplicate core files, wp-config.php, and wp-admin 403 errors
    • Troubleshoot email delivery
    • Troubleshoot PDF thumbnail generation
    • Troubleshoot TLS certificate provisioning
Documentation/Sites/Configure resources, site type, and billing with site meta

Configure resources, site type, and billing with site meta

LAST UPDATED

3 months ago

    Site meta controls a WP Cloud site’s resource limits, runtime options, and billing classification. WP Cloud invoices are calculated based on each site’s resource configuration and site type.

    Set these values during provisioning when the Create Site operation supports them, or update them after provisioning with the Site Meta operation.

    Configure resource values

    The Site Meta endpoint manages the following values. Unless a partner sets different values, a new site has 10 default PHP connections, bursting enabled, a 512 MB per-request PHP memory limit, and a 200 GB filesystem quota.

    Site metaPurpose and accepted valuesDefault
    default_php_connsSets the normal number of concurrent PHP workers or connections. More workers allow more PHP requests to run at once; they do not make one request, database query, or external call finish faster. Accepts an integer from 2 through 10. Higher allocations require coordination with WP Cloud.10
    burst_php_connsAllows automatic scaling of PHP workers beyond default_php_conns when capacity is available. Set it to 1 to enable bursting or 0 to disable it.1 (enabled)
    php_memory_limitSets the per-request PHP memory limit in megabytes. Accepted values are 512, 1024, 1536, and 2048.512 MB
    space_quotaSets a hard filesystem quota using an integer and size suffix, such as 50G or 200G. The technical minimum is 1 GB, and the billable minimum is 25 GB. Quotas above 200 GB require coordination with WP Cloud.200G
    space_usedRead-only compressed, charged usage for the site’s writable ZFS user space, in bytes. It is refreshed approximately every 12 hours. Does not include database storage usage.Reported by the platform.
    _data → site_typeStores the site’s billing classification as versioned JSON. See Set the site type and billing classification.No value; the site is billable by default.

    For example, set a site to four normal PHP connections:

    curl --fail-with-body --silent --show-error \
      --request POST \
      --header "Auth: ${WP_CLOUD_API_KEY}" \
      --data-urlencode 'value=4' \
      "https://atomic-api.wordpress.com/api/v1.0/site-meta/${WP_CLOUD_SITE_ID}/default_php_conns/update"Code language: JavaScript (javascript)

    Resource settings can change without reprovisioning the site. Before reducing space_quota, check the site’s current filesystem use and do not set a quota below it.

    Before requesting a PHP allocation above the normal self-service range, compare PHP worker saturation or backlog, request rate, PHP CPU, burst use, and the slowest request classes over the same time window. Additional concurrency can help when otherwise-healthy requests are waiting for a worker, but it does not correct slow code or database work. See Troubleshoot site performance.

    WP Cloud applies filesystem quotas per site. If a hosting plan shares a larger storage allowance across several sites, the partner’s product must track that allowance and prevent the combined site quotas from exceeding it.

    The filesystem quota does not include the site’s database, WP Cloud backups, redundant replicas used for failover, or image subsizes handled by the edge image service. Refer to the partner’s current commercial agreement or billing policy for storage pricing.

    Interpret space_used

    space_used is the compressed storage charged to the site's writable ZFS user space. WP Cloud gets the value from ZFS user-space accounting rather than adding the sizes of specific directories or running a recursive du scan.

    The value includes site-owned files regardless of their path. Examples include:

    • uploads, themes, plugins, and other files in wp-content;
    • files outside wp-content, including site-owned files in the document root;
    • temporary files; and
    • cache files, build artifacts, and dependencies such as node_modules.

    The value does not include:

    • the site's database;
    • shared, managed WordPress core files;
    • shared platform software, managed plugins, and runtime or system files; or
    • the contents of a symlink target outside the site's writable storage.

    A small symlink or its metadata can count when it is stored in the site's writable space, but the shared files it points to do not.

    An immediate du total over SSH can differ from space_used. The filesystem visible over SSH combines the site's writable files with shared platform files, symlinks, mounts, and other runtime layers. In addition, du does not represent the compressed storage charged by ZFS. The space_used value is refreshed approximately every 12 hours, so recent file additions or deletions might not appear until the next update.

    Set the site type and billing classification

    The _data site-meta value contains versioned JSON used for inventory and billing classification. The documented v1 object requires a site_type property.

    site_type valuePurposeBilling behavior
    No value or nullNo site type has been assigned.Billable by default.
    billableA production site or any other site that should be billed.Billable.
    stagingAn eligible non-production staging site associated with a billable site.One staging site may be non-billable for each billable site.
    internalReasonable partner testing, demos, or development. Do not use it for a partner’s customer sites.Non-billable and subject to usage review.
    canaryReserved for WP Cloud monitoring. Partners must not set or delete canary sites.Non-billable.

    Staging billing rules

    Important: A WP Cloud host partner may offer only one non-billable staging site per billable site.

    • A non-billable staging site must not be used as a live or production site.
    • Additional staging sites must be marked as billable.
    • If the number of staging sites exceeds the number of billable sites, each additional staging site is billed.

    A staging value has this form:

    {
      "v1": {
        "site_type": "staging"
      }
    }Code language: JSON / JSON with Comments (json)

    This request marks a site as billable:

    curl --fail-with-body --silent --show-error \
      --request POST \
      --header "Auth: ${WP_CLOUD_API_KEY}" \
      --data-urlencode 'value={"v1":{"site_type":"billable"}}' \
      "https://atomic-api.wordpress.com/api/v1.0/site-meta/${WP_CLOUD_SITE_ID}/_data/update"Code language: JavaScript (javascript)

    Store other site data in _data

    Partners may use _data for other site-specific information, but its primary purpose is to track site billing status for WP Cloud accounting. _data is account-level inventory metadata; it is different from Persistent data and is not available to code running inside the site.

    When storing custom properties in _data:

    • keep every property required by the current WP Cloud _data version;
    • do not reuse property names reserved by WP Cloud;
    • prefix custom property names with the host client’s name, such as <client-name>_custom_property, to reduce the chance of a future conflict;
    • send the complete JSON object, including its version and existing properties, with every update; and
    • keep the encoded value at or below 1 MB.

    The List Client Sites endpoint can return _data when it is requested. _data is not part of the Get Site Details record and is not available from within the WordPress site.

    Verify the configuration

    Retrieve resource values individually with the Site Meta operation. To audit _data across the host client account, request it through the List Client Sites endpoint. The returned field contains the JSON-encoded value:

    {
      "_data": "{\"v1\":{\"site_type\":\"billable\"}}"
    }Code language: JSON / JSON with Comments (json)

    Confirm that each site’s resource values match the hosting product it was sold and that every non-billable staging site is paired with a billable site in the host client’s inventory.

    Previous Clone a site
    Next Delete a site

    Related Guides

    • Clone a site

      Clone a WP Cloud site from an existing site ID or domain, and understand how…

      2 Min.

      READ

    • Manage site domains and aliases

      Manage primary and secondary WP Cloud site domains, control alias canonicalization, retrieve suggested DNS addresses,…

      4 Min.

      READ

    • Domain verification records

      Publish WP Cloud DNS TXT verification records when a domain is already assigned to a…

      2 Min.

      READ

    On this page

      Contact support

      Contact us with Support issues and questions related to WP Cloud, the WP Cloud Atomic API, API-key IP allow list changes, Station, and more.

      Check the FAQs

      Have questions? Please visit our FAQ to learn more.

      An Automattic venture

      Work With Us

      Press

      Privacy Policy

      © 2021-2026 Automattic Inc.

      Notifications