Home

ONgDB配置优化

Here’s the table of contents: 使用一些推荐配置 日志相关配置优化 使用一些推荐配置 bin/neo4j-admin memrec # Memory settings recommendation from neo4j-admin memrec: # # Assuming the system is dedicated to running Neo4j and has 126100m of memory, # we recommend a heap size of around 31200m, and a page cache of around 78800m, # and that about 16100m is left for the o...

Read more

ONgDB服务端报错

Here’s the table of contents: 【一】报错 【一】报错 neo4j.log中截获的报错 2020-11-11 11:39:05.236+0000 ERROR Failed to generate JSON output. Closed org.eclipse.jetty.io.EofException: Closed at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:491) at com.sun.jersey.spi.container.servlet.WebComponent$Writer.write(WebComponent.java:300) at com.sun...

Read more

Nginx请求转发失败原因排查

Here’s the table of contents: 【一】日志报错 【一】报错解析 【一】报错原因 【二】日志报错 【二】报错解析 【二】报错解决 【三】日志报错 【三】报错解析 【三】报错解决 【四】日志报错 【四】报错解析 【四】报错解决 【五】日志报错 【五】报错解析 【五】报错解决 【一】日志报错 2020/11/11 06:04:25 [error] 25231#0: *7461416 connect() failed (111: Connection refused) while connecting to upstream, client: 10.10.39.169, server: testlab...

Read more

ONgDB集成图计算组件Spark

Here’s the table of contents: 版本信息 基本操作 替换Hadoop的bin文件夹 启动 访问地址 运行测试Spark计算 运行测试Spark+ONgDB计算 版本信息 Spark 2.4.0 http://archive.apache.org/dist/spark/spark-2.4.0/ Neo4j 3.5.x Driver 1.7.5 Scala 2.11 JDK 1.8 hadoop-2.7.7 https://mirrors.tuna.tsinghua.edu.cn/apache/hadoop/common/ neo4j-spark-connector-full-2.4.1-M1 https://github.c...

Read more

Nginx访问量统计日常分析

Here’s the table of contents: 查询某个时间段的日志 根据访问IP统计UV 统计访问URL统计PV 查询访问最频繁的URL 查询访问最频繁的IP 根据时间段统计查看日志 查询每秒请求 查询某个时间段的日志 cat access.log |grep 'POST'|grep '2020:11' 根据访问IP统计UV awk '{print $1}' access.log|sort | uniq -c |wc -l 统计访问URL统计PV awk '{print $8}' access.log|wc -l 查询访问最频繁的URL awk '{print $8}' access.log|sort | uniq -c |sort...

Read more

ONgDB集群数据备份恢复方案

Here’s the table of contents: 数据备份恢复 备份命令 修改集群配置 远程热备命令 数据恢复脚本 参考文档 数据备份恢复 现有三台ONgDB服务器,2-CORE,1-REPLICA。备份操作采用远程备份的方式,不在生产服务器备份。 备份命令 ongdb@ip-10-20-0-157:~/ongdb-enterprise-3.5.17$ ./bin/neo4j-admin backup Missing argument 'backup-dir' usage: neo4j-admin backup --backup-dir=<backup-path>...

Read more

Nginx负载均衡使用

Here’s the table of contents: 安装 启动 重新载入配置文件【热加载】 重启nginx 停止nginx 配置多个IP映射到一个域名 配置支持TCP协议转发【bolt】 动态加载stream模块 安装 下载压缩包上传服务器解压 安装依赖模块 sudo yum -y install openssl openssl-devel sudo yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel 编译 ./configure sudo make 安装 ...

Read more

Neo4j单机节点数据同步到ONgDB集群

Here’s the table of contents: Neo4j单机到ONgDB集群的数据同步恢复 一、从社区版NEO4J生成DUMP文件 二、将上一步生成的DUMP文件发送到ongdb-1、ongdb-2、ongdb-3节点 三、停止ongdb-1、ongdb-2、ongdb-3节点图库并解除绑定 四、清除ongdb-1、ongdb-2、ongdb-3集群状态文件 五、ongdb-1、ongdb-2、ongdb-3离线生成新的DB文件 六、ongdb-1、ongdb-2、ongdb-3修改配置文件并启动 Neo4j单机到ONgDB集群的数据同步恢复 备选方案:为了应对现有图...

Read more