[GH-ISSUE #2757] Load balancer for frp http proxy for horizontal scaling. #2203

Closed
opened 2026-05-05 13:25:02 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @anand-010 on GitHub (Jan 12, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2757

Describe the feature request

Nginx or other load balancer technique for dynamic loads.
I have already seen the subdomains assigning to each server which is not flexible, scalable and dynamic.
May be there needs to be extra headers or something from proxy connection and user connection for the load balancer to route.

Describe alternatives you've considered

Assigning subdomains to each server manually is the current solutionwhich is not flexible, scalable and dynamic.

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @anand-010 on GitHub (Jan 12, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2757 ### Describe the feature request Nginx or other load balancer technique for dynamic loads. I have already seen the subdomains assigning to each server which is not flexible, scalable and dynamic. May be there needs to be extra headers or something from proxy connection and user connection for the load balancer to route. ### Describe alternatives you've considered Assigning subdomains to each server manually is the current solutionwhich is not flexible, scalable and dynamic. ### Affected area - [X] Docs - [ ] Installation - [X] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:25:02 -06:00
  • closed this issue
  • added the
    proposal
    label
Author
Owner

@fatedier commented on GitHub (Jan 12, 2022):

I can't get your point. Can you describe more or draw a simple flow chart?

<!-- gh-comment-id:1010685622 --> @fatedier commented on GitHub (Jan 12, 2022): I can't get your point. Can you describe more or draw a simple flow chart?
Author
Owner

@anand-010 commented on GitHub (Jan 12, 2022):

Here is the flow chart i am created.
Before that i am created plugin for authentication for each reverse proxy users.
diagram
Each http connections and it's associated reverse proxy connection must be forward to same vm otherwise it doesn't work.
How do we deal with this situations.

<!-- gh-comment-id:1010756695 --> @anand-010 commented on GitHub (Jan 12, 2022): Here is the flow chart i am created. Before that i am created plugin for authentication for each reverse proxy users. ![diagram](https://user-images.githubusercontent.com/32414977/149088660-e65d0aa3-11c0-4f3d-949d-a1836b7bbcb7.PNG) Each http connections and it's associated reverse proxy connection must be forward to same vm otherwise it doesn't work. How do we deal with this situations.
Author
Owner

@fatedier commented on GitHub (Jan 12, 2022):

As you said, load-balance by DNS is a simple way. You can resolve xxx.group1.com and xxx.group2.com to different VMs.

This project is not designed for this scenario. It's not an easy feature, especially for TCP connections.

<!-- gh-comment-id:1010774079 --> @fatedier commented on GitHub (Jan 12, 2022): As you said, load-balance by DNS is a simple way. You can resolve `xxx.group1.com` and `xxx.group2.com` to different VMs. This project is not designed for this scenario. It's not an easy feature, especially for TCP connections.
Author
Owner

@anand-010 commented on GitHub (Jan 13, 2022):

Do you have any suggestions how to implement it.
is there any header or other specific data's to uniquely identify proxy connection and http user connections ?.

<!-- gh-comment-id:1011981301 --> @anand-010 commented on GitHub (Jan 13, 2022): Do you have any suggestions how to implement it. is there any header or other specific data's to uniquely identify proxy connection and http user connections ?.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2203
No description provided.