• Overview
    Key features
    • Observability
    • Auto-scaling
    • Multiframework
    • Security
    Frameworks
    • Django
    • Next.js
    • Drupal
    • WordPress
    • Symfony
    • Magento
    • See all frameworks
    Languages
    • PHP
    • Python
    • Node.js
    • Ruby
    • Java
    • Go
  • Industries
    • Consumer Goods
    • Media/Entertainment
    • Higher Education
    • Government
    • Ecommerce
  • Pricing
  • Featured articles
    • Switching to Platform.sh can help IT/DevOps organizations drive 219% ROI
    • Organizations, the ultimate way to manage your users and projects
  • Support
  • Docs
  • Login
  • Request a demo
  • Free Trial
Meet Upsun. The new, self-service, fully managed PaaS, powered by Platform.sh.Try it now
Blog

Help reduce resource consumption: Put your preview environments on pause

containergitenvironmentscost savingsupdatesgrid
18 August, 2023
Rémi Lejeune
Rémi Lejeune
Product Manager

With Platform.sh, every Git branch maps to a preview environment which is an exact and isolated copy of your live application—including all data, services, and files. They are usually created to build new features, apply security patches, or upgrade dependencies in full isolation and before deploying to production.

Although there is a catch—preview environments are often left idle waiting for someone to review and approve any changes made. And while they are idle, they continue to use CPU and RAM which both consume electricity and emit CO2. 

That’s why we wanted to put you back in control of your resource usage and help you reduce your carbon footprint, as well as our own. 

In the coming weeks you will be able to pause your idle preview environments to limit that resource consumption instantly. We’re also going to automate this process for preview environments which have been idle for 14 days or more without being redeployed to minimize resource usage across the thousands of projects we host. Dramatically reducing the number of machines required to run our infrastructure across all of our regions—hooray! 

Understanding the 14-day pause for preview environments

You might be curious to know why we chose 14 days as our timeframe for a preview environment to be paused automatically. It’s mostly due to the very positive feedback we received from the paused crons we released last year with the same timeframe.

Our assumption is that most of the time, preview environments will automatically resume via a deployment, and that only a few will require manual reactivation. Of course, we will monitor that assumption closely and make any changes needed to this process accordingly following feedback.

 

Managing preview environments: How pausing works

A production environment can not be paused but all preview environments (development or staging) can be manually and automatically paused. When an environment is paused, all routes will redirect to a static web page explaining that the environment is paused and a button to resume the environment.

When a preview environment is paused, all the containers are paused and stop consuming resources. Pausing an environment does not delete any data, and all disks remain and become available again when the environment is resumed.

 

How to resume an environment

When all of your changes have been approved and you’re ready to redeploy once again there are a couple of ways in which you can resume a paused environment: 

  1. Make a change that triggers a deployment, such as: push the code or trigger a redeployment.
  2. Trigger the resume action from the Console or the CLI.

What do you think?

We rely on the feedback of our users to make our PaaS as great as possible, so please don’t be shy—let us know what you think of this new function! 

Feel free to share your feedback through our portal or open a support ticket if you experience any issues and we’ll be sure to help.

In the meantime, you can also learn more about our greener hosting commitments on our dedicated page.

Get the latest Platform.sh news and resources
Subscribe

Related Content

Limit deployments to Platform.sh only when Git tagged: part two

Limit deployments to Platform.sh only when Git tagged: part two

Company
AboutSecurity and complianceTrust CenterCareersPressContact us
Thank you for subscribing!
  •  
Field required
Leader Winter 2023
System StatusPrivacyTerms of ServiceImpressumWCAG ComplianceAcceptable Use PolicyManage your cookie preferencesReport a security issue
© 2024 Platform.sh. All rights reserved.
Supported by Horizon 2020's SME Instrument - European Commission 🇪🇺