我有一个服务器数据库,其中有900个文档,在这900个文档中,我正在使用过滤的复制来返回其中的427个。我同时使用了filter
函数和selector
,并且都具有标题中提到的相同暂停。我的worker_processes
是4,而worker_batch_size
是500。升高或降低worker_batch_size
并没有帮助。
我的日志输出是一堵文本墙,每行180行,每行之间有空格。您可以看到完整的输出here.,我会将所有输出都放在此问题的正文中,但是字符太多。因此,我将重点介绍标题中提到的主要部分。
我在信息仓中的17:10:01(第56行)收到了触发的复制通知。
[notice] 2018-08-31T17:10:01.825000Z couchdb@localhost <0.32335.65> -------- Document `ONETIMECENTRALPULLSelector1` triggered replication `19a9082a02096249749631260f51383e`
它似乎适当且快速地更新,直到17:10:06(第142行),在该处我看到以下消息,类似于之前的消息,但是这里的区别是docs_read
的数量是380对1 -4作为之前的其他输出。
下一个输出是20秒后,也位于下面
[debug] 2018-08-31T17:10:06.348000Z couchdb@localhost <0.203.0> -------- New task status for <0.32335.65>: [{changes_pending,null},{checkpoint_interval,30000},{checkpointed_source_seq,0},{continuous,false},{database,<<"shards/20000000-3fffffff/_replicator.1475082981">>},{doc_id,<<"ONETIMECENTRALPULLSelector1">>},{doc_write_failures,0},{docs_read,380},{docs_written,380},{missing_revisions_found,380},{replication_id,<<"19a9082a02096249749631260f51383e">>},{revisions_checked,380},{source,<<"https://serverDB/db/">>},{source_seq,<<"29558-g1AAAAJ7eJzLYWBg4MhgTmEQTM4vTc5ISXIwNDLXMwBCwxygFFMiQ5L8____szKYkxgYeG_mAsXYzUzMkkyNjbHpwWNSkgKQTLKHG8YfAzYs2djIItXQhFTDHECGxSMM04G4zNLE2MwwjVTDEkCG1SO8uQxsmLFZmpFZqimJhuWxAEmGBiAFNG8-xEC-KLCBKRYWBmmphmQZuABi4H6oCyeBDUwyTjQwSCM17CAGHoAYeB9q4G-wgYmJSalm5ilkGfgAYiAsQjogYWhknmphitXALAC5o6N6">>},{started_on,1535735401},{target,<<"http://localhost:5984/db/">>},{through_seq,<<"25683-g1AAAAGNeJzLYWBg4MhgTmEQTM4vTc5ISXIwNDLXMwBCwxygFFMiQ5L8____s5IYGHgU8ahLUgCSSfZQpbzG-JQ6gJTGw0y9gU9pAkhpPUwpPofmsQBJhgYgBVQ9H6z8MEHlCyDK94OVMxFUfgCi_D5YeTpB5Q8gyv9nZTCDNHzOBYqxGxuZp1qYpmDTmgUAtZRqPQ">>},{type,replication},{updated_on,1535735406},{user,null}]
[debug] 2018-08-31T17:10:26.661000Z couchdb@localhost <0.32226.65> -------- Worker flushing doc batch of size 42249 bytes
基于日志输出,我认为可能是
1)花20秒的时间刷新了42249个文档的文档批处理(如果有) 完成后记录日志)
2)这发生在
之后[debug] 2018-08-31T17:10:06.348000Z couchdb@localhost <0.32335.65> -------- Worker reported seq {6,<<"29244-g1AAAAHReJzLYWBg4MhgTmEQTM4vTc5ISXIwNDLXMwBCwxygFFMiQ5L8____s5IYGHhP4VGXpAAkk-yhSvlZ8Cl1ACmNhyrlm4tPaQJIaT1IaQYzyAlLcoEC7MZmaUZmqabYtOExLI8FSDI0ACmgefMhBvJFgg1MsbAwSEs1JMvABRAD90NdOAlsYJJxooFBmglZBh6AGHgfHOaPCSp_AFEOCff4LAAawXtk">>}, through seq was {4,<<"25683-g1AAAAGNeJzLYWBg4MhgTmEQTM4vTc5ISXIwNDLXMwBCwxygFFMiQ5L8____s5IYGHgU8ahLUgCSSfZQpbzG-JQ6gJTGw0y9gU9pAkhpPUwpPofmsQBJhgYgBVQ9H6z8MEHlCyDK94OVMxFUfgCi_D5YeTpB5Q8gyv9nZTCDNHzOBYqxGxuZp1qYpmDTmgUAtZRqPQ">>}, new through seq is {4,<<"25683-g1AAAAGNeJzLYWBg4MhgTmEQTM4vTc5ISXIwNDLXMwBCwxygFFMiQ5L8____s5IYGHgU8ahLUgCSSfZQpbzG-JQ6gJTGw0y9gU9pAkhpPUwpPofmsQBJhgYgBVQ9H6z8MEHlCyDK94OVMxFUfgCi_D5YeTpB5Q8gyv9nZTCDNHzOBYqxGxuZp1qYpmDTmgUAtZRqPQ">>}, highest seq done was {7,<<"29558-g1AAAAJ7eJzLYWBg4MhgTmEQTM4vTc5ISXIwNDLXMwBCwxygFFMiQ5L8____szKYkxgYeG_mAsXYzUzMkkyNjbHpwWNSkgKQTLKHG8YfAzYs2djIItXQhFTDHECGxSMM04G4zNLE2MwwjVTDEkCG1SO8uQxsmLFZmpFZqimJhuWxAEmGBiAFNG8-xEC-KLCBKRYWBmmphmQZuABi4H6oCyeBDUwyTjQwSCM17CAGHoAYeB9q4G-wgYmJSalm5ilkGfgAYiAsQjogYWhknmphitXALAC5o6N6">>}, new highest seq done is {7,<<"29558-g1AAAAJ7eJzLYWBg4MhgTmEQTM4vTc5ISXIwNDLXMwBCwxygFFMiQ5L8____szKYkxgYeG_mAsXYzUzMkkyNjbHpwWNSkgKQTLKHG8YfAzYs2djIItXQhFTDHECGxSMM04G4zNLE2MwwjVTDEkCG1SO8uQxsmLFZmpFZqimJhuWxAEmGBiAFNG8-xEC-KLCBKRYWBmmphmQZuABi4H6oCyeBDUwyTjQwSCM17CAGHoAYeB9q4G-wgYmJSalm5ilkGfgAYiAsQjogYWhknmphitXALAC5o6N6">>}
Seqs in progress were: [{5,<<"26487-g1AAAAHzeJzLYWBg4MhgTmEQTM4vTc5ISXIwNDLXMwBCwxygFFMiQ5L8____szKYkxgYeNblAsXYzUzMkkyNjbHpwWNSkgKQTLIHGQY0ijcTn1IHkNJ4mFJefEoTQErrEU7sAjvR2CzNyCzVlEQn5rEASYYGIAU0bz7Ibp5fBJUvgCjfD7W_D2x_knGigUGaCVn2H4AYeB9s_12Cyh9AlEP9z5sC8b-ReaqFaQo2rVkAnHqDJA">>},{6,<<"29244-g1AAAAHReJzLYWBg4MhgTmEQTM4vTc5ISXIwNDLXMwBCwxygFFMiQ5L8____s5IYGHhP4VGXpAAkk-yhSvlZ8Cl1ACmNhyrlm4tPaQJIaT1IaQYzyAlLcoEC7MZmaUZmqabYtOExLI8FSDI0ACmgefMhBvJFgg1MsbAwSEs1JMvABRAD90NdOAlsYJJxooFBmglZBh6AGHgfHOaPCSp_AFEOCff4LAAawXtk">>}]
Seqs in progress are now: [{5,<<"26487-g1AAAAHzeJzLYWBg4MhgTmEQTM4vTc5ISXIwNDLXMwBCwxygFFMiQ5L8____szKYkxgYeNblAsXYzUzMkkyNjbHpwWNSkgKQTLIHGQY0ijcTn1IHkNJ4mFJefEoTQErrEU7sAjvR2CzNyCzVlEQn5rEASYYGIAU0bz7Ibp5fBJUvgCjfD7W_D2x_knGigUGaCVn2H4AYeB9s_12Cyh9AlEP9z5sC8b-ReaqFaQo2rVkAnHqDJA">>}]
此输出(无需强迫您阅读)是复制序列的整理,然后让我知道只有一个序列在进行中,即序列5。
我不确定该序列何时开始,甚至与其他序列并行运行。
有人能在某种程度上指导我为什么会发生这种情况吗?