What is etcd?

  Рет қаралды 56,536

IBM Technology

IBM Technology

3 жыл бұрын

Learn more about etcd with free guide: ibm.biz/etcd-guide
Get more insights about Kubernetes: ibm.biz/free-guide-to-kubernetes
Checkout IBM Cloud Databases for etcd: ibm.biz/ibm-cloud-databases-fo...
► Earn a badge with FREE interactive, browser-based Kubernetes labs: ibm.biz/free-kube-browser-base...
How can you ensure that your data is stored consistently and reliably across a distributed system?
In this lightboard video, Whitney Lee with IBM Cloud, breaks down how etcd, an open source distributed key-value store, can reliably hold and manage your critical information that needs to be accessed by a distributed system or cluster of machines.
Get started on IBM Cloud at no cost: ibm.biz/start-ibm-cloud-for-free
#etcd #Kubernetes #Database

Пікірлер: 77
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
etcd is 1. replicated: each node in an etcd cluster has full access to the whole data store 2. consistent: every read is going to return the most recent write 3. highly available: no single point of failure and tolerance of network partition 4. fast: the speed upper bound of etcd is the individual node storage speed 5. secured: transport layer SSL 6. simple: http with JSON
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
When writing: 1. client makes a write request to the leader node 2. leader node forwards the request to its followers 3. followers make updates to their values 4. followers return success to the leader when values are updated 5. leader updates its own value when majority of the followers are updated successfully 6. leader returns success to the client
@bhaaratsharma6023
@bhaaratsharma6023 3 жыл бұрын
Precise and to the point introduction. Thank you.
@aliakseibulhak
@aliakseibulhak 3 жыл бұрын
really love this short explanation videos. thanks you IBM
@umutsatrgurbuz8899
@umutsatrgurbuz8899 3 жыл бұрын
Thank you for the video, great information, easy to follow.
@ritu96patel
@ritu96patel 3 жыл бұрын
Great explanation! thanks for sharing
@shwetabhshekhar1282
@shwetabhshekhar1282 3 жыл бұрын
Clear and Concise. Thanks a lot.
@fernandopenia7002
@fernandopenia7002 2 жыл бұрын
Perfectly explained. Thank you.
@IBMTechnology
@IBMTechnology 2 жыл бұрын
Thanks for watching, Fernando!
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
When reading from a follower that's not yet updated: 1. client makes a request to a follower 2. follower forwards the request to the leader 3. leader returns the latest value to the follower 4. follower returns the latest value to the client
@lequocthinh8992
@lequocthinh8992 2 ай бұрын
So every node forward the request to the leader?
@mattvermeer3568
@mattvermeer3568 2 жыл бұрын
Terrific explanation. Thank you.
@IBMTechnology
@IBMTechnology 2 жыл бұрын
You're welcome, Matt! 👍
@beneditomarques4062
@beneditomarques4062 2 жыл бұрын
Best explanaiton about etcd!
@denysbondarenko777
@denysbondarenko777 Ай бұрын
Well explained, thanks 💚
@evanturro5458
@evanturro5458 2 жыл бұрын
Great video, thanks!
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
K8S uses etcd "watch" function to compare configuration (desired) and state (actual)
@expatExperience
@expatExperience Жыл бұрын
Great explanation
@kausikcs9913
@kausikcs9913 2 жыл бұрын
This session is really helpful to get started with the etcd understanding. I have one question though, How long does it take for the changes to reflect to the web applications. Lets say in case of a change to the key-value, can the web application listening to the etcd gets the latest instatly? just like in zookeeper.
@SanjayBudhala
@SanjayBudhala 6 ай бұрын
No, until the majority of follower nodes are updated with latest data & send the confirmation to the leader node, latest data cant be read.
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
The speed upper bound of etcd is the individual node storage speed
@intelsc1287
@intelsc1287 3 жыл бұрын
Great job! Always tough of public speaking.
@FelipeRodrigues-lj1el
@FelipeRodrigues-lj1el 2 жыл бұрын
Thank you
@cschandragiri
@cschandragiri Жыл бұрын
etcd types coordination services are meant for heavy read workloads, wouldn't redirecting read requests to leader to get latest state make it slow. Also, why can't all requests which need strong read consistency go to leader directly instead?
@Jamillo
@Jamillo 3 жыл бұрын
Hi! Around 3:00, is said that the follower node knows it and will forward read requests to the leader. But, wouldn't that stress the leader. I mean, it can't be that simple.
@tomduffin8076
@tomduffin8076 3 жыл бұрын
I was just thinking exactly the same thing.
@IBMTechnology
@IBMTechnology 3 жыл бұрын
Hi Jamillo, thank you for the question and apologies for the delayed response. Do clients have to send requests to the etcd leader? Raft is leader-based; the leader handles all client requests which need cluster consensus. However, the client does not need to know which node is the leader. Any request that requires consensus sent to a follower is automatically forwarded to the leader. Requests that do not require consensus (e.g., serialized reads) can be processed by any cluster member. Source: etcd.io/docs/v3.4.0/faq/
@justinkim7202
@justinkim7202 3 жыл бұрын
Well you could say it's a tradeoff for being strongly consistent. It achieves strong consistency by having its leader who has the most recent data to respond to the request. Refer to the raft consensus algorithm which etcd implements.
@blasttrash
@blasttrash 3 жыл бұрын
good question. This stresses the leader and makes me think why even have followers if for each client request, follower goes back crying to leader for answer. whats the point of having a follower if it always relies on leader and puts too much stress on leader? lol
@r_chauhan
@r_chauhan 3 жыл бұрын
@@blasttrash The followers ensure high availability and the consensus algorithm adds reliability to it. In case the leader goes down, the data is still safe and any other follower can become the leader. The raft consensus mechanism also ensures that only nodes with the most recent "commited" data become the next leader. Hence the redundant data and followers.
@ruslanshamsiev6528
@ruslanshamsiev6528 Жыл бұрын
Thank you )
@Edu4Dev
@Edu4Dev 3 жыл бұрын
tks for sharing :)
@rickharold7884
@rickharold7884 3 жыл бұрын
Awesome.
@anoopnegi4886
@anoopnegi4886 3 жыл бұрын
In our etcd cluster we observing that etcd consuming memory and it consumed 2gb after which process killed due to OOM, and without traffic memory stay occupied. Why this issue coming??
@vikasvishwakarma3622
@vikasvishwakarma3622 6 ай бұрын
The leader will update itself only when the quorum is met i.e. 2/3 or 3/3 nodes(as per configuration) returns positive update.
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
etcd nodes are organized as leader and followers manner
@jawardsally1186
@jawardsally1186 4 күн бұрын
As I have understood this, etcd satisfy C and A in CAP theoram. Is it possible?
@sbkpilot1
@sbkpilot1 2 жыл бұрын
a bit confused about this... so if a follower node always has to check with the leader why not directly query the leader node for the info? Does this implicitly mean that to reduce latency it is better to directly query the leader?
@niceperson6412
@niceperson6412 Жыл бұрын
I was also wondering if we always have to ask leader, does it add a lot more burden to the leader node?
@SanjayBudhala
@SanjayBudhala 6 ай бұрын
periodically the leader sends heartbeats to the follower nodes & sends small impt data with it. This is not a complete explanation a lot is happening behind the bars but answers you query. Follower nodes do query leaders directly using read index protocol but they only do it when they are not sure that they have the latest data.
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
etcd stores k8s data for state, configuration and metadata
@RahulKumar-ed1bt
@RahulKumar-ed1bt 3 жыл бұрын
Its interesting , i would like to see how k8s store data in this , which are collections used for storage inside etcd , can we query etcd in k8s cluster and directly change the data there ? I know that etcd is the brain for k8s cluster but what i see most of the time , it is hidden component for every user and they never connect to etcd , neither query that etc. ! Rather only 1 statement is taught everywhere ok all these states are maintained in etcd and it is single source of truth for anything
@thissuper7051
@thissuper7051 Жыл бұрын
So, how does ETCD vote? When the follower is available, can he vote for himself?
@vinitsunita
@vinitsunita Жыл бұрын
Since etcd persist data on disk, its performance must be tied to disk and it must not be as good as redis in terms of performance of read and write operation because Redis completely holds data in memory as it is inmemory distributed cache
@lindilebangose7667
@lindilebangose7667 11 ай бұрын
Both have the exact same functionality, by default etcd stores data in memory and periodically persists snapshots to disk. I don't have the data to comment on performance, but the fact that the k8s team chose it instead should highlight that it does have some advantages over Redis, namely it's consensus strategy that ensure data consistency across all nodes.
@GauravKumar-sr6bt
@GauravKumar-sr6bt Жыл бұрын
If the follower is going to route read requests through leader node (as talked in this video), what is the point of replication and having followers?
@tempofatal
@tempofatal 10 ай бұрын
fault tolerance
@VikramKumar-qo3rg
@VikramKumar-qo3rg Жыл бұрын
What happens if the master goes down and based on the votes the slave that has the inconsistent data 7 is elected as master? Is this inconsistency overcome in any way? Or it's not a fair question since the inconsistency would be for a very short period of time and would attain consistency eventually during this upgrade from slave to master process? Anyone who has an idea on this please?
@aakash20202020
@aakash20202020 Жыл бұрын
voting algorithm is such that 7 will never be elected as leader as it has stale data ..Election can be based on latest updated timestamp of the followers.
@medievalogic
@medievalogic 3 жыл бұрын
So etcd violates CAP? how is this possible?
@user-fy4yk8gu4b
@user-fy4yk8gu4b 3 ай бұрын
Takes skills to precisely and concisely teach the concepts, all while writing backwards
@nithchea9936
@nithchea9936 2 жыл бұрын
Every technology teaching video, there is always positivity in the comment section.
@ronaldmariah
@ronaldmariah 3 жыл бұрын
When the followers had the values 17, 17, 7. And the leader subsequently went down. What's in place for the follower (7) not being elected and replicating a stale value?
@blasttrash
@blasttrash 3 жыл бұрын
good question. In the video She conveniently changed 7 to 17 when that happened. if a network partition occurred and all "17" nodes went down and only "7" nodes are left, we will have wrong data, this is not explained in this video. Not sure how they tackle this edge case.
@r_chauhan
@r_chauhan 3 жыл бұрын
The raft consensus mechanism has a rule that prevents nodes from voting for nodes with older data than theirs, hence only nodes that have recent data can become a leader.
@christopherraymond8382
@christopherraymond8382 3 жыл бұрын
Did I miss the part where she explained what happens when nodes try to rejoin the cluster? She mentioned the case where the mast went down, then never described what happens if/when that node comes back.
@alanwright376
@alanwright376 2 жыл бұрын
The presentation was high level. The term (session) of a rejoining node will be stale or it will not have an up-to-date commit log, which means it has to be a follower and defer to the current leader. Since followers always have to validate with the leader, it behaves similar to existing followers.
@JusesChrost
@JusesChrost 3 жыл бұрын
The squeeky sound when you write on that board is unnecessory, other than that, perfect video.
@niceperson6412
@niceperson6412 Жыл бұрын
Is this called read repair?
@einfacherkerl3279
@einfacherkerl3279 Жыл бұрын
please describe zookeeper also
@Soulseeologia
@Soulseeologia 3 жыл бұрын
How much does this cost?
@linxianer12
@linxianer12 3 жыл бұрын
Etcd ? Etcd is free and open source.
@somakkamos
@somakkamos 2 жыл бұрын
if etcd is so great why not use it as distributed database for all purposes?? whats the catch here?
@PurnachandMedisetty
@PurnachandMedisetty Жыл бұрын
5:52 what went down there.
@mxmstrj
@mxmstrj 2 жыл бұрын
Are we just going to pretend that she isn't writing everything out backwards better than most people write normally
@mxmstrj
@mxmstrj 2 жыл бұрын
I think they recorded it normally then horizontality flipped the video
@trailblazingfive
@trailblazingfive 3 жыл бұрын
tl;dr => etcd is an open source key value data store
@PaulPetersVids
@PaulPetersVids 3 жыл бұрын
Uh... quick question. Is she writing backwards?
@guyemry7947
@guyemry7947 3 жыл бұрын
right!? I am surprised there aren't more comments about this! That's impressive!
@cesar_zapata
@cesar_zapata 2 жыл бұрын
This is how it can be made: kzbin.info/www/bejne/fIraiYKCipmHgc0
@SantoshKumar-yg2xt
@SantoshKumar-yg2xt 2 жыл бұрын
Doesn't look like etcd is good for decentralised systems. There always needs to be a leader?
@saurabhjha8733
@saurabhjha8733 Жыл бұрын
IBM videos are either too broad or too esoteric
What is a Cloud Shell?
9:11
IBM Technology
Рет қаралды 13 М.
Kubernetes Explained in 15 Minutes | Hands On (2024 Edition)
15:18
Travis Media
Рет қаралды 58 М.
Watermelon Cat?! 🙀 #cat #cute #kitten
00:56
Stocat
Рет қаралды 26 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:19
CRAZY GREAPA
Рет қаралды 8 МЛН
Deep Dive: etcd - Jingyi Hu, Google
39:53
CNCF [Cloud Native Computing Foundation]
Рет қаралды 21 М.
What is Kafka?
9:17
IBM Technology
Рет қаралды 441 М.
Containers vs VMs: What's the difference?
8:08
IBM Technology
Рет қаралды 740 М.
The Complete Guide to ETCD Cluster Setup
14:44
Daniel Persson
Рет қаралды 3,1 М.
Pkl: Apple's New JSON/YAML Killer (I actually want to use this...)
14:30
How does Kubernetes create a Pod?
9:55
IBM Technology
Рет қаралды 68 М.
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 330 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 229 М.
What is Ansible?
11:06
IBM Technology
Рет қаралды 166 М.
iPhone 12 socket cleaning #fixit
0:30
Tamar DB (mt)
Рет қаралды 36 МЛН
How To Unlock Your iphone With Your Voice
0:34
요루퐁 yorupong
Рет қаралды 22 МЛН
Карточка Зарядка 📱 ( @ArshSoni )
0:23
EpicShortsRussia
Рет қаралды 787 М.