drupflare/worker - v1.0.4
    Preparing search index...

    Function affinityKey

    • The stable string a lane is chosen from.

      Anonymous requests spread by client address, then by path when they carry no address. A session-carrying request is keyed on the path so a page's readers share a lane (the plan tier compiled on 6/8 paths keyed on the path against 5/8 and 4/8 keyed on the session).

      An anonymous one-machine client presents one address, so it cannot spread across a pool (one rig drive read {r3: 662}); scripts/measure/v101-arms.ts --clients=N gives a rig the spread.

      Parameters

      • input: { address?: string; pathname: string; session?: string }

      Returns string