Class WeightedDirectTarget

java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.dns.DirectTarget
com.yahoo.vespa.hosted.controller.api.integration.dns.WeightedDirectTarget

public final class WeightedDirectTarget extends DirectTarget
An implementation of DirectTarget 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:
freva
  • Constructor Details

    • WeightedDirectTarget

      public WeightedDirectTarget(RecordData recordData, com.yahoo.config.provision.zone.ZoneId zone, long weight)
  • Method Details