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
App-scoped static egress IPs can be shared between multiple machines in a region belonging to the same app, and will not be deleted when machines are recreated. They are recommended over our legacy, machine-scoped static egress IPs.
This allocates a pair of static egress IPv4 and IPv6 for your app in a region.
40
+
41
+
If your app has Machines in multiple regions, you must allocate at least 1 app-scoped static egress IP address __per region__.
42
+
Only machines located in the same region can use static egress IPs allocated in the region.
43
+
44
+
<divclass="note icon">
45
+
You can allocate multiple pairs of static egress IPv4 and IPv6 in the same region. Machines will randomly choose a pair from all static Egress IPs available in the region.
46
+
</div>
47
+
48
+
### View and Manage
49
+
50
+
```bash
51
+
fly ips list
52
+
fly ips release-egress <ip-address>
53
+
```
54
+
55
+
### Billing
56
+
57
+
Each app-scoped static egress IPv4 cost $3.60/mo, billed hourly. IPv6 is currently free, but must be allocated along with an IPv4.
58
+
59
+
### Caveats
60
+
61
+
- Each static egress IP can support up to 64 Machines. If you need more than 64 Machines in one region, you will need to allocate multiple static egress IPs.
62
+
- When using App-scoped static egress IPs, a Machine can make up to 1000 connections to _each_ external IP address. There is no limit on the _total_ number of concurrent connections.
63
+
- We do not expect this to be a concern for most apps. However, feel free to talk to us if this limits your use case!
64
+
- When you have multiple static egress IPs assigned in one region, there is currently no way to specify exactly which IP each machine will use.
65
+
- When new machines are created, there might be a brief window when an app-scoped egress IP is not applied to the machine. This may happen more often with more machines or during bluegreen deployment. Allocating multiple pairs of static egress IPs alleviates the issue.
66
+
67
+
---
68
+
29
69
## Static Egress IPs (Machine-Scoped)
30
70
71
+
<divclass="warning icon">
72
+
Machine-scoped static egress IPs are considered a legacy feature and may be removed in the future. This document section is kept for reference purposes only. New apps should use [app-scoped static egress IPs](#static-egress-ips-app-scoped).
Static egress IPs are **per-machine**, not per-app.
92
+
Because legacy static egress IPs are **per-machine**, not per-app:
49
93
50
94
- IPs are released when a machine is destroyed.
51
95
- IPs don’t automatically transfer across deploys.
@@ -54,12 +98,16 @@ Static egress IPs are **per-machine**, not per-app.
54
98
- Extra latency and connectivity issues are possible in some regions.
55
99
56
100
<divclass="callout">
57
-
Static egress IPs are billed per hour per machine.
101
+
Machine-scoped static egress IPs are billed per hour per machine.
58
102
</div>
59
103
60
104
---
61
105
62
-
## The Proxy Pattern
106
+
## The Proxy Pattern (for Machine-Scoped Static Egress IPs)
107
+
108
+
<divclass="warning icon">
109
+
This section only applies to existing apps using machine-scoped static egress IPs. New apps should use [app-scoped static egress IPs](#static-egress-ips-app-scoped) instead.
110
+
</div>
63
111
64
112
To avoid assigning static IPs to every machine, route traffic through a shared proxy app.
Copy file name to clipboardExpand all lines: networking/services.html.markerb
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,10 @@ Fly.io has public and private network services available. The public network ser
12
12
13
13
IPv6 addresses and shared IPv4 Anycast addresses are free. Dedicated IPv4 addresses are [billed](/docs/about/pricing/#anycast-ip-addresses) monthly.
14
14
15
+
<div class="note icon">
16
+
Anycast IP addresses described on this page are __not used__ for outbound connections made from within a Machine. See [Egress IP Addresses](/docs/networking/egress-ips/) for details.
17
+
</div>
18
+
15
19
### About Anycast
16
20
17
21
We announce global IP blocks from all of our datacenters over BGP, otherwise known as Anycast. Anycast is a core internet routing mechanism that connects clients to the "nearest" server advertising a block of IPs. You can read [all about it on Wikipedia](https://en.wikipedia.org/wiki/Anycast+external).
0 commit comments