Class WeightedAliasTarget

java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.dns.AliasTarget
com.yahoo.vespa.hosted.controller.api.integration.dns.WeightedAliasTarget

public class WeightedAliasTarget extends AliasTarget
An implementation of AliasTarget where is requests are answered based on the weight assigned to the record, as a proportion of the total weight for all records having the same DNS name. The portion of received traffic is calculated as follows: (record weight / sum of the weights of all records).
Author:
mpolden
  • Constructor Details

    • WeightedAliasTarget

      public WeightedAliasTarget(ai.vespa.http.DomainName name, String dnsZone, com.yahoo.config.provision.zone.ZoneId zone, long weight)
  • Method Details