If your service content is available in multiple locations, you can create an Origin Set to increase availability or enable load balancing.
To add an Origin Set to your service:
- Navigate to your service.
- In the sidebar, under Origin Management, select Origin Sets.
- Click the Create button.
- Complete the new Origin Set form:
- Policy Type – Leave this option set to Failover.
- Primary Host – Enter the hostname or IP address of your primary origin server.
- Secondary Host – Enter the hostname or IP address of your secondary origin server.
- Path (Optional) – Specify the path to use when accessing the origin servers. The default path is
/. For example, if you set the Origin path to/a/and an end user accesseshttps://www.example.com/test.html, the following file will be retrieved from your Origin:/a/test.html. - S3 – Select this option if your origin servers are hosted in S3-compatible storage, such as an AWS S3 bucket or Google Cloud Storage bucket.
5. Click Save.
Once created, the new Origin Set will appear in the list of Origin Sets. You can then navigate to the Domains tab to configure a Domain Mapping for this Origin Set.
Note: Traffic will not be routed to the new Origin Set unless a Domain Mapping is defined for it.