aboutsummaryrefslogtreecommitdiff
path: root/weed/command
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2021-08-30 02:21:14 -0700
committerGitHub <noreply@github.com>2021-08-30 02:21:14 -0700
commit72d4ff6b28329fdd0fbb1652d08fe4d9167b2fe8 (patch)
tree553003fa8262e10bc009da2f51275f6120cca265 /weed/command
parentf811fd0903a8e91f63d38a3a95ee6863a010db4e (diff)
parentb17b81529e16bf1016dbf2ce093c7d1d4b5a357f (diff)
downloadseaweedfs-72d4ff6b28329fdd0fbb1652d08fe4d9167b2fe8.tar.xz
seaweedfs-72d4ff6b28329fdd0fbb1652d08fe4d9167b2fe8.zip
Merge pull request #2280 from blacktear23/filerstore-tikv
Use TiKV as Filerstore
Diffstat (limited to 'weed/command')
-rw-r--r--weed/command/imports.go1
-rw-r--r--weed/command/scaffold/filer.toml8
2 files changed, 9 insertions, 0 deletions
diff --git a/weed/command/imports.go b/weed/command/imports.go
index 5c1e53dfa..a2f59189f 100644
--- a/weed/command/imports.go
+++ b/weed/command/imports.go
@@ -30,4 +30,5 @@ import (
_ "github.com/chrislusf/seaweedfs/weed/filer/redis"
_ "github.com/chrislusf/seaweedfs/weed/filer/redis2"
_ "github.com/chrislusf/seaweedfs/weed/filer/sqlite"
+ _ "github.com/chrislusf/seaweedfs/weed/filer/tikv"
)
diff --git a/weed/command/scaffold/filer.toml b/weed/command/scaffold/filer.toml
index 9e9258865..c8cb70131 100644
--- a/weed/command/scaffold/filer.toml
+++ b/weed/command/scaffold/filer.toml
@@ -230,3 +230,11 @@ location = "/tmp/"
address = "localhost:6379"
password = ""
database = 1
+
+[tikv]
+enabled = false
+# If you have many pd address, use ',' split then:
+# pdaddrs = "pdhost1:2379, pdhost2:2379, pdhost3:2379"
+pdaddrs = "localhost:2379"
+# Concurrency for TiKV delete range
+deleterange_concurrency = 1