Skip to content
Load Balancing
Visit Load Balancing on GitHub
Set theme to dark (⇧+D)

Load Balancing actions

Overview

Actions tell Cloudflare how to handle HTTP requests that have matched a Load Balancing expression.

Note that a single Load Balancing rule can include more than one action.

Supported Actions

This table lists the actions available for Load Balancing rules. For a walkthrough, see Creating Load Balancing rules.

ActionDescription
Fixed responseRespond to the request with an HTTP status code and an optional message.
Pool selectionSelect the pool to receive the request. You can customize the logic to use for pool selection, including traffic steering method, available pools, fallback pool, and region.
RedirectRedirect the request to another URL.
ReturnStop processing Load Balancing rules and apply the current load balancing logic to the request.
Session affinitySet the session affinity for the request. You can customize cookie behavior, session time-to-live (TTL), and origin drain duration TTL.