Monitoring ElastiCache Flashcards

1
Q

4 Monitoring attributes

A
  • CPU Attributes
  • Swap Usage
  • Evictions
  • Concurrent Connections
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or False: Memcached is multithreaded

A

True

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

Memcached maximum CPU load

A

90%. Must add addtional nodes to the cluster if this is exceeded.

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

Is Redis multi-threaded?

A

No.

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

How do you determine when to scale Redis?

A

90 / # of cores in an instance. Ex: 90 / 4 = 22.5%

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

What is swap usage?

A

The amount of swap file that is being used.

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

What is the typical size of a swap file?

A

Equal to the amount of RAM. Ex: 4GB RAM = 4GB swap file.

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

What is a swap file?

A

A reserve of hard drive space allocated for “swapping” actively processing information, for inactive information.

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

Why is a swap file used?

A

If there is not enough RAM for all processes, an OS can use swap file to store in memory data for later processing. This comes with performance degredation.

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

What is a healthy SwapUsage metric? (Not to be confused with status)

A

Average of 0Mb, not to exceed 50Mb.

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

If SwapUsage exceeds 50Mb, how should this be addressed?

A

Increase the memcached_connections_overhead parameter.

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

what is memcached_connections_overhead

A

It is the amount of memory reserved for memcached connections.

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

True or False, to get Redis Swap usage information, review the reserved-memory metric.

A

True: SwapUsage is for memcached. Redis uses the reserved-memory metric.

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

What are Evictions?

A

It is the removal of old cached items to make room for new cached items.

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

Evictions Settings for memcached

A

There are not recommended settings. Choose a threashold base on the application needs.

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

Evictions Scaling for memcached

A

Scale up, or scale out

17
Q

Evictions Settings for Redis

A

No recommended settings. Choose a threshold based on application needs.

18
Q

Evictions Scaling for Redis

A

Can only scale out by adding read replicas. No scaling up options.

19
Q

True or False: You cannot scale up a Redis instance?

A

True. Redis can only scale out by adding read replicas.

20
Q

Settings for Concurrent Connections - Memcached and Redis

A

No recommended settings

21
Q

Reasons for spike in concurrent connections in Redis or Memcached

A
  • Either sustained spike in number of connections

- Application is not releasing connections as it should.