solr6.6 dih数据导入卡死

服务器:centos  16G内存   8核CPU solr6.6 mysql5.6

问题:每次导入数据都是导到10W+条后就卡死

尝试:换过更高配置的服务器  centos  32G内存  24核CPU  solr6.6 mysql5.6(然并卵)

最终得出结论,肯定是这丫的配置有问题;

各种百度都是一些基础的,就没有那种几千万数据的实践的,最终不得已,只得自己各种参数各种观察,发现原来是问题出现在commit的上面

 修改solrconfig.xml

修改后如下

  
    <autoCommit>
		<!--表示软提交达到1万条的时候会自动进行一次硬提交-->
	  <maxDocs>10000</maxDocs>
        <!--设置硬提交  单位 毫秒 (写入硬盘)-->
      <maxTime>5000</maxTime>
      <openSearcher>false</openSearcher>
    </autoCommit>

    <!-- softAutoCommit is like autoCommit except it causes a
         'soft' commit which only ensures that changes are visible
         but does not ensure that data is synced to disk.  This is
         faster and more near-realtime friendly than a hard commit.
      -->
	<!--设置软提交  单位 毫秒 (写入内存 )-->
    <autoSoftCommit>
      <maxTime>10000</maxTime>
    </autoSoftCommit>

 

 

转载于:https://my.oschina.net/2892328252/blog/1492825

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值