No data in PD's etcd? Or is my query method incorrect?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: PD的etcd中没有数据?还是我查询方式不对?

| username: ddhe9527

I want to see what content is written in PD’s etcd, but:

  1. The curl query is empty.
  2. I wrote a value /testkey using etcdctl, and it can be queried using curl.
  3. I can query DDL-related information using tidb-ctl etcd ddlinfo.

So, is my query method incorrect? Or how should I query it?

| username: ddhe9527 | Original post link

Bump it up.

| username: HACK | Original post link

Bump it up.

| username: tidb狂热爱好者 | Original post link

There is encryption, right?

| username: songxuecheng | Original post link

According to this. It depends on what you are looking for specifically.

| username: ddhe9527 | Original post link

What version of etcdctl are you using? :joy:

| username: songxuecheng | Original post link

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.

| username: 啦啦啦啦啦 | Original post link

Try using this: export ETCDCTL_API=3

| username: ddhe9527 | Original post link

Thank you, I know where the problem is. Before executing etcdctl, you need to switch the API version:

export ETCDCTL_API=3
| username: songxuecheng | Original post link

Replace here

| username: cs58_dba | Original post link

The configuration of environment variables is still very crucial.

| username: system | Original post link

This topic was automatically closed 1 minute after the last reply. No new replies are allowed.