Mercurial > hg > nginx-site
annotate xml/en/docs/faq/daemon_master_process_off.xml @ 226:c4b33b07dcfe
Added some basic hints on how to tune "worker_processes".
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 06 Dec 2011 17:19:19 +0000 |
parents | e58be01b1f4a |
children | be54c443235a |
rev | line source |
---|---|
198
ec4626d04879
- Bulk commit following discussion in devrep
Andrey Alexeev <andrew@nginx.com>
parents:
196
diff
changeset
|
1 <!DOCTYPE article SYSTEM "../../../../dtd/article.dtd"> |
196
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
2 |
201
e58be01b1f4a
- Added double quotes in the headers of these two
Andrey Alexeev <andrew@nginx.com>
parents:
200
diff
changeset
|
3 <article name="Can I run nginx with “daemon off” or |
e58be01b1f4a
- Added double quotes in the headers of these two
Andrey Alexeev <andrew@nginx.com>
parents:
200
diff
changeset
|
4 “master_process off” settings |
196
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
5 in a production environment?" |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
6 link="/en/docs/faq/daemon_master_process_off.html" |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
7 lang="en"> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
8 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
9 <section> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
10 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
11 <para> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
12 <initial>Q:</initial> |
198
ec4626d04879
- Bulk commit following discussion in devrep
Andrey Alexeev <andrew@nginx.com>
parents:
196
diff
changeset
|
13 Can I run nginx with "daemon off" or "master_process off" settings |
196
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
14 in a production environment? |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
15 </para> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
16 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
17 <para> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
18 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
19 </para> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
20 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
21 <para> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
22 <initial>A:</initial> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
23 First of all, both "daemon on|off" and "master_process on|off" directives were |
200
19c060caf965
- Figured out how to add new faq entries to makefile
Andrey Alexeev <andrew@nginx.com>
parents:
198
diff
changeset
|
24 intended to be used primarily for nginx code development. |
196
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
25 </para> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
26 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
27 <para> |
198
ec4626d04879
- Bulk commit following discussion in devrep
Andrey Alexeev <andrew@nginx.com>
parents:
196
diff
changeset
|
28 While many people use "daemon off" in production it wasn't really meant for |
196
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
29 that. Since version 1.0.9 it is now quite safe to run nginx in production |
198
ec4626d04879
- Bulk commit following discussion in devrep
Andrey Alexeev <andrew@nginx.com>
parents:
196
diff
changeset
|
30 with "daemon off", though. Bear in mind that non-stop upgrade is not an |
ec4626d04879
- Bulk commit following discussion in devrep
Andrey Alexeev <andrew@nginx.com>
parents:
196
diff
changeset
|
31 option with "daemon off". |
196
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
32 </para> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
33 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
34 <para> |
198
ec4626d04879
- Bulk commit following discussion in devrep
Andrey Alexeev <andrew@nginx.com>
parents:
196
diff
changeset
|
35 In a development environment, using "master_process off", nginx can run in |
196
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
36 the foreground without the master process and can be terminated simply |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
37 with ^C (SIGINT). This is somewhat similar to running Apache with |
200
19c060caf965
- Figured out how to add new faq entries to makefile
Andrey Alexeev <andrew@nginx.com>
parents:
198
diff
changeset
|
38 an 'X' command-line option. However you should NEVER run nginx in production |
198
ec4626d04879
- Bulk commit following discussion in devrep
Andrey Alexeev <andrew@nginx.com>
parents:
196
diff
changeset
|
39 with "master_process off". |
196
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
40 </para> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
41 |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
42 </section> |
aafe530e7d6f
- Added faq/ and more q&a as previously agreed
Andrey Alexeev <andrew@nginx.com>
parents:
diff
changeset
|
43 |
198
ec4626d04879
- Bulk commit following discussion in devrep
Andrey Alexeev <andrew@nginx.com>
parents:
196
diff
changeset
|
44 </article> |