摘要: 1.kernel升级升级到5.4.217 rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.orgrpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.r 阅读全文
posted @ 2022-10-12 11:23 东哥加油!!! 阅读(37) 评论(0) 推荐(0) 编辑
摘要: 1.部署集群:tiup dm deploy dm-test v6.2.0 ./topology.yaml tiup dm start dm-test 2.创建数据源 tiup dmctl --master-addr 192.168.1.133:8261 operate-source create s 阅读全文
posted @ 2022-09-26 15:51 东哥加油!!! 阅读(63) 评论(0) 推荐(0) 编辑
摘要: rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm yum --enablerepo= 阅读全文
posted @ 2022-09-02 09:12 东哥加油!!! 阅读(31) 评论(0) 推荐(0) 编辑
摘要: #新增nodekubeadm token create --print-join-command kubeadm join 11.0.1.111:6443 --token 3g9iab.rwdnd8dikfujqmus --discovery-token-ca-cert-hash sha256:8d 阅读全文
posted @ 2022-08-29 07:57 东哥加油!!! 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 目前是v6.1.0 升级到v6.2.0 tidb 升级tiup update --selftiup --versiontiup update clustertiup cluster --version tiup cluster check tidbtest --clustertiup cluster 阅读全文
posted @ 2022-08-25 16:36 东哥加油!!! 阅读(11) 评论(0) 推荐(0) 编辑
摘要: #准备测试数据:sysbench --config-file=config_new oltp_common.lua --tables=3 --table-size=500000 prepare #执行语句 explain analyze select a.c,b.c,c.pad from sbtes 阅读全文
posted @ 2022-08-25 15:47 东哥加油!!! 阅读(98) 评论(0) 推荐(0) 编辑
摘要: TiKV 在 v6.0.0 中引入了内存悲观锁功能。开启内存悲观锁功能后,悲观锁通常只会被存储在 Region leader 的内存中,而不会将锁持久化到磁盘,也不会通过 Raft 协议将锁同步到其他副本, 因此可以大大降低悲观事务加锁的开销,提升悲观事务的吞吐并降低延迟。当内存悲观锁占用的内存达到 阅读全文
posted @ 2022-08-25 11:08 东哥加油!!! 阅读(127) 评论(0) 推荐(0) 编辑
摘要: Placement Rules in SQL 特性用于通过 SQL 接口配置数据在 TiKV 集群中的放置位置。通过该功能,用户可以将表和分区指定部署至不同的地域、机房、机柜、主机。适用场景包括低成本优化数据高可用策略、保证本地的数据副本可用于本地 Stale Read 读取、遵守数据本地要求等。 阅读全文
posted @ 2022-08-25 10:53 东哥加油!!! 阅读(103) 评论(0) 推荐(0) 编辑
摘要: TiDB 在 v6.0.0 版本中引入了缓存表功能。该功能适用于频繁被访问且很少被修改的热点小表,即把整张表的数据加载到 TiDB 服务器的内存中,直接从内存中获取表数据,避免从 TiKV 获取表数据,从而提升读性能#生成测试数据sysbench --config-file=config_new o 阅读全文
posted @ 2022-08-25 10:39 东哥加油!!! 阅读(102) 评论(0) 推荐(0) 编辑
摘要: select * from mysql.tidb where variable_name in ('tikv_gc_safe_point','tikv_gc_life_time'); tikv_gc_life_time 10m0s select * from sbtest1 where id=202 阅读全文
posted @ 2022-08-24 16:22 东哥加油!!! 阅读(281) 评论(0) 推荐(0) 编辑