HugeGraph 多图配置
生活随笔
收集整理的這篇文章主要介紹了
HugeGraph 多图配置
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
多圖配置
我們的系統是可以存在多個圖的,并且各個圖的后端可以不一樣,比如圖 hugegraph 和 hugegraph1,其中 hugegraph 以 cassandra 作為后端,hugegraph1 以 rocksdb作為后端。
配置方法也很簡單:
修改 gremlin-server.yaml
在 gremlin-server.yaml 的 graphs 域中添加一個鍵值對,鍵為圖的名字,值為圖的配置文件路徑,比如:
graphs: {hugegraph: conf/hugegraph.properties,hugegraph1: conf/hugegraph1.properties }修改 rest-server.properties
在 rest-server.properties 的 graphs 域中添加一個鍵值對,鍵為圖的名字,值為圖的配置文件路徑,比如:
graphs=[hugegraph:conf/hugegraph.properties, hugegraph1:conf/hugegraph1.properties]添加 hugegraph1.properties
拷貝 hugegraph.properties,命名為 hugegraph1.properties,修改圖對應的數據庫名以及關于后端部分的參數,比如:
store=hugegraph1...backend=rocksdb serializer=binary停止 Server,初始化執行 init-store.sh(為新的圖創建數據庫),重新啟動 Server
$ bin/stop-hugegraph.sh $ bin/init-store.sh $ bin/start-hugegraph.sh?hugegraph-studio?也要相應啟動兩個
?
?
總結
以上是生活随笔為你收集整理的HugeGraph 多图配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Kafka 集群数据备份 MirrorM
- 下一篇: Yarn 监控 - 监控任务运行状态 (