@@ -27,9 +27,9 @@ msgid ""
2727"list of FAQs </faq>` or post your question to the `MongoDB User Mailing List"
2828" <https://groups.google.com/forum/?fromgroups#!forum/mongodb-user>`_."
2929msgstr ""
30- "如果你没能发现你需要的答案,检查 :doc:`complete FAQs列表 </faq>` "
31- "或者向 ` MongoDB 用户邮件列表提交你的问题 "
32- " <https://groups.google.com/forum/?fromgroups#!forum/mongodb-user>`_."
30+ "如果你没能发现你需要的答案,检查 :doc:`complete FAQs 列表 </faq>` "
31+ "或者向 ` MongoDB 用户邮件列表 "
32+ " <https://groups.google.com/forum/?fromgroups#!forum/mongodb-user>`_ 提交你的问题 ."
3333
3434#: ../source/faq/diagnostics.txt:17
3535msgid ""
@@ -285,6 +285,10 @@ msgid ""
285285"documents, then indexes will more likely stay in RAM, but it depends on your"
286286" particular usage."
287287msgstr ""
288+ "MongoDB使用操作系统将数据从磁盘读取到内存中。它单纯的 :ref:` 内存映射 <faq-storage-memory-mapped-files>` "
289+ "所有的数据文件并且使用操作系统缓存数据。在内存运行效率低的情况下,操作系统"
290+ "会通常从内存中清除最近最少使用数据(LRU),例如如果客户端比访问文档更频繁的访"
291+ "问索引,这是索引将更可能的驻存在内存中,但是这取决于您的特定用法。"
288292
289293#: ../source/faq/diagnostics.txt:211
290294msgid ""
@@ -293,17 +297,21 @@ msgid ""
293297"on your access patterns, what indexes you have, and the size of your "
294298"documents."
295299msgstr ""
300+ "要计算你需要多少内存,你必须预估工作集的大小,或者客户端经常使用的那部分数据。"
301+ "这取决于你的访问模式,你有哪些索引和你的文档的大小。"
296302
297303#: ../source/faq/diagnostics.txt:216
298304msgid ""
299305"If page faults are infrequent, your working set fits in RAM. If fault rates "
300306"rise higher than that, you risk performance degradation. This is less "
301307"critical with SSD drives than with spinning disks."
302308msgstr ""
309+ "如果页面错误是罕见的,你的工作集和内存相互适合。如果错误比率升高,高于你的风险,"
310+ "性能会下降。固态硬盘(SSD)的临界值比旋转型磁盘(spinning disks)更少。"
303311
304312#: ../source/faq/diagnostics.txt:222
305313msgid "How do I read memory statistics in the UNIX ``top`` command"
306- msgstr ""
314+ msgstr "我如何在UNIX的 ``top`` 命令中显示内存统计? "
307315
308316#: ../source/faq/diagnostics.txt:224
309317msgid ""
@@ -314,33 +322,43 @@ msgid ""
314322" doesn't have other processes running, ``RSIZE`` (resident bytes) is the "
315323"total memory of the machine, as this counts file system cache contents."
316324msgstr ""
325+ "因为 :program:`mongod` 使用 :ref:`内存-映射 文件 <faq-storage-memory-mapped-files>` ,"
326+ "在 ``top`` 中显示内存统计需要用特殊的方法解释。在一个大型数据库中, ``VSIZE`` (虚拟字节)"
327+ "往往是整个数据库的大小。如果 :program:`mongod` 没有其他的进行运行, ``RSIZE`` (常驻字节)"
328+ "是机器的内存总额,和文件系统缓存内容的数目一样。"
317329
318330#: ../source/faq/diagnostics.txt:232
319331msgid ""
320332"For Linux systems, use the ``vmstat`` command to help determine how the "
321333"system uses memory. On OS X systems use ``vm_stat``."
322334msgstr ""
335+ "在Linux系统上,使用 ``vmstat`` 命令来帮助确定系统如何使用内存。在 OS X系统"
336+ "上使用 ``vm_stat`` 命令。"
323337
324338#: ../source/faq/diagnostics.txt:236
325339msgid "Sharded Cluster Diagnostics"
326- msgstr ""
340+ msgstr "分片集群的诊断 "
327341
328342#: ../source/faq/diagnostics.txt:238
329343msgid ""
330344"The two most important factors in maintaining a successful sharded cluster "
331345"are:"
332346msgstr ""
347+ "成功维护分片集群最重要的两个因素是:"
333348
334349#: ../source/faq/diagnostics.txt:240
335350msgid ""
336351":ref:`choosing an appropriate shard key <sharding-internals-shard-keys>` and"
337352msgstr ""
353+ ":ref:`选择一个恰当的片键 <sharding-internals-shard-keys>` "
338354
339355#: ../source/faq/diagnostics.txt:242
340356msgid ""
341357":ref:`sufficient capacity to support current and future operations "
342358"<sharding-capacity-planning>`."
343359msgstr ""
360+ ":ref:`足够的性能来支持当前和未来的业务 "
361+ "<sharding-capacity-planning>`."
344362
345363#: ../source/faq/diagnostics.txt:245
346364msgid ""
@@ -350,17 +368,23 @@ msgid ""
350368"the current resources become saturated. Continue reading for specific issues"
351369" you may encounter in a production environment."
352370msgstr ""
371+ "在你的部署中选择最合理的 :term:`片键` ,并且确保总是在你的集群现有的资源趋于饱和"
372+ "之前增加额外的容量,可以避免大部分在分片过程中遇到的问题。继续阅读在生产环境中遇"
373+ "到的特殊问题。"
353374
354375#: ../source/faq/diagnostics.txt:254
355376msgid "In a new sharded cluster, why does all data remains on one shard?"
356377msgstr ""
378+ "在一个新的分片集群,为什么所有的数据仍然在一个分片?"
357379
358380#: ../source/faq/diagnostics.txt:256
359381msgid ""
360382"Your cluster must have sufficient data for sharding to make sense. Sharding "
361383"works by migrating chunks between the shards until each shard has roughly "
362384"the same number of chunks."
363385msgstr ""
386+ "你的集群必须有足够的数据去做有意义的分片。分片工作在分片之间迁移数据块,直到"
387+ "每个分片都有数量大致相同的数据块。"
364388
365389#: ../source/faq/diagnostics.txt:260
366390msgid ""
@@ -371,6 +395,10 @@ msgid ""
371395"behaviors help prevent unnecessary chunk migrations, which can degrade the "
372396"performance of your cluster as a whole."
373397msgstr ""
398+ "数据块默认的大小是64M。集群中数据块的不平衡程度超过 :ref:`迁移阀值 <sharding-migration-thresholds>` "
399+ "之前,MongoDB不会开始迁移。虽然可以通过 :setting:`~sharding.chunkSize` 设置"
400+ "默认的数据块大小,这些行为有助于防止不必要的数据块迁移,这回降低你的集群的"
401+ "整体性能。"
374402
375403#: ../source/faq/diagnostics.txt:267
376404msgid ""
@@ -380,6 +408,9 @@ msgid ""
380408"shard. Either lower the :ref:`chunk size <sharding-chunk-size>` setting, or "
381409"add more data to the cluster."
382410msgstr ""
411+ "如果你刚刚部署了分片集群,请确认你有足够足够的数据使得分片生效。如果没有足够的"
412+ "数据创建多于8个64M的数据块,那么所有的数据仍然在一个分片上。或者降低你的"
413+ " :ref:`chunk size <sharding-chunk-size>` 设置,或者向集群中增加足够的数据。"
383414
384415#: ../source/faq/diagnostics.txt:273
385416msgid ""
@@ -389,19 +420,25 @@ msgid ""
389420" You can either wait until your application inserts data *or* :doc:`split "
390421"chunks manually </tutorial/split-chunks-in-sharded-cluster>`."
391422msgstr ""
423+ "作为一个相关的问题,系统只有在插入或者更新的时候分离数据块,这意味着,如果你"
424+ "配置了分片,但是没有继续进行插入或者更新操作,数据库将不会创建任何数据块。"
425+ "你可以等到应用插入数据或者 :doc:`手动分块 </tutorial/split-chunks-in-sharded-cluster>` 。"
392426
393427#: ../source/faq/diagnostics.txt:279
394428msgid ""
395429"Finally, if your shard key has a low :ref:`cardinality <sharding-shard-key-"
396430"cardinality>`, MongoDB may not be able to create sufficient splits among the"
397431" data."
398432msgstr ""
433+ "最后,如果你的片键有一个低 :ref:`基数能力 <sharding-shard-key-cardinality>` "
434+ ",MongoDB 可能无法在数据之间创造足够的隔离。"
399435
400436#: ../source/faq/diagnostics.txt:284
401437msgid ""
402438"Why would one shard receive a disproportion amount of traffic in a sharded "
403439"cluster?"
404440msgstr ""
441+ "为什么一个分片在分片集群中接收到的通信量不均衡?"
405442
406443#: ../source/faq/diagnostics.txt:286
407444msgid ""
@@ -410,86 +447,110 @@ msgid ""
410447"this is the result of a shard key that does not effectively allow "
411448":ref:`write scaling <sharding-shard-key-write-scaling>`."
412449msgstr ""
450+ "在某些情况下,一个单独的分片或者一个分片集群中的子集会接收比例不均衡的通信和"
451+ "工作负载。几乎所有的情况下,都是片键不能有效的允许"
452+ ":ref:`写扩展 <sharding-shard-key-write-scaling>`."
413453
414454#: ../source/faq/diagnostics.txt:291
415455msgid ""
416456"It's also possible that you have \" hot chunks.\" In this case, you may be "
417457"able to solve the problem by splitting and then migrating parts of these "
418458"chunks."
419459msgstr ""
460+ "也有可能是由于你的实例中有\" 热块\" (hot chunks)。 在这种情况下,你能够通过分离然后迁移"
461+ "部分数据块解决这个问题。"
420462
421463#: ../source/faq/diagnostics.txt:295
422464msgid ""
423465"In the worst case, you may have to consider re-sharding your data and "
424466":ref:`choosing a different shard key <sharding-internals-choose-shard-key>` "
425467"to correct this pattern."
426468msgstr ""
469+ "在最坏的情况下,你可能需要考虑重新分片你的数据并且"
470+ " :ref:`选择一个不同的片键 <sharding-internals-choose-shard-key>` "
471+ "来适应这个模式。"
427472
428473#: ../source/faq/diagnostics.txt:300
429474msgid "What can prevent a sharded cluster from balancing?"
430- msgstr ""
475+ msgstr "什么会破坏分片集群的平衡? "
431476
432477#: ../source/faq/diagnostics.txt:302
433478msgid ""
434479"If you have just deployed your sharded cluster, you may want to consider the"
435480" :ref:`troubleshooting suggestions for a new cluster where data remains on a"
436481" single shard <sharding-troubleshooting-not-splitting>`."
437482msgstr ""
483+ "如果你刚刚部署了你的分片集群,你可能要考虑"
484+ " :ref:` 在新集群中数据保持在但以分片的故障处理建议"
485+ " <sharding-troubleshooting-not-splitting>` 。"
438486
439487#: ../source/faq/diagnostics.txt:306
440488msgid ""
441489"If the cluster was initially balanced, but later developed an uneven "
442490"distribution of data, consider the following possible causes:"
443491msgstr ""
492+ "如果集群最初是平衡的,但是随后的开发中数据分布不均,参考以下的可能原因:"
444493
445494#: ../source/faq/diagnostics.txt:309
446495msgid ""
447496"You have deleted or removed a significant amount of data from the cluster. "
448497"If you have added additional data, it may have a different distribution with"
449498" regards to its shard key."
450499msgstr ""
500+ "你可能从集群中删除或移除大量数据。如果你增加了额外的数据,它可能有对于片键会"
501+ "有不同的分布"
451502
452503#: ../source/faq/diagnostics.txt:313
453504msgid ""
454505"Your :term:`shard key` has low :ref:`cardinality <sharding-shard-key-"
455506"cardinality>` and MongoDB cannot split the chunks any further."
456507msgstr ""
508+ "你的 :term:`片键` 具有低的 :ref:`基数能力 <sharding-shard-key-"
509+ "cardinality>` , MongoDB 不能再分隔数据块。"
457510
458511#: ../source/faq/diagnostics.txt:316
459512msgid ""
460513"Your data set is growing faster than the balancer can distribute data around"
461514" the cluster. This is uncommon and typically is the result of:"
462515msgstr ""
516+ "你的数据增长比均衡器在集群中分布数据的速度更快。这是罕见的,典型的结果是:"
463517
464518#: ../source/faq/diagnostics.txt:320
465519msgid ""
466520"a :ref:`balancing window <sharding-schedule-balancing-window>` that is too "
467521"short, given the rate of data growth."
468522msgstr ""
523+ " :ref:`均衡窗口 <sharding-schedule-balancing-window>` 太短, "
524+ "给定数据增长比率。"
469525
470526#: ../source/faq/diagnostics.txt:323
471527msgid ""
472528"an uneven distribution of :ref:`write operations <sharding-shard-key-write-"
473529"scaling>` that requires more data migration. You may have to choose a "
474530"different shard key to resolve this issue."
475531msgstr ""
532+ "一个不均衡的 :ref:`写操作 <sharding-shard-key-write-"
533+ "scaling>` 需要更多的数据迁移。你可能不得不选择一个不同的片键来解决这个问题。"
476534
477535#: ../source/faq/diagnostics.txt:328
478536msgid ""
479537"poor network connectivity between shards, which may lead to chunk migrations"
480538" that take too long to complete. Investigate your network configuration and "
481539"interconnections between shards."
482540msgstr ""
541+ "分片之间较差的网络连接,可能会导致数据块迁移完成时间太长。检查你的网络配置和"
542+ "分片的相互连接。"
483543
484544#: ../source/faq/diagnostics.txt:333
485545msgid "Why do chunk migrations affect sharded cluster performance?"
486- msgstr ""
546+ msgstr "为什么数据块迁移会影响分片集群的性能? "
487547
488548#: ../source/faq/diagnostics.txt:335
489549msgid ""
490550"If migrations impact your cluster or application's performance, consider the"
491551" following options, depending on the nature of the impact:"
492552msgstr ""
553+ "如果迁移影响了你的集群或者应用的性能,根据产生影响的类型考虑下列选项:"
493554
494555#: ../source/faq/diagnostics.txt:338
495556msgid ""
@@ -498,25 +559,34 @@ msgid ""
498559"balancing activity during peak hours. Ensure that there is enough time "
499560"remaining to keep the data from becoming out of balance again."
500561msgstr ""
562+ "如果迁移只是偶尔的打断你的集群,可以限制"
563+ ":ref:`均衡窗口 <sharding-schedule-balancing-window>` 来阻止高峰时段的平衡"
564+ "活动。确保有足够的剩余时间来保持数据在再次失去平衡之前。"
501565
502566#: ../source/faq/diagnostics.txt:344
503567msgid ""
504568"If the balancer is always migrating chunks to the detriment of overall "
505569"cluster performance:"
506570msgstr ""
571+ "如果均衡器总是迁移数据影响到集群的整体性能:"
507572
508573#: ../source/faq/diagnostics.txt:347
509574msgid ""
510575"You may want to attempt :doc:`decreasing the chunk size </tutorial/modify-"
511576"chunk-size-in-sharded-cluster>` to limit the size of the migration."
512577msgstr ""
578+ "你可能需要尝试"
579+ " :doc:`减小数据块的大小 </tutorial/modify-chunk-size-in-sharded-cluster>` "
580+ "来限制迁移的大小。"
513581
514582#: ../source/faq/diagnostics.txt:350
515583msgid ""
516584"Your cluster may be over capacity, and you may want to attempt to :ref:`add "
517585"one or two shards <sharding-procedure-add-shard>` to the cluster to "
518586"distribute load."
519587msgstr ""
588+ "你的集群可能过载,你可能需要尝试"
589+ " :ref:`增加一到两个分片 <sharding-procedure-add-shard>` 到集群中来分担负荷。"
520590
521591#: ../source/faq/diagnostics.txt:354
522592msgid ""
@@ -526,3 +596,6 @@ msgid ""
526596"your cluster with a shard key that provides better :ref:`write scaling "
527597"<sharding-shard-key-write-scaling>`."
528598msgstr ""
599+ "也可能是你的片键导致你的应用直接写入到一个单一分片。这种活动模式需要"
600+ "均衡器在写入不久之后去迁移更多的数据。可以考虑用一个片键重新部署你的"
601+ "集群以提供更好的 :ref:`写扩展 <sharding-shard-key-write-scaling>`。 "
0 commit comments