question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to handle routes with logic to different Clusters?

See original GitHub issue

What is the best way to conditionally choose a different Cluster to proxy request to?

For example, ideally I’d like to have an application with 2 Clusters (foo and bar) and a route with "clusterId": "foo" and I want to, depending on some logic applied to an incoming request, use cluster bar. Is this possible?

I’m currently using the Direct Forwarding but that means I lose out on load balancing to Clusters. I can apply any logic I need and change path/destination but without load balancing etc. Is it possible to get access to something that handles this, similar to how IHttpForwarder is used? With this method it looks like I’d need to send the request to another load-balancer for bar and let that do the load balancing.

I had a look at ITransformFactory but that looks like it is transforming requests/responses to/from a specified Cluster, rather than changing the target cluster.

Is this possible?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
karelzcommented, Jul 27, 2021

Triage: Interesting idea, we should find out how many more customers would use it. Moving to Backlog for now.

1reaction
Tratchercommented, May 5, 2022

We added something for this called ReassignProxyRequest. See https://microsoft.github.io/reverse-proxy/articles/ab-testing.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should I use cluster for every route in express.js?
I'm using the cluster module to fork my application in my index.js (which is the main file in my application/root directory of my...
Read more >
Logic Configuration - Network Routing
The network routing logic considers different possible paths that an order may take through itineraries and routing networks.
Read more >
Cluster-Based Logic Blocks for FPGAs: Area-Efficiency vs ...
evaluates the area-efficiency of clusters of different sizes. ... the logic cluster can be connected to the FPGA routing for use by other...
Read more >
Adding Logical Clusters
Hold the Control key down to select multiple instances. Click OK then click Next. Add routed applications, logins, and aliases. Routing rules ...
Read more >
Deploying multi-cluster Gateways
After the application and Gateway resources are deployed, you can control traffic across the two GKE clusters using path-based routing:.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found