Mercurial > hg > nginx-site
annotate xml/ru/docs/events.xml @ 582:44aecc4bba50
Brought Russian "download" and "support" pages up to date.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 11 Jul 2012 04:47:59 +0000 |
parents | be54c443235a |
children | 764fbac1b8b4 |
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" |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
10 lang="ru"> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
11 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
12 <section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
13 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
14 <para> |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
15 nginx поддерживает различные методы обработки соединений. |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
16 Наличие того или иного метода зависит от используемой платформы. |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
17 Если на платформе доступно сразу несколько методов, nginx обычно |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
18 сам выбирает наиболее эффективный метод. |
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 <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
|
22 </para> |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
23 |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
24 <para> |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
25 Поддерживаются следующие методы обработки соединений: |
461 | 26 <list type="bullet"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
27 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
28 <listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
29 <para> |
271 | 30 <literal>select</literal>—стандартный метод. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
31 Модуль для поддержки этого метода собирается автоматически, |
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 Можно принудительно разрешить или запретить сборку этого модуля |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
34 с помощью параметров <literal>--with-select_module</literal> и |
271 | 35 <literal>--without-select_module</literal>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
36 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
37 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
38 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
39 <listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
40 <para> |
271 | 41 <literal>poll</literal>—стандартный метод. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
42 Модуль для поддержки этого метода собирается автоматически, |
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 Можно принудительно разрешить или запретить сборку этого модуля |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
45 с помощью параметров <literal>--with-poll_module</literal> и |
271 | 46 <literal>--without-poll_module</literal>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
47 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
48 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
49 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
50 <listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
51 <para> |
271 | 52 <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
|
53 во 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
|
54 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
55 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
56 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
57 <listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
58 <para> |
271 | 59 <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
|
60 в Linux 2.6+. |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
61 <note> |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
62 В некоторых старых дистрибутивах, например SuSE 8.2, |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
63 есть патчи для поддержки 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
|
64 </note> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
65 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
66 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
67 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
68 <listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
69 <para> |
271 | 70 <literal>rtsig</literal>—real time signals, эффективный метод, |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
71 используемый в 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
|
72 По умолчанию в общесистемной очереди событий может одновременно |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
73 находиться не более 1024 сигналов. |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
74 На нагруженных серверах может потребоваться увеличить размер очереди |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
75 с помощью параметра ядра <path>/proc/sys/kernel/rtsig-max</path>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
76 Однако, начиная с Linux 2.6.6-mm2, этого параметра уже нет и для каждого |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
77 процесса существует отдельная очередь сигналов, размер которой |
554
ccb7451af1d8
Documented the "worker_rlimit_sigpending" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
552
diff
changeset
|
78 ограничивается с помощью <literal>RLIMIT_SIGPENDING</literal> |
ccb7451af1d8
Documented the "worker_rlimit_sigpending" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
552
diff
changeset
|
79 (см. также <link doc="ngx_core_module.xml" id="worker_rlimit_sigpending"/>). |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
80 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
81 |
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 При переполнении очереди nginx сбрасывает её и начинает обрабатывать |
552
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
84 соединения с помощью метода <literal>poll</literal> до тех пор, |
32bde52db92c
Incorporated some of the changes made to a translated version of
Ruslan Ermilov <ru@nginx.com>
parents:
461
diff
changeset
|
85 пока ситуация не нормализуется. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
86 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
87 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
88 |
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 <para> |
271 | 91 <literal>/dev/poll</literal>—эффективный метод, используемый |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
92 в 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
|
93 и Tru64 UNIX 5.1A+. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
94 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
95 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
96 |
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 <para> |
271 | 99 <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
|
100 используемый в Solaris 10. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
101 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
102 </listitem> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
103 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
104 </list> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
105 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
106 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
107 </section> |
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 </article> |