CassandraAdmin Flashcards

1
Q

Purpose of seed nodes? (2)

A
  1. Bootstrapping (adding new node) 2. In case gossip loses its mind
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the leveled compaction multiplier?

A

10x per level

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

What type of workload is best for leveled comparison?

A

read-heavy

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

Which compaction strategy saves the most disk space?

A

leveled compaction

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

The biggest problem with leveled compaction?

A

I/O intensity

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

Can you create a keyspace by specifying a non-existent multi-dc keyspace?

A

Yes.

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

What does sstabledump do?

A

Dump contents of a given SSTable to standard output in JSON format. Good for diagnostics. Includes tombstones.

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

What are the 4 states for each node?

A

joining, leaving, up, and down

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

By default now many vnodes does each node have?

A

128 per Cassandra quiz. In my experience, it has been 256.

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

cassandra.yaml parameter that configures vnodes?

A

num_tokens

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

What does snitch do?

A

determines each node’s rack and data center

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

3 types of snitch?

A

SimpleSnitch, PropertFileSnitch, DynamicSnitch

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

With RF=2, how many nodes must respond with success using consistency level quorum to indicate a successful operation?

A

2

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

What is the default time for a node to store a hint?

A

3 hours

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

Is hinted handoff enabled or disabled by default?

A

Enabled.

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

Read repair ALWAYS occurs in which consistency level?

A

ALL

17
Q

SStable stands for…

A

Sorted Stream Table

18
Q

What does the partition summary store?

A

Byte offsets into the partition index

19
Q

Which structures are stored on disk?

A

SStable and partition index (also commit log).

20
Q

What is the partition index?

A

The structure on disk that contains bytes offsets for sstables.

21
Q

What is the index of the partition index?

A

The partition summary, stored in ram to limit search in partition index. summary->index->sstable

22
Q

Structures stored in ram?

A

key cache, partition summary, bloom filter (bloom filter is off heap)

23
Q

What does CPU wait mean?

A

Roughly the amount of time a task has to wait on CPU resources.

24
Q

What does dstat show?

A

CPU, disk I/O, network for all processes

25
Q

Which nodetool sub-command gives datacenter and rack information?

A

nodetool info

26
Q

Where can logging levels be set?

A

nodetool setlogginglevel or cassandra.yaml

27
Q

Should GC logging be turned on by default?

A

No.

28
Q

What triggers size tiered compaction?

A

of sstables