load-balancing

502 response coming from errors in Google Cloud LoadBalancer

心不动则不痛 提交于 2020-01-02 05:33:11
问题 I'm using Google App Engine Flexible env (already migrated to env:flex) with python 3.4 runtime. Over last month, i noticed multiple times(but less than 5% of requests) that i or automated processes, get a 502 from the server (Bad Gateway). Couldn't reproduce it locally and couldn't find any trace for it under GAE service logs. But looking for 502 error across all services, i realized that they come from Cloud HTTP Load Balancer service. Going over the jsonPayload of these 502 errors, i see

PerformanceCounter creation take a LONG time

▼魔方 西西 提交于 2020-01-02 02:34:09
问题 I'm working on a charge balancing system and thus I need to know the charge of each machine. PerformanceCounter seem the way to go, but creating the first one take between 38 and 60 sec. Each subsequent new Counter or 'NextValue' call is nearly instant however. Here is the code I'm using : [TestClass] public class PerfMon { [TestMethod] public void SimpleCreationTest() { Stopwatch Time = new Stopwatch(); Time.Start(); Debug.WriteLine("Time is : " + Time.ElapsedMilliseconds); // Create

How to verify Azure Load Balancer?

拥有回忆 提交于 2020-01-01 11:42:06
问题 I want to be able to configure the Azure Load Balancer Emulator in such a way that two consecutive calls to the web app will always result in calls to different instances. How am i able to perform that? How can i verify that the load balancer is working as expected? Using the HttpContext.Current.Request.Url and seing if the endpoint port changes? Thanks in advance 回答1: The default Load Balancer which are available to your Windows Azure Web and Worker roles are software load balancers and not

Get Client IP address using WCF 4.5 RemoteEndpointMessageProperty in load balancing situation

拥有回忆 提交于 2020-01-01 10:50:14
问题 I have hosted WCF 4.5 Restful service in IIS and I am trying to use RemoteEndpointMessageProperty to get the IP address of the client who consumes the service. Code 1: private string GetClientIP() { OperationContext context = OperationContext.Current; MessageProperties prop = context.IncomingMessageProperties; RemoteEndpointMessageProperty endpoint = prop[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty; string ip = endpoint.Address; return ip; } Code 2: private string

Get Client IP address using WCF 4.5 RemoteEndpointMessageProperty in load balancing situation

时光毁灭记忆、已成空白 提交于 2020-01-01 10:50:07
问题 I have hosted WCF 4.5 Restful service in IIS and I am trying to use RemoteEndpointMessageProperty to get the IP address of the client who consumes the service. Code 1: private string GetClientIP() { OperationContext context = OperationContext.Current; MessageProperties prop = context.IncomingMessageProperties; RemoteEndpointMessageProperty endpoint = prop[RemoteEndpointMessageProperty.Name] as RemoteEndpointMessageProperty; string ip = endpoint.Address; return ip; } Code 2: private string

Configure HAProxy for rabbitmq

你离开我真会死。 提交于 2020-01-01 06:38:28
问题 I want to use HAProxy as a load balancer. I want to put two rabbitmq server behind haproxy. Both the rabbitmq server are on different instance of EC2. I have configure HAProxy server by following this reference. I works but the problem is messages are not published in roundrobin pattern. Messages are publish only on one server. Is there any different configuration for my requirement? My configureation in /etc/haproxy/haproxy.cfg listen rabbitmq 0.0.0.0:5672 mode tcp stats enable balance

Avoiding invalid viewstate when deploying on a load balanced website without downtime

☆樱花仙子☆ 提交于 2020-01-01 06:28:00
问题 Here is the scenario: We have 3 web servers A, B, C. We want to release a new version of the application without taking the application down (e.g. not using the "Down for maintenance page"). Server A goes live with latest code. Server B gets taken off-line. Users on Server B get routed to A and C. Page1.aspx was updated with new control. Anyone that came from Server B to Server A while on this page will get a viewstate error when they perform an action on this page. This is what we want to

How to get visitor IP on load balancing machine using asp.net

ε祈祈猫儿з 提交于 2020-01-01 03:33:24
问题 We are having two load balancing server. In that we have hosted a asp.net 3.5 application right now we are using request userhostaddress to get visitor ip but it is giving load balancer ip instead of real ip. Can anyone have code for this. 回答1: The problem is more to do with the fact that the "load balancer" is acting as a proxy. What type of load balancer are you using? I know with Microsoft ISA server there is a setting to pass the original users IP address through to the webserver.

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

随声附和 提交于 2019-12-31 22:22:31
问题 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

Linux Kernel- task_h_load

一曲冷凌霜 提交于 2019-12-31 13:52:10
问题 I'm trying to understand what happens during the load_balance function. I'm checking version 3.14 but I also took a look at version 4.3 since I was told that the mechanism was changed and a bit more clear in this version. in v3.14 the call is from move_tasks in v4.3 the call is from detach_tasks from what I see it is the same function but only with a different name. This function is moving tasks from one queue to another according to the env->balance parameter. What I don't understand is what