RandomLoadBalancer
Returns true probabilistically β use to distribute traffic across two connectors at a configured ratio. Shown as "Load Balance by Random" in the condition catalogue.
Parametersβ
| Field | Type | Required | Allowed values |
|---|---|---|---|
percentTrue | integer | yes | Expects values from 0 to 100 β the percentage of transactions for which the rule returns true |
Exampleβ
A 70 / 30 split between two connectors:
{
"id": null,
"if": {
"constraint": "RandomLoadBalancer",
"params": { "percentTrue": 70 }
},
"then": { "id": null, "route": { "connector": "CO-PRIMARY-..." } },
"else": { "id": null, "route": { "connector": "CO-SECONDARY-..." } }
}
Notesβ
- Availability: might not be included in your platform package β if this condition is missing from the catalogue returned by List routing constraints, contact your Customer Success Manager to have it activated.
- The split is approximate.
100always routes to thethenbranch; a value of0does not fully exclude thethenbranch β to send no traffic to a connector, remove the rule instead of setting0. - Each transaction is evaluated independently β there is no session affinity.
- Available for routing meta-connectors only β not in multi-method routing documents.