-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
houspi
committed
Aug 2, 2018
1 parent
b739498
commit 45724c3
Showing
2 changed files
with
60 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
# PythonDaemon | ||
|
||
Python prefork TCP server | ||
|
||
fcgi-pm.py - TCP Server | ||
hello.py - external program for the fcgi-pm.py | ||
|
||
Example | ||
./fcgi-pm.py --count=4 --queue-size=100 --cgi="/home/www/fcgi/hello.py --param1=value1 --param2=value2" --daemon=Yes | ||
run <--count> workers, each worker process <--queue-size> requests and dies. | ||
Server restarts each died worker. | ||
|
||
Test with ab | ||
ab -c 5 -n 150 http://127.0.0.1:8888/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters