HTTP directives

split_clients directive (HTTP)

HTTP context; no directive default. Partitions hash space for the input string. Unchanged keys and configuration give stable assignments; percentages are not exact request quotas.

Formal Syntax & Structure

nginx syntaxnginx
split_clients string $variable { ... }

Parameters & Attributes

NameTypeDescription
stringstringInput expression
$variablestringResult variable

Working Example

Example Snippetnginx
split_clients "lab:$arg_demo" $variant {    25% new;    * control;}
Nginx Reference