Proxy traffic consumption


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Proxy traffic consumption
# 1  
Old 12-24-2018
Proxy traffic consumption

Hello,
I am under Ubuntu 16.04 at location1 and location2 and my question is about haproxy.
I'd like to know when a port in location1 is redirected to another computer in location2, does incoming request to redirected port consume traffic both from 1 and 2 or just 2?
What I'd like to accomplish is just consume from location2.
Both location1 and location2 have different public ip addresses.

Thanks in advance
Boris

Last edited by baris35; 12-24-2018 at 02:23 PM..
# 2  
Old 12-24-2018
Want to you mean my "consume"?

Ports are end points for listening (and transmitting) sockets.

Sockets are bound to applications.

So all applications ( a proxy is an application) which listen on a port bind to that port and send and receive data on that port.
# 3  
Old 12-25-2018
Hello Neo,
Thanks for your post.
I have made some tests. When I send a download request to a proxied port at location1, it sends my download request to location2. I can see that traffic is between location1,2 and my house... Not between my house and location2. It seems ridiculous.
When I search "how to set up loadbalance in multiple servers in linux", shown answers are related to haproxy. So, with regard to your answer, loadbalance and haproxy have entirely different functions.

Kind regards
Boris
# 4  
Old 12-26-2018
Sorry, I cannot understand your posts because you are not using the correct technical terms.

For example "location" normally described a physical location, for example, something that can be defined by GPS coordinates.

You are not using terms like "ports" and "sockets" and "hosts" and "server" and "IP address" to describe your problems; and since I'm busy writing code, I don't have time to try to figure out what you are talking about.

You need to describe your problem in terms of the correct technical terms. If you do not understand the correct computer science terms, then I suggest to you that you need to learn these concepts before trying set up a proxy.
# 5  
Old 01-15-2019
Hello,
Long time passed. I have come across the same problem definition at another board.

Quote:
I am a web developer, recently a need has been created to use Load Balancer. I am new in this area. I have chosen which LB to use, its not like it matters so much, HAProxy has all the features needed for as far as I've researched.

My concern is that, with software based load balancer, It does not "redirect" user to the backend server, the loadbalancer stays in the middle, so all the traffic bandwith and tcp connections, will stay in the middle. Did I get it right?

If yes for the question before, then how can I make a solution so the load balancer will not stay in the middle with Client - Backend server?

Also, I need a "source" lb type, because webapp uses session, and I need users to connect to the same servers they've been using.
Thank you in advance.
So, the final question is: How to redirect a request to another ip address:port
Normally in current configuration it forwards incoming requests, not redirecting. So it cause 2x traffic.

Keep searching..

Kind regards
Boris
# 6  
Old 01-16-2019
What you want is called DSR, meaning direct server return.
This is stateless load balancing, since the LB only balances the connection initially, and does nothing else.
The result will be that after initial balance to one of the servers, a client - server connection will not go thru LB after that.

It requires your load balanced servers to have VIP ip address defined on localhost interface (alias).
Also, your load balanced servers must not answer to ARP requests.
And a load balancer software which supports that functionality with a network environment which allows it, since this is MAC spoofing Smilie

Hope that helps
Regards
Peasant.
This User Gave Thanks to Peasant For This Post:
# 7  
Old 01-21-2019
Thank you Peasant,
I think a load balancing software provider can handle all this.
I will mark this topic "sorted"

Kind regards
Boris
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help with a script for proxy traffic

Hello folks; I'm trying to write a script to test our proxy servers to see if they're passing traffic and i need help please. I wrote this code below to implement "httpie" tool but still having issues. Can someone please take a look and let me know what's wrong with this code? The code is supposed... (2 Replies)
Discussion started by: Katkota
2 Replies

2. IP Networking

Connecting via proxy chain to Upstream proxy

I need to configure a proxy on my local machine to use an upstream proxy (installed on another machine). The upstream proxy requires Digest/NTLM authorization. I want the local proxy to deal with the upstream proxy's authorization details and provides authorization free access to users that connect... (0 Replies)
Discussion started by: Russel
0 Replies

3. UNIX Desktop Questions & Answers

Regarding Memory Consumption

Hi All I am new to UNIX ,can any one please help in finding MEMORY CONSUMPTION of VLC when i use it as Streaming Server. I need to log the memory consumption for atleast 10 hours. Can any one help me in finding this Please (1 Reply)
Discussion started by: ravikanth17
1 Replies

4. IP Networking

Software/tool to route an IP packet to proxy server and capture the Proxy reply as an

Hi, I am involved in a project on Debian. One of my requirement is to route an IP packet in my application to a proxy server and receive the reply from the proxy server as an IP packet. My application handles data at the IP frame level. My application creates an IP packet(with all the necessary... (0 Replies)
Discussion started by: Rajesh_BK
0 Replies

5. AIX

consumption memory

Hi, I have a problem with memory on AIX 5.3. On this server, we have JDE Edwards (ERP) and Oracle Database (9.2.0.7.0). We have 4 Gb for physical memory and 3 Gb for paging space. When I stop all services (JDE, Oracle and all other services), the physical memory is not free (4 Gb) svmon... (9 Replies)
Discussion started by: tagger
9 Replies

6. Solaris

Solaris Mem Consumption

We have Sun OS running on spark : SunOS ciniwnpr67 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V440 Having Physical RAM : Sol10box # prtconf | grep Mem Memory size: 8192 Megabytes My Top Output is : 130 processes: 129 sleeping, 1 on cpu CPU states: 98.8% idle, 0.2% user, 1.0%... (27 Replies)
Discussion started by: rajwinder
27 Replies

7. Shell Programming and Scripting

CPU Consumption comparision.

hi, i hav a script which processes 1000 files one by one in every run jus for searching their corresponding output files at a given path, due to this my script runs for long time and taking more CPU, can we have any way in which we can have this check at least 100 files in a single shot... (5 Replies)
Discussion started by: Prateek007
5 Replies

8. UNIX for Advanced & Expert Users

CPU consumption

Hello experts, I am writing an application in Solaris, which is supposed to work on PrimePower 650 and SunFire 440 machines. The application listens to the events raised by the Hardware and OS in /dev/log. The application listens to the messages logged into /dev/log and do some processing on... (3 Replies)
Discussion started by: pleaseteachmeun
3 Replies

9. AIX

Memory consumption of threads

Hi, how can I find out how many memory (physical and virtual) a thread uses at the moment? I know how to find out the Thread-ID, but not how to monitor it... We use AIX 4.3.3 at th emoment. Please help, I am stuck :confused: !! (0 Replies)
Discussion started by: Fong
0 Replies
Login or Register to Ask a Question