wanwancloud opened a new issue, #2790:
URL: https://github.com/apache/incubator-hugegraph/issues/2790

   ### Bug Type (问题类型)
   
   None
   
   ### Before submit
   
   - [x] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 
[FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have 
confirmed and searched that there are no similar problems in the historical 
issue and documents)
   
   ### Environment (环境信息)
   
   - Server Version: 1.5.0 (Apache Release Version)
   - Backend: RocksDB 
   - OS:32 CPUs, 64G RAM, KylinV10 
   - Data Size:  xx vertices, xx edges <!-- (like 1000W 点, 9000W 边) -->
   
   
   ### Expected & Actual behavior (期望与实际表现)
   
   hugegraph.properties配置如下
   `
   gremlin.graph=org.apache.hugegraph.HugeFactory
   vertex.cache_type=l2
   edge.cache_type=l2
   backend=rocksdb
   serializer=binary
   store=hugegraph
   task.scheduler_type=local
   task.schedule_period=10
   task.retry=0
   task.wait_timeout=10
   search.text_analyzer=jieba
   search.text_analyzer_mode=INDEX
   rocksdb.data_path=./data
   rocksdb.wal_path=./wal
   raft.mode=true
   
raft.group_peers=192.168.230.128:8091,192.168.230.129:8092,192.168.230.130:8093
   `
   
   
   rest-server.properties配置如下
   `
   server.id=server-2
   server.role=worker
   rpc.server_host=192.168.230.129
   rpc.server_port=8092
   rpc.server_timeout=30
   rpc.remote_url=192.168.230.128:8091,192.168.230.129:8092,192.168.230.130:8093
   `
   如果 raft.mode=true 不写的话则不会开启集群功能
   `
   [root@localhost bin]# curl -X GET 
"http://192.168.230.128:8080/graphs/hugegraph/raft/list_peers"; |jq
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
   100   139  100   139    0     0   2194      0 --:--:-- --:--:-- --:--:--  
2241
   {
     "exception": "class org.apache.hugegraph.HugeException",
     "message": "Allowed list_peers operation only when working on raft mode",
     "cause": ""
   }
   `
   如果 raft.mode=true 但是如果开启,
   `
   [root@localhost bin]# ./start-hugegraph.sh 
   Starting HugeGraphServer in daemon mode...
   Connecting to HugeGraphServer (http://0.0.0.0:8080/graphs)...............
   The operation timed out(30s) when attempting to connect to 
http://0.0.0.0:8080/graphs
   See 
/home/apache-hugegraph-incubating-1.5.0/apache-hugegraph-server-incubating-1.5.0/logs/hugegraph-server.log
 for HugeGraphServer log output.
   
   `
   会报错,但是等一会通过验证集群是正常的
   `
   [root@localhost logs]# curl -X GET 
"http://192.168.230.128:8080/graphs/hugegraph/raft/list_peers"; |jq
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
   100    84  100    84    0     0    380      0 --:--:-- --:--:-- --:--:--   
392
   {
     "hugegraph": [
       "192.168.230.128:8091",
       "192.168.230.129:8092",
       "192.168.230.130:8093"
     ]
   }
   
   `
   `
   [root@localhost bin]# curl -X GET 
"http://192.168.230.128:8080/graphs/hugegraph/raft/get_leader"; |jq
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current
                                    Dload  Upload   Total   Spent    Left  Speed
   100    36  100    36    0     0   1947      0 --:--:-- --:--:-- --:--:--  
2000
   {
     "hugegraph": "192.168.230.128:8091"
   }
   `
   
   
![Image](https://github.com/user-attachments/assets/23875fc6-dc6f-454d-9a50-b17ce98f34e6)
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   ```javascript
   所以如果要开启集群那么 raft.mode=true  
这个参数是必须要写的,但是在之前lssues反馈中却说raft.mode=true已经废弃,只需要写raft.group_peers=192.168.230.128:8091,192.168.230.129:8092,192.168.230.130:8093
 这个参数就自动开启集群模式,这个显然是错误的。
   
   上诉启动报错是否是因为超时的原因
   ```
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   ```javascript
   
   ```


-- 
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: dev-unsubscr...@hugegraph.apache.org.apache.org

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

Reply via email to