Your First Platform Federation
Platform Federations automate the complexity of multisite administration - but they require planning and configuration to implement the behavior you desire. Typically Federation is an iterative process in which you identify and correct gaps or conflicts in automated repository handling.
To see how Federation works across multiple sites and repositories, it’s easier to start with a new site, and include it in a Platform Federation with other sites. You can then observe how Platform Federation automatically populates the new site with global entities and repositories.
Federation of Global Entities
- Provision a new site in your JFrog subscription.
- Determine your subscription’s Main Site that runs the Mission Control service, as described in Prepare Sites to Join the Platform Federation.
- Log in to the Main Site and Configure a Platform Federation. Add the new site you created in your Step 1. Skip the Stage Mapping step for now and create the Platform Federation.
- Log in to the new site. Compare Project, Permission, User, and Group settings with the Main Site. The Platform Federation populated the new site with these settings from the Main Site.
- In the new site, create a project, user, or group. Log in to the Main site and verify that the new entity has been synced and appears in the Main Site.
Global entities are synced uniformly on all sites of the Platform Federation. These entities define a uniform multisite workspace.
Site-Mapped Repository Provisioning
Currently, repository provisioning is available only on SaaS sites.
Now we'll return to the Stage Mapping tab of the Federation wizard to determine the repositories hosted by each site.
- In the Main Site, define a new global stage named Global_Fed_DEV. Assign this stage to a local repository, a remote repository, and a virtual repository.
- Go to Topology > Platform Federation and edit the federation you defined in Step 2. In the Site Mapping step, map the Global_Fed_DEV stage to the Main Site and the new site. Save changes.
- Log in to the new site and go to Administration > Repositories. The repositories you assigned to the Global_Fed_DEV stage are provisioned on the site. A new Multi-site column indicates federated repositories.
- For local repositories, both configuration and artifacts are federated.
- For remote and virtual repositories, only configuration settings are synced on the new site.
Unlike Global Entities, repositories are not synced uniformly to all sites. They are provisioned on member sites only as dictated by the Stage Mapping defined in the Platform Federation.
-
Upload new content to the repository. Then log in to the Main site. The federation synced the new content to all instances of the repository.
-
Spin up another site, and add it to the Platform Federation - but don't map it to the Global_Fed_DEV stage. Log in to the site and verify that repositories assigned to Global_Fed_DEV are not automatically provisioned on this site.
Updated about 9 hours ago
