Optional cooldownCooldown before retrying a quota-exhausted key, a positive number of milliseconds. Default: 15 minutes.
Optional primaryWeight multiplier for the first key under round-robin, a positive whole number. Default: 2. Set to 1 for equal weighting.
Optional strategyround-robin (default, the first version's behaviour) or ordered (the earliest usable key in the configured order).
Optional recheckThe first recheck delay of a key failed for auth or billing; doubles on each failed return. Default: 30 minutes.
Optional maxThe recheck delay's ceiling. Default: 6 hours.
Optional maxThe longest rest a Retry-After may ask for, a positive number of milliseconds. Default: 1 hour.
Optional probeHow long a probe may run before it counts as unknown. Default: 10 seconds.
Optional loadHow long ready() waits for the store's load before it carries on with a fresh state. Default: 10 seconds.
Optional storeHow long flush() and close() wait for the store's writes. Default: 5 seconds.
Optional probeProbes a failed key off the request path, told the kind of its last failure; without one, failed keys return by time.
Optional storePersists the pool's state; used only with id.
Optional idThe pool's identity for its store and its log lines.
Optional loggerThe logger the pool writes its state changes to. Default: the library's key-pool logger.
Configuration for an ApiKeyPool instance.