Running a single agent in your customer’s network is a single point of failure. If that agent or the hardware it runs on fails for any reason, you can no longer connect to the remote services in your customer’s network. You can run multiple agents to achieve redundancy and high availability in the case of these failures. To do this, run a separate, second ngrok agent in the customer’s network (ideally on a different machine) with an identical configuration file with one small tweak: on each endpoint definition you must specifyDocumentation Index
Fetch the complete documentation index at: https://ngrok.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
pooling_enabled: true.
This is ngrok’s Endpoint Pooling feature.
When two endpoints start with the same URL and have pooling enabled, they form an endpoint pool.
Incoming traffic to the pooled URL is automatically distributed among all healthy endpoints in the pool.
If one endpoint goes offline, traffic is seamlessly routed to the remaining endpoints, ensuring redundancy and failover.
You’d configure your agent running on server 1 similar to the following:
What’s next
- Set up a custom connect URL to white-label the agent connection for your customers.