You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "infdahai (via GitHub)" <gi...@apache.org> on 2023/05/01 14:51:38 UTC

[GitHub] [incubator-kvrocks] infdahai commented on issue #1410: Persist the cluster-enabled status in RocksDB

infdahai commented on issue #1410:
URL: https://github.com/apache/incubator-kvrocks/issues/1410#issuecomment-1529794145

   I find many go tests use the `config` map including `"cluster-enabled": "yes"` and the `StartServerWithCLIOptions` function writes the option to the `kvrocks.conf` file. 
   
   ```go
   func TestClusterDumpAndLoadClusterNodesInfo(t *testing.T) {
   	srv1 := util.StartServer(t, map[string]string{
   		"bind":            "0.0.0.0",
   		"cluster-enabled": "yes",
   	})
   ```
   
   in StartServerWithCLIOptions func(),
   https://github.com/apache/incubator-kvrocks/blob/30e9fd788a4acb585566a008f4d5fff65ee06ce3/tests/gocase/util/server.go#L197-L207
   
   I haven't seen a commad that changes `cluster` mode, so it means we should define the option in the initial config file if we want to use `cluster` mode. 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org