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
Copy file name to clipboardExpand all lines: src/content/docs/cloudflare-one/connections/connect-networks/configure-tunnels/tunnel-availability/index.mdx
@@ -39,59 +39,7 @@ By design, replicas do not offer any level of traffic steering (random, hash, or
39
39
40
40
- To provide additional points of availability for a single tunnel.
41
41
- To allocate failover nodes within your network.
42
-
- To update the configuration of a tunnel without downtime.
43
-
44
-
### Deploy `cloudflared` replicas
45
-
46
-
To deploy multiple instances of `cloudflared`, you can create and configure one tunnel and run it on multiple hosts. If your tunnel runs as a service, only one `cloudflared` instance is allowed per host.
1. To create a remotely-managed tunnel, follow the [dashboard setup guide](/cloudflare-one/connections/connect-networks/get-started/create-remote-tunnel/).
51
-
2. On the **Tunnels** page, select your newly created tunnel. The **Connectors** section shows all of the `cloudflared` instances for that tunnel.
52
-
3. Select **Configure**.
53
-
4. Select the operating system of the host where you want to deploy a replica.
54
-
5. Copy the installation command and run it on the host.
55
-
56
-
The new replica will appear on the **Connectors** list for the tunnel.
57
-
58
-
</Details>
59
-
60
-
<Detailsheader="Locally-managed tunnels">
61
-
62
-
1. To create a locally-managed tunnel, complete Steps 1 through 5 in the [CLI setup guide](/cloudflare-one/connections/connect-networks/do-more-with-tunnels/local-management/create-local-tunnel/).
63
-
64
-
2. Run your newly created tunnel.
65
-
66
-
```sh
67
-
cloudflared tunnel run <NAME>
68
-
```
69
-
70
-
This will start a `cloudflared` instance and generate a unique `connector_id`.
71
-
72
-
3. In a separate window or on another host, run the same command again:
73
-
74
-
```sh
75
-
cloudflared tunnel run <NAME>
76
-
```
77
-
78
-
This will initialize another `cloudflared` instance and generate another `connector_id`.
79
-
80
-
4. Run `tunnel info` to show each `cloudflared` instance running your tunnel:
81
-
82
-
```sh
83
-
cloudflared tunnel info <NAME>
84
-
```
85
-
86
-
This will output your tunnel UUID as well as two Connector IDs, one for each `cloudflared` process running your tunnel. With this command, you can also see that your tunnel is now being served by eight connections.
87
-
88
-
</Details>
89
-
90
-
You can run the same tunnel across various `cloudflared` processes for up to 100 connections (25 replicas) per tunnel. Cloudflare Load Balancers and DNS records can still point to the tunnel and its UUID. Traffic will be sent to all `cloudflared` processes associated with the tunnel.
91
-
92
-
:::note[Deploy replicas in Kubernetes]
93
-
For information about running `cloudflared` in a Kubernetes deployment, refer to the [Kubernetes guide](/cloudflare-one/connections/connect-networks/deployment-guides/kubernetes/).
94
-
:::
42
+
- To update the configuration of a tunnel [without downtime](/cloudflare-one/connections/connect-networks/downloads/update-cloudflared/#update-with-multiple-cloudflared-instances).
95
43
96
44
## Cloudflare Load Balancers
97
45
@@ -110,22 +58,19 @@ graph LR
110
58
C -- Tunnel 2 --> cf2
111
59
subgraph F[Data center 2]
112
60
cf2[cloudflared <br> server]
113
-
subgraph pool2[Pool 2]
114
-
S3[App server]
115
-
S4[App server]
116
-
end
61
+
S3[App server]
62
+
S4[App server]
117
63
cf2-->S3
118
64
cf2-->S4
119
65
end
120
66
subgraph E[Data center 1]
121
67
cf1[cloudflared <br> server]
122
-
subgraph pool1[Pool 1]
123
-
S1[App server]
124
-
S2[App server]
125
-
end
68
+
S1[App server]
69
+
S2[App server]
126
70
cf1-->S1
127
71
cf1-->S2
128
72
end
73
+
129
74
```
130
75
131
76
### When to use load balancers
@@ -135,12 +80,112 @@ graph LR
135
80
- To get alerted when a tunnel reaches an inactive state.
136
81
- To distribute traffic more evenly across your Cloudflare Tunnel-accessible origins or endpoints.
137
82
138
-
### Public load balancer
139
-
The DNS record (`UUID.cfargotunnel.com`) for each Cloudflare Tunnel can be used at the origin within the load balancer. You can then define traffic steering policies to determine how traffic should be routed to each tunnel.
140
83
84
+
## Public load balancer
85
+
86
+
Public load balancers steer traffic from the public Internet to your [published applications](/cloudflare-one/connections/connect-networks/routing-to-tunnel/).
141
87
142
88
143
-
### Private load balancer
89
+
e.g.
90
+
I have a web application (HTTPS) that lives in my private network and I want to securely connect it to Cloudflare's network so that my users can use their browser to access the web application from anywhere in the world
91
+
92
+
The DNS record (`UUID.cfargotunnel.com`) for each Cloudflare Tunnel can be used at the origin within the load balancer.
good for an [Active-active](/load-balancing/load-balancers/common-configurations/#active---active-failover) setup which distributes traffic to endpoints in the same pool
Only valid for active-standby setups, since each pool has only one endpoint.
183
+
184
+
Note: A single origin pool in LB can't have the same Tunnel GUID referenced twice
185
+
186
+
Deploy replicas for redundancy
187
+
188
+
## Private load balancer
144
189
145
190
You can use Cloudflare Private Network Load Balancing to distribute traffic across private endpoints connected via Cloudflare Tunnel. Common use cases include:
0 commit comments