# host and port of gremlin server, need to be consistent with host and port in rest-server.properties#host: 127.0.0.1#port: 8182# Gremlin 查询中的超时时间(以毫秒为单位)evaluationTimeout:30000channelizer:org.apache.tinkerpop.gremlin.server.channel.WsAndHttpChannelizer# 不要在此处设置图形,此功能将在支持动态添加图形后再进行处理graphs:{}scriptEngines:{gremlin-groovy:{staticImports:[org.opencypher.gremlin.process.traversal.CustomPredicates.*',org.opencypher.gremlin.traversal.CustomFunctions.*],plugins:{org.apache.hugegraph.plugin.HugeGraphGremlinPlugin:{},org.apache.tinkerpop.gremlin.server.jsr223.GremlinServerGremlinPlugin:{},org.apache.tinkerpop.gremlin.jsr223.ImportGremlinPlugin:{classImports:[java.lang.Math,org.apache.hugegraph.backend.id.IdGenerator,org.apache.hugegraph.type.define.Directions,org.apache.hugegraph.type.define.NodeRole,org.apache.hugegraph.traversal.algorithm.CollectionPathsTraverser,org.apache.hugegraph.traversal.algorithm.CountTraverser,org.apache.hugegraph.traversal.algorithm.CustomizedCrosspointsTraverser,org.apache.hugegraph.traversal.algorithm.CustomizePathsTraverser,org.apache.hugegraph.traversal.algorithm.FusiformSimilarityTraverser,org.apache.hugegraph.traversal.algorithm.HugeTraverser,org.apache.hugegraph.traversal.algorithm.JaccardSimilarTraverser,org.apache.hugegraph.traversal.algorithm.KneighborTraverser,org.apache.hugegraph.traversal.algorithm.KoutTraverser,org.apache.hugegraph.traversal.algorithm.MultiNodeShortestPathTraverser,org.apache.hugegraph.traversal.algorithm.NeighborRankTraverser,org.apache.hugegraph.traversal.algorithm.PathsTraverser,org.apache.hugegraph.traversal.algorithm.PersonalRankTraverser,org.apache.hugegraph.traversal.algorithm.SameNeighborTraverser,org.apache.hugegraph.traversal.algorithm.ShortestPathTraverser,org.apache.hugegraph.traversal.algorithm.SingleSourceShortestPathTraverser,org.apache.hugegraph.traversal.algorithm.SubGraphTraverser,org.apache.hugegraph.traversal.algorithm.TemplatePathsTraverser,org.apache.hugegraph.traversal.algorithm.steps.EdgeStep,org.apache.hugegraph.traversal.algorithm.steps.RepeatEdgeStep,org.apache.hugegraph.traversal.algorithm.steps.WeightedEdgeStep,org.apache.hugegraph.traversal.optimize.ConditionP,org.apache.hugegraph.traversal.optimize.Text,org.apache.hugegraph.traversal.optimize.TraversalUtil,org.apache.hugegraph.util.DateUtil,org.opencypher.gremlin.traversal.CustomFunctions,org.opencypher.gremlin.traversal.CustomPredicate],methodImports:[java.lang.Math#*,org.opencypher.gremlin.traversal.CustomPredicate#*,org.opencypher.gremlin.traversal.CustomFunctions#*]},org.apache.tinkerpop.gremlin.jsr223.ScriptFileGremlinPlugin:{files:[scripts/empty-sample.groovy]}}}}serializers:- {className:org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1,config:{serializeResultToString:false,ioRegistries:[org.apache.hugegraph.io.HugeGraphIoRegistry]}}- {className:org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0,config:{serializeResultToString:false,ioRegistries:[org.apache.hugegraph.io.HugeGraphIoRegistry]}}- {className:org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV2d0,config:{serializeResultToString:false,ioRegistries:[org.apache.hugegraph.io.HugeGraphIoRegistry]}}- {className:org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0,config:{serializeResultToString:false,ioRegistries:[org.apache.hugegraph.io.HugeGraphIoRegistry]}}metrics:{consoleReporter:{enabled:false, interval:180000},csvReporter:{enabled:false, interval:180000, fileName:./metrics/gremlin-server-metrics.csv},jmxReporter:{enabled:false},slf4jReporter:{enabled:false, interval:180000},gangliaReporter:{enabled:false, interval:180000, addressingMode:MULTICAST},graphiteReporter:{enabled:false, interval:180000}}maxInitialLineLength:4096maxHeaderSize:8192maxChunkSize:8192maxContentLength:65536maxAccumulationBufferComponents:1024resultIterationBatchSize:64writeBufferLowWaterMark:32768writeBufferHighWaterMark:65536ssl:{enabled:false}
# bind urlrestserver.url=http://127.0.0.1:8080# gremlin server url, need to be consistent with host and port in gremlin-server.yaml#gremlinserver.url=http://127.0.0.1:8182# graphs list with pair NAME:CONF_PATHgraphs=[hugegraph:conf/hugegraph.properties]# authentication#auth.authenticator=#auth.admin_token=#auth.user_tokens=[]server.id=server-1server.role=master
# gremlin entrence to create graphgremlin.graph=org.apache.hugegraph.HugeFactory# cache config#schema.cache_capacity=100000# vertex-cache default is 1000w, 10min expired#vertex.cache_capacity=10000000#vertex.cache_expire=600# edge-cache default is 100w, 10min expired#edge.cache_capacity=1000000#edge.cache_expire=600# schema illegal name template#schema.illegal_name_regex=\s+|~.*#vertex.default_label=vertexbackend=rocksdbserializer=binarystore=hugegraphraft.mode=falseraft.safe_read=falseraft.use_snapshot=falseraft.endpoint=127.0.0.1:8281raft.group_peers=127.0.0.1:8281,127.0.0.1:8282,127.0.0.1:8283raft.path=./raft-lograft.use_replicator_pipeline=trueraft.election_timeout=10000raft.snapshot_interval=3600raft.backend_threads=48raft.read_index_threads=8raft.queue_size=16384raft.queue_publish_timeout=60raft.apply_batch=1raft.rpc_threads=80raft.rpc_connect_timeout=5000raft.rpc_timeout=60000# if use 'ikanalyzer', need download jar from 'https://github.com/apache/hugegraph-doc/raw/ik_binary/dist/server/ikanalyzer-2012_u6.jar' to lib directorysearch.text_analyzer=jiebasearch.text_analyzer_mode=INDEX# rocksdb backend config#rocksdb.data_path=/path/to/disk#rocksdb.wal_path=/path/to/disk# cassandra backend configcassandra.host=localhostcassandra.port=9042cassandra.username=cassandra.password=#cassandra.connect_timeout=5#cassandra.read_timeout=20#cassandra.keyspace.strategy=SimpleStrategy#cassandra.keyspace.replication=3# hbase backend config#hbase.hosts=localhost#hbase.port=2181#hbase.znode_parent=/hbase#hbase.threads_max=64# mysql backend config#jdbc.driver=com.mysql.jdbc.Driver#jdbc.url=jdbc:mysql://127.0.0.1:3306#jdbc.username=root#jdbc.password=#jdbc.reconnect_max_times=3#jdbc.reconnect_interval=3#jdbc.ssl_mode=false# postgresql & cockroachdb backend config#jdbc.driver=org.postgresql.Driver#jdbc.url=jdbc:postgresql://localhost:5432/#jdbc.username=postgres#jdbc.password=# palo backend config#palo.host=127.0.0.1#palo.poll_interval=10#palo.temp_dir=./palo-data#palo.file_limit_size=32
backend=mysqlserializer=mysqlstore=hugegraph_mysql# mysql backend configjdbc.driver=com.mysql.cj.jdbc.Driverjdbc.url=jdbc:mysql://127.0.0.1:3306jdbc.username=rootjdbc.password=123456jdbc.reconnect_max_times=3jdbc.reconnect_interval=3jdbc.ssl_mode=false