0
点赞
收藏
分享

微信扫一扫

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


举报

相关推荐

0 条评论