How to set the engines parameter in tiup cluster edit-config?

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

Original topic: 怎么在tiup cluster edit-config里面设engines 参数?

| username: jarry_618

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.

| username: db_user | Original post link

Try this, and pay attention to the symbols when pasting:

isolation-read.engines: [“tikv”, “tidb”, “tiflash”]

| username: Kongdom | Original post link

Judging by the example, this configuration should work. Could it be an issue with the punctuation being in Chinese or English?

| username: db_user | Original post link

It seems that this is directly configured in the configuration file under TiDB, not directly modifying the edit-config.

| username: dba-kit | Original post link

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.

| username: jarry_618 | Original post link

server_configs:
tidb:
isolation-read.engines: [“tikv”,“tidb”]
This is fine, TiDB will automatically convert it into
da8ddb3b1945f633b73d3a589298102

| username: jarry_618 | Original post link

However, this attribute seems to be global only. I tried to set it on a specific TiDB server and got an error.

| username: db_user | Original post link

According to the configuration written by the expert in dba-kit for a single component.

| username: jarry_618 | Original post link

The issue with Chinese characters is probably a problem with the website :sweat_smile:

| username: jarry_618 | Original post link

It can also be set for a specific TiDB server.

| username: dba-kit | Original post link

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?

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.