Next, configure the recovery methods

To implement AMD failover, you first need to include the Origin Failure Recovery Methods rule to your property and configure it.

Rule overview

The Origin Failure Recovery Methods rule offers two "sub-rules" that you use to configure the available recovery methods.

  • Failure Recovery Method1. This rule lets you configure a backup origin for use as an origin failure recovery method.
  • Failure Recovery Method2. This rule lets you configure a specific HTTP status code that's returned to a requesting client as an origin failure recovery method.

Let's add the Origin Failure Recovery Methods rule

To add this rule and configure it, perform the following steps.

  1. In the Property Configuration Settings panel, click Add Rule.
  2. In the Search available rules field, input "Origin Failure" to filter the listed rules. Select Origin Failure Recovery Methods from the list.
    Important: The following apply to the use of this rule:
    • You can't add match Criteria or Behaviors directly in the Origin Failure Recovery Method rule. (Configuration is applied in its Failure Recovery Method1 and Failure Recovery Method2 "sub-rules.")
    • The Origin Failure Recovery Methods rule needs to be the last rule in the rule tree. This ensures that the required recovery methods are appropriately applied, and they won't be overridden by other behaviors.
  3. Select the first sub-rule, "Failure Recovery Method1."
  4. In Criteria, ensure Recovery Configuration Name is selected from the "If" drop-down, and input a unique identifier. You can use three to 20 alphanumeric and dash characters. This is the "Recovery Method Configuration Name" that you apply to have this origin failure recovery method applied for certain failure conditions. Make note of this value.

  5. Apply settings for required and optional behaviors to this rule to define the backup origin.
    Behavior Required/Optional Notes
    Origin Failure Recovery Method Required Ensure that Recovery Method is set to "Retry using Alternate Origin."
    Origin Server Required Use this to behavior to set specifics for your backup origin. As with the primary origin, complete details can be found in the Property Manager user documentation.
    Origin Characteristics Required Apply these settings to incorporate best practices and optimize delivery and access to the origin. More details can be found in Origin Characteristics and AMD
    Modify Outgoing Request Path Optional This behavior automates common URL rewriting tasks for incoming requests before they are forwarded to the origin.
    Important: Only the behaviors listed in this table can be included in this rule.
  6. Click the "Failure Recovery Method2" sub-rule.
  7. In Criteria, ensure Recovery Configuration Name is selected from the "If" drop-down, and input another unique identifier. (Ensure that this is different from the first one.) This is the "Recovery Method Configuration Name" that you apply to have this origin failure recovery method applied for certain failure conditions. Make note of this value, too.

  8. Set the following in the Origin Failover Recovery Method behavior:
    • Recovery Method. Ensure this is set to "Respond with a custom status code."
    • Custom Status Code. Input the desired HTTP status code you want sent to a requesting client when this failure method is used.

What's next?

Next, you need to set up a policy of the failure scenarios you want to use to trigger the failover, and define the recovery methods these scenarios will use.