Mercurial > hg > nginx-site
annotate xml/ru/docs/events.xml @ 1337:91a064bdb4f9
Documented the "proxy_force_ranges" directive and friends.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Mon, 06 Oct 2014 14:48:46 +0400 |
parents | 629630df119a |
children | eea7541e7c6a |
rev | line source |
---|---|
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
563
diff
changeset
|
1 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
563
diff
changeset
|
2 Copyright (C) Igor Sysoev |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
563
diff
changeset
|
3 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
563
diff
changeset
|
4 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
563
diff
changeset
|
5 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
6 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
7 |
123
7db449e89e92
Unified the use of the "name" attribute instead of "title".
Ruslan Ermilov <ru@nginx.com>
parents:
76
diff
changeset
|
8 <article name="Методы обработки соединений" |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
9 link="/ru/docs/events.html" |
589 | 10 lang="ru" |
755
629630df119a
Added anchors to event processing methods.
Ruslan Ermilov <ru@nginx.com>
parents:
659
diff
changeset
|
11 rev="2"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
12 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
13 <section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
14 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
15 <para> |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
16 nginx поддерживает различные методы обработки соединений. |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
17 Наличие того или иного метода зависит от используемой платформы. |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
18 Если на платформе доступно сразу несколько методов, nginx обычно |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
19 сам выбирает наиболее эффективный метод. |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
20 Однако, при необходимости можно явно выбрать метод обработки |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
21 соединений с помощью директивы |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
22 <link doc="ngx_core_module.xml" id="use"/>. |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
23 </para> |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
24 |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
25 <para> |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
26 Поддерживаются следующие методы обработки соединений: |
461 | 27 <list type="bullet"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
28 |
755
629630df119a
Added anchors to event processing methods.
Ruslan Ermilov <ru@nginx.com>
parents:
659
diff
changeset
|
29 <listitem id="select"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
30 <para> |
271 | 31 <literal>select</literal>—стандартный метод. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
32 Модуль для поддержки этого метода собирается автоматически, |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
33 если на платформе не обнаружено более эффективного метода. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
34 Можно принудительно разрешить или запретить сборку этого модуля |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
35 с помощью параметров <literal>--with-select_module</literal> и |
271 | 36 <literal>--without-select_module</literal>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
37 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
38 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
39 |
755
629630df119a
Added anchors to event processing methods.
Ruslan Ermilov <ru@nginx.com>
parents:
659
diff
changeset
|
40 <listitem id="poll"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
41 <para> |
271 | 42 <literal>poll</literal>—стандартный метод. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
43 Модуль для поддержки этого метода собирается автоматически, |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
44 если на платформе не обнаружено более эффективного метода. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
45 Можно принудительно разрешить или запретить сборку этого модуля |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
46 с помощью параметров <literal>--with-poll_module</literal> и |
271 | 47 <literal>--without-poll_module</literal>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
48 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
49 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
50 |
755
629630df119a
Added anchors to event processing methods.
Ruslan Ermilov <ru@nginx.com>
parents:
659
diff
changeset
|
51 <listitem id="kqueue"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
52 <para> |
271 | 53 <literal>kqueue</literal>—эффективный метод, используемый |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
54 во FreeBSD 4.1+, OpenBSD 2.9+, NetBSD 2.0 и Mac OS X. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
55 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
56 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
57 |
755
629630df119a
Added anchors to event processing methods.
Ruslan Ermilov <ru@nginx.com>
parents:
659
diff
changeset
|
58 <listitem id="epoll"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
59 <para> |
271 | 60 <literal>epoll</literal>—эффективный метод, используемый |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
61 в Linux 2.6+. |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
62 <note> |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
63 В некоторых старых дистрибутивах, например SuSE 8.2, |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
64 есть патчи для поддержки epoll ядром 2.4. |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
65 </note> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
66 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
67 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
68 |
755
629630df119a
Added anchors to event processing methods.
Ruslan Ermilov <ru@nginx.com>
parents:
659
diff
changeset
|
69 <listitem id="rtsig"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
70 <para> |
271 | 71 <literal>rtsig</literal>—real time signals, эффективный метод, |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
72 используемый в Linux 2.2.19+. |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
73 По умолчанию в общесистемной очереди событий может одновременно |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
74 находиться не более 1024 сигналов. |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
75 На нагруженных серверах может потребоваться увеличить размер очереди |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
76 с помощью параметра ядра <path>/proc/sys/kernel/rtsig-max</path>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
77 Однако, начиная с Linux 2.6.6-mm2, этого параметра уже нет и для каждого |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
78 процесса существует отдельная очередь сигналов, размер которой |
554
ccb7451af1d8
Documented the "worker_rlimit_sigpending" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
552
diff
changeset
|
79 ограничивается с помощью <literal>RLIMIT_SIGPENDING</literal> |
659
77a3314c74a7
Avoid the uses of second person.
Ruslan Ermilov <ru@nginx.com>
parents:
589
diff
changeset
|
80 и может быть изменён с помощью |
77a3314c74a7
Avoid the uses of second person.
Ruslan Ermilov <ru@nginx.com>
parents:
589
diff
changeset
|
81 <link doc="ngx_core_module.xml" id="worker_rlimit_sigpending"/>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
82 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
83 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
84 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
85 При переполнении очереди nginx сбрасывает её и начинает обрабатывать |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
86 соединения с помощью метода <literal>poll</literal> до тех пор, |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
87 пока ситуация не нормализуется. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
88 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
89 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
90 |
755
629630df119a
Added anchors to event processing methods.
Ruslan Ermilov <ru@nginx.com>
parents:
659
diff
changeset
|
91 <listitem id="devpoll"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
92 <para> |
271 | 93 <literal>/dev/poll</literal>—эффективный метод, используемый |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
94 в Solaris 7 11/99+, HP/UX 11.22+ (eventport), IRIX 6.5.15+ |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
95 и Tru64 UNIX 5.1A+. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
96 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
97 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
98 |
755
629630df119a
Added anchors to event processing methods.
Ruslan Ermilov <ru@nginx.com>
parents:
659
diff
changeset
|
99 <listitem id="eventport"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
100 <para> |
271 | 101 <literal>eventport</literal>—event ports, эффективный метод, |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
102 используемый в Solaris 10. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
103 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
104 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
105 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
106 </list> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
107 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
108 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
109 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
110 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
111 </article> |