load-balancing

What might be causing the “The client disconnected” ASP.NET exception?

ぐ巨炮叔叔 提交于 2019-11-30 07:56:14
My .NET 3.5 application sporadically throws the following exception System.Web exception: The client disconnected Why is this exception occurring? My application is running on a load balanced Windows Server 2003 IIS 6.0 server. Paul Prewett The vbdork.net domain seems to now be defunct. In searching on this error, I found several references to this article. So I found a google cached version of it and am now posting it here for reference. The original URL was: http://vbdork.net/post/2009/02/10/The-client-disconnected.aspx You get the message The client Disconnected. You're likely to

MySQL Proxy Alternatives for Database Sharding

二次信任 提交于 2019-11-30 07:42:40
Are there any alternatives for MySQL Proxy. I don't want to use it since it's still in alpha. I will have 10 MySQL servers with table_1 table_2 table_3 table_4 ... table_10 spread across the 10 servers. Each table is identical in their structure, their just shards with different data sets. Is there a alternative to MySQL Proxy, where I can have my client application connect to a single SQL Server (A proxy), which looks at the query and fetches the data on behalf of it. For example, if the client requests "SELECT * FROM table_5 WHERE user=123" from the Proxy, which connects to the 5th SQL

How do I get EC2 load balancing properly set up to allow for real time file syncing?

家住魔仙堡 提交于 2019-11-30 07:33:13
I'm new to EC2. I have read a lot about it, watched many videos and tutorial and pretty much familiar with how everything work. I still have few question that I can't seem to find direct answers to. If I have 3 instances (linux) with load balancing all serving the same site and the site is a dynamic php/mysql driven where users post files forum threads every second, how is the database and files synced to all 3 instances in real time. Do I need to have the database on RDS where every instance simply points to it. How about user files. If a user uploaded a file to the site, then this file

Amazon Elastic load balancer is not populating x-forwarded-proto header

无人久伴 提交于 2019-11-30 05:36:30
问题 I am trying to force all http requests to https requests and I am facing the problem as elastic load balancer not populating x-forwarded-proto header in the request. This is the code I am using and it is causing redirect loop because of this. How would I fix this problem? app.use (function (req, res, next) { console.log('Request headers = ' + JSON.stringify(req.headers)); console.log('Request protocol = ' + JSON.stringify(req.protocol)); var schema = (req.headers['x-forwarded-proto'] || '')

How to configure dotNetOpenId in an session less load balancing environment

南楼画角 提交于 2019-11-30 05:33:23
You've probably solved this before. I need to be able to use open id in an environment that does not have session stickiness. The servers do preserve the headers. I'm using ASP.NET MVC and dotNetOpenId version 3.2.0.9177. Although the authentication on the 3rd party web site goes without a hitch when returning the response I get an error and authentication fails. Any thoughts? Stateful The most optimized method is to write a custom persistence store that implements IRelyingPartyApplicationStore for the "secrets" that OpenID RPs require, and pass your instance to the OpenIdRelyingParty

Elastic Beanstalk without Elastic Load Balancer

元气小坏坏 提交于 2019-11-30 04:11:18
I would like to switch off Elastic Load Balancer (ELB) for my Elastic Beanstalk environment. Currently I don't need it and I don't want to pay for it. It is possible to delete the ELB in EC2 managment window but then Elastic Beanstalk health state is switched from GREEN to RED. I just found a information that it's not possible. Does someone has a trick how to run Elastic Beanstalk without load balancing and have environment GREEN health state? Since July 2013 Elastic Beanstalk supports "single-instance" environments that have a single container instance running without a load balancer.

MongoDB load balancing in multiple AWS instances

我们两清 提交于 2019-11-30 03:51:32
问题 We're using amazon web service for a business application which is using node.js server and mongodb as database. Currently the node.js server is runing on a EC2 medium instance. And we're keeping our mongodb database in a separate micro instance. Now we want to deploy replica set in our mongodb database, so that if the mongodb gets locked or unavailble, we still can run our database and get data from it. So we're trying to keep each member of the replica set in separate instances, so that we

EC2/Route53: How Do I Point Apex Record at Load Balancer?

落爺英雄遲暮 提交于 2019-11-30 02:18:45
问题 In Amazon, I am attempting to create a cname for a domain, example.com to a load balancer in Route 53 Examplecom-1058462749.us-west-2.elb.amazonaws.com But when I try to save the record, I get this error: RRSet of type CNAME with DNS name example.com. is not permitted at apex in zone example.com. And when I try to make it an A record, I get a similar issue: The record set could not be saved because: - The Value field contains invalid characters or is in an invalid format. Because the public

What are the differences between Network and HTTP(s) load balancer in GCP

杀马特。学长 韩版系。学妹 提交于 2019-11-30 01:18:10
问题 GCP provides two load balancers namely Network and HTTP(s) where the former works on layer 4 and the later works on layer 7 . There is also a documentation which states that even HTTP traffic can be load balanced by a network load balancer. This slightly confuses which load balancer to choose for a web app in GCP. It is better to understand the differences before selecting one for the project. What are the differences between them based on the workflow , setup , region/zone based, options for

AWS Load Balancer with a static IP address

冷暖自知 提交于 2019-11-29 23:34:35
I have a set-up running on Amazon cloud with a couple of EC2 Instances running through a load balancer. It is important that the site has a unique(static) IP or set of IPs as I'm plugging in 3rd party APIs which only accept requests made from IPs which have been added to their whitelist. So basically unless we can give these 3rd parties a static IP or range of IPs that the requests from the site will always come from then we would be unable to make any calls to them. Anyone knows how to achieve this as I know that Elastic IPs are not compatible with load balancers? If I were to look up the IP