HA architecture Flashcards
name the 3 types of load balancers
network, app, classic
_____ load balancers are best suited for load balancing of HTTP adn HTTPS traggic. they operate at layer 7 and are app aware. they are intelligent, and you cna create advanced request routing, sending specified requests to specific web servers.
application
____ are best suited
for the load balancing of TCP traffic
where extreme performance is required.
Network
Network load balancers operate at layer ___4
4
these load balancers are capable of handling millions of requests per second, while maintaining ultra-low latencies.
used for extreme performance
network
____ load balancers are the legacy elastic balanders. you can load balance http/https apps and use layer 7 specific features, such as x-forwarded and sticky sessions. you can also use strict layer 4 load balancing for apps that rely purely on the TCP protocol.
classic
with classic load balancers, If your application stops responding,
the ELB is going to respond with a ___ error.
This means that the app is having issues. this could be either at the web server layer or the db layer. identify where the app is failing, and scale it upor out where possible.
504
what does x-forwarded for header do?
shows the user’s public IP address
instances monitored by ELB are reported as :
what 2 things?
inservice or outofservice
t or false
you get an ip and a dns name for your LB
false, you only get dns name. no IP
Classic Load Balancer’s routes each request
independently to the registered EC2 instance
with the smallest load
and what ___ ____ allows you to do
is to bind a user’s session to a specific EC2 instance.
So, you’re gonna stick a user session
to a particular EC2 instance and this ensures
that all requests from the user during the session
are sent to the same instance.
sticky sessions
you can also enable sticky sessions
for Application Load Balancers as well,
but this time, the traffic will be sent
at the___ ____ level rather than
at the individual EC2 instance.
target group
So, a common exam scenario will be
you’ve got a user, they’re using Route 53,
100% of the traffic’s being sent to a load balancer
in us-east-1a and that load balancer is sending that traffic
on to its four instances which are
in the same Availability Zone as it,
and then you log in to us-east-1b
and you notice that this EC2 instance
is not getting any traffic at all.
What should you do?
Well, you should enable _____ load balancing
and that way, it will get traffic
because it’s in another Availability Zone
and you haven’t enabled ____ load balancing.
cross-zone
you can create a listener with rules
to forward requests based on the URL path
and this is known as _____ routing.
So, if you are running microservices,
you can route traffic to multiple back-end services
using ____ routing.
For example, you can route general requests
to one target group and requests to render images
to another target group.
path-based
what are the three components of auto scaling?
groups, configuration templates, and different scaling options