Skip to content

Commit

Permalink
AutoDiscover NexusURL (#57)
Browse files Browse the repository at this point in the history
* Bump nexus
* update rocksdb.ini to match with ttl config changes
  • Loading branch information
kingster authored Jun 11, 2021
1 parent e4bb39e commit 5b0a40d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ $ ./bin/dkvsrv \
-dbFolder <folder_path> \
-dbListenAddr <host:port> \
-dbRole master \
-nexusNodeUrl http://<host:port> \
-nexusNodeUrl http://<host:port> \ #optional when running on separete nodes.
-nexusClusterUrl <cluster_url>
```

Expand Down
2 changes: 1 addition & 1 deletion cmd/dkvsrv/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var (
func init() {
flag.BoolVar(&disklessMode, "dbDiskless", false, fmt.Sprintf("Enables diskless mode where data is stored entirely in memory.\nAvailable on Badger for standalone and slave roles. (default %v)", disklessMode))
flag.StringVar(&dbFolder, "dbFolder", "/tmp/dkvsrv", "DB folder path for storing data files")
flag.StringVar(&dbListenAddr, "dbListenAddr", "127.0.0.1:8080", "Address on which the DKV service binds")
flag.StringVar(&dbListenAddr, "dbListenAddr", "0.0.0.0:8080", "Address on which the DKV service binds")
flag.StringVar(&dbEngine, "dbEngine", "rocksdb", "Underlying DB engine for storing data - badger|rocksdb")
flag.StringVar(&dbEngineIni, "dbEngineIni", "", "An .ini file for configuring the underlying storage engine. Refer badger.ini or rocks.ini for more details.")
flag.StringVar(&dbRole, "dbRole", "none", "DB role of this node - none|master|slave")
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/dgraph-io/ristretto v0.0.3 // indirect
github.com/dgryski/go-farm v0.0.0-20200201041132-a6ae2369ad13 // indirect
github.com/flipkart-incubator/gorocksdb v0.0.0-20210507064827-a2162cb9a3f7
github.com/flipkart-incubator/nexus v0.0.0-20210407114342-3079ef506894
github.com/flipkart-incubator/nexus v0.0.0-20210611073514-d9e53811b73a
github.com/gogo/protobuf v1.3.1
github.com/golang/protobuf v1.5.2
github.com/golang/snappy v0.0.2 // indirect
Expand Down
6 changes: 2 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,10 @@ github.com/facebookgo/stack v0.0.0-20160209184415-751773369052 h1:JWuenKqqX8nojt
github.com/facebookgo/stack v0.0.0-20160209184415-751773369052/go.mod h1:UbMTZqLaRiH3MsBH8va0n7s1pQYcu3uTb8G4tygF4Zg=
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4 h1:7HZCaLC5+BZpmbhCOZJ293Lz68O7PYrF2EzeiFMwCLk=
github.com/facebookgo/subset v0.0.0-20200203212716-c811ad88dec4/go.mod h1:5tD+neXqOorC30/tWg0LCSkrqj/AR6gu8yY8/fpw1q0=
github.com/flipkart-incubator/gorocksdb v0.0.0-20210504140021-7883705d529a h1:yJ/pg3ItBzjzrtX29QZMqxxtWI6hdcF3aLTS0usnuaY=
github.com/flipkart-incubator/gorocksdb v0.0.0-20210504140021-7883705d529a/go.mod h1:kvJSXc90Ifw0rxuTxEHKq6UH/7hQ/gd9RKCyD94ctJ0=
github.com/flipkart-incubator/gorocksdb v0.0.0-20210507064827-a2162cb9a3f7 h1:PxlANvUXyHsBPYk3O8XGekF3WXnJmhYuXwcq6wv0atc=
github.com/flipkart-incubator/gorocksdb v0.0.0-20210507064827-a2162cb9a3f7/go.mod h1:kvJSXc90Ifw0rxuTxEHKq6UH/7hQ/gd9RKCyD94ctJ0=
github.com/flipkart-incubator/nexus v0.0.0-20210407114342-3079ef506894 h1:AEA1XeBrw7rXU9BTKTjN9ZkivmEGyhqS/wXFp9eIAKw=
github.com/flipkart-incubator/nexus v0.0.0-20210407114342-3079ef506894/go.mod h1:AamDqIsidJDjxy/XRKenK2HU+cLyCGXcPUlyt8hLU7c=
github.com/flipkart-incubator/nexus v0.0.0-20210611073514-d9e53811b73a h1:Dq8xxXQemsjcY844EIEShKtKfZ05+JQQCFVLsf8GmNY=
github.com/flipkart-incubator/nexus v0.0.0-20210611073514-d9e53811b73a/go.mod h1:AamDqIsidJDjxy/XRKenK2HU+cLyCGXcPUlyt8hLU7c=
github.com/fsnotify/fsnotify v1.4.7 h1:IXs+QLmnXW2CcXuY+8Mzv/fWEsPGWxqefPtCP5CnV9I=
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
Expand Down
2 changes: 1 addition & 1 deletion rocksdb.ini
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ max_log_file_size=0
advise_random_on_open=true

# If true, missing column families will be automatically created.
create_missing_column_families=false
create_missing_column_families=true

# Time for the info log file to roll (in seconds).
# If specified with non-zero value, log file will be rolled
Expand Down

0 comments on commit 5b0a40d

Please sign in to comment.