amazon-elb

Is it possible to send a broadcast message to all instances behind the ELB?

橙三吉。 提交于 2019-12-07 02:32:27
问题 I want to send update to all instances behind the ELB. I prefer to send update instead of polling from instance side. Is it possible to send a message to ELB that will be broadcasted to all instances ? 回答1: Not directly, no. A programmatic workaround is to query the ELB API to discover the identities of the healthy instances then the EC2 API to discover the IP addresses of those instances, and then send the message to each instance, directly. 来源: https://stackoverflow.com/questions/35151042

AWS ELB -> Backend Server over HTTPS with Self-Signed Certificate

两盒软妹~` 提交于 2019-12-06 17:11:14
问题 I already have HTTPS in place to terminate external HTTPS connections at my AWS ELB. I'm now attempting to secure my connections between my ELB and my backend NGINX servers on EC2 using HTTPS with a self-signed certificate. I've followed the documentation, but accessing the server over HTTPS results in a 408 HTTP timeout. I can't seem to get any debugging information to determine where things are failing. I've confirmed that the security groups permit connections between the ELB and NGINX on

How to change app on multiple ec2 instances?

半腔热情 提交于 2019-12-06 05:08:44
I'm new to AWS. Can anyone point me in the right direction of how to update my app residing on multiple ec2 instances? I found this answer: How do I update multiple EC2 instances that are load-balanced? which points to this article: http://linuxforlovers.wordpress.com/2009/04/11/sharing-amazon-elastic-block-store-among-multiple-instances/ The article has been updated and explains you can boot from EBS-backed AMIs that can have essentially unbounded size as of now. Does this mean instead of having a ebs instance that I can update with my app, I can load the app on an ec2 instance, create an ami

ASP.NET MVC site not working correctly behind AWS ELB

怎甘沉沦 提交于 2019-12-06 04:46:16
问题 I'm trying to deploy an ASP.NET MVC web application, which uses individual user accounts, to an AWS server, which is using an elastic load balancer (ELB). I've deployed the site to IIS on the AWS app server, connected it to my AWS SQL server, and it works as expected on the server (and indeed when I run it in Visual Studio or deploy to an internal server). The problem comes when accessing it remotely, which of course goes via the ELB. If I try and access https://www.example.com/ it doesn't

Cloudfront, ELB and SSL

北城余情 提交于 2019-12-06 04:38:48
问题 If i use Cloudfront to sit in front of a webserver, which itself is behind an ELB, would the following apply? I use Route53 to create a domain name record for the CF domain and apply an SSL certificate to that domain to secure the distribution If CF can not serve the content from the cache then the SSL connection is forward to the the ELB (which fronts the webserver as an origin server) Therefore i also need to use the same domain name (FQDN) on the ELB (via Route53 CNAME) and apply the same

How to synchronize sessions using Amazon Web Services (AWS)?

情到浓时终转凉″ 提交于 2019-12-06 01:39:49
We're using Amazon Web Services (AWS) and we have multiple web servers and a load balancer. The problem with the web servers is, that the $_SESSION is unique for each one. I'm keeping some information about the user in the $_SESSION. What is the proper way to synchronize this information? Is there any way to unite the place, where those sessions are being kept, or should I use MySQL to store this data (I don't really like the last option)? Brandon Nicoll I think what you are looking for is 'Sticky Sessions'. If I'm right about that, Amazon gives you two different options. Load Balancer

How to setup health check page in django

空扰寡人 提交于 2019-12-05 17:18:02
I have a webapp which required authentication to access any page of it. But for my ELB to work I have to setup health-check page for ELB so that ELB discover django app. This page should return HTTP 200 and no auth required. How do I setup this with django/nginx world. NOT RECOMMENDED - this was a quick and dirty way to get Django up and running with ELB, but in most cases a health check response should be returned directly from your application code. See the rest of the answers for a better solution. This is something better handled by nginx, so the fact that it's serving a django app should

WebSockets and Load Balancing, a bottleneck?

余生长醉 提交于 2019-12-05 16:43:13
问题 When having a bunch of systems that act as WebSocket drones and a Load Balancer in front of those drones. When a WebSocket request comes into the LB it chooses a WebSocket drone, and the WebSocket is established. (I use AWS ELB tcp SSL-terminated at ELB) Question: Now does the created WebSocket go through the LB, or does the LB forward the WebSocket request to a WebSocket drone and thus there is a direct link between client and a WebSocket drone? If the WebSocket connection goes through the

Accessing AWS EC2 instances through ELB

旧时模样 提交于 2019-12-05 14:35:29
问题 I'm trying to set up two instances under an elastic load balancer, but cannot figure out how I'm supposed to access the instances through the load balancer. I've set up the instances with a security group to allow access from anywhere to certain ports. I can access the instances directly using their "Public DNS" (publicdns) host name and the port PORT: http://[publicdns]:PORT/ The load balancer contains the two instances and they are both "In Service" and it's forwarding the port (PORT) onto

Is it possible to send a broadcast message to all instances behind the ELB?

六月ゝ 毕业季﹏ 提交于 2019-12-05 08:08:39
I want to send update to all instances behind the ELB. I prefer to send update instead of polling from instance side. Is it possible to send a message to ELB that will be broadcasted to all instances ? Not directly, no. A programmatic workaround is to query the ELB API to discover the identities of the healthy instances then the EC2 API to discover the IP addresses of those instances, and then send the message to each instance, directly. 来源: https://stackoverflow.com/questions/35151042/is-it-possible-to-send-a-broadcast-message-to-all-instances-behind-the-elb