Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 怎么在tiup cluster edit-config里面设engines 参数?
I want to use tiup cluster edit-config
to set the engines
parameter so that a specific TiDB server only uses “tidb” and “tikv”. According to the official documentation (使用 TiDB 读取 TiFlash | PingCAP 文档中心), it should be set like this:
[isolation-read]
engines = ["tikv", "tidb", "tiflash"]
But when I actually set it, it reports a syntax error.
Try this, and pay attention to the symbols when pasting:
isolation-read.engines: [“tikv”, “tidb”, “tiflash”]
Judging by the example, this configuration should work. Could it be an issue with the punctuation being in Chinese or English?
It seems that this is directly configured in the configuration file under TiDB, not directly modifying the edit-config.
Oh, I encountered this too. Refer to this answer. If you modify it directly using the edit-config method, remember to write it as config.isolation-read.engines: ["tikv", "tidb", "tiflash"]
instead of directly writing isolation-read.engines: ["tikv", "tidb", "tiflash"]
.
PS: You are using Chinese quotation marks, remember to change them to English quotation marks.
server_configs:
tidb:
isolation-read.engines: [“tikv”,“tidb”]
This is fine, TiDB will automatically convert it into

However, this attribute seems to be global only. I tried to set it on a specific TiDB server and got an error.
According to the configuration written by the expert in dba-kit for a single component.
The issue with Chinese characters is probably a problem with the website 
It can also be set for a specific TiDB server.
Hahaha, judging by your usage, you also encountered the issue of TiFlash being unstable under high concurrency scenarios. Are you thinking of prohibiting OLTP tidb-server from using TiFlash?
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.