This guide walks you through using Unleash’s release management features to automate and safeguard your feature rollouts with the Node SDK. You’ll learn how to:
By the end of this guide, you’ll have a fully automated release pipeline that can detect issues and stop the rollout before they affect more users.
Our video guide helps you follow along with the tutorial:
Before you begin, make sure you have:
Release templates help you standardize your rollout process. Instead of manually configuring strategies, you can apply a predefined sequence of milestones.
After adding the release plan, you’ll see a series of milestones. For a typical progressive rollout, these might be:
Each milestone has its own strategy configuration, giving you full control over how the feature is exposed at each stage.
Instead of manually starting each milestone, you can automate the progression based on time intervals.
Once started, Unleash will automatically advance through the milestones based on your configured intervals. You can see when the next milestone will start in the milestone status.
The slight variance in timing is due to how Unleash schedules background jobs. Transitions may occur a few seconds after the configured interval.
Automated rollouts are powerful, but you want to make sure you can stop them if something goes wrong. Impact metrics allow you to track application-level data and use it to control your release.
In your application code, define and record metrics using the Unleash SDK:
The key pattern is:
unleash.impactMetrics.defineCounter() with a descriptive name.By using feature-specific error metrics, you can distinguish between errors caused by your new feature versus unrelated system issues.
Feature-specific error counters are more actionable than global error rates. They help you determine whether your feature specifically caused a problem, rather than being triggered by unrelated issues.
With metrics flowing into Unleash, you can now create a safeguard that pauses the automated progression when something goes wrong.
First, verify your metric is available by selecting Add safeguard and checking that your impact metric exists in the dropdown list. It may take some time for the impact metric to appear after starting your process, because it is sent to Unleash when the client reports metrics, which happens by default on a 60s interval.
Then, add a safeguard to your release plan:
analyze_feature_errorWhen the metric exceeds the threshold, Unleash will pause the automated progression.
When a safeguard is triggered:
To continue the rollout after investigating the issue:
This behavior gives you the best of both worlds: automated rollouts that save time, with safety nets that prevent widespread issues.
Now that you’ve set up automated releases with safeguards, explore these related topics: