What is etcd?

  Рет қаралды 61,070

IBM Technology

IBM Technology

Күн бұрын

Пікірлер: 78
@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
@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 8 ай бұрын
So every node forward the request to the leader?
@Jamillo
@Jamillo 4 жыл бұрын
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 4 жыл бұрын
I was just thinking exactly the same thing.
@IBMTechnology
@IBMTechnology 4 жыл бұрын
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 4 жыл бұрын
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.
@bhaaratsharma6023
@bhaaratsharma6023 4 жыл бұрын
Precise and to the point introduction. Thank you.
@aliakseibulhak
@aliakseibulhak 4 жыл бұрын
really love this short explanation videos. thanks you IBM
@insoucyant
@insoucyant Ай бұрын
Thank You. You explained things amazingly. I hope to see/find more videos from you.
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
K8S uses etcd "watch" function to compare configuration (desired) and state (actual)
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
The speed upper bound of etcd is the individual node storage speed
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
etcd nodes are organized as leader and followers manner
@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 2 жыл бұрын
I was also wondering if we always have to ask leader, does it add a lot more burden to the leader node?
@SanjayBudhala
@SanjayBudhala 11 ай бұрын
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.
@vikasvishwakarma3622
@vikasvishwakarma3622 Жыл бұрын
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.
@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 11 ай бұрын
No, until the majority of follower nodes are updated with latest data & send the confirmation to the leader node, latest data cant be read.
@cschandragiri
@cschandragiri 2 жыл бұрын
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?
@umutsatrgurbuz8899
@umutsatrgurbuz8899 4 жыл бұрын
Thank you for the video, great information, easy to follow.
@vinitsunita
@vinitsunita 2 жыл бұрын
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 Жыл бұрын
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.
@mattvermeer3568
@mattvermeer3568 3 жыл бұрын
Terrific explanation. Thank you.
@IBMTechnology
@IBMTechnology 3 жыл бұрын
You're welcome, Matt! 👍
@GauravKumar-sr6bt
@GauravKumar-sr6bt 2 жыл бұрын
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 Жыл бұрын
fault tolerance
@zhikaicui3217
@zhikaicui3217 2 ай бұрын
@@tempofatal then why the request goes to the follower node in the place for read? Why not directly read leader as leader is anyway requested by the follower node
@ReflectionOcean
@ReflectionOcean 2 жыл бұрын
etcd stores k8s data for state, configuration and metadata
@jawardsally1186
@jawardsally1186 5 ай бұрын
As I have understood this, etcd satisfy C and A in CAP theoram. Is it possible?
@fernandopenia7002
@fernandopenia7002 3 жыл бұрын
Perfectly explained. Thank you.
@IBMTechnology
@IBMTechnology 3 жыл бұрын
Thanks for watching, Fernando!
@ritu96patel
@ritu96patel 4 жыл бұрын
Great explanation! thanks for sharing
@denysbondarenko777
@denysbondarenko777 7 ай бұрын
Well explained, thanks 💚
@beneditomarques4062
@beneditomarques4062 3 жыл бұрын
Best explanaiton about etcd!
@intelsc1287
@intelsc1287 3 жыл бұрын
Great job! Always tough of public speaking.
@expatExperience
@expatExperience Жыл бұрын
Great explanation
@shwetabhshekhar1282
@shwetabhshekhar1282 3 жыл бұрын
Clear and Concise. Thanks a lot.
@medievalogic
@medievalogic 3 жыл бұрын
So etcd violates CAP? how is this possible?
@ronaldmariah
@ronaldmariah 4 жыл бұрын
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.
@DavidHowell-t1p
@DavidHowell-t1p 8 ай бұрын
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.
@anoopnegi4886
@anoopnegi4886 4 жыл бұрын
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??
@RahulKumar-ed1bt
@RahulKumar-ed1bt 4 жыл бұрын
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
@evanturro5458
@evanturro5458 2 жыл бұрын
Great video, thanks!
@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 2 жыл бұрын
Is this called read repair?
@PurnachandMedisetty
@PurnachandMedisetty Жыл бұрын
5:52 what went down there.
@einfacherkerl3279
@einfacherkerl3279 2 жыл бұрын
please describe zookeeper also
@FelipeRodrigues-lj1el
@FelipeRodrigues-lj1el 2 жыл бұрын
Thank you
@VikramKumar-qo3rg
@VikramKumar-qo3rg 2 жыл бұрын
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.
@ruslanshamsiev6528
@ruslanshamsiev6528 2 жыл бұрын
Thank you )
@somakkamos
@somakkamos 2 жыл бұрын
if etcd is so great why not use it as distributed database for all purposes?? whats the catch here?
@Soulseeologia
@Soulseeologia 4 жыл бұрын
How much does this cost?
@linxianer12
@linxianer12 4 жыл бұрын
Etcd ? Etcd is free and open source.
@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
@rickharold7884
@rickharold7884 4 жыл бұрын
Awesome.
@Edu4Dev
@Edu4Dev 4 жыл бұрын
tks for sharing :)
@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 3 жыл бұрын
This is how it can be made: kzbin.info/www/bejne/fIraiYKCipmHgc0
@trailblazingfive
@trailblazingfive 4 жыл бұрын
tl;dr => etcd is an open source key value data store
@saurabhjha8733
@saurabhjha8733 Жыл бұрын
IBM videos are either too broad or too esoteric
@wasim5700
@wasim5700 14 күн бұрын
Effective video ruined by the marker sound , I had a hard time listening to it with focus because of the sound . It was particularly disturbing in my case because i was listening to the video via headphones. Other than that , a good video !!
What is a Cloud Shell?
9:11
IBM Technology
Рет қаралды 14 М.
How does Kubernetes create a Pod?
9:55
IBM Technology
Рет қаралды 73 М.
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 175 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 12 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 41 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 33 МЛН
Kubernetes Explained in 15 Minutes | Hands On (2024 Edition)
15:18
Travis Media
Рет қаралды 106 М.
What is a REST API?
9:12
IBM Technology
Рет қаралды 1,6 МЛН
What is the Dark Web? A Guide to the Dark Side of the Internet
9:49
The Complete Guide to ETCD Cluster Setup
14:44
Daniel Persson (Kalaspuffar)
Рет қаралды 5 М.
Kubernetes Ingress in 5 mins
5:41
IBM Technology
Рет қаралды 200 М.
What is Event Driven Architecture (EDA)?
12:10
IBM Technology
Рет қаралды 187 М.
NGINX Explained - What is Nginx
14:32
TechWorld with Nana
Рет қаралды 271 М.
What is Ansible?
11:06
IBM Technology
Рет қаралды 186 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 328 М.
Why is Kubernetes Popular | What is Kubernetes?
9:52
ByteByteGo
Рет қаралды 81 М.
How Many Balloons To Make A Store Fly?
00:22
MrBeast
Рет қаралды 175 МЛН