Skip to content

[WFR] on #257 #622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 25 additions & 21 deletions ja/learn/admin/REST/rest-bucket-set-priority.dita
Original file line number Diff line number Diff line change
@@ -1,39 +1,43 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
<reference id="reference_dgw_x1b_k4">
<title>Setting disk I/O priority</title>
<shortdesc>The disk I/O priority for a bucket is set with the
<codeph>/pools/default/buckets/[bucket-name]</codeph> URI and the <codeph>threadNumber</codeph>
setting.</shortdesc>
<reference xml:lang="ja" id="reference_dgw_x1b_k4">
<title>ディスク I/O プライオリティの設定</title>
<shortdesc>
bucketのディスク I/O プライオリティは<codeph>/pools/default/buckets/[bucket-name]</codeph>URIと<codeph>threadNumber</codeph>設定でセットします。
</shortdesc>
<refbody>
<section>
<title>HTTP method and URI</title>
<p>To set the maximum of thread workers, use the <codeph>threadsNumber</codeph> option. To
specify high priority, assign eight (8) threads. To specify low priority, assign three (3)
threads. Default: <codeph>threadsNumber=3</codeph>. Only high or low priority are
allowed.</p>
<title>HTTPメソッドとURI</title>
<p>
<codeph>threadsNumber</codeph>オプションを使用して、スレッドワーカーの最大値をセットします。
高いプライオリティを指定する場合、8スレッドを割り当てます。
低いプライオリティを指定する場合、3スレッドを割り当てます。
デフォルト: <codeph>threadsNumber=3</codeph>. 高いプライオリティ(8)もしくは低いプライオリティ(3)のみ許可されています。</p>
<codeblock>POST /pools/default/buckets/[bucket_name]</codeblock>
<p>The <codeph>threadNumber</codeph>parameter is used to specify disk I/O priority for a
bucket.</p>
<note type="important">When editing bucket properties, be sure to specify all bucket properties.
If a bucket property is not specified (whether or not you are changing the existing value),
Couchbase Server may reset the property to the default. Even if you do not intend to change a
certain property, re-specify the existing value to avoid this behavior.</note>
<p>
<codeph>threadNumber</codeph>パラメータはbucketのディスク I/O プライオリティを指定するのに使用されます。
</p>
<note type="important">
bucketプロパティは編集するときは、全てのbucketプロパティを必ず指定してください。
(既存の値を変更するかどうかに問わず)もしbucketプロパティが指定されなかった場合、Couchbase Serverはプロパティをデフォルトにリセットする場合があります。
たとえ特定のプロパティの変更を意図しなかったとしても、この挙動をさけるために既存の値を再指定しなければいけません。
</note>
</section>


<section><title>Syntax</title>
<p>Curl request syntax:</p>
<section><title>シンタックス</title>
<p>Curlリクエストシンタックス:</p>
<codeblock>
curl -v -X POST -u [admin]:[password] \
http://[localhost]:8091/pools/default/buckets/[bucket-name] \
-d threadsNumber=[3 | 8]
</codeblock>
</section>

<section><title>Example</title>
<p>The following example sets the <codeph>threadsNumber</codeph> for the default bucket to
eight (8), which is high priority, from the default of three (3), which is low priority.</p>
<section><title>例</title>
<p>
次の例ではデフォルトbucketの<codeph>threadsNumber</codeph>をデフォルトの3という低いプライオリティから8という高いプライオリティに変更しています。
</p>
<codeblock>
curl -v -X POST -u Administrator:password \
http://10.5.2.54:8091/pools/default/buckets/default \
Expand Down