changeset 542:a9e6a8613534

Documented IPv6 support in ip_hash.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 19 Jun 2012 13:02:40 +0000
parents a8971cf346be
children 9085f0c59dc6
files xml/en/docs/http/ngx_http_upstream_module.xml xml/ru/docs/http/ngx_http_upstream_module.xml
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_upstream_module.xml
+++ b/xml/en/docs/http/ngx_http_upstream_module.xml
@@ -184,12 +184,15 @@ upstream backend {
 <para>
 Specifies that a group should use a load balancing method where requests
 are distributed between servers based on client IP addresses.
-The first three octets of the client IPv4 address
+The first three octets of the client IPv4 address, or the entire IPv6 address,
 are used as a hashing key.
 The method ensures that requests of the same client will always be
 passed to the same server except when this server is considered down
 in which case client requests will be passed to another server and
 most probably it will also be the same server.
+<note>
+IPv6 addresses are supported starting from version 1.3.2.
+</note>
 </para>
 
 <para>
--- a/xml/ru/docs/http/ngx_http_upstream_module.xml
+++ b/xml/ru/docs/http/ngx_http_upstream_module.xml
@@ -185,12 +185,15 @@ upstream backend {
 Задаёт для группы метод балансировки нагрузки, при котором запросы
 распределяются по серверам на основе IP-адресов клиентов.
 В качестве ключа для хэширования используются первые три
-октета IPv4-адреса клиента.
+октета IPv4-адреса клиента или IPv6-адрес клиента целиком.
 Метод гарантирует, что запросы одного и того же клиента
 будут всегда передаваться на один и тот же сервер.
 Если же этот сервер будет считаться неработающим,
 то запросы этого клиента будут передаваться на другой сервер.
 С большой долей вероятности это также будет один и тот же сервер.
+<note>
+IPv6-адреса поддерживаются начиная с версии 1.3.2.
+</note>
 </para>
 
 <para>