load-balancing

HAProxy Loadbalancing TCP traffic

别来无恙 提交于 2019-12-31 09:05:12
问题 Using HAProxy, I'm trying to (TCP) load balance Rserve(a service listening in TCP socket for calling R scripts) running at port 6311 in 2 nodes. Below is my config file. When I run HAProxy, its statting without any issues. But when I connect to the balanced nodes, getting below error. Anything wrong with the config? Handshake failed: expected 32 bytes header, got -1 #--------------------------------------------------------------------- # Global settings #--------------------------------------

Getting client values of IIS Server Variables in Load Balanced Environment

纵饮孤独 提交于 2019-12-30 12:22:36
问题 I have an intranet ASP.NET web application in which I need to get the IP of the client's machine. I do this vis the following code: HttpContext.Current.Request.ServerVariables.Item("REMOTE_HOST") It used to work when my ASP.NET site was only hosted on a single server. However once we got the load balancer installed and migrated our apps to a web farm, the code above returns the IP of the Load Balancer device and not of the client anymore. I am working with the networking folks to determine

Getting client values of IIS Server Variables in Load Balanced Environment

不问归期 提交于 2019-12-30 12:22:02
问题 I have an intranet ASP.NET web application in which I need to get the IP of the client's machine. I do this vis the following code: HttpContext.Current.Request.ServerVariables.Item("REMOTE_HOST") It used to work when my ASP.NET site was only hosted on a single server. However once we got the load balancer installed and migrated our apps to a web farm, the code above returns the IP of the Load Balancer device and not of the client anymore. I am working with the networking folks to determine

Cloud Foundry / Bluemix load balancing

*爱你&永不变心* 提交于 2019-12-30 11:14:09
问题 I know that by default, Bluemix / Cloud Foundry use round-robin load balancing. Is there a way to change that? If I deploy 2 apps with the same route, and want 90% of my traffic to go to blue, and 10% to green, is that possible? 回答1: You would have to deploy more than two instances of the app to have better than 50-50 control over who sees what. If you have 10 instances, for example, and you update 1, then you could get your 90-10 split. Check out this CF CLI plugin: https://github.com/krujos

RequireHttps causes redirect loop on Amazon Elastic Load Balancer

给你一囗甜甜゛ 提交于 2019-12-30 06:30:10
问题 I have an ASP.NET MVC 4 application running behind Amazon's elastic load balancer. Everything works OK when I install my SSL certificate on the load balancer and the web server and terminate SSL at the web server layer. However, when I attempt to terminate at the load balancer layer, forwarding internal traffic from the load balancer to web servers un-encrypted on port 80, the RequireHttps attribute causes a redirect loop. This seemingly makes sense as it is requesting an encrypted channel

Expose a kubernetes deployment (frontend) using ingress controller

白昼怎懂夜的黑 提交于 2019-12-29 09:32:31
问题 I am deploying a number of docker containers of micro-services and angular frontend on Kubernetes. I have exposed the services using an ingress controller specifying each service using this, and specifying paths in backend. apiVersion: extensions/v1beta1 kind: Ingress For my frontend, I have created a service with type loadbalancer. apiVersion: v1 kind: Service metadata: annotations: service.beta.kubernetes.io/azure-load-balancer-resource-group: my-resource-group name: myapp-svc namespace: ui

Expose a kubernetes deployment (frontend) using ingress controller

二次信任 提交于 2019-12-29 09:32:17
问题 I am deploying a number of docker containers of micro-services and angular frontend on Kubernetes. I have exposed the services using an ingress controller specifying each service using this, and specifying paths in backend. apiVersion: extensions/v1beta1 kind: Ingress For my frontend, I have created a service with type loadbalancer. apiVersion: v1 kind: Service metadata: annotations: service.beta.kubernetes.io/azure-load-balancer-resource-group: my-resource-group name: myapp-svc namespace: ui

Elastic Load Balancing both internal and internet-facing

拜拜、爱过 提交于 2019-12-29 06:05:55
问题 We are trying to use Elastic Load Balancing in AWS with auto-scaling so we can scale in and out as needed. Our application consists of several smaller applications, they are all on the same subnet and the same VPC. We want to put our ELB between one of our apps and the rest. Problem is we want the load balancer to be working both internally between different apps using an API and also internet-facing because our application still has some usage that should be done externally and not through

Elastic Load Balancing both internal and internet-facing

女生的网名这么多〃 提交于 2019-12-29 06:03:56
问题 We are trying to use Elastic Load Balancing in AWS with auto-scaling so we can scale in and out as needed. Our application consists of several smaller applications, they are all on the same subnet and the same VPC. We want to put our ELB between one of our apps and the rest. Problem is we want the load balancer to be working both internally between different apps using an API and also internet-facing because our application still has some usage that should be done externally and not through

Algorithm to split an array into P subarrays of balanced sum

蹲街弑〆低调 提交于 2019-12-28 11:53:37
问题 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