amazon-elb

Is there any way to send a http request to all instances in a AWS ELB? [closed]

折月煮酒 提交于 2019-12-10 10:55:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . I will make an array of Varnish servers using Amazon Auto Scaling. With that, I'll have to send a purge request to all servers that are as healthy on the load balancer. It is possible? What is the easiest way to do? Should I use API? 回答1: That's fairly straightforward using awscli / API. Get healthy instance IDs

How to connect AWS ELB to RDS running MS SQL?

萝らか妹 提交于 2019-12-09 23:45:17
问题 AWS clearly states here and in the Q&A that one can connect to an MS SQL server using a PHP instance on the Elastic Beanstalk. However, there seems to be no way to install the MSSQL drivers. For example, installing yum php-mssql from the ELB command line, generates errors stating that the versions of the dependencies needed are too high. Here's a classic error report: --> Running transaction check ---> Package php-common.x86_64 0:5.3.29-1.8.amzn1 will be installed --> Processing Conflict:

Multiple ELBs for a single auto-scaling group

末鹿安然 提交于 2019-12-09 18:29:28
问题 We have multiple SSL certificates for a group of EC2 server (due to legacy constraints). We have multiple ELBs pointing at this group, each terminating the SSL for a specific certificate. We now want to move to auto-scaling instead of a hard-coded list of EC2 instances. Will a single auto-scaling group work with multiple ELBs? 回答1: Yes it works (we do this since some years). The autoscaling group automatically attaches new instances to each ELB. If you use the command line tools you can

ECS and Application Load Balancer

爱⌒轻易说出口 提交于 2019-12-08 17:20:39
问题 Ive been looking for some information on Cloud Formation with regards to creating a stack with ECS and ELB (Application Load Balancer) but unable to do so. I have created two Docker images each containing a Node.js microservice that listens on ports 3000 and 4000 . How do I go about creating my stack with ECS and ELB as mentioned ? I assume the Application Load Balancer can be configured to listen to both these ports ? A sample Cloud Formation template would really help. 回答1: The Application

API Gateway - ALB: Hostname/IP doesn't match certificate's altnames

自作多情 提交于 2019-12-08 16:09:48
问题 My setup currently looks like: API Gateway --- ALB --- ECS Cluster --- NodeJS Applications | -- Lambda I also have a custom domain name set on API Gateway (UPDATE: I used the default API gateway link and got the same problem, I don't think this is a custom domain issue) When 1 service in ECS cluster calls another service via API gateway, I get Hostname/IP doesn't match certificate's altnames: "Host: someid.ap-southeast-1.elb.amazonaws.com. is not in the cert's altnames: DNS:*.execute-api.ap

Using Redis behing AWS load balancer

我怕爱的太早我们不能终老 提交于 2019-12-08 10:23:29
问题 We're using Redis to collect events from our web application (pub/sub based) behind AWS ELB. We're looking for a solution that will allow us to scale-up and high-availability for the different servers. We do not wish to have these two servers in a Redis cluster, our plan is to monitor them using cloudwatch and switch between them if necessary. We tried a simple test of locating two Redis server behind the ELB, telnetting the ELB DNS and see what happens using 'redis-cli monitor', but we don't

How to change app on multiple ec2 instances?

拟墨画扇 提交于 2019-12-08 02:45:18
问题 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

How to setup health check page in django

这一生的挚爱 提交于 2019-12-07 11:00:25
问题 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. 回答1: 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

Token Aware Astyanax Connection pool connecting on nodes without distributing connections over nodes

纵饮孤独 提交于 2019-12-07 04:56:28
问题 I was using astyanax connection pool defined as this: ipSeeds = "LOAD_BALANCER_HOST:9160"; conPool.setSeeds(ipSeeds) .setDiscoveryType(NodeDiscoveryType.TOKEN_AWARE) .setConnectionPoolType(ConnectionPoolType.TOKEN_AWARE); However, my cluster have 4 nodes and I have 8 client machines connecting on it. LOAD_BALANCER_HOST forwards requests to one of my four nodes. On a client node, I have: $netstat -an | grep 9160 | awk '{print $5}' | sort |uniq -c 235 node1:9160 680 node2:9160 4 node3:9160 4

AWS ELB doesn't distribute requests to auto scaling group EC2 instances in some cases

痞子三分冷 提交于 2019-12-07 04:03:52
问题 I'm trying to do performance testing for my AWS auto scaling group using jmeter. Firstly, I did scale-in/out testing. I set the threshold to be 70% cpu utilization for 2 periods, each period is 2 minutes. The ELB works fine, and the requests was distributed to all EC2 instances in auto scaling group, in spite of un-equality, after the system scale-out. In next, I want to test whether the two instances' load can be twice of one instance's. I fixed the instance number of auto scaling group, I