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
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
3
Q
What are examples of Key-Value Pair storages?
A
- etcd
- Consul KV
- Zookeper
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
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)
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
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
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
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
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
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
12
Q
A