Sunday, November 21, 2021

TiDB Operator Source Code Reading (Part 4): Implementing a Component Control Loop

In our last article, we introduced how TiDB Operator orchestrates control loop events to manage the lifecycles of TiDB components. The TidbCluster controller manages TiDB components' lifecycles, and the member manager of each TiDB component encapsulates that component's specific management logic.

In this post, I'll explain in detail how we implement a component control loop by taking PD as an example. You'll learn about the PD member manager and its lifecycle management operations. I'll also compare other components with PD and show their differences.



from DZone.com Feed https://ift.tt/3kXnc2i

No comments:

Post a Comment