Chapter 14. TCI - Key-Value Pair Store Flashcards

1
Q

What function does the Key-Value Pair Storage provide? Why is it important? How can be communicated with it?

A
  • provides the functionality to store or retrieve the value of a key
  • most Key-Value stores provide REST-APIs to support GET/PUT/DELETE which help with operations over HTTP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why is the Key-Value Pair Storage in Clouds important?

A
  • its important, because in a distributed and dynamically-scalable environment we need a single-point of truth endpoint
  • for example we want each node to look up specific configuration values before performing an operation
  • for that all nodes can reach out to a central location and retrieve the value of a desired variable or key
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are examples of Key-Value Pair storages?

A
  • etcd
  • Consul KV
  • Zookeper
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is etcd?

A
  • open source distributed key-value pair storage
  • uses Raft consensus algorithm for communication between instances of distributed multi-instance scenarios
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is consensus?

A
  • fundamental problem in fault-tolerant distributed systems
  • involves multiple servers agreeing on values
  • once they reach a decision on a value, that decision is final
  • typical consensus algorithms make progress when any majority of the servers is available
  • if more than half the servers fail they stop making progress (but will never return an incorrect result)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Name features of etcd

A
  • can run standalone or in a distributed cluster
  • in cluser mode, for high availability, can gracefully handle leader election during network partitions and tolerate machine failures, including the leader
  • allows users or services to watch the value of a key, to then perform certain operations as a result of any change in the particular value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

For what is etcd used?

A
  • store connections, configurations, cluster bootstrapping keys and other settings
  • service discovery in conjunction with tools like skyDNS
  • metadata and configuration data for service discovery
  • container management
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are benefits of etcd?

A
  • open source key-value pair storage
  • default for Kubernetes container orchestrator
  • provides reliable data storage across cluster of machines
  • fast, benchmarked at 10.000 writes/s per instance
  • provides seamless cluster managmeent across a distributed system
  • secured by optional SSL client certificates for authentication and offers very good documentation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Zookeeper?

A
  • open source project of the Apache Software Foundation
  • centralized service for mainting configuration information, providing distributed synchronization together with group services for distributed applications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does Zookeeper aim to do and implement?

A
  • aims to provide a simple interface to a centralized coordination service that is also distributed and highly reliable
  • implements consensus, group management and presence protocols on behalf of applications
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are Zookeepers use-cases?

A
  • implement node coordination in a distributed environment
  • manage cloud node memberships while coordinating distributed jobs
  • as a backing store for distributed and scalable data structures
  • election of a high availability leader
  • light-weight failover and load balancing manager
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly