

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

# 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]
```