neo4j配置文件注意项

  8 # The name of the database to mount
  9 dbms.active_database=graph10.db //数据库名
 10 #dbms.active_database=graph.db  //默认注释
 11 
 12 # Paths of directories in the installation.
 13 dbms.directories.data=/data/neo4j  //数据库存储地址
 14 #dbms.directories.data=data    //默认注释  在neo4j安装目录下的data下

 20 # This setting constrains all `LOAD CSV` import files to be under the `import` directory. Remove or comment it out to
 21 # allow files to be loaded from anywhere in the filesystem; this introduces possible security problems. See the
 22 # `LOAD CSV` section of the manual for details.
 23 #dbms.directories.import=import    //注释该行,导入csv文件可在系统任意目录下  neo4j-import时用

 36  #dbms.memory.heap.initial_size=2048m
 37 #dbms.memory.heap.max_size=512m
 38 dbms.memory.heap.initial_size=30720m  //初始内存 我设置为除系统用4G后的所有
 39 dbms.memory.heap.max_size=30720m

# The amount of memory to use for mapping the store files, in bytes (or
 42 # kilobytes with the 'k' suffix, megabytes with 'm' and gigabytes with 'g').
 43 # If Neo4j is running on a dedicated server, then it is generally recommended
 44 # to leave about 2-4 gigabytes for the operating system, give the JVM enough
 45 # heap to hold all your transaction state and query context, and then leave the
 46 # rest for the page cache.
 47 # The default page cache memory assumes the machine is dedicated to running
 48 # Neo4j, and is heuristically set to 50% of RAM minus the max Java heap size.
 49 dbms.memory.pagecache.size=32g      //内存 我设置为除系统用4g后的所有


 61 # With default configuration Neo4j only accepts local connections.
 62 # To accept non-local connections, uncomment this line:
 63 dbms.connectors.default_listen_address=0.0.0.0   //打开远程访问

//HA模式配置
239 # Database mode
240 # Allowed values:
241 # HA - High Availability
242 # SINGLE - Single mode, default.
243 # To run in High Availability mode uncomment this line:
244 dbms.mode=HA
245 
246 # ha.server_id is the number of each instance in the HA cluster. It should be
247 # an integer (e.g. 1), and should be unique for each cluster instance.
248 ha.server_id=1
249 
250 # ha.initial_hosts is a comma-separated list (without spaces) of the host:port
251 # where the ha.host.coordination of all instances will be listening. Typically
252 # this will be the same for all cluster instances.
253 ha.initial_hosts=10.1.140.25:5001,10.1.140.24:5001  //此处比较重要

 

转载于:https://my.oschina.net/sunyouling/blog/887706

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值