# LANGUAGE translation of Drupal (modules/throttle.module) # Copyright YEAR NAME # $Id: throttle-module.pot,v 1.2 2004/10/18 22:37:37 goba Exp $ # msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "POT-Creation-Date: 2004-10-18 22:36+0000\n" "PO-Revision-Date: 2004-10-20 21:50+0900\n" "Last-Translator: kaz@drupal.org \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" #: modules/throttle.module:68 msgid "Allows configuration of congestion control auto-throttle mechanism." msgstr "混雑制御の自動スロットル機能を設定します。" #: modules/throttle.module:70 msgid "If your site gets linked to by a popular website, or otherwise comes under a \"Denial of Service\" (DoS) attack, your webserver might become overwhelmed. This module provides a mechanism for automatically detecting a surge in incoming traffic. This mechanism is utilized by other Drupal models to automatically optimize their performance by temporarily disabling CPU-intensive functionality. To use the auto-throttle, the access log must be enabled. It is advised that you carefully read the explanations below and then properly tune this module based on your site's requirements and your webserver's capabilities." msgstr "ポピュラーなウェブサイトにリンクされたり、「サービスの否認」(DoS)攻撃を受けたりした場合、ウェブサーバは過負荷状態になります。このモジュールは、トラフィックの急騰を自動検出します。トラフィックの急騰が検出されると、他のDrupalモジュールはCPUパワーを消費する機能を一時停止させてパフォーマンスの最適化を自動的に図ります。自動スロットルを使用するにはアクセスログの有効化が必要です。説明をよく読んでから、サイトの必要条件とウェブサーバの能力に基づいてモジュールを適切に微調整することをお奨めします。" #: modules/throttle.module:72 msgid "" "\n" "

Introduction

\n" "

This Drupal module allows you to enable and configure the auto-throttle congestion control mechanism offered by the statistics module. The auto-throttle mechanism allows your site to automatically adapt to different server levels.

\n" "

This module also adds a block that displays the current status of the throttle. You must have \"access throttle block\" privileges to view the block. As a general rule of thumb, only site administrators should be granted access to this block.

\n" "

The auto-throttle mechanism performs an extra database query in order to determine what the current throttle level should be. Fortunately the throttle can be tuned so these database queries only occur on a fraction of all pages generated by your site, reducing the overhead to an insignificant amount. Additionally, when the top-most throttle level is reached, all throttle queries are suspended for a configurable period of time. More detail follows.

\n" "

As with any module, the throttle module needs to be enabled before you can use it. Also refer to the permissions section below if you wish to access the throttle statistics block.

\n" "

Configuring the throttle module

\n" "

The configuration section for the throttle allows you to turn it on and off, as well as to fine-tune how sensitive it is.

\n" "

enable auto-throttle:

\n" "
This first option on the throttle module configuration screen allows you to enable or disable the auto-throttling mechanism. Note that the access-log must also be enabled via the statistics module for the auto-throttling mechanism to have any effect.
\n" "

auto-throttle multiplier:

\n" "

This second option allows you to tune the auto-throttle mechanism. The auto-throttle mechanism supports six throttle levels, from 0 (off) to 5 (maximum). The current throttle level is based upon how many pages have been accessed on your site in the past 60 seconds - the more pages being displayed, the higher the throttle level. This multiplier defines how many hits are required to switch from one throttle level to the next.

\n" "

For example, with a throttle multiplier of 20: Once 20 pages have been accessed on your site within a period of 60 seconds, the throttle level will be incremented to a level of 1. Once 40 pages have been accessed on your site within a period of 60 seconds, the throttle level will be incremented to a level of 2. And so on, until 100 pages are accessed on your site within a period of 60 seconds, at which time the throttle level will be set to a maximum level of 5.

\n" "

auto-throttle probability limiter:

\n" "

This option allows you to minimize the performance impact of the auto-throttle. If we refer to the probability limiter as P, then P% of all pages generated by your site will perform an extra database query to verify that the current throttle level is appropriate to the current server load.

\n" "

As a rule of thumb, the higher your multiplier, the lower your probability limiter should be. For example, if you have a multiplier of 100, then you logically don't need to check the throttle level more than once out of every 100 page views, so the probability limiter should be set to 1%. As database queries are \"expensive\", it's recommended that you keep the probability limiter to the smallest percentage possible, while still high enough to react quickly to a change in server load.

\n" "

Throttle block

\n" "

This block displays some statistics regarding the current throttle and its configuration. It is recommended that only site administrators receive the \"access throttle block\" permission bit required to view this block. It does not display information that would interest a normal site end-user.

