

기계 번역으로 제공되는 번역입니다. 제공된 번역과 원본 영어의 내용이 상충하는 경우에는 영어 버전이 우선합니다.

# haproxy 속성
<a name="attributes-recipes-haproxy"></a>

**중요**  
이 AWS OpsWorks Stacks 서비스는 2024년 5월 26일에 수명이 종료되었으며 신규 및 기존 고객 모두에서 비활성화되었습니다. 가능한 한 빨리 워크로드를 다른 솔루션으로 마이그레이션하는 것이 좋습니다. 마이그레이션에 대한 질문이 있는 경우 [AWS re:Post](https://repost.aws/) 또는 [AWS Premium Support](https://aws.amazon.com/support)를 통해 AWS Support 팀에 문의하세요.

**참고**  
이러한 속성은 Linux 스택에서만 사용할 수 있습니다.

[`haproxy` 속성](https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/haproxy/attributes/default.rb)은 [HAProxy 서버](http://haproxy.1wt.eu/) 구성을 지정합니다. 자세한 정보는 [HAProxy Docs](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)'
이러한 인수에 대한 자세한 정보는 [밸런스](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 앱 서버가 있다고 가정해 보겠습니다. 즉, OpsWorks Stacks가 해당 인스턴스에 대해 4개의 Rails 프로세스를 구성합니다. 기본 `maxcon_factor_rails_app` 값인 7을 사용하는 경우, HAProxy는 Rails 서버와의 연결 28(4\$17)개를 처리합니다.

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