

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

# 組み込みクックブックの属性
<a name="attributes-recipes"></a>

**重要**  
この AWS OpsWorks Stacks サービスは 2024 年 5 月 26 日にサポート終了となり、新規および既存のお客様の両方で無効になっています。できるだけ早くワークロードを他のソリューションに移行することを強くお勧めします。移行についてご質問がある場合は、[AWS re:Post](https://repost.aws/) または[AWS プレミアムサポート](https://aws.amazon.com/support)を通じて AWS サポート チームにお問い合わせください。

**注記**  
これらの属性のほとんどは Linux スタックにのみ使用できます。

組み込みのレシピのほとんどには、さまざまな設定を定義する 1 つ以上の[属性ファイル](workingcookbook-installingcustom-components-attributes.md)があります。カスタムレシピ内のこれらの設定にアクセスし、カスタム JSON を使用して上書きすることができます。通常、 OpsWorks スタックでサポートされているさまざまなサーバーテクノロジーの設定を制御する属性にアクセスまたは上書きする必要があります。このセクションでは、これらの属性の概要を示します。完全な属性ファイルと関連のレシピおよびテンプレートは、[https://github.com/aws/opsworks-cookbooks.git](https://github.com/aws/opsworks-cookbooks.git) で入手できます。

**注記**  
組み込みのレシピの属性はすべて `default` 型です。

**Topics**
+ [apache2 属性](attributes-recipes-apache.md)
+ [deploy 属性](attributes-recipes-deploy.md)
+ [haproxy 属性](attributes-recipes-haproxy.md)
+ [memcached 属性](attributes-recipes-mem.md)
+ [mysql 属性](attributes-recipes-mysql.md)
+ [nginx 属性](attributes-recipes-nginx.md)
+ [opsworks\$1berkshelf 属性](attributes-recipes-berkshelf.md)
+ [opsworks\$1java 属性](attributes-recipes-java.md)
+ [passenger\$1apache2 属性](attributes-recipes-passenger.md)
+ [ruby 属性](attributes-recipes-ruby.md)
+ [unicorn 属性](attributes-recipes-unicorn.md)

# apache2 属性
<a name="attributes-recipes-apache"></a>

**重要**  
この AWS OpsWorks Stacks サービスは 2024 年 5 月 26 日にサポート終了となり、新規および既存のお客様の両方で無効になっています。できるだけ早くワークロードを他のソリューションに移行することを強くお勧めします。移行についてご質問がある場合は、[AWS re:Post](https://repost.aws/) または[AWS プレミアムサポート](https://aws.amazon.com/support)を通じて AWS サポート チームにお問い合わせください。

**注記**  
これらの属性は Linux スタックにのみ使用できます。

[apache2 属性](https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/apache2/attributes/apache.rb)は、[Apache HTTP サーバー](http://httpd.apache.org/)設定を指定します。詳細については、「[Apache コア機能](http://httpd.apache.org/docs/current/mod/core.html)」を参照してください。組み込み属性を上書きしてカスタム値を指定する方法の詳細については、「[属性の上書き](workingcookbook-attributes.md)」を参照してください。


****  

|  |  |  | 
| --- |--- |--- |
| [バイナリ ](#attributes-recipes-apache-bin) | [問い合わせ ](#attributes-recipes-apache-contact) | [deflate\$1types](#attributes-recipes-apache-deflate) | 
| [dir ](#attributes-recipes-apache-dir) | [document\$1root ](#attributes-recipes-apache-doc-root) | [グループ ](#attributes-recipes-apache-group) | 
| [hide\$1info\$1headers ](#attributes-recipes-apache-hide) | [icondir ](#attributes-recipes-apache-icondir) | [init\$1script ](#attributes-recipes-apache-init-script) | 
| [keepalive ](#attributes-recipes-apache-keep) | [keepaliverequests ](#attributes-recipes-apache-keep-requests) | [keepalivetimeout ](#attributes-recipes-apache-keep-timeout) | 
| [lib\$1dir ](#attributes-recipes-apache-lib-dir) | [libexecdir ](#attributes-recipes-apache-libexecdir) | [listen\$1ports ](#attributes-recipes-apache-ports) | 
| [log\$1dir ](#attributes-recipes-apache-log-dir) | [logrotate 属性](#attributes-recipes-apache-log) | [pid\$1file ](#attributes-recipes-apache-pidfile) | 
| [prefork 属性](#attributes-recipes-apache-prefork) | [serversignature ](#attributes-recipes-apache-sig) | [servertokens ](#attributes-recipes-apache-tokens) | 
| [タイムアウト ](#attributes-recipes-apache-timeout) | [traceenable ](#attributes-recipes-apache-trace) | [ユーザー ](#attributes-recipes-apache-user) | 
| [バージョン](#attributes-recipes-apache-version) | [worker 属性](#attributes-recipes-apache-worker) |  | 

**バイナリ **  <a name="attributes-recipes-apache-bin"></a>
Apache バイナリの場所 (文字列)。デフォルト値は `'/usr/sbin/httpd'` です。  

```
node[:apache][:binary]
```

**問い合わせ **  <a name="attributes-recipes-apache-contact"></a>
E メールの連絡先 (文字列)。デフォルト値はダミーのアドレス `'ops@example.com'` です。  

```
node[:apache][:contact]
```

**deflate\$1types**  <a name="attributes-recipes-apache-deflate"></a>
Mime タイプがブラウザでサポートされている場合は、指定した Mime タイプで圧縮を有効にするために `mod_deflate` を指定します (文字列のリスト)。デフォルト値は次のとおりです。  

```
['application/javascript',
 'application/json',
 'application/x-javascript',
 'application/xhtml+xml',
 'application/xml',
 'application/xml+rss',
 'text/css',
 'text/html',
 'text/javascript',
 'text/plain',
 'text/xml']
```
圧縮によってセキュリティリスクが生じる可能性があります。圧縮を完全に無効にするには、この属性を次のように設定します。  

```
node[:apache][:deflate_types] = []
```

```
node[:apache][:deflate_types]
```

**dir **  <a name="attributes-recipes-apache-dir"></a>
サーバーのルートディレクトリ (文字列)。デフォルト値は次のとおりです。  
+ Amazon Linux および Red Hat Enterprise Linux (RHEL) : `'/etc/httpd'`
+ Ubuntu: `'/etc/apache2'`

```
node[:apache][:dir]
```

**document\$1root **  <a name="attributes-recipes-apache-doc-root"></a>
ドキュメントのルート (文字列)。デフォルト値は次のとおりです。  
+ Amazon Linux および RHEL: `'/var/www/html'`
+ Ubuntu: `'/var/www'`

```
node[:apache][:document_root]
```

**グループ **  <a name="attributes-recipes-apache-group"></a>
グループ名 (文字列)。デフォルト値は次のとおりです。  
+ Amazon Linux および RHEL: `'apache'`
+ Ubuntu: `'www-data'`

```
node[:apache][:group]
```

**hide\$1info\$1headers **  <a name="attributes-recipes-apache-hide"></a>
HTTP ヘッダーからバージョンおよびモジュール情報を省略するかどうか (`'true'`/`'false'`) (文字列)。デフォルト値は `'true'` です。  

```
node[:apache][:hide_info_headers]
```

**icondir **  <a name="attributes-recipes-apache-icondir"></a>
アイコンのディレクトリ (文字列)。デフォルト値は次のとおりです。  
+ Amazon Linux および RHEL: `'/var/www/icons/'`
+ Ubuntu: `'/usr/share/apache2/icons'`

```
node[:apache][:icondir]
```

**init\$1script **  <a name="attributes-recipes-apache-init-script"></a>
初期化スクリプト (文字列)。デフォルト値は次のとおりです。  
+ Amazon Linux および RHEL: `'/etc/init.d/httpd'`
+ Ubuntu: `'/etc/init.d/apache2'`

```
node[:apache][:init_script]
```

**keepalive **  <a name="attributes-recipes-apache-keep"></a>
キープアライブ接続を有効にするかどうか (文字列)。指定できる値は `'On'` および `'Off'` です (文字列)。デフォルト値は `'Off'` です。  

```
node[:apache][:keepalive]
```

**keepaliverequests **  <a name="attributes-recipes-apache-keep-requests"></a>
Apache が同時に処理するキープアライブリクエストの最大数 (数値)。デフォルト値は `100` です。  

```
node[:apache][:keepaliverequests]
```

**keepalivetimeout **  <a name="attributes-recipes-apache-keep-timeout"></a>
Apache は、接続を閉じる前にリクエストを待機します (数値)。デフォルト値は `3` です。  

```
node[:apache][:keepalivetimeout]
```

**lib\$1dir **  <a name="attributes-recipes-apache-lib-dir"></a>
オブジェクトコードライブラリを含むディレクトリ (文字列)。デフォルト値は次のとおりです。  
+ Amazon Linux (x86) : `'/usr/lib/httpd'`
+ Amazon Linux (x64) および RHEL: `'/usr/lib64/httpd'`
+ Ubuntu: `'/usr/lib/apache2'`

```
node[:apache][:lib_dir]
```

**libexecdir **  <a name="attributes-recipes-apache-libexecdir"></a>
プログラム実行可能ファイルを含むディレクトリ (文字列)。デフォルト値は次のとおりです。  
+ Amazon Linux (x86) : `'/usr/lib/httpd/modules'`
+ Amazon Linux (x64) および RHEL: `'/usr/lib64/httpd/modules'`
+ Ubuntu: `'/usr/lib/apache2/modules'`

```
node[:apache][:libexecdir]
```

**listen\$1ports **  <a name="attributes-recipes-apache-ports"></a>
サーバーがリッスンするポートのリスト (文字列のリスト)。デフォルト値は `[ '80','443' ]` です。  

```
node[:apache][:listen_ports]
```

**log\$1dir **  <a name="attributes-recipes-apache-log-dir"></a>
ログディレクトリ (文字列)。デフォルト値は次のとおりです。  
+ Amazon Linux および RHEL: `'/var/log/httpd'`
+ Ubuntu: `'/var/log/apache2'`

```
node[:apache][:log_dir]
```

**logrotate 属性**  <a name="attributes-recipes-apache-log"></a>
これらの属性は、ログファイルを更新する方法を指定します。    
**delaycompress **  <a name="attributes-recipes-apache-log-delay"></a>
次のローテーションサイクルの開始まで、閉じられたログファイルの圧縮を遅らせるかどうか (`'true'`/`'false'`) (文字列)。デフォルト値は `'true'` です。  

```
node[:apache][:logrotate][:delaycompress]
```  
**グループ **  <a name="attributes-recipes-apache-log-group"></a>
ログファイルのグループ (文字列)。デフォルト値は `'adm'` です。  

```
node[:apache][:logrotate][:group]
```  
**モード **  <a name="attributes-recipes-apache-log-mode"></a>
ログファイルのモード (文字列)。デフォルト値は `'640'` です。  

```
node[:apache][:logrotate][:mode]
```  
**owner (オーナー) **  <a name="attributes-recipes-apache-log-owner"></a>
ログファイルの所有者 (文字列)。デフォルト値は `'root'` です。  

```
node[:apache][:logrotate][:owner]
```  
**rotate **  <a name="attributes-recipes-apache-log-rotate"></a>
閉じられたログファイルが削除される前のローテーションサイクルの数 (文字列)。デフォルト値は `'30'` です。  

```
node[:apache][:logrotate][:rotate]
```  
**スケジュール **  <a name="attributes-recipes-apache-log-schedule"></a>
更新スケジュール (文字列)。可能な値は以下のとおりです。  
+ `'daily'`
+ `'weekly'`
+ `'monthly'`
デフォルト値は `'daily'` です。  

```
node[:apache][:logrotate][:schedule]
```

**pid\$1file **  <a name="attributes-recipes-apache-pidfile"></a>
デーモンのプロセス ID を含むファイル (文字列)。デフォルト値は次のとおりです。  
+ Amazon Linux および RHEL: `'/var/run/httpd/httpd.pid'`
+ Ubuntu: `'/var/run/apache2.pid'`

```
node[:apache][:pid_file]
```

**prefork 属性**  <a name="attributes-recipes-apache-prefork"></a>
これらの属性は事前分岐設定を指定します。    
**maxclients **  <a name="attributes-recipes-apache-prefork-maxclients"></a>
供給される同時リクエストの最大数 (数値)。デフォルト値は `400` です。  
この属性は、Amazon Linux または RHEL を実行しているインスタンスに対してのみ使用します。インスタンスで Ubuntu 14.04 LTS を実行している場合は、[maxrequestworkers](#attributes-recipes-apache-prefork-maxrequestworkers) を使用します。

```
node[:apache][:prefork][:maxclients]
```  
**maxrequestsperchild **  <a name="attributes-recipes-apache-prefork-maxrequests"></a>
子サーバープロセスが処理するリクエストの最大数 (数値)。デフォルト値は `10000` です。  

```
node[:apache][:prefork][:maxrequestsperchild]
```  
**maxrequestworkers**  <a name="attributes-recipes-apache-prefork-maxrequestworkers"></a>
供給される同時リクエストの最大数 (数値)。デフォルト値は `400` です。  
この属性は、Ubuntu 14.04 LTS を実行しているインスタンスに対してのみ使用します。インスタンスが Amazon LinuxまたはRHELを実行している場合は、[maxclients ](#attributes-recipes-apache-prefork-maxclients) を使用します。

```
node[:apache][:prefork][:maxrequestworkers]
```  
**maxspareservers **  <a name="attributes-recipes-apache-prefork-maxspare"></a>
アイドル状態の子サーバープロセスの最大数 (数値)。デフォルト値は `32` です。  

```
node[:apache][:prefork][:maxspareservers]
```  
**minspareservers **  <a name="attributes-recipes-apache-prefork-minspare"></a>
アイドル状態の子サーバープロセスの最小数 (数値)。デフォルト値は `16` です。  

```
node[:apache][:prefork][:minspareservers]
```  
**serverlimit **  <a name="attributes-recipes-apache-prefork-limit"></a>
設定できるプロセスの最大数 (数値)。デフォルト値は `400` です。  

```
node[:apache][:prefork][:serverlimit]
```  
**startservers **  <a name="attributes-recipes-apache-prefork-start"></a>
起動時に作成される子サーバープロセスの数 (数値)。デフォルト値は `16` です。  

```
node[:apache][:prefork][:startservers]
```

**serversignature **  <a name="attributes-recipes-apache-sig"></a>
サーバーで生成されたドキュメントの末尾のフッターを設定するかどうか、および設定方法を指定します (文字列)。指定できる値は `'On'`、`'Off'`、および `'Email'` です。デフォルト値は `'Off'` です。  

```
node[:apache][:serversignature]
```

**servertokens **  <a name="attributes-recipes-apache-tokens"></a>
レスポンスヘッダーに含まれるサーバーバージョン情報のタイプを指定します (文字列)。  
+ `'Full'`: 完全な情報。たとえば、「Server: Apache/2.4.2 (Unix) PHP/4.2.2 MyMod/1.2」のようになります。
+ `'Prod'`: 製品名。たとえば、「Server: Apache」のようになります。
+ `'Major'`: メジャーバージョン。たとえば、「Server: Apache/2」のようになります。
+ `'Minor'`: メジャーバージョンとマイナーバージョン。たとえば、「Server: Apache/2.4」のようになります。
+ `'Min'`: 最小バージョン。たとえば、「Server: Apache/2.4.2」のようになります。
+ `'OS'`: バージョンとオペレーティングシステム。たとえば、「Server: Apache/2.4.2 (Unix)」のようになります。
デフォルト値は `'Prod'` です。  

```
node[:apache][:servertokens]
```

**タイムアウト **  <a name="attributes-recipes-apache-timeout"></a>
Apache が I/O を待機する時間 (数値)。デフォルト値は `120` です。  

```
node[:apache][:timeout]
```

**traceenable **  <a name="attributes-recipes-apache-trace"></a>
`TRACE` リクエストを有効にするかどうか (文字列)。指定できる値は `'On'` および `'Off'` です。デフォルト値は `'Off'` です。  

```
node[:apache][:traceenable]
```

**ユーザー **  <a name="attributes-recipes-apache-user"></a>
ユーザー名 (文字列)。デフォルト値は次のとおりです。  
+ Amazon Linux および RHEL: `'apache'`
+ Ubuntu: `'www-data'`

```
node[:apache][:user]
```

**バージョン**  <a name="attributes-recipes-apache-version"></a>
Apache のバージョン (文字列)。デフォルト値は次のとおりです。  
+ Amazon Linux: `2.2`
+ Ubuntu 14.04 LTS: `2.4`
+ RHEL: `2.4`

```
node[:apache][:version]
```

**worker 属性**  <a name="attributes-recipes-apache-worker"></a>
これらの属性は、ワーカープロセス設定を指定します。    
**startservers **  <a name="attributes-recipes-apache-worker-start"></a>
起動時に作成される子サーバープロセスの数 (数値)。デフォルト値は `4` です。  

```
node[:apache][:worker][:startservers]
```  
**maxclients **  <a name="attributes-recipes-apache-worker-maxclients"></a>
供給される同時リクエストの最大数 (数値)。デフォルト値は `1024` です。  

```
node[:apache][:worker][:maxclients]
```  
**maxsparethreads **  <a name="attributes-recipes-apache-worker-maxspare"></a>
アイドル状態のスレッドの最大数 (数値)。デフォルト値は `192` です。  

```
node[:apache][:worker][:maxsparethreads]
```  
**minsparethreads **  <a name="attributes-recipes-apache-worker-minspare"></a>
アイドル状態のスレッドの最小数 (数値)。デフォルト値は `64` です。  

```
node[:apache][:worker][:minsparethreads]
```  
**threadsperchild **  <a name="attributes-recipes-apache-worker-threads"></a>
子プロセスごとのスレッドの数 (数値)。デフォルト値は `64` です。  

```
node[:apache][:worker][:threadsperchild]
```  
**maxrequestsperchild **  <a name="attributes-recipes-apache-worker-maxreq"></a>
子サーバープロセスが処理するリクエストの最大数 (数値)。デフォルト値は `10000` です。  

```
node[:apache][:worker][:maxrequestsperchild]
```

# deploy 属性
<a name="attributes-recipes-deploy"></a>

**重要**  
この AWS OpsWorks Stacks サービスは 2024 年 5 月 26 日にサポート終了となり、新規および既存のお客様の両方で無効になっています。できるだけ早くワークロードを他のソリューションに移行することを強くお勧めします。移行についてご質問がある場合は、[AWS re:Post](https://repost.aws/) または[AWS プレミアムサポート](https://aws.amazon.com/support)を通じて AWS サポート チームにお問い合わせください。

[組み込みのデプロイクックブックの `deploy.rb` 属性ファイル](https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/deploy/attributes/deploy.rb)は、`opsworks` 名前空間の以下の属性を定義します。デプロイディレクトリの詳細については、「[Deploy レシピ](create-custom-deploy.md)」を参照してください。組み込み属性を上書きしてカスタム値を指定する方法の詳細については、「[属性の上書き](workingcookbook-attributes.md)」を参照してください。

**deploy\$1keep\$1releases **  <a name="attributes-recipes-deploy-global-keep-releases"></a>
スタックが保存するアプリケーションデプロイの数 (数値) OpsWorks のグローバル設定。デフォルト値は 5 です。この値は、アプリケーションをロールバックできる回数を制御します。  

```
node[:opsworks][:deploy_keep_releases]
```

**グループ **  
(Linux のみ) アプリケーションのデプロイディレクトリに対する `group` 設定 (文字列)。デフォルト値は、インスタンスのオペレーティングシステムによって決まります。  
+ Ubuntu インスタンスでは、デフォルト値は `www-data` です。
+ Nginx およびユニコーンを使用する Rails アプリケーションサーバーレイヤーのメンバーである Amazon Linux または RHEL インスタンスの場合、デフォルト値は `nginx` です。
+ その他のすべての Amazon Linux または RHEL インスタンスの場合、デフォルト値は `apache` です。

```
node[:opsworks][:deploy_user][:group]
```

**ユーザー **  
(Linux のみ) アプリケーションのデプロイディレクトリに対する `user` 設定 (文字列)。デフォルト値は `deploy` です。  

```
node[:opsworks][:deploy_user][:user]
```

# haproxy 属性
<a name="attributes-recipes-haproxy"></a>

**重要**  
この AWS OpsWorks Stacks サービスは 2024 年 5 月 26 日にサポート終了となり、新規および既存のお客様の両方で無効になっています。できるだけ早くワークロードを他のソリューションに移行することを強くお勧めします。移行についてご質問がある場合は、[AWS re:Post](https://repost.aws/) または[AWS プレミアムサポート](https://aws.amazon.com/support)を通じて AWS サポート チームにお問い合わせください。

**注記**  
これらの属性は Linux スタックにのみ使用できます。

[`haproxy` 属性](https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/haproxy/attributes/default.rb)は [HAProxy サーバー](http://haproxy.1wt.eu/)設定を指定します。詳細については、「[HAProxy ドキュメント](http://cbonte.github.io/haproxy-dconv/configuration-1.5.html)」を参照してください。組み込み属性を上書きしてカスタム値を指定する方法の詳細については、「[属性の上書き](workingcookbook-attributes.md)」を参照してください。


****  

|  |  |  | 
| --- |--- |--- |
| [balance ](#attributes-recipes-haproxy-balance) | [check\$1interval ](#attributes-recipes-haproxy-interval) | [client\$1timeout ](#attributes-recipes-haproxy-client-timeout) | 
| [connect\$1timeout ](#attributes-recipes-haproxy-connect-timeout) | [default\$1max\$1connections ](#attributes-recipes-haproxy-default-max) | [global\$1max\$1connections ](#attributes-recipes-haproxy-global-max) | 
| [health\$1check\$1method ](#attributes-recipes-haproxy-health-method) | [health\$1check\$1url ](#attributes-recipes-haproxy-health-url) | [queue\$1timeout ](#attributes-recipes-haproxy-queue-timeout) | 
| [http\$1request\$1timeout ](#attributes-recipes-haproxy-http-timeout) | [maxcon\$1factor\$1nodejs\$1app ](#attributes-recipes-haproxy-nodejs-app) | [maxcon\$1factor\$1nodejs\$1app\$1ssl ](#attributes-recipes-haproxy-nodejs-ssl) | 
| [maxcon\$1factor\$1php\$1app ](#attributes-recipes-haproxy-php-app) | [maxcon\$1factor\$1php\$1app\$1ssl ](#attributes-recipes-haproxy-php-ssl) | [maxcon\$1factor\$1rails\$1app ](#attributes-recipes-haproxy-rails-app) | 
| [maxcon\$1factor\$1rails\$1app\$1ssl ](#attributes-recipes-haproxy-rails-ssl) | [maxcon\$1factor\$1static ](#attributes-recipes-haproxy-static-app) | [maxcon\$1factor\$1static\$1ssl ](#attributes-recipes-haproxy-static-ssl) | 
| [retries ](#attributes-recipes-haproxy-retries) | [server\$1timeout ](#attributes-recipes-haproxy-server-timeout) | [stats\$1url ](#attributes-recipes-haproxy-stats-url) | 
| [stats\$1user ](#attributes-recipes-haproxy-user) |  |  | 

**balance **  <a name="attributes-recipes-haproxy-balance"></a>
サーバーを選択するためにロードバランサーが使用するアルゴリズムです (文字列)。デフォルト値は `'roundrobin'` です。その他のオプションは次のとおりです。  
+ 'static-rr'
+ 'leastconn'
+ 'source'
+ 'uri'
+ 'url\$1param'
+ 'hdr(name)'
+ 'rdp-cookie'
+ 'rdp-cookie(name)'
これらの引数の詳細については、「[balance](http://cbonte.github.io/haproxy-dconv/configuration-1.5.html)」を参照してください。  

```
node[:haproxy][:balance]
```

**check\$1interval **  <a name="attributes-recipes-haproxy-interval"></a>
ヘルスチェックの間隔 (文字列)。デフォルト値は `'10s'` です。  

```
node[:haproxy][:check_interval]
```

**client\$1timeout **  <a name="attributes-recipes-haproxy-client-timeout"></a>
クライアントを非アクティブにすることができる最大時間 (文字列)。デフォルト値は `'60s'` です。  

```
node[:haproxy][:client_timeout]
```

**connect\$1timeout **  <a name="attributes-recipes-haproxy-connect-timeout"></a>
HAProxy がサーバー接続試行の成功を待機する最大時間 (文字列)。デフォルト値は `'10s'` です。  

```
node[:haproxy][:connect_timeout]
```

**default\$1max\$1connections **  <a name="attributes-recipes-haproxy-default-max"></a>
接続の最大数のデフォルト値 (文字列)。デフォルト値は `'80000'` です。  

```
node[:haproxy][:default_max_connections]
```

**global\$1max\$1connections **  <a name="attributes-recipes-haproxy-global-max"></a>
接続の最大数 (文字列)。デフォルト値は `'80000'` です。  

```
node[:haproxy][:global_max_connections]
```

**health\$1check\$1method **  <a name="attributes-recipes-haproxy-health-method"></a>
ヘルスチェックの方法 (文字列)。デフォルト値は `'OPTIONS'` です。  

```
node[:haproxy][:health_check_method]
```

**health\$1check\$1url **  <a name="attributes-recipes-haproxy-health-url"></a>
サーバの状態を確認するために使用される URL パス (文字列)。デフォルト値は `'/'` です。  

```
node[:haproxy][:health_check_url ]
```

**queue\$1timeout **  <a name="attributes-recipes-haproxy-queue-timeout"></a>
無料接続を待機する最大時間 (文字列)。デフォルト値は `'120s'` です。  

```
node[:haproxy][:queue_timeout]
```

**http\$1request\$1timeout **  <a name="attributes-recipes-haproxy-http-timeout"></a>
HAProxy が完全な HTTP リクエストを待機する最大時間 (文字列)。デフォルト値は `'30s'` です。  

```
node[:haproxy][:http_request_timeout]
```

**retries **  <a name="attributes-recipes-haproxy-retries"></a>
サーバー接続が失敗した後の再試行の数 (文字列)。デフォルト値は `'3'` です。  

```
node[:haproxy][:retries]
```

**server\$1timeout **  <a name="attributes-recipes-haproxy-server-timeout"></a>
クライアントを非アクティブにすることができる最大時間 (文字列)。デフォルト値は `'60s'` です。  

```
node[:haproxy][:server_timeout]
```

**stats\$1url **  <a name="attributes-recipes-haproxy-stats-url"></a>
統計ページの URL パス (文字列)。デフォルト値は `'/haproxy?stats'` です。  

```
node[:haproxy][:stats_url]
```

**stats\$1user **  <a name="attributes-recipes-haproxy-user"></a>
統計ページのユーザー名 (文字列)。デフォルト値は `'opsworks'` です。  

```
node[:haproxy][:stats_user]
```

`maxcon` 属性は、HAProxy が[バックエンド](attributes-json-opsworks-instance.md#attributes-json-opsworks-instance-backends)に対して許可する最大接続数の計算に使用される負荷要因の乗数を表します。たとえば、`backend`値が 4 の小さなインスタンスに Rails アプリケーションサーバーがあるとします。つまり、スタックはそのインスタンスに 4 OpsWorks つの Rails プロセスを設定します。`maxcon_factor_rails_app` のデフォルト値の 7 を使用した場合、HAProxy は Rails サーバーに対する 28 個 (4 x 7) の接続を処理します。

**maxcon\$1factor\$1nodejs\$1app **  <a name="attributes-recipes-haproxy-nodejs-app"></a>
Node.js アプリケーションサーバーの maxcon 要素 (数値)。デフォルト値は `10` です。  

```
node[:haproxy][:maxcon_factor_nodejs_app]
```

**maxcon\$1factor\$1nodejs\$1app\$1ssl **  <a name="attributes-recipes-haproxy-nodejs-ssl"></a>
SSL を使用する Node.js アプリケーションサーバーの maxcon 要素 (数値)。デフォルト値は `10` です。  

```
node[:haproxy][:maxcon_factor_nodejs_app_ssl]
```

**maxcon\$1factor\$1php\$1app **  <a name="attributes-recipes-haproxy-php-app"></a>
PHP アプリケーションサーバーの maxcon 要素 (数値)。デフォルト値は `10` です。  

```
node[:haproxy][:maxcon_factor_php_app]
```

**maxcon\$1factor\$1php\$1app\$1ssl **  <a name="attributes-recipes-haproxy-php-ssl"></a>
SSL を使用する PHP アプリケーションサーバーの maxcon 要素 (数値)。デフォルト値は `10` です。  

```
node[:haproxy][:maxcon_factor_php_app_ssl]
```

**maxcon\$1factor\$1rails\$1app **  <a name="attributes-recipes-haproxy-rails-app"></a>
Rails アプリケーションサーバーの maxcon 要素 (数値)。デフォルト値は `7` です。  

```
node[:haproxy][:maxcon_factor_rails_app]
```

**maxcon\$1factor\$1rails\$1app\$1ssl **  <a name="attributes-recipes-haproxy-rails-ssl"></a>
SSL を使用する Rails アプリケーションサーバーの maxcon 要素 (数値)。デフォルト値は `7` です。  

```
node[:haproxy][:maxcon_factor_rails_app_ssl]
```

**maxcon\$1factor\$1static **  <a name="attributes-recipes-haproxy-static-app"></a>
静的ウェブサーバーの maxcon 要素 (数値)。デフォルト値は `15` です。  

```
node[:haproxy][:maxcon_factor_static]
```

**maxcon\$1factor\$1static\$1ssl **  <a name="attributes-recipes-haproxy-static-ssl"></a>
SSL を使用する静的ウェブサーバーの maxcon 要素 (数値)。デフォルト値は `15` です。  

```
node[:haproxy][:maxcon_factor_static_ssl]
```

# memcached 属性
<a name="attributes-recipes-mem"></a>

**重要**  
この AWS OpsWorks Stacks サービスは 2024 年 5 月 26 日にサポート終了となり、新規および既存のお客様の両方で無効になっています。できるだけ早くワークロードを他のソリューションに移行することを強くお勧めします。移行についてご質問がある場合は、[AWS re:Post](https://repost.aws/) または[AWS プレミアムサポート](https://aws.amazon.com/support)を通じて AWS サポート チームにお問い合わせください。

**注記**  
これらの属性は Linux スタックにのみ使用できます。

[`memcached` 属性](https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/memcached/attributes/default.rb)は [Memcached](http://memcached.org/) サーバー設定を指定します。組み込み属性を上書きしてカスタム値を指定する方法の詳細については、「[属性の上書き](workingcookbook-attributes.md)」を参照してください。


****  

|  |  |  | 
| --- |--- |--- |
| [メモリ ](#attributes-recipes-mem-memory) | [max\$1connections ](#attributes-recipes-mem-max) | [pid\$1file ](#attributes-recipes-mem-pid) | 
| [port ](#attributes-recipes-mem-port) | [start\$1command ](#attributes-recipes-mem-start) | [stop\$1command ](#attributes-recipes-mem-stop) | 
| [ユーザー ](#attributes-recipes-mem-user) |  |  | 

**メモリ **  <a name="attributes-recipes-mem-memory"></a>
使用する最大メモリ (MB 単位) (数値)。デフォルト値は `512` です。  

```
node[:memcached][:memory]
```

**max\$1connections **  <a name="attributes-recipes-mem-max"></a>
接続の最大数 (文字列)。デフォルト値は `'4096'` です。  

```
node[:memcached][:max_connections]
```

**pid\$1file **  <a name="attributes-recipes-mem-pid"></a>
デーモンのプロセス ID を含むファイル (文字列)。デフォルト値は `'var/run/memcached.pid'` です。  

```
node[:memcached][:pid_file]
```

**port **  <a name="attributes-recipes-mem-port"></a>
リッスンするポート (数値)。デフォルト値は `11211` です。  

```
node[:memcached][:port]
```

**start\$1command **  <a name="attributes-recipes-mem-start"></a>
開始コマンド (文字列)。デフォルト値は `'/etc/init.d/memcached start'` です。  

```
node[:memcached][:start_command]
```

**stop\$1command **  <a name="attributes-recipes-mem-stop"></a>
停止コマンド (文字列)。デフォルト値は `'/etc/init.d/memcached stop'` です。  

```
node[:memcached][:stop_command]
```

**ユーザー **  <a name="attributes-recipes-mem-user"></a>
ユーザー (文字列)。デフォルト値は `'nobody'` です。  

```
node[:memcached][:user]
```

# mysql 属性
<a name="attributes-recipes-mysql"></a>

**重要**  
この AWS OpsWorks Stacks サービスは 2024 年 5 月 26 日にサポート終了となり、新規および既存のお客様の両方で無効になっています。できるだけ早くワークロードを他のソリューションに移行することを強くお勧めします。移行についてご質問がある場合は、[AWS re:Post](https://repost.aws/) または[AWS プレミアムサポート](https://aws.amazon.com/support)を通じて AWS サポート チームにお問い合わせください。

**注記**  
これらの属性は Linux スタックにのみ使用できます。

[`mysql` 属性](https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/mysql/attributes/server.rb)は [MySQL](http://www.mysql.com/) マスター設定を指定します。詳細については、「[サーバーシステム変数](http://dev.mysql.com/doc/refman/5.1/en/server-system-variables.html)」を参照してください。組み込み属性を上書きしてカスタム値を指定する方法の詳細については、「[属性の上書き](workingcookbook-attributes.md)」を参照してください。


****  

|  |  |  | 
| --- |--- |--- |
| [basedir ](#attributes-recipes-mysql-basedir) | [bind\$1address ](#attributes-recipes-mysql-bind) | [クライアント ](#attributes-recipes-mysql-clients) | 
| [conf\$1dir ](#attributes-recipes-mysql-conf) | [confd\$1dir ](#attributes-recipes-mysql-confd) | [datadir ](#attributes-recipes-mysql-datadir) | 
| [grants\$1path ](#attributes-recipes-mysql-grants) | [mysql\$1bin ](#attributes-recipes-mysql-bin) | [mysqladmin\$1bin ](#attributes-recipes-mysql-admin-bin) | 
| [pid\$1file ](#attributes-recipes-mysql-pid) | [port ](#attributes-recipes-mysql-port) | [root\$1group ](#attributes-recipes-mysql-group) | 
| [server\$1root\$1password ](#attributes-recipes-mysql-pwd) | [ソケット ](#attributes-recipes-mysql-socket) | [tunable 属性](#attributes-recipes-mysql-tunable) | 

**basedir **  <a name="attributes-recipes-mysql-basedir"></a>
ベースディレクトリ (文字列)。デフォルト値は `'/usr'` です。  

```
node[:mysql][:basedir]
```

**bind\$1address **  <a name="attributes-recipes-mysql-bind"></a>
MySQL がリッスンするアドレス (文字列)。デフォルト値は `'0.0.0.0'` です。  

```
node[:mysql][:bind_address]
```

**クライアント **  <a name="attributes-recipes-mysql-clients"></a>
クライアントのリスト (文字列のリスト)。  

```
node[:mysql][:clients]
```

**conf\$1dir **  <a name="attributes-recipes-mysql-conf"></a>
設定ファイルを含むディレクトリ (文字列)。デフォルト値は次のとおりです。  
+ Amazon Linux および RHEL: `'/etc'`
+ Ubuntu: `'/etc/mysql'`

```
node[:mysql][:conf_dir]
```

**confd\$1dir **  <a name="attributes-recipes-mysql-confd"></a>
追加の設定ファイルを含むディレクトリ (文字列)。デフォルト値は `'/etc/mysql/conf.d'` です。  

```
node[:mysql][:confd_dir]
```

**datadir **  <a name="attributes-recipes-mysql-datadir"></a>
データディレクトリ (文字列)。デフォルト値は `'/var/lib/mysql'` です。  

```
node[:mysql][:datadir]
```

**grants\$1path **  <a name="attributes-recipes-mysql-grants"></a>
許可のテーブルの場所 (文字列)。デフォルト値は `'/etc/mysql_grants.sql'` です。  

```
node[:mysql][:grants_path]
```

**mysql\$1bin **  <a name="attributes-recipes-mysql-bin"></a>
mysql バイナリの場所 (文字列)。デフォルト値は `'/usr/bin/mysql'` です。  

```
node[:mysql][:mysql_bin]
```

**mysqladmin\$1bin **  <a name="attributes-recipes-mysql-admin-bin"></a>
mysqladmin の場所 (文字列)。デフォルト値は `'/usr/bin/mysqladmin'` です。  

```
node[:mysql][:mysqladmin_bin]
```

**pid\$1file **  <a name="attributes-recipes-mysql-pid"></a>
デーモンのプロセス ID を含むファイル (文字列)。デフォルト値は `'/var/run/mysqld/mysqld.pid'` です。  

```
node[:mysql][:pid_file]
```

**port **  <a name="attributes-recipes-mysql-port"></a>
サーバーがリッスンするポート (数値)。デフォルト値は `3306` です。  

```
node[:mysql][:port]
```

**root\$1group **  <a name="attributes-recipes-mysql-group"></a>
ルートグループ (文字列)。デフォルト値は `'root'` です。  

```
node[:mysql][:root_group]
```

**server\$1root\$1password **  <a name="attributes-recipes-mysql-pwd"></a>
サーバーのルートパスワード (文字列)。デフォルト値はランダムに生成されます。  

```
node[:mysql][:server_root_password]
```

**ソケット **  <a name="attributes-recipes-mysql-socket"></a>
ソケットファイルの場所 (文字列)。デフォルト値は `'/var/lib/mysql/mysql.sock'` です。デフォルト値は次のとおりです。  
+ Amazon Linux および RHEL: `'/var/lib/mysql/mysql.sock'`
+ Ubuntu: `'/var/run/mysqld/mysqld.sock'`

```
node[:mysql][:socket]
```

**tunable 属性**  <a name="attributes-recipes-mysql-tunable"></a>
調整可能な属性はパフォーマンス調整に使用されます。    
****    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/opsworks/latest/userguide/attributes-recipes-mysql.html)  
**back\$1log **  <a name="attributes-recipes-mysql-tunable-back"></a>
未処理のリクエストの最大数 (文字列)。デフォルト値は `'128'` です。  

```
node[:mysql][:tunable][:back_log]
```  
**innodb\$1additional\$1mem\$1pool\$1size **  <a name="attributes-recipes-mysql-tunable-mem"></a>
[Innodb](http://dev.mysql.com/doc/refman/5.5/en/innodb-storage-engine.html) が内部データ構造を保存するために使用するプールのサイズ (文字列)。デフォルト値は `'20M'` です。  

```
node[:mysql][:tunable][:innodb_additional_mem_pool_size]
```  
**innodb\$1buffer\$1pool\$1size **  <a name="attributes-recipes-mysql-tunable-buffer"></a>
[Innodb](http://dev.mysql.com/doc/refman/5.5/en/innodb-storage-engine.html) バッファープールサイズ (文字列)。属性値は OpsWorks スタックによって設定され、インスタンスタイプによって異なりますが、カスタム JSON またはカスタム属性ファイルを使用して[上書き](workingcookbook-attributes.md)できます。  

```
node[:mysql][:tunable][:innodb_buffer_pool_size]
```  
**innodb\$1flush\$1log\$1at\$1trx\$1commit **  <a name="attributes-recipes-mysql-tunable-flush"></a>
[Innodb](http://dev.mysql.com/doc/refman/5.5/en/innodb-storage-engine.html) がログバッファーをフラッシュする頻度 (文字列)。デフォルト値は `'2'` です。詳細については、「[innodb\$1flush\$1log\$1at\$1trx\$1commit](http://dev.mysql.com/doc/refman/5.1/en/innodb-parameters.html#sysvar_innodb_flush_log_at_trx_commit)」を参照してください。  

```
node[:mysql][:tunable][:innodb_flush_log_at_trx_commit]
```  
**innodb\$1lock\$1wait\$1timeout **  <a name="attributes-recipes-mysql-tunable-lock"></a>
[Innodb](http://dev.mysql.com/doc/refman/5.5/en/innodb-storage-engine.html) トランザクションが行ロックを待機する最大時間 (秒数) (文字列)。デフォルト値は `'50'` です。  

```
node[:mysql][:tunable][:innodb_lock_wait_timeout]
```  
**key\$1buffer **  <a name="attributes-recipes-mysql-tunable-key"></a>
インデックスバッファーサイズ (文字列)。デフォルト値は `'250M'` です。  

```
node[:mysql][:tunable][:key_buffer]
```  
**log\$1slow\$1queries **  <a name="attributes-recipes-mysql-tunable-slow"></a>
スロークエリのログファイルの場所 (文字列)。デフォルト値は `'/var/log/mysql/mysql-slow.log'` です。  

```
node[:mysql][:tunable][:log_slow_queries]
```  
**long\$1query\$1time **  <a name="attributes-recipes-mysql-tunable-long"></a>
クエリを長いクエリとして指定するための時間 (秒) (文字列)。デフォルト値は `'1'` です。  

```
node[:mysql][:tunable][:long_query_time]
```  
**max\$1allowed\$1packet **  <a name="attributes-recipes-mysql-tunable-packet"></a>
許容される最大パケットサイズ (文字列)。デフォルト値は `'32M'` です。  

```
node[:mysql][:tunable][:max_allowed_packet]
```  
**max\$1connections **  <a name="attributes-recipes-mysql-tunable-connections"></a>
同時クライアント接続の最大数 (文字列)。デフォルト値は `'2048'` です。  

```
node[:mysql][:tunable][:max_connections]
```  
**max\$1heap\$1table\$1size **  <a name="attributes-recipes-mysql-tunable-heap"></a>
ユーザーが作成した `MEMORY` テーブルの最大サイズ (文字列)。デフォルト値は `'32M'` です。  

```
node[:mysql][:tunable][:max_heap_table_size]
```  
**net\$1read\$1timeout **  <a name="attributes-recipes-mysql-tunable-net-read"></a>
接続からの追加のデータを待機する時間 (秒) (文字列) デフォルト値は `'30'` です。  

```
node[:mysql][:tunable][:net_read_timeout]
```  
**net\$1write\$1timeout **  <a name="attributes-recipes-mysql-tunable-net-write"></a>
接続に書き込まれるブロックを待機する時間 (秒) (文字列)。デフォルト値は `'30'` です。  

```
node[:mysql][:tunable][:net_write_timeout]
```  
**query\$1cache\$1limit **  <a name="attributes-recipes-mysql-tunable-cache-limit"></a>
キャッシュした各クエリの最大サイズ (文字列)。デフォルト値は `'2M'` です。  

```
node[:mysql][:tunable][:query_cache_limit]
```  
**query\$1cache\$1size **  <a name="attributes-recipes-mysql-tunable-cache-size"></a>
クエリのキャッシュのサイズ (文字列)。デフォルト値は `'128M'` です。  

```
node[:mysql][:tunable][:query_cache_size]
```  
**query\$1cache\$1type **  <a name="attributes-recipes-mysql-tunable-cache-type"></a>
クエリのキャッシュのタイプ (文字列)。指定できる値は次のとおりです。  
+ `'0'`: キャッシュなし、またはキャッシュしたデータの取得なし。
+ `'1'`: `SELECT SQL_NO_CACHE` で開始されないキャッシュのステートメント。
+ `'2'`: `SELECT SQL_CACHE` で開始されるキャッシュのステートメント。
デフォルト値は `'1'` です。  

```
node[:mysql][:tunable][:query_cache_type]
```  
**thread\$1cache\$1size **  <a name="attributes-recipes-mysql-tunable-thread-cache"></a>
再利用のためにキャッシュされるクライアントのスレッドの数 (文字列)。デフォルト値は `'8'` です。  

```
node[:mysql][:tunable][:thread_cache_size]
```  
**thread\$1stack **  <a name="attributes-recipes-mysql-tunable-thread-stack"></a>
各スレッドのスタックのサイズ (文字列)。デフォルト値は `'192K'` です。  

```
node[:mysql][:tunable][:thread_stack]
```  
**wait\$1timeout **  <a name="attributes-recipes-mysql-tunable-wait"></a>
非対話形式の接続で待機する時間 (秒)。デフォルト値は `'180'` です (文字列)。  

```
node[:mysql][:tunable][:wait_timeout]
```  
**table\$1cache **  <a name="attributes-recipes-mysql-tunable-table"></a>
開いたテーブルの数 (文字列)。デフォルト値は `'2048'` です。  

```
node[:mysql][:tunable][:table_cache]
```

# nginx 属性
<a name="attributes-recipes-nginx"></a>

**重要**  
この AWS OpsWorks Stacks サービスは 2024 年 5 月 26 日にサポート終了となり、新規および既存のお客様の両方で無効になっています。できるだけ早くワークロードを他のソリューションに移行することを強くお勧めします。移行についてご質問がある場合は、[AWS re:Post](https://repost.aws/) または[AWS プレミアムサポート](https://aws.amazon.com/support)を通じて AWS サポート チームにお問い合わせください。

**注記**  
これらの属性は Linux スタックにのみ使用できます。

[`nginx` 属性](https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/nginx/attributes/nginx.rb)は [Nginx](http://wiki.nginx.org/Main) 設定を指定します。詳細については、「[ディレクティブインデックス](http://wiki.nginx.org/DirectiveIndex)」を参照してください。組み込み属性を上書きしてカスタム値を指定する方法の詳細については、「[属性の上書き](workingcookbook-attributes.md)」を参照してください。


****  

|  |  |  | 
| --- |--- |--- |
| [バイナリ ](#attributes-recipes-nginx-binary) | [dir ](#attributes-recipes-nginx-dir) | [gzip ](#attributes-recipes-nginx-gzip) | 
| [gzip\$1comp\$1level ](#attributes-recipes-nginx-gzip-comp) | [gzip\$1disable ](#attributes-recipes-nginx-gzip-disable) | [gzip\$1http\$1version ](#attributes-recipes-nginx-gzip-http) | 
| [gzip\$1proxied ](#attributes-recipes-nginx-gzip-proxied) | [gzip\$1static ](#attributes-recipes-nginx-gzip-static) | [gzip\$1types ](#attributes-recipes-nginx-gzip-types) | 
| [gzip\$1vary ](#attributes-recipes-nginx-gzip-vary) | [keepalive ](#attributes-recipes-nginx-keepalive) | [keepalive\$1timeout ](#attributes-recipes-nginx-keepalive-timeout) | 
| [log\$1dir ](#attributes-recipes-nginx-log) | [ユーザー ](#attributes-recipes-nginx-user) | [server\$1names\$1hash\$1bucket\$1size](#attributes-recipes-nginx-worker-hash) | 
| [worker\$1processes ](#attributes-recipes-nginx-worker-processes) | [worker\$1connections ](#attributes-recipes-nginx-worker-connections) |  | 

**バイナリ **  <a name="attributes-recipes-nginx-binary"></a>
Nginx バイナリの場所 (文字列)。デフォルト値は `'/usr/sbin/nginx'` です。  

```
node[:nginx][:binary]
```

**dir **  <a name="attributes-recipes-nginx-dir"></a>
設定ファイルなどのファイルの場所 (文字列)。デフォルト値は `'/etc/nginx'` です。  

```
node[:nginx][:dir]
```

**gzip **  <a name="attributes-recipes-nginx-gzip"></a>
gzip 圧縮が有効であるかどうか (文字列)。指定できる値は `'on'` および `'off'` です。デフォルト値は `'on'` です。  
圧縮によってセキュリティリスクが生じる可能性があります。圧縮を完全に無効にするには、この属性を次のように設定します。  

```
node[:nginx][:gzip] = 'off'
```

```
node[:nginx][:gzip]
```

**gzip\$1comp\$1level **  <a name="attributes-recipes-nginx-gzip-comp"></a>
圧縮レベルは、1～9 の値域を定めることができ、1 は最小圧縮 (文字列)に対応します。デフォルト値は `'2'` です。  

```
node[:nginx][:gzip_comp_level]
```

**gzip\$1disable **  <a name="attributes-recipes-nginx-gzip-disable"></a>
指定したユーザーエージェントに対して gzip 圧縮を無効にします (文字列)。値は正規表現で、デフォルト値は `'MSIE [1-6].(?!.*SV1)'` です。  

```
node[:nginx][:gzip_disable]
```

**gzip\$1http\$1version **  <a name="attributes-recipes-nginx-gzip-http"></a>
指定した HTTP バージョンに対して gzip 圧縮を有効にします (文字列)。デフォルト値は `'1.0'` です。  

```
node[:nginx][:gzip_http_version]
```

**gzip\$1proxied **  <a name="attributes-recipes-nginx-gzip-proxied"></a>
プロキシリクエストへのレスポンスを圧縮するかどうか、およびその方法。次のいずれかの値になります (文字列)。  
+ `'off'`: プロキシされたリクエストを圧縮しない
+ `'expired'`: 有効期限切れヘッダーでキャッシングが妨げられる場合は圧縮する
+ `'no-cache'`: キャッシュ制御ヘッダーが「no-cache」に設定されている場合は圧縮する
+ `'no-store'`: キャッシュ制御ヘッダーが「no-store」に設定されている場合は圧縮する
+ `'private'`: のキャッシュ制御ヘッダーが「private」に設定されている場合は圧縮する
+ `'no_last_modified'`: [Last-Modified] が設定されていない場合は圧縮する
+ `'no_etag'`: リクエストに ETag ヘッダーがない場合は圧縮する
+ `'auth'`: リクエストに認可ヘッダーが含まれる場合は圧縮する
+ `'any'`: すべてのプロキシされたリクエストを圧縮する 
デフォルト値は `'any'` です。  

```
node[:nginx][:gzip_proxied]
```

**gzip\$1static **  <a name="attributes-recipes-nginx-gzip-static"></a>
gzip 静的モジュールが有効であるかどうか (文字列)。指定できる値は `'on'` および `'off'` です。デフォルト値は `'on'` です。  

```
node[:nginx][:gzip_static]
```

**gzip\$1types **  <a name="attributes-recipes-nginx-gzip-types"></a>
圧縮する MIME タイプのリスト (文字列のリスト)。デフォルト値は `['text/plain', 'text/html', 'text/css', 'application/x-javascript', 'text/xml', 'application/xml', 'application/xml+rss', 'text/javascript']` です。  

```
node[:nginx][:gzip_types]
```

**gzip\$1vary **  <a name="attributes-recipes-nginx-gzip-vary"></a>
`Vary:Accept-Encoding ` レスポンスヘッダーを有効にするかどうか (文字列)。指定できる値は `'on'` および `'off'` です。デフォルト値は `'on'` です。  

```
node[:nginx][:gzip_vary]
```

**keepalive **  <a name="attributes-recipes-nginx-keepalive"></a>
キープアライブ接続を有効にするかどうか (文字列)。指定できる値は `'on'` および `'off'` です。デフォルト値は `'on'` です。  

```
node[:nginx][:keepalive]
```

**keepalive\$1timeout **  <a name="attributes-recipes-nginx-keepalive-timeout"></a>
キープアライブ接続を開いたままにする最大時間 (秒) (数値)。デフォルト値は `65` です。  

```
node[:nginx][:keepalive_timeout]
```

**log\$1dir **  <a name="attributes-recipes-nginx-log"></a>
ログファイルの場所 (文字列)。デフォルト値は `'/var/log/nginx'` です。  

```
node[:nginx][:log_dir]
```

**ユーザー **  <a name="attributes-recipes-nginx-user"></a>
ユーザー (文字列)。デフォルト値は次のとおりです。  
+ Amazon Linux および RHEL: `'www-data'`
+ Ubuntu: `'nginx'`

```
node[:nginx][:user]
```

**server\$1names\$1hash\$1bucket\$1size**  <a name="attributes-recipes-nginx-worker-hash"></a>
`32`、`64`、または `128` に設定できるサーバー名のハッシュテーブルのバケットサイズ (数値)。デフォルト値は `64` です。  

```
node[:nginx][:server_names_hash_bucket_size]
```

**worker\$1processes **  <a name="attributes-recipes-nginx-worker-processes"></a>
ワーカープロセスの数 (数値)。デフォルト値は `10` です。  

```
node[:nginx][:worker_processes]
```

**worker\$1connections **  <a name="attributes-recipes-nginx-worker-connections"></a>
ワーカー接続の最大数 (数値)。デフォルト値は `1024` です。クライアントの最大数は `worker_processes * worker_connections` に設定されます。  

```
node[:nginx][:worker_connections]
```

# opsworks\$1berkshelf 属性
<a name="attributes-recipes-berkshelf"></a>

**重要**  
この AWS OpsWorks Stacks サービスは 2024 年 5 月 26 日にサポート終了となり、新規および既存のお客様の両方で無効になっています。できるだけ早くワークロードを他のソリューションに移行することを強くお勧めします。移行についてご質問がある場合は、[AWS re:Post](https://repost.aws/) または[AWS プレミアムサポート](https://aws.amazon.com/support)を通じて AWS サポート チームにお問い合わせください。

**注記**  
これらの属性は Linux スタックにのみ使用できます。

[`opsworks_berkshelf` 属性](https://github.com/aws/opsworks-cookbooks/blob/master-chef-11.10/opsworks_berkshelf/attributes/default.rb)は Berkshelf 設定を指定します。詳細については「[Berkshelf](http://berkshelf.com/)」を参照してください。組み込み属性を上書きしてカスタム値を指定する方法の詳細については、「[属性の上書き](workingcookbook-attributes.md)」を参照してください。

**デバッグ**  <a name="attributes-recipes-berkshelf-debug"></a>
Chef ログに Berkshelf デバッグ情報を含めるかどうかを指定します (ブール値)。デフォルト値は `false` です。  

```
node['opsworks_berkshelf]['debug']
```

# opsworks\$1java 属性
<a name="attributes-recipes-java"></a>

**重要**  
この AWS OpsWorks Stacks サービスは 2024 年 5 月 26 日にサポート終了となり、新規および既存のお客様の両方で無効になっています。できるだけ早くワークロードを他のソリューションに移行することを強くお勧めします。移行についてご質問がある場合は、[AWS re:Post](https://repost.aws/) または[AWS プレミアムサポート](https://aws.amazon.com/support)を通じて AWS サポート チームにお問い合わせください。

**注記**  
これらの属性は Linux スタックにのみ使用できます。

[`opsworks_java` 属性](https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/opsworks_java/attributes/default.rb)は [Tomcat](http://tomcat.apache.org/) サーバー設定を指定します。詳細については、「[Apache Tomcat 設定リファレンス](http://tomcat.apache.org/tomcat-5.5-doc/config/)」を参照してください。組み込み属性を上書きしてカスタム値を指定する方法の詳細については、「[属性の上書き](workingcookbook-attributes.md)」を参照してください。


****  

|  |  |  | 
| --- |--- |--- |
| [datasources ](#attributes-recipes-java-datasources) | [java\$1app\$1server\$1version ](#attributes-recipes-java-server-version) | [java\$1shared\$1lib\$1dir ](#attributes-recipes-java-shared-lib) | 
| [jvm\$1pkg 属性 ](#attributes-recipes-java-pkg) | [custom\$1pkg\$1location\$1url\$1debian ](#attributes-recipes-java-pkg-debian) | [java\$1home\$1basedir ](#attributes-recipes-java-pkg-basedir) | 
| [custom\$1pkg\$1location\$1url\$1rhel ](#attributes-recipes-java-pkg-rhel) | [use\$1custom\$1pkg\$1location ](#attributes-recipes-java-pkg-use) | [jvm\$1options ](#attributes-recipes-java-jvm-options) | 
| [jvm\$1version ](#attributes-recipes-java-jvm-version) | [tomcat 属性](#attributes-recipes-java-tomcat) |  | 

**datasources **  <a name="attributes-recipes-java-datasources"></a>
JNDI リソース名を定義する属性のセット (文字列)。この属性を使用する方法の詳細については、「[バックエンドデータベースでの JSP アプリケーションのデプロイ](layers-java-deploy.md#layers-java-deploy-jsp-db)」を参照してください。デフォルト値は空のハッシュです。アプリケーションの短縮名と JNDI 名とのカスタムマッピングによって値を入力できます。詳細については、「[バックエンドデータベースでの JSP アプリケーションのデプロイ](layers-java-deploy.md#layers-java-deploy-jsp-db)」を参照してください。  

```
node['opsworks_java']['datasources']
```

**java\$1app\$1server\$1version **  <a name="attributes-recipes-java-server-version"></a>
Java アプリケーションサーバーバージョン (数値)。デフォルト値は `7` です。この属性を上書きしてバージョン 6 を指定することができます。デフォルトではない JDK をインストールしている場合、この属性は無視されます。  

```
node['opsworks_java']['java_app_server_version']
```

**java\$1shared\$1lib\$1dir **  <a name="attributes-recipes-java-shared-lib"></a>
Java 共有ライブラリのディレクトリ (文字列)。デフォルト値は `/usr/share/java` です。  

```
node['opsworks_java']['java_shared_lib_dir']
```

**jvm\$1pkg 属性 **  <a name="attributes-recipes-java-pkg"></a>
デフォルトではない JDK をインストールするために上書きできる属性のセット。    
**use\$1custom\$1pkg\$1location **  <a name="attributes-recipes-java-pkg-use"></a>
OpenJDK の代わりにカスタム JDK をインストールするかどうか (ブール)。デフォルト値は `false` です。  

```
node['opsworks_java']['jvm_pkg']['use_custom_pkg_location']
```  
**custom\$1pkg\$1location\$1url\$1debian **  <a name="attributes-recipes-java-pkg-debian"></a>
Ubuntu インスタンスにインストールする JDK パッケージの場所 (文字列)。デフォルト値は `'http://aws.amazon.com/'` です。これは単なる初期値であり、特別な意味はありません。デフォルトではない JDK をインストールする場合は、この属性を上書きして適切な URL に設定する必要があります。  

```
node['opsworks_java']['jvm_pkg']['custom_pkg_location_url_debian']
```  
**custom\$1pkg\$1location\$1url\$1rhel **  <a name="attributes-recipes-java-pkg-rhel"></a>
Amazon Linux および RHEL インスタンスにインストールする JDK パッケージの場所 (文字列)。デフォルト値は `'http://aws.amazon.com/'` です。これは単なる初期値であり、特別な意味はありません。デフォルトではない JDK をインストールする場合は、この属性を上書きして適切な URL に設定する必要があります。  

```
node['opsworks_java']['jvm_pkg']['custom_pkg_location_url_rhel']
```  
**java\$1home\$1basedir **  <a name="attributes-recipes-java-pkg-basedir"></a>
JDK パッケージの抽出先となるディレクトリ (文字列)。デフォルト値は `/usr/local` です。この設定を RPM パッケージに指定する必要はありません。パッケージには完全なディレクトリ構造が含まれます。  

```
node['opsworks_java']['jvm_pkg']['java_home_basedir']
```

**jvm\$1options **  <a name="attributes-recipes-java-jvm-options"></a>
ヒープサイズなどの設定を指定できる JVM コマンドラインオプション (文字列)。オプションの一般的な設定は `-Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC` です。デフォルト値にオプションはありません。  

```
node['opsworks_java']['jvm_options']
```

**jvm\$1version **  <a name="attributes-recipes-java-jvm-version"></a>
OpenJDK バージョン (数値)。デフォルト値は `7` です。この属性を上書きして OpenJDK バージョン 6 を指定することができます。デフォルトではない JDK をインストールしている場合、この属性は無視されます。  

```
node['opsworks_java']['jvm_version']
```

**tomcat 属性**  <a name="attributes-recipes-java-tomcat"></a>
デフォルトの Tomcat 設定をインストールするために上書きできる属性のセット。    
****    
[\[See the AWS documentation website for more details\]](http://docs.aws.amazon.com/ja_jp/opsworks/latest/userguide/attributes-recipes-java.html)  
**ajp\$1port **  <a name="attributes-recipes-java-ajp-port"></a>
AJP ポート (数値)。デフォルト値は `8009` です。  

```
node['opsworks_java']['tomcat]['ajp_port']
```  
**apache\$1tomcat\$1bind\$1mod **  <a name="attributes-recipes-java-bind-mod"></a>
プロキシモジュール (文字列)。デフォルト値は `proxy_http` です。この属性を上書きして AJP プロキシモジュールを指定することができます (`proxy_ajp`)。  

```
node['opsworks_java']['tomcat]['apache_tomcat_bind_mod']
```  
**apache\$1tomcat\$1bind\$1path **  <a name="attributes-recipes-java-bind-path"></a>
Apache Tomcat のバインドパス (文字列)。デフォルト値は `/` です。この属性を上書きしないでください。バインドパスを変更すると、アプリケーションの動作が停止する場合があります。  

```
node['opsworks_java']['tomcat]['apache_tomcat_bind_path']
```  
**auto\$1deploy **  <a name="attributes-recipes-java-deploy"></a>
自動デプロイするかどうか (ブール)。デフォルト値は `true` です。  

```
node['opsworks_java']['tomcat]['auto_deploy']
```  
**connection\$1timeout **  <a name="attributes-recipes-java-timeout"></a>
接続タイムアウト (ミリ秒) (数値)。デフォルト値は `20000`20 秒です。  

```
node['opsworks_java']['tomcat]['connection_timeout']
```  
**mysql\$1connector\$1jar **  <a name="attributes-recipes-java-connector"></a>
MySQL コネクターライブラリの JAR ファイル (文字列)。デフォルト値は `mysql-connector-java.jar` です。  

```
node['opsworks_java']['tomcat]['mysql_connector_jar']
```  
**port **  <a name="attributes-recipes-java-port"></a>
標準ポート (数値)。デフォルト値は `8080` です。  

```
node['opsworks_java']['tomcat]['port']
```  
**secure\$1port **  <a name="attributes-recipes-java-secure-port"></a>
安全なポート (数値)。デフォルト値は `8443` です。  

```
node['opsworks_java']['tomcat]['secure_port']
```  
**shutdown\$1port **  <a name="attributes-recipes-java-shutdown-port"></a>
 シャットダウンポート (数値)。デフォルト値は `8005` です。  

```
node['opsworks_java']['tomcat]['shutdown_port']
```  
**threadpool\$1max\$1threads **  <a name="attributes-recipes-java-threadpool-max"></a>
スレッドプールのスレッドの最大数 (数値)。デフォルト値は `150` です。  

```
node['opsworks_java']['tomcat]['threadpool_max_threads']
```  
**threadpool\$1min\$1spare\$1threads **  <a name="attributes-recipes-java-threadpool-min"></a>
スレッドプールの予備のスレッドの最小数 (数値)。デフォルト値は `4` です。  

```
node['opsworks_java']['tomcat]['threadpool_min_spare_threads']
```  
**unpack\$1wars **  <a name="attributes-recipes-java-unpack"></a>
WAR ファイルを解凍するかどうか (ブール値)。デフォルト値は `true` です。  

```
node['opsworks_java']['tomcat]['unpack_wars']
```  
**uri\$1encoding **  <a name="attributes-recipes-java-encoding"></a>
URI エンコード (文字列)。デフォルト値は `UTF-8` です。  

```
node['opsworks_java']['tomcat]['uri_encoding']
```  
**use\$1ssl\$1connector **  <a name="attributes-recipes-java-ssl"></a>
SSL コネクターを使用するかどうか (ブール値)。デフォルト値は `false` です。  

```
node['opsworks_java']['tomcat]['use_ssl_connector']
```  
**use\$1threadpool **  <a name="attributes-recipes-java-threadpool"></a>
スレッドプールを使用するかどうか (ブール値)。デフォルト値は `false` です。  

```
node['opsworks_java']['tomcat]['use_threadpool']
```  
**userdatabase\$1pathname **  <a name="attributes-recipes-java-userdb"></a>
ユーザーデータベースのパス名 (文字列)。デフォルト値は `conf/tomcat-users.xml` です。  

```
node['opsworks_java']['tomcat]['userdatabase_pathname']
```

# passenger\$1apache2 属性
<a name="attributes-recipes-passenger"></a>

**重要**  
この AWS OpsWorks Stacks サービスは 2024 年 5 月 26 日にサポート終了となり、新規および既存のお客様の両方で無効になっています。できるだけ早くワークロードを他のソリューションに移行することを強くお勧めします。移行についてご質問がある場合は、[AWS re:Post](https://repost.aws/) または[AWS プレミアムサポート](https://aws.amazon.com/support)を通じて AWS サポート チームにお問い合わせください。

**注記**  
これらの属性は Linux スタックにのみ使用できます。

[`passenger_apache2` 属性](https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/passenger_apache2/attributes/passenger.rb)は [Phusion Passenger](https://www.phusionpassenger.com/) 設定を指定します。詳細については、「[Phusion Passenger ユーザーガイド、Apache バージョン](http://www.modrails.com/documentation/Users%20guide%20Apache.html)」を参照してください。組み込み属性を上書きしてカスタム値を指定する方法の詳細については、「[属性の上書き](workingcookbook-attributes.md)」を参照してください。


****  

|  |  |  | 
| --- |--- |--- |
| [friendly\$1error\$1pages](#attributes-recipes-passenger-friendly-error-pages) | [gem\$1bin ](#attributes-recipes-passenger-gem-bin) | [gems\$1path](#attributes-recipes-passenger-gems-path) | 
| [high\$1performance\$1mode ](#attributes-recipes-passenger-perf) | [root\$1path ](#attributes-recipes-passenger-root) | [max\$1instances\$1per\$1app ](#attributes-recipes-passenger-instances) | 
| [max\$1pool\$1size ](#attributes-recipes-passenger-max-pool) | [max\$1requests](#attributes-recipes-passenger-max-requests) | [module\$1path ](#attributes-recipes-passenger-mod_path) | 
| [pool\$1idle\$1time ](#attributes-recipes-passenger-pool-idle) | [rails\$1app\$1spawner\$1idle\$1time ](#attributes-recipes-passenger-rails-app) | [rails\$1framework\$1spawner\$1idle\$1time ](#attributes-recipes-passenger-rails-framework) | 
| [rails\$1spawn\$1method ](#attributes-recipes-passenger-rails-spawn) | [ruby\$1bin ](#attributes-recipes-passenger-ruby-bin) | [ruby\$1wrapper\$1bin ](#attributes-recipes-passenger-ruby-wrapper) | 
| [stat\$1throttle\$1rate ](#attributes-recipes-passenger-throttle) | [バージョン](#attributes-recipes-passenger-version) |  | 

**friendly\$1error\$1pages**  <a name="attributes-recipes-passenger-friendly-error-pages"></a>
アプリケーションが起動に失敗した場合に、わかりやすいエラーページを表示するかどうかを指定します (文字列)。この属性は、'on' または 'off' に設定できます。デフォルト値は 'off' です。  

```
node[:passenger][:friendly_error_pages]
```

**gem\$1bin **  <a name="attributes-recipes-passenger-gem-bin"></a>
Gem バイナリの場所 (文字列)。デフォルト値は `'/usr/local/bin/gem'` です。  

```
node[:passenger][:gem_bin]
```

**gems\$1path**  <a name="attributes-recipes-passenger-gems-path"></a>
gems パス (文字列)。デフォルト値は、Ruby のバージョンによって異なります。例えば:   
+ Ruby バージョン 1.8: `'/usr/local/lib/ruby/gems/1.8/gems'`
+ Ruby バージョン 1.9: `'/usr/local/lib/ruby/gems/1.9.1/gems'`

```
node[:passenger][:gems_path]
```

**high\$1performance\$1mode **  <a name="attributes-recipes-passenger-perf"></a>
Passenger の高パフォーマンスモードを使用するかどうか (文字列)。指定できる値は `'on'` および `'off'` です。デフォルト値は `'off'` です。  

```
node[:passenger][:high_performance_mode ]
```

**root\$1path **  <a name="attributes-recipes-passenger-root"></a>
Passenger ルート​ディレクトリ (文字列)。デフォルト値は、Ruby および Passenger のバージョンによって異なります。Chef 構文では、この値は `"#{node[:passenger][:gems_path]}/passenger-#{passenger[:version]}"` です。  

```
node[:passenger][:root_path]
```

**max\$1instances\$1per\$1app **  <a name="attributes-recipes-passenger-instances"></a>
アプリケーションごとのアプリケーションプロセスの最大数 (数値)。デフォルト値は `0` です。詳細については「[PassengerMaxInstancesPerApp](http://www.modrails.com/documentation/Users%20guide%20Apache.html#_passengermaxinstancesperapp_lt_integer_gt)」を参照してください。  

```
node[:passenger][:max_instances_per_app]
```

**max\$1pool\$1size **  <a name="attributes-recipes-passenger-max-pool"></a>
アプリケーションプロセッサの最大数 (数値)。デフォルト値は `8` です。詳細については、「[PassengerMaxPoolSize](http://www.modrails.com/documentation/Users%20guide%20Apache.html#_passengermaxpoolsize_lt_integer_gt)」を参照してください。  

```
node[:passenger][:max_pool_size]
```

**max\$1requests**  <a name="attributes-recipes-passenger-max-requests"></a>
リクエストの最大数 (数値)。デフォルト値は `0` です。  

```
node[:passenger][:max_requests]
```

**module\$1path **  <a name="attributes-recipes-passenger-mod_path"></a>
モジュールのパス (文字列)。デフォルト値は次のとおりです。  
+ Amazon Linux および RHEL: `"#{node['apache']['libexecdir']}/mod_passenger.so"`
+ Ubuntu: `"#{passenger[:root\$1path]}/ext/apache2/mod_passenger.so"`

```
node[:passenger][:module_path]
```

**pool\$1idle\$1time **  <a name="attributes-recipes-passenger-pool-idle"></a>
アプリケーションプロセスをアイドル状態にすることができる最大時間 (秒) (数値)。デフォルト値は `14400` (4 時間) です。詳細については、「[PassengerPoolIdleTime](http://www.modrails.com/documentation/Users%20guide%20Apache.html#PassengerPoolIdleTime)」を参照してください。  

```
node[:passenger][:pool_idle_time]
```

**rails\$1app\$1spawner\$1idle\$1time **  <a name="attributes-recipes-passenger-rails-app"></a>
Rails アプリケーションのスポナー​の最大アイドル時間 (数値)。この属性をゼロに設定した場合、アプリケーションのスポナー​はタイムアウトになりません。デフォルト値は `0` です。詳細については、「[Spawning Methods Explained](http://www.modrails.com/documentation/Users%20guide%20Apache.html#spawning_methods_explained)」を参照してください。  

```
node[:passenger][:rails_app_spawner_idle_time]
```

**rails\$1framework\$1spawner\$1idle\$1time **  <a name="attributes-recipes-passenger-rails-framework"></a>
Rails フレームワークのスポナー​の最大アイドル時間 (数値)。この属性がゼロに設定されている場合、フレームワークのスポナー​はタイムアウトになりません。デフォルト値は `0` です。詳細については、「[Spawning Methods Explained](http://www.modrails.com/documentation/Users%20guide%20Apache.html#spawning_methods_explained)」を参照してください。  

```
node[:passenger][:rails_framework_spawner_idle_time]
```

**rails\$1spawn\$1method **  <a name="attributes-recipes-passenger-rails-spawn"></a>
Rails のスポーンの手法 (文字列)。デフォルト値は `'smart-lv2'` です。詳細については、「[Spawning Methods Explained](http://www.modrails.com/documentation/Users%20guide%20Apache.html#spawning_methods_explained)」を参照してください。  

```
node[:passenger][:rails_spawn_method]
```

**ruby\$1bin **  <a name="attributes-recipes-passenger-ruby-bin"></a>
Ruby バイナリの場所 (文字列)。デフォルト値は `'/usr/local/bin/ruby'` です。  

```
node[:passenger][:ruby_bin]
```

**ruby\$1wrapper\$1bin **  <a name="attributes-recipes-passenger-ruby-wrapper"></a>
Ruby ラッパースクリプトの場所 (文字列)。デフォルト値は `'/usr/local/bin/ruby_gc_wrapper.sh'` です。  

```
node[:passenger][:ruby_wrapper_bin]
```

**stat\$1throttle\$1rate **  <a name="attributes-recipes-passenger-throttle"></a>
Passenger がファイルシステムチェックを実行するレート (数値)。デフォルト値は `5` です。これは、チェックが最大でも 5 秒ごとに実行されることを意味します。詳細については、「[PassengerStatThrottleRate](http://www.modrails.com/documentation/Users%20guide%20Apache.html#_passengerstatthrottlerate_lt_integer_gt)」を参照してください。  

```
node[:passenger][:stat_throttle_rate]
```

**バージョン**  <a name="attributes-recipes-passenger-version"></a>
バージョン (文字列)。デフォルト値は `'3.0.9'` です。  

```
node[:passenger][:version]
```

# ruby 属性
<a name="attributes-recipes-ruby"></a>

**重要**  
この AWS OpsWorks Stacks サービスは 2024 年 5 月 26 日にサポート終了となり、新規および既存のお客様の両方で無効になっています。できるだけ早くワークロードを他のソリューションに移行することを強くお勧めします。移行についてご質問がある場合は、[AWS re:Post](https://repost.aws/) または[AWS プレミアムサポート](https://aws.amazon.com/support)を通じて AWS サポート チームにお問い合わせください。

**注記**  
これらの属性は Linux スタックにのみ使用できます。

[`ruby` 属性](https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/ruby/attributes/ruby.rb)は、アプリケーションで使用する Ruby バージョンを指定します。Ruby 2.1 でセマンティクスのバージョニングが導入されたことにより、属性の使用方法が変わったことに注意してください。バージョンの指定方法と例については、「[Ruby のバージョン](workingcookbook-ruby.md)」を参照してください。 OpsWorks スタックが Ruby バージョンを決定する方法の詳細については、組み込み属性ファイル [ruby.rb](https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/ruby/attributes/ruby.rb) を参照してください。組み込み属性を上書きしてカスタム値を指定する方法の詳細については、「[属性の上書き](workingcookbook-attributes.md)」を参照してください。

**full\$1version**  <a name="attributes-recipes-ruby-full"></a>
完全なバージョン番号 (文字列)。この属性を上書きしないでください。代わりに [[:opsworks][:ruby\$1version]](attributes-json-opsworks-other.md#attributes-json-opsworks-ruby-version) と適切なパッチバージョン属性を使用してバージョンを指定してください。  

```
[:ruby][:full_version]
```

**major\$1version**  <a name="attributes-recipes-ruby-major"></a>
メジャーバージョン番号 (文字列)。この属性を上書きしないでください。代わりに [[:opsworks][:ruby\$1version]](attributes-json-opsworks-other.md#attributes-json-opsworks-ruby-version) を使用してメジャーバージョンを指定してください。  

```
[:ruby][:major_version]
```

**minor\$1version**  <a name="attributes-recipes-ruby-minor"></a>
マイナーバージョン番号 (文字列)。この属性を上書きしないでください。代わりに [[:opsworks][:ruby\$1version]](attributes-json-opsworks-other.md#attributes-json-opsworks-ruby-version) を使用してマイナーバージョンを指定してください。  

```
[:ruby][:minor_version]
```

**patch**  <a name="attributes-recipes-ruby-patch"></a>
パッチレベル (文字列)。この属性は Ruby バージョン 2.0.0 以前で有効です。それより後の Ruby バージョンでは、`patch_version` 属性を使用します。  

```
[:ruby][:patch]
```
パッチ番号の前に `p` を置く必要があります。たとえば、次のカスタム JSON を使用してパッチレベル 484 を指定します。  

```
{
  "ruby":{"patch":"p484"}
}
```

**patch\$1version**  <a name="attributes-recipes-ruby-patch-version"></a>
パッチの数 (文字列)。この属性は Ruby バージョン 2.1 以降で有効です。それより前の Ruby バージョンでは、`patch` 属性を使用します。  

```
[:ruby][:patch_version]
```

**pkgrelease**  <a name="attributes-recipes-ruby-pkgrelease"></a>
パッケージのリリース番号 (文字列)。  

```
[:ruby][:pkgrelease]
```

# unicorn 属性
<a name="attributes-recipes-unicorn"></a>

**重要**  
この AWS OpsWorks Stacks サービスは 2024 年 5 月 26 日にサポート終了となり、新規および既存のお客様の両方で無効になっています。できるだけ早くワークロードを他のソリューションに移行することを強くお勧めします。移行についてご質問がある場合は、[AWS re:Post](https://repost.aws/) または[AWS プレミアムサポート](https://aws.amazon.com/support)を通じて AWS サポート チームにお問い合わせください。

**注記**  
これらの属性は Linux スタックにのみ使用できます。

[`unicorn` 属性](https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/unicorn/attributes/default.rb)は[ユニコーン](http://unicorn.bogomips.org/)設定を指定します。詳細については、「[Unicorn::Configurator](http://unicorn.bogomips.org/Unicorn/Configurator.html)」を参照してください。組み込み属性を上書きしてカスタム値を指定する方法の詳細については、「[属性の上書き](workingcookbook-attributes.md)」を参照してください。


****  

|  |  |  | 
| --- |--- |--- |
| [accept\$1filter](#attributes-recipes-unicorn-accept) | [backlog](#attributes-recipes-unicorn-backlog) | [delay](#attributes-recipes-unicorn-delay) | 
| [tcp\$1nodelay](#attributes-recipes-unicorn-nodelay) | [tcp\$1nopush](#attributes-recipes-unicorn-nopush) | [preload\$1app](#attributes-recipes-unicorn-preload) | 
| [タイムアウト](#attributes-recipes-unicorn-timeout) | [tries](#attributes-recipes-unicorn-tries) | [バージョン](#attributes-recipes-unicorn-version) | 
| [worker\$1processes](#attributes-recipes-unicorn-worker) |  |  | 

**accept\$1filter**  <a name="attributes-recipes-unicorn-accept"></a>
承認フィルタの `'httpready'` または `'dataready'` (文字列)。デフォルト値は `'httpready'` です。  

```
node[:unicorn][:accept_filter]
```

**backlog**  <a name="attributes-recipes-unicorn-backlog"></a>
キューが保持できるリクエストの最大数 (数値)。デフォルト値は `1024` です。  

```
node[:unicorn][:backlog]
```

**delay**  <a name="attributes-recipes-unicorn-delay"></a>
ソケットのバインドの再試行を待機する時間 (秒) (数値)。デフォルト値は `0.5` です。  

```
node[:unicorn][:delay]
```

**preload\$1app**  <a name="attributes-recipes-unicorn-preload"></a>
ワーカープロセスを分岐する前に、アプリケーションを事前ロードするかどうか (ブール値)。デフォルト値は `true` です。  

```
node[:unicorn][:preload_app]
```

**tcp\$1nodelay**  <a name="attributes-recipes-unicorn-nodelay"></a>
TCP ソケットに対して Nagle のアルゴリズムを無効にするかどうか (ブール値)。デフォルト値は `true` です。  

```
node[:unicorn][:tcp_nodelay]
```

**tcp\$1nopush**  <a name="attributes-recipes-unicorn-nopush"></a>
TCP\$1CORK を有効にするかどうか (ブール値)。デフォルト値は `false` です。  

```
node[:unicorn][:tcp_nopush]
```

**タイムアウト**  <a name="attributes-recipes-unicorn-timeout"></a>
ワーカーが各リクエストで使用できる最大時間 (秒) (数値)。タイムアウト値を超えたワーカーは終了します。デフォルト値は `60` です。  

```
node[:unicorn][:timeout]
```

**tries**  <a name="attributes-recipes-unicorn-tries"></a>
ソケットへのバインドの再試行の最大数 (数値)。デフォルト値は `5` です。  

```
node[:unicorn][:tries]
```

**バージョン**  <a name="attributes-recipes-unicorn-version"></a>
ユニコーンバージョン (文字列)。デフォルト値は `'4.7.0'` です。  

```
node[:unicorn][:version]
```

**worker\$1processes**  <a name="attributes-recipes-unicorn-worker"></a>
ワーカープロセスの数 (数値)。デフォルト値は `max_pool_size` (存在する場合)、それ以外の場合は `4` です。  

```
node[:unicorn][:worker_processes]
```