DevOps Flashcards
Application Server Setup…
Backup System - required for prod Recovery Plans - required for prod Load Balancing Monitoring Centralized Logging
Server environment for a web application
Consists of the hardware, software, data, operational plans, and personnel that are necessary to keep the application working.
Availability
The ability for the application to be usable by its intended users during advertised hours. Availability can be disrupted by any failure that affects a critical component severely enough.
Recoverability
The ability to recover an application environment in the event of system failure or data loss. If a critical component fails, and is not recoverable, availability will become non-existent. Improving maintainability, a related concept, reduces the time needed to perform a given recovery process in the event of a failure, and therefore can improve availability in the event of a failure.
Performance
The application performs as expected under average or peak load (e.g. it is reasonably responsive). While very important to your users, performance only matters if the application is available
Single Point of Failure
Critical components that do not have an automatic failover mechanism.
High Availability (HA) setup
An infrastructure without a single point of failure.
That can be achieved by adding redundancy to the entry point, or gateway, to your servers. Achieving a complete HA setup also requires redundancy at every layer of your infrastructure, such as your application and database servers, which is often difficult to implement but can prove to be invaluable for reducing downtime and maintaining a happy user base.
Common Server Setups are …
Everything On One Server Separate Database Server Load Balancer (Reverse Proxy) HTTP Accelerator (Caching Reverse Proxy) Master-Slave Database Replication
Active Server
The server that receives user traffic that is forwarded from the Floating IP. Typically, this is a load balancer that forwards the traffic to a backend of web application servers.
Passive Server
A standby server that is usually configured identically to the active server. It only will receive traffic during a failover event—i.e. if the active server becomes unavailable, and the Floating IP is remapped to the standby server.
Floating IP
The IP address that points to one of the servers, and can be remapped in the event of the failure of the active server.
Floating IP does not automatically provide high availability by itself; a failover mechanism, which automates the process of detecting failures of the active server and reassigning the Floating IP to the passive server, must be devised and implemented for the setup to be considered highly available.
Observability is often defined as consisting of three “pillars”:
Logging
Metrics
Tracing
The four golden signals (of Google SRE-book fame) consist of:
Latency
Saturation
Traffic
Error
Saturation
“Fullness” of a system; it indicates how long something is waiting to be serviced.
Latency
Refers to the duration of requests.