|
| 1 | +# |
| 2 | +# Licensed to the Apache Software Foundation (ASF) under one or more |
| 3 | +# contributor license agreements. See the NOTICE file distributed with |
| 4 | +# this work for additional information regarding copyright ownership. |
| 5 | +# The ASF licenses this file to You under the Apache License, Version 2.0 |
| 6 | +# (the "License"); you may not use this file except in compliance with |
| 7 | +# the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | + |
| 18 | +# gremlin entrance to create graph |
| 19 | +# auth config: org.apache.hugegraph.auth.HugeFactoryAuthProxy |
| 20 | +gremlin.graph=org.apache.hugegraph.HugeFactory |
| 21 | + |
| 22 | +# cache config |
| 23 | +#schema.cache_capacity=100000 |
| 24 | +# vertex-cache default is 1000w, 10min expired |
| 25 | +vertex.cache_type=l2 |
| 26 | +#vertex.cache_capacity=10000000 |
| 27 | +#vertex.cache_expire=600 |
| 28 | +# edge-cache default is 100w, 10min expired |
| 29 | +edge.cache_type=l2 |
| 30 | +#edge.cache_capacity=1000000 |
| 31 | +#edge.cache_expire=600 |
| 32 | + |
| 33 | + |
| 34 | +# schema illegal name template |
| 35 | +#schema.illegal_name_regex=\s+|~.* |
| 36 | + |
| 37 | +#vertex.default_label=vertex |
| 38 | + |
| 39 | +backend=hstore |
| 40 | +serializer=binary |
| 41 | + |
| 42 | +store=hugegraph |
| 43 | + |
| 44 | +# pd config |
| 45 | +pd.peers=$PD_PEERS_LIST$ |
| 46 | + |
| 47 | +# task config |
| 48 | +task.scheduler_type=local |
| 49 | +task.schedule_period=10 |
| 50 | +task.retry=0 |
| 51 | +task.wait_timeout=10 |
| 52 | + |
| 53 | +# raft config |
| 54 | +raft.mode=false |
| 55 | +raft.path=./raft-log |
| 56 | +raft.safe_read=true |
| 57 | +raft.use_replicator_pipeline=true |
| 58 | +raft.election_timeout=10000 |
| 59 | +raft.snapshot_interval=3600 |
| 60 | +raft.backend_threads=48 |
| 61 | +raft.read_index_threads=8 |
| 62 | +raft.snapshot_threads=4 |
| 63 | +raft.snapshot_parallel_compress=false |
| 64 | +raft.snapshot_compress_threads=4 |
| 65 | +raft.snapshot_decompress_threads=4 |
| 66 | +raft.read_strategy=ReadOnlyLeaseBased |
| 67 | +raft.queue_size=16384 |
| 68 | +raft.queue_publish_timeout=60 |
| 69 | +raft.apply_batch=1 |
| 70 | +raft.rpc_threads=80 |
| 71 | +raft.rpc_connect_timeout=5000 |
| 72 | +raft.rpc_timeout=60 |
| 73 | +raft.install_snapshot_rpc_timeout=36000 |
| 74 | + |
| 75 | +# search config |
| 76 | +search.text_analyzer=jieba |
| 77 | +search.text_analyzer_mode=INDEX |
| 78 | + |
| 79 | +# rocksdb backend config |
| 80 | +#rocksdb.data_path=/path/to/disk |
| 81 | +#rocksdb.wal_path=/path/to/disk |
| 82 | + |
| 83 | + |
| 84 | +# cassandra backend config |
| 85 | +cassandra.host=localhost |
| 86 | +cassandra.port=9042 |
| 87 | +cassandra.username= |
| 88 | +cassandra.password= |
| 89 | +#cassandra.connect_timeout=5 |
| 90 | +#cassandra.read_timeout=20 |
| 91 | +#cassandra.keyspace.strategy=SimpleStrategy |
| 92 | +#cassandra.keyspace.replication=3 |
| 93 | + |
| 94 | +# hbase backend config |
| 95 | +#hbase.hosts=localhost |
| 96 | +#hbase.port=2181 |
| 97 | +#hbase.znode_parent=/hbase |
| 98 | +#hbase.threads_max=64 |
| 99 | +# IMPORTANT: recommend to modify the HBase partition number |
| 100 | +# by the actual/env data amount & RS amount before init store |
| 101 | +# It will influence the load speed a lot |
| 102 | +#hbase.enable_partition=true |
| 103 | +#hbase.vertex_partitions=10 |
| 104 | +#hbase.edge_partitions=30 |
| 105 | + |
| 106 | +# mysql backend config |
| 107 | +#jdbc.driver=com.mysql.jdbc.Driver |
| 108 | +#jdbc.url=jdbc:mysql://127.0.0.1:3306 |
| 109 | +#jdbc.username=root |
| 110 | +#jdbc.password= |
| 111 | +#jdbc.reconnect_max_times=3 |
| 112 | +#jdbc.reconnect_interval=3 |
| 113 | +#jdbc.ssl_mode=false |
| 114 | + |
| 115 | +# postgresql & cockroachdb backend config |
| 116 | +#jdbc.driver=org.postgresql.Driver |
| 117 | +#jdbc.url=jdbc:postgresql://localhost:5432/ |
| 118 | +#jdbc.username=postgres |
| 119 | +#jdbc.password= |
| 120 | +#jdbc.postgresql.connect_database=template1 |
| 121 | + |
| 122 | +# palo backend config |
| 123 | +#palo.host=127.0.0.1 |
| 124 | +#palo.poll_interval=10 |
| 125 | +#palo.temp_dir=./palo-data |
| 126 | +#palo.file_limit_size=32 |
0 commit comments