

Die vorliegende Übersetzung wurde maschinell erstellt. Im Falle eines Konflikts oder eines Widerspruchs zwischen dieser übersetzten Fassung und der englischen Fassung (einschließlich infolge von Verzögerungen bei der Übersetzung) ist die englische Fassung maßgeblich.

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

**Wichtig**  
Der AWS OpsWorks Stacks Dienst hat am 26. Mai 2024 das Ende seiner Lebensdauer erreicht und wurde sowohl für neue als auch für bestehende Kunden deaktiviert. Wir empfehlen Kunden dringend, ihre Workloads so bald wie möglich auf andere Lösungen zu migrieren. Wenn Sie Fragen zur Migration haben, wenden Sie sich an das AWS Support Team auf [AWS re:POST](https://repost.aws/) oder über den [AWS Premium-Support](https://aws.amazon.com/support).

**Anmerkung**  
Diese Attribute stehen nur für Linux-Stacks zur Verfügung.

Die [`haproxy`Attribute](https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/haproxy/attributes/default.rb) spezifizieren die [HAProxy Serverkonfiguration](http://haproxy.1wt.eu/). Weitere Informationen finden Sie unter [HAProxyDocs](http://cbonte.github.io/haproxy-dconv/configuration-1.5.html). Weitere Informationen zum Überschreiben integrierter Attribute, um benutzerdefinierte Werte anzugeben, finden Sie unter [Überschreiben der Attribute](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>
Der Algorithmus, der von einem Load Balancer zum Auswählen eines Servers verwendet wird (Zeichenfolge). Der Standardwert ist `'roundrobin'`. Weitere Optionen:  
+ 'static-rr'
+ 'leastconn'
+ 'source'
+ 'uri'
+ 'url\$1param'
+ 'hdr(name)'
+ 'rdp-cookie'
+ 'rdp-cookie(name)'
Weitere Informationen zu diesen Argumenten finden Sie unter [balance](http://cbonte.github.io/haproxy-dconv/configuration-1.5.html).  

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

**check\$1interval **  <a name="attributes-recipes-haproxy-interval"></a>
Das Zeitintervall der Zustandsprüfung (Zeichenfolge). Der Standardwert ist `'10s'`.  

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

**client\$1timeout **  <a name="attributes-recipes-haproxy-client-timeout"></a>
Die maximale Zeitspanne, die ein Client inaktiv sein kann (Zeichenfolge). Der Standardwert ist `'60s'`.  

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

**connect\$1timeout **  <a name="attributes-recipes-haproxy-connect-timeout"></a>
Die maximale Wartezeit, HAProxy bis ein Serververbindungsversuch erfolgreich ist (Zeichenfolge). Der Standardwert ist `'10s'`.  

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

**default\$1max\$1connections **  <a name="attributes-recipes-haproxy-default-max"></a>
Die standardmäßige maximale Anzahl von Verbindungen (Zeichenfolge). Der Standardwert ist `'80000'`.  

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

**global\$1max\$1connections **  <a name="attributes-recipes-haproxy-global-max"></a>
Die maximale Anzahl von Verbindungen (Zeichenfolge). Der Standardwert ist `'80000'`.  

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

**health\$1check\$1method **  <a name="attributes-recipes-haproxy-health-method"></a>
Die Methode der Zustandsprüfung (Zeichenfolge). Der Standardwert ist `'OPTIONS'`.  

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

**health\$1check\$1url **  <a name="attributes-recipes-haproxy-health-url"></a>
Der URL-Pfad, der für die Zustandsprüfung des Servers verwendet wird (Zeichenfolge). Der Standardwert ist `'/'`.  

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

**queue\$1timeout **  <a name="attributes-recipes-haproxy-queue-timeout"></a>
Die maximale Wartezeit für eine kostenlose Verbindung (Zeichenfolge). Der Standardwert ist `'120s'`.  

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

**http\$1request\$1timeout **  <a name="attributes-recipes-haproxy-http-timeout"></a>
Die maximale Wartezeit HAProxy auf eine vollständige HTTP-Anfrage (Zeichenfolge). Der Standardwert ist `'30s'`.  

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

**retries **  <a name="attributes-recipes-haproxy-retries"></a>
Die Anzahl von Wiederholungen nach einem Ausfall der Serververbindung (Zeichenfolge). Der Standardwert ist `'3'`.  

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

**server\$1timeout **  <a name="attributes-recipes-haproxy-server-timeout"></a>
Die maximale Zeitspanne, die ein Client inaktiv sein kann (Zeichenfolge). Der Standardwert ist `'60s'`.  

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

**stats\$1url **  <a name="attributes-recipes-haproxy-stats-url"></a>
Der URL-Pfad für die Statistikseite (Zeichenfolge). Der Standardwert ist `'/haproxy?stats'`.  

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

**stats\$1user **  <a name="attributes-recipes-haproxy-user"></a>
Der Benutzername der Statistikseite (Zeichenfolge). Der Standardwert ist `'opsworks'`.  

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

Die `maxcon` Attribute stellen einen Lastfaktor-Multiplikator dar, der verwendet wird, um die maximale Anzahl von Verbindungen zu berechnen, die [Backends HAProxy ](attributes-json-opsworks-instance.md#attributes-json-opsworks-instance-backends) zulassen. Angenommen, Sie haben einen Rails-App-Server auf einer kleinen Instanz mit einem `backend` Wert von 4, was bedeutet, dass OpsWorks Stacks vier Rails-Prozesse für diese Instanz konfiguriert. Wenn Sie den `maxcon_factor_rails_app` Standardwert 7 verwenden, HAProxy werden 28 (4\$17) Verbindungen zum Rails-Server verarbeitet.

**maxcon\$1factor\$1nodejs\$1app **  <a name="attributes-recipes-haproxy-nodejs-app"></a>
Der maxcon-Faktor für einen Node.js-Anwendungsserver (Zahl). Der Standardwert ist `10`.  

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

**maxcon\$1factor\$1nodejs\$1app\$1ssl **  <a name="attributes-recipes-haproxy-nodejs-ssl"></a>
Der maxcon-Faktor für einen Node.js-Anwendungsserver mit SSL (Zahl). Der Standardwert ist `10`.  

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

**maxcon\$1factor\$1php\$1app **  <a name="attributes-recipes-haproxy-php-app"></a>
Der maxcon-Faktor für eine PHP-Anwendungsserver (Zahl). Der Standardwert ist `10`.  

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

**maxcon\$1factor\$1php\$1app\$1ssl **  <a name="attributes-recipes-haproxy-php-ssl"></a>
Der maxcon-Faktor für einen PHP-Anwendungsserver mit SSL (Zahl). Der Standardwert ist `10`.  

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

**maxcon\$1factor\$1rails\$1app **  <a name="attributes-recipes-haproxy-rails-app"></a>
Der maxcon-Faktor für einen Rails-Anwendungsserver (Zahl). Der Standardwert ist `7`.  

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

**maxcon\$1factor\$1rails\$1app\$1ssl **  <a name="attributes-recipes-haproxy-rails-ssl"></a>
Der maxcon-Faktor für einen Rails-Anwendungsserver mit SSL (Zahl). Der Standardwert ist `7`.  

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

**maxcon\$1factor\$1static **  <a name="attributes-recipes-haproxy-static-app"></a>
Der maxcon-Faktor für einen statischen Webserver (Zahl). Der Standardwert ist `15`.  

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

**maxcon\$1factor\$1static\$1ssl **  <a name="attributes-recipes-haproxy-static-ssl"></a>
Der maxcon-Faktor für einen statischen Webserver mit SSL (Zahl). Der Standardwert ist `15`.  

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