# SOME DESCRIPTIVE TITLE # Copyright (C) YEAR Free Software Foundation, Inc. # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2019-11-05 11:03+0900\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" #. type: Title == #, no-wrap msgid "Optimizing DRBD throughput" msgstr "DRBDのスループット最適化" #. type: Plain text msgid "" "This chapter deals with optimizing DRBD throughput. It examines some " "hardware considerations with regard to throughput optimization, and details " "tuning recommendations for that purpose." msgstr "" "この章では、DRBDのスループットの最適化について説明します。スループットを最適" "化するためのハードウェアに関する検討事項と、チューニングを行う際の詳細な推奨" "事項について取り上げます。" #. type: Title === #, no-wrap msgid "Hardware considerations" msgstr "ハードウェアの検討事項" #. type: Plain text msgid "" "DRBD throughput is affected by both the bandwidth of the underlying I/O " "subsystem (disks, controllers, and corresponding caches), and the bandwidth " "of the replication network." msgstr "" "DRBDのスループットは、配下のI/Oサブシステム(ディスク、コントローラおよび対応" "するキャッシュ)の帯域幅とレプリケーションネットワークの帯域幅の両方の影響を受" "けます。" #. type: Block title #, no-wrap msgid "I/O subsystem throughput" msgstr "I/Oサブシステムのスループット" #. type: Plain text msgid "" "indexterm:[throughput]I/O subsystem throughput is determined, largely, by " "the number and type of storage units (disks, SSDs, other Flash storage [like " "FusionIO], ...) that can be written to in parallel. A single, reasonably " "recent, SCSI or SAS disk will typically allow streaming writes of roughly " "40MiB/s to the single disk; an SSD will do 300MiB/s; one of the recent Flash " "storages (NVMe) will be at 1GiB/s. When deployed in a striping " "configuration, the I/O subsystem will parallelize writes across disks, " "effectively multiplying a single disk's throughput by the number of stripes " "in the configuration. Thus the same, 40MB/s disks will allow effective " "throughput of 120MB/s in a RAID-0 or RAID-1+0 configuration with three " "stripes, or 200MB/s with five stripes; with SSDs and/or NVMe you can easily " "get to 1GiB/sec." msgstr "" "indexterm:[throughput] I/Oサブシステムのスループットは主に並行して書き込み可" "能なストレージユニットの数と種類(ハードディスク、SSD、その他のフラッシュスト" "レージ{FusionIOなど}...)によって決まります。比較的新しいSCSIまたはSASディスク" "の場合、一般に1つのディスクに約40MB/sでストリーミング書き込みを行うことができ" "ます。SSDなら300MiB/s、最新のフラッシュストレージ(NVMe)なら1GiB/sほどになりま" "す。ストライピング構成で配備する場合は、I/Oサブシステムにより書き込みがディス" "ク間に並列化されます。 この場合、スループットは、1つのディスクのスループット" "に構成内に存在するストライプの数を掛けたものになります。RAID-0またはRAID-1`0" "構成で、 3つのストライプがある場合は同じ40MB/sのディスクのスループットが" "120MB/sになり、5つのストライプがある場合は200MB/sになります。SSDとNVMeまたは" "NVMeのみで構成すれば容易に1GiB/s超になるでしょう。" #. type: Plain text msgid "" "A RAID-controller with RAM and a <> can speed up short " "spikes (by buffering them), and so too-short benchmark tests might show " "speeds like 1GiB/s too; for sustained writes its buffers will just run full, " "and then not be of much help, though." msgstr "" "バッテリーバックアップされたバッファメモリを持つRAIDコントローラでは少量の書" "き込みの速度は、それらがバッファリングされることによって大幅に加速されます。" "非常に短い測定テストでは1GiBを示すかもしれません。持続的な書き込みではバッ" "ファがフルになるので速度は低下します。" #. type: Plain text msgid "" "Disk _mirroring_ (RAID-1) in hardware typically has little, if any, effect " "on throughput. Disk _striping with parity_ (RAID-5) does have an effect on " "throughput, usually an adverse one when compared to striping; RAID-5 and " "RAID-6 in software even more so." msgstr "" "ハードウェアのディスク_ミラーリング_(RAID-1)は、一般にスループットにはほとん" "ど影響ありません。ディスクの_パリティ付きストライピング_(RAID-5)はスループッ" "トに影響し、通常はストライピングに比べてスループットが低下します。ソフトウェ" "アRAIDのRAID-5やRAID-6であればさらに低下します。" #. type: Block title #, no-wrap msgid "Network throughput" msgstr "ネットワークのスループット" #. type: Plain text msgid "" "indexterm:[throughput]Network throughput is usually determined by the amount " "of traffic present on the network, and on the throughput of any routing/" "switching infrastructure present. These concerns are, however, largely " "irrelevant in DRBD replication links which are normally dedicated, back-to-" "back network connections. Thus, network throughput may be improved either by " "switching to a higher-throughput hardware (such as 10 Gigabit Ethernet, or " "56GiB Infiniband), or by using link aggregation over several network links, " "as one may do using the Linux indexterm:[bonding driver]`bonding` network " "driver." msgstr "" "indexterm:[throughput]ネットワークスループットは一般にネットワーク上に存在す" "るトラフィック量と経路上にあるルータやスイッチなどのスループットによって決定" "されます。ただし、DRBDのレプリケーションリンクは通常は専用の背面間ネットワー" "ク接続であるため、これらはあまり関係がありません。したがって、ネットワークの" "スループットを向上させるには、高スループットのプロトコル(10ギガビットイーサ" "ネットや56GiBインフィニバンド)に切り換えるか、複数のネットワークリンクからな" "るリンクアグリゲーションを使用します。後者はLinux indexterm:[bonding " "driver]`bonding` ネットワークドライバを使用して実現できます。" #. type: Title === #, no-wrap msgid "Throughput overhead expectations" msgstr "スループットオーバヘッドの予測" #. type: Plain text msgid "" "When estimating the throughput overhead associated with DRBD, it is " "important to consider the following natural limitations:" msgstr "" "DRBDに関連するスループットオーバヘッドを見積もる際には、 必ず次の制限を考慮し" "てください。" #. type: Plain text msgid "DRBD throughput is limited by that of the raw I/O subsystem." msgstr "" "DRBDのスループットは下位I/Oサブシステムのスループットにより制限される。" #. type: Plain text msgid "DRBD throughput is limited by the available network bandwidth." msgstr "DRBDのスループットは使用可能なネットワーク帯域幅により制限される。" #. type: Plain text msgid "" "The _lower_ of these two establishes the theoretical throughput _maximum_ " "available to DRBD. DRBD then reduces that throughput number by its " "additional overhead, which can be expected to be less than 3 percent." msgstr "" "DRBDが使用できる理論上の _最大_ スループットは上記の _小さい方_ によって決ま" "ります。この最大スループットはDRBD自体のスループットオーバヘッドが加わること" "により低下しますが、 これは3%未満だと考えられます。" #. type: Plain text msgid "" "Consider the example of two cluster nodes containing I/O subsystems capable " "of 600 MB/s throughput, with a Gigabit Ethernet link available between them. " "Gigabit Ethernet can be expected to produce 110 MB/s throughput for TCP " "connections, thus the network connection would be the bottleneck in this " "configuration and one would expect about 110 MB/s maximum DRBD throughput." msgstr "" "たとえば、600MB/sのスループットが可能なI/Oサブシステムを持つ2つのクラスタノー" "ドが、 ギガビットイーサネットリンクで接続されているとします 。ギガビットイー" "サネットのスループットは 110MB/s程度だと考えられるため、 この構成ではネット" "ワーク接続がボトルネックになります。 DRBDの最大スループットは110MB/s程度で" "しょう。" #. type: Plain text msgid "" "By contrast, if the I/O subsystem is capable of only 80 MB/s for sustained " "writes, then it constitutes the bottleneck, and you should expect only about " "77 MB/s maximum DRBD throughput." msgstr "" "一方、I/Oサブシステムの持続した書き込みスループットが80MB/s程度の場合は、これ" "がボトルネックとなり、DRBDの最大スループットはわずか77MB/sになります。" #. type: Title === #, no-wrap msgid "Tuning recommendations" msgstr "チューニングの推奨事項" #. type: Plain text msgid "" "DRBD offers a number of configuration options which may have an effect on " "your system's throughput. This section list some recommendations for tuning " "for throughput. However, since throughput is largely hardware dependent, the " "effects of tweaking the options described here may vary greatly from system " "to system. It is important to understand that these recommendations should " "not be interpreted as \"silver bullets\" which would magically remove any " "and all throughput bottlenecks." msgstr "" "DRBDには、システムのスループットに影響する可能性があるいくつかの構成オプショ" "ンがあります。ここでは、スループットを向上させるための調整について、いくつか" "の推奨事項を取り上げます。ただし、スループットは主としてハードウェアに依存す" "るため、ここで取り上げるオプションを調整しても、効果はシステムによって大きく" "異なります。パフォーマンスチューニングについて、必ず効く「特効薬」は存在しま" "せん。" #. type: Title ==== #, no-wrap msgid "Setting `max-buffers` and `max-epoch-size`" msgstr "`max-buffers` と `max-epoch-size` の設定" #. type: Plain text msgid "" "These options affect write performance on the secondary nodes. `max-buffers` " "is the maximum number of buffers DRBD allocates for writing data to disk " "while `max-epoch-size` is the maximum number of write requests permitted " "between two write barriers. `max-buffers` must be equal or bigger to `max-" "epoch-size` to increase performance. The default for both is 2048; setting " "it to around 8000 should be fine for most reasonably high-performance " "hardware RAID controllers." msgstr "" "これらのオプションはセカンダリノードの書き込みパフォーマンスに影響します。" "`max-buffers` はディスクにデータを書き込むためにDRBDが割り当てるバッファの最" "大数で、 `max-epoch-size` は、2つの書き込みバリア間で許容される書き込み要求の" "最大数です。パフォーマンスを上げるためには `max-buffers` は `max-epoch-size` " "以上でなければなりません。 デフォルト値は両方とも2048です。比較的高パフォーマ" "ンスのハードウェアRAIDコントローラの場合、この値を8000程度に設定すれば十分で" "す。" #. type: delimited block - #, no-wrap msgid "" "resource {\n" " net {\n" " max-buffers 8000;\n" " max-epoch-size 8000;\n" " ...\n" " }\n" " ...\n" "}\n" msgstr "" "resource {\n" " net {\n" " max-buffers 8000;\n" " max-epoch-size 8000;\n" " ...\n" " }\n" " ...\n" "}\n" #. type: Title ==== #, no-wrap msgid "Tuning the TCP send buffer size" msgstr "TCP送信バッファサイズの調整" #. type: Plain text msgid "" "The TCP send buffer is a memory buffer for outgoing TCP traffic. By default, " "it is set to a size of 128 KiB. For use in high-throughput networks (such as " "dedicated Gigabit Ethernet or load-balanced bonded connections), it may make " "sense to increase this to a size of 2MiB, or perhaps even more. Send buffer " "sizes of more than 16MiB are generally not recommended (and are also " "unlikely to produce any throughput improvement)." msgstr "" "TCP送信バッファは送信TCPトラフィックのメモリバッファです。デフォルトサイズは" "128KiBです。高スループットネットワーク (専用ギガビットイーサネット、負荷分散" "ボンディング接続など)で使用する場合は、このサイズを2MiBかそれ以上に設定すると" "効果があるでしょう。送信バッファサイズを16MiB以上にすることは一般にはお勧めで" "きません。 また、スループットが向上する可能性もありません。" #. type: delimited block - #, no-wrap msgid "" "resource {\n" " net {\n" " sndbuf-size 2M;\n" " ...\n" " }\n" " ...\n" "}\n" msgstr "" "resource {\n" " net {\n" " sndbuf-size 2M;\n" " ...\n" " }\n" " ...\n" "}\n" #. type: Plain text msgid "" "DRBD also supports TCP send buffer auto-tuning. After enabling this feature, " "DRBD will dynamically select an appropriate TCP send buffer size. TCP send " "buffer auto tuning is enabled by simply setting the buffer size to zero:" msgstr "" "TCP送信バッファの自動調整もサポートされます。この機能を有効にすると、DRBDが適" "切なTCP送信バッファサイズを動的に選択します。TCP送信バッファの自動調整を有効" "にするには、次のようにバッファサイズをゼロに設定します。" #. type: delimited block - #, no-wrap msgid "" "resource {\n" " net {\n" " sndbuf-size 0;\n" " ...\n" " }\n" " ...\n" "}\n" msgstr "" "resource {\n" " net {\n" " sndbuf-size 0;\n" " ...\n" " }\n" " ...\n" "}\n" #. type: Plain text msgid "" "Please note that your ``sysctl``'s settings `net.ipv4.tcp_rmem` and `net." "ipv4.tcp_wmem` will still influence the behaviour; you should check these " "settings, and perhaps set them similar to `131072 1048576 16777216` (minimum " "128kiB, default 1MiB, max 16MiB)." msgstr "" "`sysctl` 設定の `net.ipv4.tcp_rmen` と `net.ipv4.tcp_wmem` は挙動に影響しま" "す。これらの設定を確認してください。またこれらを `131072 1048576 16777216` " "(最小128kiB、デフォルト1MiB、最大16MiB)にするとよいかもしれません。" #. type: Plain text msgid "" "`net.ipv4.tcp_mem` is a different beast, with a different unit - do not " "touch, wrong values can easily push your machine into out-of-memory " "situations!" msgstr "" "`net.ipv4.tcp_mem` はまったく異なるものですので、変更しないでください。間違っ" "た値を指定すると、容易にマシンがout-of-memoryになってしまいます。" #. type: Title ==== #, no-wrap msgid "Tuning the Activity Log size" msgstr "アクティビティログサイズの調整" #. type: Plain text msgid "" "If the application using DRBD is write intensive in the sense that it " "frequently issues small writes scattered across the device, it is usually " "advisable to use a fairly large activity log. Otherwise, frequent metadata " "updates may be detrimental to write performance." msgstr "" "DRBDを使用するアプリケーションが、デバイス全体に分散した小さな書き込みを頻繁" "に発行する、書き込み集約型の場合は、十分に大きなアクティビティログを使用する" "ことをお勧めします。そうでない場合、頻繁なメタデータ更新により書き込みパ" "フォーマンスが低下する可能性があります。" #. type: delimited block - #, no-wrap msgid "" "resource {\n" " disk {\n" " al-extents 6007;\n" " ...\n" " }\n" " ...\n" "}\n" msgstr "" "resource {\n" " disk {\n" " al-extents 6007;\n" " ...\n" " }\n" " ...\n" "}\n" #. For tuning on striped RAID setups, please see the <> and #. <> settings, too. #. type: Title ==== #, no-wrap msgid "Disabling barriers and disk flushes" msgstr "バリアとディスクフラッシュを無効にする" #. type: Plain text msgid "" "The recommendations outlined in this section should be applied _only_ to " "systems with non-volatile (battery backed) controller caches." msgstr "" "次に取り上げる推奨事項は、不揮発性(バッテリでバックアップされた)のコントロー" "ラキャッシュのあるシステム _のみ_ に適用されます。" #. type: Plain text msgid "" "Systems equipped with battery backed write cache come with built-in means of " "protecting data in the face of power failure. In that case, it is " "permissible to disable some of DRBD's own safeguards created for the same " "purpose. This may be beneficial in terms of throughput:" msgstr "" "バッテリでバックアップされた書き込みキャッシュを持つシステムには、停電時に" "データを保護する機能が組み込まれています。その場合は、同じ目的を持つDRBD自体" "の保護機能の一部を無効にすることもできます。これはスループットの面で有効な場" "合があります。" #. type: delimited block - #, no-wrap msgid "" "resource {\n" " disk {\n" " disk-barrier no;\n" " disk-flushes no;\n" " ...\n" " }\n" " ...\n" "}\n" msgstr "" "resource {\n" " disk {\n" " disk-barrier no;\n" " disk-flushes no;\n" " ...\n" " }\n" " ...\n" "}\n" #. type: Title === #, no-wrap msgid "Achieving better Read Performance via increased Redundancy" msgstr "冗長性を高め読み込み性能を向上させる" #. type: Plain text msgid "" "As detailed in the man page of `drbd.conf` under `read-balancing`, you can " "increase your read performance by adding more copies of your data." msgstr "" "`drbd.conf` マニュアルページの `read-balancing` で説明の通り、データのコピー" "を追加することで読み込み性能を上げることができます。" #. type: Plain text msgid "" "As a ballpark figure: with a single node processing read requests, `fio` on " "a __FusionIO__ card gave us 100k IOPs; after enabling `read-balancing`, the " "performance jumped to 180k IOPs, i.e. +80%!" msgstr "" "概算: FusionIO カード利用の1ノードでの読み込み要求が `fio` では100kIOPsでし" "たが、 `read-balancing` を利用したた場合にはパフォーマンスが180kIOPsとなり、" "80%の性能向上が見られました!" #. type: Plain text msgid "" "So, in case you're running a read-mostly workload (big databases with lots " "of random reads), it might be worth a try to turn `read-balancing` on - and, " "perhaps, add another copy for still more read IO throughput." msgstr "" "読み込みのワークロードが多い環境の場合(ランダムリードが多い巨大なデータベース" "など)では、read-balancing を有効にする意義があります。さらに読み込みIOスルー" "プットが欲しい場合にはコピーを増やすとよいでしょう。"