HugeGraph 配置參數

  • gremlin-server.yaml
參數名稱 參數說明 默認值
scriptEvaluationTimeout 查詢超時時間,單位毫秒 30000

  • rest-server.properties
參數名稱 參數說明 默認值
restserver.max_worker_threads 服務器最大工作線程 2*cpu
restserver.min_free_memory 當服務器內存小於該值時,請求將被拒絕 64
restserver.request_timeout 請求超時時間(以秒爲單位),
-1表示沒有超時。
30
restserver.connection_idle_timeout 不活動連接的存活時間 30
restserver.connection_max_requests 允許在一個保持連接狀態下處理的HTTP請求的最大數量
,-1表示無限制。
256
batch.max_edges_per_batch 批量提交的最大邊數 500
batch.max_vertices_per_batch 批量提交的最大頂點數 500
batch.max_write_ratio 批處理寫入的最大線程比率,
僅在batch.max_write_threads爲0時生效。
50
batch.max_write_threads 批處理寫入的最大線程數,如果值爲0,
則實際值將設置爲batch.max_write_ratio * total-rest-threads
0
exception.allow_trace 是否允許異常跟蹤堆棧 false

  • 基本配置項及後端配置項對應配置文件:{graph-name}.properties,如hugegraph.properties
參數名稱 參數說明 默認值
vertex.cache_capacity 頂點緩存的最大緩存大小,單位是 items 10000000
vertex.cache_expire 頂點緩存的到期時間(以秒爲單位 ) 600
edge.cache_capacity 邊緩存的最大緩存大小,單位是 items 1000000
edge.cache_expire 邊緩存的終止時間(以秒爲單位) 600
query.page_size 使用分頁查詢時每個頁面的大小 500
search.text_analyzer 分詞 ikanalyzer
search.text_analyzer_mode Specify the mode for the text analyzer, the available mode of analyzer are
{
word: [MaximumMatching, ReverseMaximumMatching, MinimumMatching,
ReverseMinimumMatching, BidirectionalMaximumMatching,
BidirectionalMinimumMatching, BidirectionalMaximumMinimumMatching,
FullSegmentation, MinimalWordCount, MaxNgramScore, PureEnglish],
ansj: [BaseAnalysis, IndexAnalysis, ToAnalysis, NlpAnalysis],
hanlp: [standard, nlp, index, nShort, shortest, speed],
smartcn: [],
jieba: [SEARCH, INDEX],
jcseg: [Simple, Complex],
mmseg4j: [Simple, Complex, MaxWord],
ikanalyzer: [smart, max_word]}
smart
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章