<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tidb-Operator on C4H</title><link>/categories/tidb-operator/</link><description>Recent content in Tidb-Operator on C4H</description><generator>Hugo</generator><language>zh-CN</language><managingEditor>code4happy@gmail.com (happy-v587)</managingEditor><webMaster>code4happy@gmail.com (happy-v587)</webMaster><lastBuildDate>Thu, 31 Aug 2023 19:00:00 +0800</lastBuildDate><atom:link href="/categories/tidb-operator/index.xml" rel="self" type="application/rss+xml"/><item><title>TiDB Operator 自动扩缩容：TidbClusterAutoScaler 使用与实现</title><link>/tidbcluster-autoscaler-usage-and-implementation/</link><pubDate>Thu, 31 Aug 2023 19:00:00 +0800</pubDate><author>code4happy@gmail.com (happy-v587)</author><guid>/tidbcluster-autoscaler-usage-and-implementation/</guid><description>&lt;h2 id="前言" class="headerLink"&gt;
 &lt;a href="#%e5%89%8d%e8%a8%80" class="header-mark"&gt;&lt;/a&gt;前言&lt;/h2&gt;&lt;p&gt;在 Kubernetes 上运行 TiDB 时，最常见的运维动作之一就是扩缩容。TiDB 计算节点 TiDB 是无状态的，扩缩容相对简单；TiKV 存储节点涉及数据重分布，需要谨慎处理。&lt;/p&gt;
&lt;p&gt;TiDB Operator 里提供了一个叫 &lt;code&gt;TidbClusterAutoScaler&lt;/code&gt; 的 CRD，试图让 TiDB 和 TiKV 的副本数根据负载自动调整。它支持两种决策方式：一种是把决策交给 PD，由 PD 根据集群负载给出扩缩容计划；另一种是调用外部服务，由用户自定义推荐副本数。&lt;/p&gt;</description></item></channel></rss>