\n" "

Don't forget to enable the block.

\n" "

Permissions

\n" "

This module has one permission that needs to be configured in user permissions.

\n" "
  • access throttle block - enable for user roles that get to view the throttle block.
\n" "

For programmers: throttle_status()

\n" "

The function throttle_status() will return a number from 0 to 5. 0 means that there is no throttle enabled at this time. Each number above that is a progressively more throttled system... To disable a feature when a site first begins to get busy, disable it at a throttle of 2 or 3. To hold on to the bitter end, wait until 4 or 5.

\n" "

To implement the throttle, you should do something like this:\n" "

\n"
"       if (module_invoke(\"throttle\", \"status\") >= $my_throttle_value) {\n"
"          // my throttle limit was reached, disable stuff\n"
"        }\n"
"        else {\n"
"          // throttle limit not reached, execute normally\n"
"       }
\n" "

" msgstr "" "\n" "

イントロダクション

\n" "

このDrupalモジュールは、統計モジュールによって提供される自動スロットル混雑制御メカニズムの有効化と設定を行います。自動スロットルメカニズムによってサイトは自動的にサーバレベルが変化します。

\n" "

このモジュールは現在のスロットル状況を表示するブロックを追加します。ブロックを表示するには\"throttle block\"にアクセスする権限が必要です。一般的な経験則では、このブロックへのアクセスはサイト管理者のみ許可されるべきです。

\n" "

自動スロットルメカニズムは、現在のスロットルレベルがいくつであるべきかを決めるためにデータベース問い合わせを実行します。幸いスロットルはチューンされていますのでこれらのデータベース問い合わせは、サイトで表示される全てのページで実行される問い合わせに比べてほんのわずかな比率に過ぎないためオーバーヘッドは取るに足らない分量に抑えられています。さらに、最高スロットルレベルに達した場合、全てのスロットルの問い合わせは設定された時間だけ停止させられます。さらに詳しくは次の通りです。

\n" "

他のモジュールと同様に、スロットルモジュールも有効化しないと使用できません。また、スロットル統計ブロックにアクセスしたい場合は次のパーミッションセクションを参照して下さい。

\n" "

スロットルモジュールの設定

\n" "

スロットル設定セクションはスロットルのオン・オフとスロットルのチューニングを設定します。

\n" "

自動スロットルの有効化:

\n" "
このオプションは自動スロットル機能を有効化するかどうかを設定できます。自動スロットルメカニズムが有効に機能するためにはstatistics moduleでアクセスログが有効化されている必要があります。
\n" "

自動スロットル係数:

\n" "

このオプションは自動スロットルメカニズムのチューニングを可能にします。自動スロットルメカニズムでは、0(オフ)から5(最大)までの6段階のスロットルレベルをサポートしています。スロットルレベルは過去60秒あたりのサイトアクセス数に基づきます。アクセスが多い(表示されるページがい)ほどスロットルレベルも高くなります。この係数はあるスロットルレベルから次のレベルにスイッチするにはいくつのヒットが必要かを定義します。

\n" "

例えば、スロットル係数が20の場合。60秒間に20ページのサイトアクセスがあればスロットルレベルは1になります。60秒間に40ページのサイトアクセスがあればスロットルレベルは2になります。同様に、60秒間に100ページのサイトアクセスがあればスロットルレベルは最高の5になります。

\n" "

自動スロットル計測頻度:

\n" "

このオプションは自動スロットルのパフォーマンスへの影響を最小限にするものです。計測頻度をPとした場合、生成される全ページのうちのP%が現在のサーバ負荷に対して現在のスロットルレベルが適切かどうか判断するためのデータベース問い合わせを実行します。

\n" "

経験則では、係数が大きければ、計測頻度は小さくすべきです。例えば、係数が100の場合、 論理的には100ページビューに1回よりも多くスロットルレベルをチェックする必要はありませんので、計測頻度は1%にセットすべきです。データベースへの問い合わせはシステム負荷が\"高い\"ので、計測頻度は、サーバ負荷の変化に十分素早く対応可能な範囲で、可能な限り最小化することが推奨されます。

\n" "

スロットルブロック

\n" "

このブロックでは現在のスロットルと設定の統計が表示されます。サイト管理者だけに\"スロットルブロック\"にアクセスする権限を許可することを推奨します。

\n" "

スロットルブロックの有効化を忘れずに。

\n" "

パーミッション

\n" "

このモジュールには、パーミッションで設定されるべき設定が一つあります。

