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

   ### Problem 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 6 nodes SSD 
   
   
   
   ### Your Question (问题描述)
   
   192.168.12.56 nginx 代理 6台server 服务
   ```
   http {
       upstream backend {
           # 定义后端服务器列表(6台服务器)
           server 192.168.12.40:8080;
           server 192.168.12.41:8080;
           server 192.168.12.42:8080;
           server 192.168.12.43:8080;
           server 192.168.12.44:8080;
           server 192.168.12.45:8080;
   
           # 可选:负载均衡策略(默认是轮询)
           # least_conn;  # 最少连接
           # ip_hash;     # 基于客户端 IP 的哈希(会话保持)
       }
   
       server {
           listen 8080;  # Nginx 监听的端口(通常是 80 或 443)
   
           location / {
               proxy_pass http://backend;  # 反向代理到后端服务器
               proxy_set_header Host $host;
               proxy_set_header X-Real-IP $remote_addr;
               proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
               proxy_set_header X-Forwarded-Proto $scheme;
           }
       }
   }
   ```
   HugeGraph-Java-Client 端配置
   
   ```
           <dependency>
               <groupId>org.apache.hugegraph</groupId>
               <artifactId>hugegraph-client</artifactId>
               <version>1.5.0</version>
           </dependency>
   ```
   ```
      HugeClient hugeClient = HugeClient.builder("http://192.168.12.56:8080";,
                                                      "hugegraph")
                                             .build();
   
   ```
   
   HugeGraph-Java-Client  HugeClient.builder中 如何链接集群版本的图数据库?
   
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   ```javascript
   
   ```
   
   ### 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