Traffic Distributor Integration
Integrate Traffic Distributor with a Running Application
Add an Application Copy to Routing
In this example, the existing application is running on an Apache server inside an environment named primary-env.
1Create a second application environment
Prepare another environment containing the same application. Environment cloning can be used to create an identical copy with the existing files, settings, and services.
2Install Traffic Distributor
Install the Traffic Distributor Marketplace package and select the original and cloned environments as its two backends. Configure the required routing method and traffic ratio.
After installation, Traffic Distributor and both application backends are visible in the dashboard.
Configure the Application Entry Point
The application domain or public IP must now point to Traffic Distributor instead of directly to the original application environment.
- For a domain connected through CNAME or ANAME, swap the domain between the original environment and Traffic Distributor.
- For a domain using an A record, transfer or replace the public IP so that the record points to Traffic Distributor.
Swap Domains
1Open the original environment settings
Hover over the environment that currently owns the custom domain and click Settings.
2Select Swap Domains
In Custom Domains, open Swap Domains, select the Traffic Distributor environment, click Swap, and confirm the operation.
After the swap is complete, the domain reaches Traffic Distributor, which forwards requests to the two configured application backends.
Move a Public IP Entry Point
For a domain connected through an A record, the external address can be moved through the platform API or CLI, or the DNS record can be updated manually.
1Attach and copy the Traffic Distributor public IP
Confirm that the NGINX node in the Traffic Distributor environment has a public IP and copy the address from the dashboard.
2Update the domain A record
Open the domain provider’s DNS manager and replace the old application IP with the Traffic Distributor public IP.
- Recheck hardcoded IP-dependent application settings after the entry point changes.
- After DNS propagation, detach the old public IP from the primary environment when it is no longer required for direct access.
- Removing an unused paid public IP avoids unnecessary charges.
Complete the Integration
After the domain or public IP has been moved, all incoming traffic reaches Traffic Distributor first. Requests are then routed between the application backends according to the selected routing method and traffic ratio.
