load-balancing

Determine IP Address of Client Behind Amazon ELB

白昼怎懂夜的黑 提交于 2019-12-03 05:05:20
We have some PHP servers on EC2 behind ELB. We would like to determine the locale/region by IP address of the clients connecting to our servers. The problem is the PHP servers only see the IP address of the ELB. We would like to see the IP addresses of the clients passed through the ELB. According to the AWS docs , the ELB should be setting the 'X-Forwarded-For' HTTP header which preserves the original client ip address: The X-Forwarded-For request header helps you identify the IP address of a client. Because load balancers intercept traffic between clients and servers, your server access logs

Do Azure Websites use sticky-ip load balancing?

白昼怎懂夜的黑 提交于 2019-12-03 04:02:56
I just stood up a website using the Windows Azure Websites preview. After doing so, I ran YSlow to make sure the score is what I expect it to be. When doing so, I get a message that reads "Use cookiless domains". Well, this is just an informational website, we don't even use session. So I check the http request and there's a cookie in there named "ARRAffinity". Some quick googling turns up this link: http://social.msdn.microsoft.com/Forums/en-US/windowsazurewebsitespreview/thread/0ba2c2f6-d5a1-40b6-8d0d-e44b58b65753/ Does this mean that Azure websites always use sticky-IP? This is kind of

How can you publish a Kubernetes Service without using the type LoadBalancer (on GCP)

吃可爱长大的小学妹 提交于 2019-12-03 03:52:24
I would like to avoid using type: "LoadBalancer" for a certain Kubernetes Service, but still to be able to publish it on the Internet. I am using Google Cloud Platform (GCP) to run a Kubernetes cluster currently running on a single node. I tried to us the externalIPs Service configuration and to give at turns, the IPs of: the instance hosting the Kubernetes cluster (External IP; which also conincides with the IP address of the Kubernetes node as reported by kubernetes describe node ) the Kubernetes cluster endpoint (as reported by the Google Cloud Console in the details of the cluster) the

Writing a weighted load balancing algorithm

妖精的绣舞 提交于 2019-12-03 03:50:51
I've to write a weighted load balancing algorithm and I'm looking for some references. Is there any book ? that you can suggest to understand such algorithms. Thanks! A simple algorithm here isn't that complicated. Let's say you have a list of servers with the following weights: A 10 B 20 C 30 Where the higher weight represents it can handle more traffic. Just divide the amount of traffic sent to each server by the weight and sort smallest to largest. The server that comes out on top gets the user. for example, let's say each server starts at 10 users, then the order is going to be: C - 10 /

Load blancing MQTT broker

拥有回忆 提交于 2019-12-03 03:40:46
Is it possible to load balance MQTT broker? Can I use ELB to load balance MQTT? Any pointers in this direction would be helpful. I hit upon http://www.slideshare.net/kellogh/mqtt-kafka-33100776 but it did not help much. Use HAProxy . A free, fast and reliable solution offering high availability, load balancing and proxying for TCP and HTTP based applications. It’s suited for very high traffic web sites. Load balancing MQTT brokers is not supported out-of-the-box by most MQTT brokers. There are brokers available which support clustering, though. Take a look at this list to find out a broker

Load balancing since Node v0.12.2 - cluster, pm2 or nginx

久未见 提交于 2019-12-03 03:24:09
With Node v0.12.2, the cluster module supports Round-Robin (RR) load balancing , which ensures load is more evenly distributed than the previous OS-level load balancing. So now we are spoilt for choice: Use the cluster module Use pm2 which uses the cluster module under the hood Use nginx Use HAProxy I am aware of this excellent post as well as other answers here on SO, but none have addressed the newer Cluster module with RR mode. So the question boils down to: Judging only on their load balancing capabilities, should I use pm2 or nginx ? TL;DR If it's just pm2 vs. nginx go for nginx. Better :

Load Balancing in Asp.net, what I should consider while development?

家住魔仙堡 提交于 2019-12-03 03:09:07
While working on one ASP.NET project hosted within web farm including two front ends and load balancing, we got one issue regarding ASP.NET session state while being set to be "InProc", and we found that it's not working properly with load balancing., and we should consider using of "SQLServer" mode. So, I'm wondering if there are any other points (Sessions, Caching, Security, file uploading, SQL Connections ...), we should take in consideration while development and deployment in such environment. Microsoft offers some guidance on this. They have a knowledge base article with links to other

“Work stealing” vs. “Work shrugging”?

◇◆丶佛笑我妖孽 提交于 2019-12-03 03:07:53
Why is it that I can find lots of information on "work stealing" and nothing on "work shrugging" as a dynamic load-balancing strategy? By "work-shrugging" I mean pushing surplus work away from busy processors onto less loaded neighbours, rather than have idle processors pulling work from busy neighbours ("work-stealing"). I think the general scalability should be the same for both strategies. However I believe that it is much more efficient, in terms of latency & power consumption, to wake an idle processor when there is definitely work for it to do, rather than having all idle processors

ASP.Net - Handling session data in a load balanced environment?

痞子三分冷 提交于 2019-12-03 02:58:08
How does ASP.Net deal with session data in a load balanced environment? Let's say a user makes multiple requests while navigating through a couple of pages? Do all requests go to the same server in the load balancer? What can I do if they don't all point to the same server? how do I deal with my session data? You need to ensure that your NLB has the ability to enable "Sticky" sessions. If this isn't an option, then you need to look at using the ASP.Net Session Modes to configure either a Session Server, or some backing store like SQL Server. In general most load balancers try to have

Storm-Kafka multiple spouts, how to share the load?

余生长醉 提交于 2019-12-03 02:55:54
I am trying to share the task among the multiple spouts. I have a situation, where I'm getting one tuple/message at a time from external source and I want to have multiple instances of a spout, main intention behind is to share the load and increase performance efficiency. I can do the same with one Spout itself, but I want to share the load across multiple spouts. I am not able to get the logic to spread the load. Since the offset of messages will not be known until the particular spout finishes the consuming the part (i.e based on buffer size set). Can anyone please put some bright light on