load-balancing

Scaling up the ASP.NET session state server

倖福魔咒の 提交于 2019-11-28 08:48:28
Scenario: The website is hosted on three servers using IIS on each. All three servers are clustered using the network load balancing software that comes with Windows Server 2003. All three sites are configured to store the session state on a separate server that has been designated as a "state server". I have been asked to scale up the "state server". Is there a way that I can have more than one state server and synchronize state between them, so if one of the state servers goes down the others will be able to serve the state information? I'd go for memcached. You could set it up on each of

Haproxy route and rewrite based on URI path

风流意气都作罢 提交于 2019-11-28 08:28:50
I am trying to setup an Haproxy to load balance requests on a few backends identified by the uri path. For example: https://www.example.com/v1/catalog/foo/bar Should lead to the "catalog-v1" backends. Thing is each app responds on a different path so I must not only identify the app but rewrite the URL path. E.g. https://www.example.com/v1/catalog/product https://www.example.com/v2-2/checkout/cart/123 https://www.example.com/v3.1.2/checkout/cart TO https://www.example.com/catalog-v1/product https://www.example.com/checkout-v2-2/cart/123 https://www.example.com/checkout-v3.1.2/cart I know I

GWT load testing with jmeter

我与影子孤独终老i 提交于 2019-11-28 07:36:19
I have a GWT application and wanna to test load and functionality using a tool like jmeter. I am not sure jmeter is right tool for GWT. Can anybody direct me to proper tool or can tell me how to do it with jmeter? I want to test login functionality: I have two text box 'User name' and 'Password' on login screen and want to test how many users can log in simultaneously, how much time a round trip to server it takes. Don't know how jmeter can get 'user name' and 'password' and can submit it to validate against DB for GWT application? Thanks in advance. pdbartlett I guess it depends what exactly

Algorithm to split an array into P subarrays of balanced sum

て烟熏妆下的殇ゞ 提交于 2019-11-28 06:24:16
I have an big array of length N, let's say something like: 2 4 6 7 6 3 3 3 4 3 4 4 4 3 3 1 I need to split this array into P subarrays (in this example, P=4 would be reasonable), such that the sum of the elements in each subarray is as close as possible to sigma, being: sigma=(sum of all elements in original array)/P In this example, sigma=15 . For the sake of clarity, one possible result would be: 2 4 6 7 6 3 3 3 4 3 4 4 4 3 3 1 (sums: 12,19,14,15) I have written a very naive algorithm based in how I would do the divisions by hand, but I don't know how to impose the condition that a division

SSL and Load Balancing

天大地大妈咪最大 提交于 2019-11-28 05:28:23
What affect does SSL have on the way load balancing works? I know that you need to use sticky sessions if you have chosen to not store you session info in the DB or Out of Process but how does that effect SSL? Just to clarify, the SSL/TLS sessions have nothing to do with the HTTP sessions. (Some implementations may use the SSL/TLS session ID as a basis for maintaining HTTP sessions, but this is a bad design, as SSL/TLS may change sessions completely independently what HTTP is doing). In terms of load balancing, you get a couple of options: Use a load-balancer that is your SSL/TLS endpoint. In

Proxying WebSockets with TCP load balancer without sticky sessions

对着背影说爱祢 提交于 2019-11-28 04:41:21
I want to proxy WebSocket connections to multiple node.js servers using Amazon Elastic Load Balancer. Since Amazon ELB does not provide actual WebSocket support, I would need to use its vanilla TCP messaging. However, I'm trying to understand how this would work without some sort of sticky session functionality. I understand that WebSockets work by first sending an HTTP Upgrade request from the client, which is handled by the server by sending a response which correctly handles key authentication. After the server sends that response and it is approved by the client, there is a bidirectional

Ingress vs Load Balancer

大憨熊 提交于 2019-11-28 02:45:57
I am quite confused about the roles of Ingress and Load Balancer in Kubernetes. As far as I understand Ingress is used to map incoming traffic from the internet to the services running in the cluster. The role of load balancer is to forward traffic to a host. In that regard how does ingress differ from load balancer? Also what is the concept of load balancer inside kubernetes as compared to Amazon ELB and ALB? Lindsay Landry Load Balancer: A kubernetes LoadBalancer service is a service that points to external load balancers that are NOT in your kubernetes cluster, but exist elsewhere. They can

How to specify static IP address for Kubernetes load balancer?

99封情书 提交于 2019-11-27 21:08:42
问题 I have a Kubernetes cluster running on Google Compute Engine and I would like to assign static IP addresses to my external services ( type: LoadBalancer ). I am unsure about whether this is possible at the moment or not. I found the following sources on that topic: Kubernetes Service Documentation lets you define an external IP address, but it fails with cannot unmarshal object into Go value of type []v1.LoadBalancerIngress The publicIPs field seems to let me specify external IPs, but it

Load Balancing (HAProxy or other) - Sticky Sessions

断了今生、忘了曾经 提交于 2019-11-27 19:08:16
I'm working on scaling out my app to multiple servers, and one requirement is that a client is always communicating with the same server (too much live data is used to allow bouncing between servers efficiently). My current setup is a small server cluster (using Linode). I have a frontend node running HAProxy using "balance source" so that an IP is always pointed towards the same node. I'm noticing that "balance source" is not a very even distribution. With my current test setup (2 backend servers), one server often has 3-4x as many connections when using a sample size of 80-100 source IPs. Is

Pros and Cons of Sticky Session / Session Affinity load blancing strategy?

纵饮孤独 提交于 2019-11-27 16:52:59
One approach to high scalability is to use network load balancing to split processing load between several servers. One challenge that this approach presents is where servers are state aware - storing user state in a "session". One solution to this problem is "sticky session" (aka "session affinity") where each user is assigned to a single server and his/her state data is contained on that server exclusively throughout the duration of the session. What are the Pros and Cons of the "sticky session" approach? Do you use it and if so are you satisfied with it? Pros: it's easy-- no app changes