Monitoring ElastiCache for Performance and Availability Flashcards

1
Q

ElastiCache supports two engines

A

Memcached and Redis

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Monitoring Metrics

A
  • -CPU Utiliazation
  • -Evictions
  • -CurrConnections
  • -Swap Usage(Memcached)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

CPU Utilization

A

CPU host-level metrics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

CPU Utilization – Memcached

A
    • multi-threaded]
    • can handle loads of up to 90%
    • above 90% becomes a problem
    • Solution: increase the size of the node or scale out by adding more nodes;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

CPU Utilization – Redis

A

– calculate the threshold:(90/# of CPU cores)
–Solution: for read-heavy workloads, increase the number of read replicas
for write-heavy workloads, use a larger cache instance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Evictions

A

happen when a new item is added but there is no more memory space. an older item must be deleted to make space.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Evictions – cont.

A
    • can be a caching technique used to make sure you do not run out of memory
    • if items get evicted too frequently, it defeats the purpose and will decrease performance
    • CloudWatch alarms can notify you of a certain threshold.
    • Memcached solution: increase instance size or add nodes to your cluster
    • Redis solution: increase the node size.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Current connections

A

an increase in currconnections could indicate a larger problem with your application

    • the application may not be releasing connections
    • Choose a threshold based off of your application requirements.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Swap Usage(Memcached)

A

caused because the memory allocated for connection information and other overhead items gets mazed out
– should stay at 0, and not exceed 50MB.
– affects performance and should be avoided.
Solution: increase node size
– increase our ConnectionOverhead parameter value(this will decrease memory available for caching data).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly