property ServiceInstance.weight

Relative selection weight for the 'weighted-random' strategy.

Absent means 1. A non-positive weight is never selected unless every instance is non-positive, in which case selection falls back to uniform.

Type

number

Usage

import { type ServiceInstance } from "common/src/index.ts";