Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PrimaryBackupPolicy

import type { PrimaryBackupPolicy } from "https://googleapis.deno.dev/v1/domains:v1.ts";

Configures a RRSetRoutingPolicy such that all queries are responded with the primary_targets if they are healthy. And if all of them are unhealthy, then we fallback to a geo localized policy.

interface PrimaryBackupPolicy {
backupGeoTargets?: GeoPolicy;
primaryTargets?: HealthCheckTargets;
trickleTraffic?: number;
}

§Properties

§
backupGeoTargets?: GeoPolicy
[src]

Backup targets provide a regional failover policy for the otherwise global primary targets. If serving state is set to BACKUP, this policy essentially becomes a geo routing policy.

§
primaryTargets?: HealthCheckTargets
[src]

Endpoints that are health checked before making the routing decision. Unhealthy endpoints are omitted from the results. If all endpoints are unhealthy, we serve a response based on the backup_geo_targets.

§
trickleTraffic?: number
[src]

When serving state is PRIMARY, this field provides the option of sending a small percentage of the traffic to the backup targets.