Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: PD的etcd中没有数据?还是我查询方式不对?
I want to see what content is written in PD’s etcd, but:
- The curl query is empty.
- I wrote a value /testkey using etcdctl, and it can be queried using curl.
- I can query DDL-related information using tidb-ctl etcd ddlinfo.
So, is my query method incorrect? Or how should I query it?
There is encryption, right?
According to this. It depends on what you are looking for specifically.
What version of etcdctl are you using?
The performance of TiDB can be affected by many factors, such as hardware configuration, network environment, and workload characteristics. To optimize performance, you can start by analyzing the slow query logs and monitoring metrics to identify bottlenecks. Additionally, you can refer to the official TiDB documentation and tuning guides for best practices on configuration and optimization.
Try using this: export ETCDCTL_API=3
Thank you, I know where the problem is. Before executing etcdctl, you need to switch the API version:
export ETCDCTL_API=3
The configuration of environment variables is still very crucial.
This topic was automatically closed 1 minute after the last reply. No new replies are allowed.