939 reputation
47
bio website jameslittle.me.uk
location United Kingdom
age 30
visits member for 4 years, 8 months
seen yesterday

Apr
25
awarded  Yearling
Apr
25
awarded  Yearling
Feb
7
awarded  Nice Answer
Jun
8
awarded  Caucus
Apr
25
awarded  Yearling
Feb
26
comment Haproxy graceful reload
I meant client and server above.
Feb
26
revised Haproxy graceful reload
Clarity
Feb
26
comment Haproxy graceful reload
@vaibhav Well an established connection should not be dropped, but remember that with HTTP, a new connection is made for each request (unless you have keepalive enabled on client and browser). Do you see successful connections after a number of failed ones? (try running ab for longer if not). If so, this could be the period where the first process is unbinding from the port(s), and the second is binding - you can't have two processes bound to the same ports at the same time.
Feb
18
revised Haproxy graceful reload
added 129 characters in body
Feb
18
answered Haproxy graceful reload
Feb
9
comment EC2 IP Address : How can a web server identify db server ip address at startup?
There's no private elastic IP equivalent. You could use tags to filter, rather than user data. So you call your DB server 'DB1', and then on the webserver, you can run a filtered describe-instances api call, e.g. --filter tag:name=DB1 and the private IP address will be among the data returned. More here: docs.amazonwebservices.com/AWSEC2/latest/CommandLineReference/…
Feb
9
answered EC2 IP Address : How can a web server identify db server ip address at startup?
Feb
1
comment Load testing sites behind an EC2 load balancer with ApacheBench
Not as far as I know. Can you confirm that the ab traffic is not hitting the backend servers (via server logs or packet captures)? What is the result with a similar tool such as httperf? Perhaps ELB considers the ab HTTP request header invalid for some reason...
Jan
8
answered Active - Active Appserver Loadbalancing strategy
Jan
4
comment How can I find out why my EC2 instance was down for a while
Also, how long has the nginx process been running? You can check the start-time using ps aux or similar.
Jan
4
comment How can I find out why my EC2 instance was down for a while
Have you checked your bad login attempt log (usually /var/log/btmp)? I think you will have to ask Amazon, maybe they detected an attack (e.g. syn flood) and took action higher up the chain to cut off the traffic. Also use ifconfig and ethtool to check for interface errors.
Jan
4
comment How can I find out why my EC2 instance was down for a while
You say the nginx log looks normal; do you have access logging enabled? i.e. you can see accesses over the internet during this time? Also, did you notice what the load average was when you first re-connected to the instance?
Dec
31
comment A lot of errors 400 access.log with Nginx and loadbalancer
Hmm, I would be tempted to do a tcpdump of your http traffic to see what could be causing the errors; something unusual in the http headers perhaps. Also, could be related to large cookies: blog.craz8.com/articles/2009/06/17/….
Dec
30
comment A lot of errors 400 access.log with Nginx and loadbalancer
You should solve the problem rather than treating the symptoms. What's your 'ping path' for your ELB's HTTP health check? Make sure that it begins with a slash, .e.g. "/index.html", otherwise it may not be considered a valid HTTP request and hence the 400 errors.
Dec
29
comment Recover data from EC2 instance storage
It's mentioning /tmp/my-key because that's the location used by the startup script to temporarily store your public SSH key (the one associated with the ssh keypair for the instance) before it copies it to ~/.ssh/authorized_keys. So you have no ssh access. What happened to the drive that was mounted at /tmp ? Was it an EBS device? If so, create a new one and give it the relevant device name so it is mounted at /tmp.