B_PERCENTAGE to change the split. To pin on something other than the client IP, such as a cookie or a header, hash that value instead.Examples
Weighted traffic splitting
Send a set percentage of visitors to a second origin and keep each visitor on the same origin across requests.
This script hashes a stable key (the client IP) into a 0-99 bucket and routes by percentage. The same key always lands in the same bucket, so a visitor stays on one origin across requests.
Adjust