The Multisite System of Record

This topic looks more closely at the ongoing sync processes that bind sites of your deployment into a consistent, reliable multisite workspace. It gives you the background you need to plan, implement, and work with new Federation concepts such as stage-mapping and site-based provisioning.

  • Global entities are autmatically synced and are uniform on all sites of the Platform Federation.
  • Repositories are provisioned based on stage mapping. They are not uniformly present on all sites of the Platform Federation.

Currently, repository provisioning is available only on SaaS sites.

Global Entities

To maintain a uniform multisite workspace the Platform Federation syncs:

  • Projects and related settings (roles, users and groups)
  • Access settings (tokens, permission targets)
  • Stages
  • Repository Keys

To distinguish them from site-specific configurations, these settings are called Global Entities.

Global Entities are Federated: Change a global entity on a member site, and the change is copied to all sites of the Platform Federation.

Global entity sync overwrites previous values. Older values are not saved, and cannot be restored.

Repository Keys - a Global Entity

Sites in the Platform Federation share a single Repository Key namespace - the superset of all unique Repository Keys on all member sites. The full list of Repository Keys is a global entity synced on all sites, no matter what subset of repositories each site hosts.

This is essential to maintain a truly uniform multisite workspace: it prevents creation of new repositories that duplicate existing Repository Keys, and enables automated provisioning of repositories across the Platform Federation.

Within the Platform Federation, repositories with the same key on different member sites are always identical instances of a repository federation, automatically synced across the sites.

Stage-mapped Repository Provisioning

Currently, repository provisioning is available only on SaaS sites.

Global Stages are stages (for example DEV, QA, and PROD) that can be used in all projects. Stage-to-Site Mapping defines which sites in a Platform Federation support specific Global Stages. The Platform Federation automatically provisions and synchronizes repositories assigned to a stage on all sites that support that stage.

Platform Federation provisions and syncs repositories across its member sites based on two relationships:

The Platform Federation:

  • Locates sites mapped to the same stage as the repository, and provisions the repository on these sites.
  • Establishes federation between all instances of the repository for continued sync.

Without Stage-Mapped Provisioning: Separate federations must be defined manually for each repository - and updated manually when changes occur or new sites are added. When multiple instances of a repository are maintained with scripts, they are subject to content drift and improper access.

With Stage-mapped Provisioning: The Platform Federation automatically federates every repository - and scopes the federation to sites that support the repository’s stages. As a result:

  • Automatic provisioning supports users on all sites: Each repository is always up to date and accessible - but only on sites mapped to its stages.

  • No hands-on maintenance: The workspace is federated as it is created and synced as it is modified. It is not necessary to manually federate or update individual repositories.

  • Easy growth and change: Add a site, or tweak stage-to-site mapping - and the Platform Federation automatically provisions the entire portfolio of repositories relevant to the stages of the site.

  • Local and federated: Repositories that are not assigned to a stage remain local. These unmapped repositories are not automatically federated to other sites. Similarly, Build-info and Release Bundle v2 artifacts are not synced, and remain local.

  • All repository types: For local repositories, configuration and artifacts are federated. For remote and virtual repositories, only configuration settings are federated.

Stage Mapping for Repository Provisioning: Best Practices

  • Repository provisioning uses only global stages that are mapped to sites in the Platform Federation. Stage-to-site mapping defines a topology of sites that support the stage. Assign a repository to the stage to provision it on those sites.
  • Repository provisioning ignores global or project-level stages that are not mapped to member sites in the Platform Federation. Repositories assigned to unmapped stages are not federated or synced by the Platform Federation. For lifecycle or project management, you can freely assign stages not used for repository provisioning to the repository.
  • Define a set of site-mapped global stages used for repository provisioning.
    • Map each of these stages to a unique topology of Platform Federation sites. It is not recommended to define multiple stages with the same site mapping.
    • Each repository can be assigned to only one site-mapped stage. This stage provisions the repository on its topology of sites. If you assign two stages with different site mapping to one repository, the Platform Federation identifies a conflict.
    • Stage-to-Site is 1 to many. A single site in the Platform Federation can be mapped to several global stages, and the Platform Federation provisions the site with the repositories assigned to all these global stages.
    • When you create a new stage on a site it is not mapped by default to that site. You must explicitly map stages to sites.

Did this page help you?