tidb-operator icon indicating copy to clipboard operation
tidb-operator copied to clipboard

How to deploy TiKV only?

Open stevefan1999-personal opened this issue 3 years ago • 5 comments

Question

I would like to try out SurrealDB. They have a TiKV backend, so obviously I would search for TiKV operator, but that is dead and I was redirected here, but so far I did not find any options to disable TiDB.

I don't TiDB because I don't use MySQL. It is unnecessary so it is best to remove it

stevefan1999-personal avatar Jan 07 '23 07:01 stevefan1999-personal

.Spec.TiDB can be nil when deploying TidbCluster resources, but you may encounter some other issues as TiDB Operator is built for TiDB clusters.

csuzhangxc avatar Jan 09 '23 02:01 csuzhangxc

have any solution?

zerix avatar Feb 22 '23 07:02 zerix

there has no limit in operator, you can deploy TidbCluster with .spec.tidb.replica: 0 to not use tidb, then you need find a way to directly use tikv as a RawKV DB, you can find introduction in doc https://tikv.org/docs/6.5/develop/rawkv/introduction/

yiduoyunQ avatar Feb 22 '23 07:02 yiduoyunQ

add a spec.tidb.enabled field may be a awsome way.

zerix avatar Feb 22 '23 09:02 zerix

test as csuzhangxc said, it's ok to just omit whole spec.tidb part , so there seems no need to add enabled field. image

yiduoyunQ avatar Feb 22 '23 10:02 yiduoyunQ