For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inTry it free
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
  • Get started
    • Overview
    • Onboarding
    • Get started
    • Launch Insights
    • LaunchDarkly architecture
    • LaunchDarkly vocabulary
  • AgentControl
    • AgentControl
    • Manage AgentControl
  • Feature flags
    • Create flags
    • Target with flags
    • Flag templates
      • Custom flags
      • Release flags
      • Kill switch flags
      • Experiment flags
      • AI prompt flags
      • AI model flags
      • Migration flags
        • Creating migration flags
        • Targeting with migration flags
        • Migration flag metrics
    • Manage flags
    • Code references
    • Contexts
    • Segments
  • Releases
    • Releasing features with LaunchDarkly
    • Release policies
    • Percentage rollouts
    • Progressive rollouts
    • Guarded rollouts
    • Feature monitoring
    • Release pipelines
    • Engineering insights
    • Release management tools
    • Applications and app versions
    • Change history
    • Restoring previous flag versions
  • Observability
    • Observability
    • Session replay
    • Error monitoring
    • Logs
    • Traces
    • Observability metrics
    • Product analytics events
    • LLM observability
    • Alerts
    • Dashboards
    • Service map
    • Vega for auto-remediation
    • Observability MCP server
    • Search specification
    • Observability settings
    • Observability integrations
  • Experimentation
    • Experimentation
    • Experiment metric types
    • Experiment configuration
    • Managing experiments
    • Analyzing experiments
    • Multi-armed bandits
    • Holdouts
  • Metrics and events
    • Metrics in LaunchDarkly
    • Creating metrics
    • Metric groups
    • Events
    • Autogenerated metrics
  • Warehouse native
    • Warehouse native metrics
    • Setting up external warehouses
    • Creating experiments using warehouse native metrics
  • Infrastructure
    • Connect apps and services to LaunchDarkly
    • LaunchDarkly in China and Pakistan
    • LaunchDarkly in the European Union (EU)
    • LaunchDarkly in federal environments
    • Public IP list
  • Your account
    • Projects
    • Views
    • Environments
    • Tags
    • Teams
    • Members
    • Roles
    • Account security
    • Feature previews
    • Billing and usage
    • Changelog
Sign inTry it free
LogoLogo
On this page
  • Overview
  • Supported SDKs
  • About migration feature flags
  • How migration flags affect migration stages
  • About cohorts
Feature flagsFlag templates

Migration flags

Was this page helpful?
Previous

Creating migration flags

Next
Built with
Migration flags are not available in LaunchDarkly's European Union (EU) instance
To learn more, read LaunchDarkly in the European Union (EU).

Overview

This topic explains how you can use migration flags to take the complexity and risk out of migrations when you need to change or modernize your database infrastructure. Migration flags require a server-side SDK.

Supported SDKs

Migration flags are available for the following server-side SDKs:

  • .NET (server-side)
  • Go
  • Java
  • Node.js (server-side)
  • PHP
  • Python
  • Ruby
  • Rust

Migration flags are also available for the following edge SDKs:

  • Akamai
  • Cloudflare
  • Vercel

About migration feature flags

A migration feature flag is a temporary flag you can use to migrate data or systems while keeping your application available and disruption free. Migration flags break the transition from an old to a new implementation into a series of two to six stages. Movement between stages occurs in discrete steps. Migration flags also let you split traffic across two or more cohorts. Cohorts can also move between stages independently from each other and in incremental steps.

Migration flags help you understand more about how your migrations progress, their health, and how to mitigate risks if unintended behavior occurs. To learn more about when to use different types of migrations, read Performing multi-stage migrations with migration flags.

How migration flags affect migration stages

A migration flag’s variations are associated with the migration’s stages. To learn more, read Targeting variations and stages.

About cohorts

Migration flag cohorts are analogous to a standard feature flag’s rules. The default cohort is analogous to a feature flag’s default rule. Cohorts always serve a rollout release type. To learn more, read Targeting cohorts and Percentage rollouts.