\n" "
  • スロットルブロックのアクセス - スロットルブロックを表示するユーザ権限属性を有効化します。
\n" "

プログラマ向け解説: throttle_status()

\n" "

throttle_status()ファンクションは 0 から 5 の値を返します。0 はその時点でスロットルが有効化されていない状態を意味します。それ以上の数字は大きくなるに従いスロットルが高くなることを意味します。この機能を停止するには、サイトが最初に過負荷になってスロットルレベルが 2~3の時に。もう少し頑張るなら 4~5の時に。

\n" "

スロットルを実装するには、次のようにします。\n" "

\n"
"       if (module_invoke(\"throttle\", \"status\") >= $my_throttle_value) {\n"
"          // my throttle limit was reached, disable stuff\n"
"        }\n"
"        else {\n"
"          // throttle limit not reached, execute normally\n"
"       }
\n" "

" #: modules/throttle.module:114 msgid "Auto-throttle multiplier" msgstr "自動スロットル係数" #: modules/throttle.module:114 msgid "The \"auto-throttle multiplier\" is the number of hits in the past 60 seconds required to trigger a higher throttle level. For example, if you set the multiplier to 60, and your site is getting less than 60 hits a minute, then the throttle will be at a level of 0. Only once you start getting more than 60 hits a minute will the throttle level go to 1. If you start getting more than 120 hits a minute, the throttle becomes 2. This continues until your site is sustaining more than 300 hits per minute, at which time the throttle reaches a maximum level of 5. In the pop down menu, the first number is the multiplier, and the numbers in parenthesis are how many hits are required to switch to each throttle level. The more powerful your server, the higher you should set the multiplier value." msgstr "「自動スロットル係数(auto-throttle multiplier)」は、60秒間でのヒット数で、スロットルレベル変化のトリガーとなるものです。例えば、係数を60にした場合、サイトへの60秒間のヒット数が60未満の場合スロットルレベルは0です。1分間に60以上のヒットになればスロットルレベルは1になります。1分間あたり120ヒットを超えるとスロットルレベルは2になります。一分間あたり300ヒット、最大レベル5まで同じように上昇します。ドロップダウンメニューにおいて、最初の数字は係数で、パーセントで表示された数字はスロットルレベルが変化するまでに必要なヒット数です。サーバが高性能であればあるほど係数の値を高く設定すべきです。" #: modules/throttle.module:116 msgid "Auto-throttle probability limiter" msgstr "自動スロットル計測頻度" #: modules/throttle.module:116 msgid "The auto-throttle probability limiter is an efficiency mechanism to statistically reduce the overhead of the auto-throttle. The limiter is expressed as a percentage of page views, so for example if set to the default of 10% we only perform the extra database query to update the current level 1 out of every 10 page views. The busier your site, the lower you should set the limiter value." msgstr "自動スロットル計測頻度(auto-throttle probability limiter)は、自動スロットルのオーバーヘッドを統計的に低減させる効率化メカニズムです。頻度はパーセンテージで表現され、例えば、デフォルトの 10% に設定されている場合、10ページビューごとに1回の追加的なデータベース問い合わせが実行されます。サイトが高負荷であるほど、計測頻度は低く設定すべきです。" #: modules/throttle.module:118 msgid "Auto-throttle tuning" msgstr "自動スロットルのチューニング" #: modules/throttle.module:138 msgid "Current level: %level (%min - %max)" msgstr "現在のレベル:%level (%min - %max)" #: modules/throttle.module:141 msgid "Current level: %level (%min+)" msgstr "現在のレベル:%level (%min+)" #: modules/throttle.module:143 msgid "Probability: %probability%" msgstr "頻度: %probability%" #: modules/throttle.module:146 msgid "This site has served %pages pages in the past minute." msgstr "表示:%pagesページ/分" #: modules/throttle.module:158;162 msgid "Throttle status" msgstr "スロットルの状況" #: modules/throttle.module:183 msgid "Throttle: %hits hits in past minute; throttle decreased to level %level." msgstr "スロットル: %hitsヒット/分; スロットルレベル%levelに低下" #: modules/throttle.module:187 msgid "Throttle: %hits hits in past minute; throttle increased to level %level." msgstr "スロットル: %hitsヒット/分; スロットルレベル%levelに上昇" #: modules/throttle.module:146 msgid "1 page" msgid_plural "%count pages" msgstr[0] "1ページ" msgstr[1] "%countページ" #: modules/throttle.module:59 msgid "access throttle block" msgstr "スロットルブロックへのアクセス" #: modules/throttle.module:0 msgid "throttle" msgstr "スロットル"