You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -190,7 +218,13 @@ For cases where `fly-replay` isn't suitable, Fly.io provides two alternative req
190
218
fly-prefer-region: ams
191
219
```
192
220
193
-
Attempts to route directly to a specific region. Falls back to nearest region with healthy Machines if target region is unavailable. Useful for large uploads that can't be replayed.
221
+
Attempts to route directly to specific region(s). You can specify multiple regions as comma-separated values for fallback preferences:
222
+
223
+
```
224
+
fly-prefer-region: iad,ord,us
225
+
```
226
+
227
+
Falls back to the next region in the list, or to the nearest region with healthy Machines if none of the specified regions are available. Useful for large uploads that can't be replayed.
Copy file name to clipboardExpand all lines: networking/services.html.markerb
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -123,10 +123,16 @@ The HTTP handler adds a number of standard HTTP headers to requests, and a few F
123
123
| `Fly-Region` | Original incoming connection region |
124
124
| `Fly-Preferred-Instance-Unavailable` | The ID of a preferred instance that the proxy could not route to |
125
125
126
-
You can set a preference on HTTP requests for which region you would like to connect to:
126
+
You can set a preference on HTTP requests for which region you would like to connect to. You can specify a single region or multiple regions in order of preference:
127
127
128
128
```
129
-
Fly-Prefer-Region: region-code
129
+
Fly-Prefer-Region: iad
130
+
```
131
+
132
+
Or with multiple preferences (tries regions in order):
133
+
134
+
```
135
+
Fly-Prefer-Region: iad,ord,us,na
130
136
```
131
137
132
138
You can set a preference for a specific machine instance:
0 commit comments