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
| Name | Type | Description |
|---|---|---|
| string | string | Input expression |
| $variable | string | Result variable |
Working Example
Example Snippetnginx
split_clients "lab:$arg_demo" $variant { 25% new; * control;}