Imperva Cyber Community

  • 1.  Weighted Routing

    Posted 12-15-2020 09:39
    Requirement: Any api with /api/* need to be routed DC1 and other APIs that don't have URI -/api/* need to be routed to DC2. In DC1 we have 2 servers and server 1 should receive 5% traffic and server2 should receive 95% traffic. DC2 has one server and should receive 100% of "other" api traffic. How do we achieve this in Incapsula? 

    Chandrasena Sriramoju

  • 2.  RE: Weighted Routing

    Posted 10-27-2021 10:04
    Hello @Chandrasena Sriramoju, For the first requirement - You can add your 2 DCs in origin server settings and enable "Support only forward to data center rules" for DC2 only. Then use custom forwarding rule to forward traffic to DC2 by putting a condition "if URL does not contain /api/*​" then Forward to DC2. 
    For the 2nd part - In origin server settings, you can define the weight(%) per server in DC1 (3rd field in the same line where you define IP/Cname). So for server1 you can put 5% and 95% for server2. This configuration should be able to achieve what you mentioned.

    Manish Patil
    Security Engineer