mirror of https://github.com/F-Stack/f-stack.git
Merge pull request #156 from chadwill/patch-1
Update F-Stack_Nginx_APP_Guide.md
This commit is contained in:
commit
cc7be195f4
|
@ -27,24 +27,29 @@ first one to start | | | | |
|
||||||
last one to exit<-+ primary worker | | secondary worker | | secondary worker |
|
last one to exit<-+ primary worker | | secondary worker | | secondary worker |
|
||||||
| | | | | |
|
| | | | | |
|
||||||
+--------------------+ +-------------------+ +------------------+
|
+--------------------+ +-------------------+ +------------------+
|
||||||
+--------+ +-------+ +--------+ +-------+
|
+--------------------+ +-------------------+
|
||||||
| | | | | | | |
|
| | | |
|
||||||
| fstack | |channel| | fstack | |channel|
|
| fstack,kernel | | fstack,kernel |
|
||||||
| main | | event | | main | | event |
|
| and channel | | and channel |
|
||||||
| loop | |thread | | loop | |thread |
|
| loop thread | | loop thread |
|
||||||
| thread | | | | thread | | |
|
| | | |
|
||||||
| | | | | | | |
|
+--------------------+ +-------------------+
|
||||||
+--------+ +-------+ +--------+ +-------+
|
woker process cycle woker process cycle
|
||||||
woker loop: worker loop:
|
|
||||||
process handle process handle
|
|
||||||
cycle channel cycle channel
|
|
||||||
event event
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
- spawn primary worker firstly, and then wait for primary startup, continue to spawn secondary workers.
|
- spawn primary worker firstly, and then wait for primary startup, continue to spawn secondary workers.
|
||||||
|
|
||||||
- worker process has 2 threads. main thread: ff_init();ff_run(worker_process_cycle), channel thread: loop(handle channel event).
|
- a major addition to the worker process is fstack-handling:ff_init();ff_run(worker_process_cycle); worker_process_cycle(handle channel/host/fstack event).
|
||||||
|
|
||||||
|
- a new directive `kernel_network_stack` :
|
||||||
|
```
|
||||||
|
Syntax: kernel_network_stack on | off;
|
||||||
|
Default: kernel_network_stack off;
|
||||||
|
Context: http, server
|
||||||
|
This directive is available only when ```NGX_HAVE_FSTACK``` is defined.
|
||||||
|
Determines whether server should run on kernel network stack or fstack.
|
||||||
|
```
|
||||||
|
|
||||||
Note that:
|
Note that:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue