Why not just ship it?
Tests and staging catch a lot, but they never perfectly match production — real traffic patterns, real data shapes, real edge cases from real customers. Flipping a feature on for everyone at once means the first sign of trouble is a flood of support tickets, not a quiet metric dip you noticed early.
A gradual rollout exposes the new code path to a small slice of real traffic first, so if something's wrong, it's wrong for a handful of users instead of all of them — and you can shut it off before it ever reaches the rest.
What makes it safe to ramp
With the same identity, precision, and targeting rules, an entity in the "on" slice at 10% stays there as you expand to 25%, 50%, 100%. Keep the entity key stable across requests to keep its rollout bucket stable.
Increasing the percentage while keeping the identity and precision unchanged adds entities to the rollout. Eligibility still depends on the flag's targeting rules, dependencies, and environment settings.
Each step is a checkpoint. The Automation planner can advance on time, evaluation volume, unique exposed users, lifecycle state, or an administrator's approval, and pauses when safety checks detect a conflict.
If a step goes wrong, drop the percentage back to zero — no redeploy, no rollback. For code you don't trust at all yet, pair it with a kill switch.
Allocate rollout by
In a flag's environment configuration, Allocate rollout by selects the identity used for percentage rollout and variant allocation buckets. Choose the unit that should receive a consistent experience: one person, a whole customer, a device, a session, or a service.
| Option | Evaluation key | When to use it |
|---|---|---|
| Users | userId | Personal experiences that should follow a signed-in user across sessions and devices. |
| Organizations | organization.key | Roll out collaboration features to organizations as a group. |
| Accounts | account.key | Keep a customer or billing account together, even when several users share it. |
| Devices | device.key | Device-specific capabilities, kiosks, or installations. Supply a stable device identifier. |
| Sessions | session.key | Keep a browsing or checkout session in one bucket. A new session key can receive a different bucket. |
| Services | service.key | Backend service rollouts. Use a shared service key to group instances, or distinct keys when instances should be bucketed separately. |
Organization and account keys are identifiers supplied by your application; they represent whichever business groups you need. The selected key must be a nonempty string. If it is missing, evaluation returns off, even at 100% rollout. Users use the request's root userId; context cannot override that user identity.
Sharing a key means sharing rollout and allocation buckets for the same flag configuration. It does not guarantee identical results: targeting rules still inspect each request's attributes and can match different rules or variants. A percentage describes a share of entity keys, not an exact share of requests; a large account can generate much more traffic than a small one.
Rollout precision
Existing cohorts · whole percentages
The default uses 100 buckets (version 1). Keep this setting for an existing rollout when preserving its current assignments matters. Percentage thresholds operate on whole-percentage buckets; fractional values do not create finer slices.
High precision · 0.001% increments
Uses 100,000 buckets (version 2) for finer rollout and variant allocation. Choose it for very small canaries or large populations, such as a 0.125% rollout. Small populations may still have no matching entities; precision does not guarantee a particular count.
Changing either the identity or precision recalculates buckets and can move existing entities into or out of the rollout or change their allocated variant. Choose both before launching when possible. These settings belong to each environment, and saving follows that environment's approval policy.
Example: a rollout by session
- Open the flag's environment configuration, choose Sessions, and select the precision you need.
- Set the rollout percentage and targeting rules, then save the flag. Complete any required approval.
- Include a stable session key in every evaluation's context. Keep it unchanged for the session, and generate a new key when a new session starts.
- Use the Feature Tester with the same key across multiple requests to inspect the bucket. Try different keys and a missing key to check inclusion and the off result.
Example evaluation identity and context:
{
"userId": "user-42",
"context": {
"session": { "key": "session-8" },
"account": { "key": "account-9", "plan": "premium" }
}
} Here, Sessions buckets by session.key, while a targeting rule can still check account.plan. Selecting Accounts instead would bucket by account.key so sessions sharing that account share buckets.
Before enabling entity targeting or high precision for offline evaluation, upgrade every offline consumer to an SDK that supports configuration schema version 2. Older SDKs reject that schema and may continue using a previously cached revision until their expiry policy applies. See the SDK guide and verify compatibility in your deployment before saving these changes.
A typical ramp
Most rollouts don't need exotic curves — a handful of deliberate steps, each held long enough to trust the data, gets you there safely:
The first step (1%) is a smoke test — just enough real traffic to catch anything the tests missed. The middle steps are where you actually learn something. The jump to 100% should feel anticlimactic, because everything worth finding already surfaced earlier.