Skip to content

Commit

Permalink
[Python] Flask: delete repeated tests (#8183)
Browse files Browse the repository at this point in the history
Issue #8178
  • Loading branch information
remittor committed May 2, 2023
1 parent 968649c commit 7b354da
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
1 change: 1 addition & 0 deletions frameworks/Python/flask/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ def run_app():
import fastwsgi
response_server = "FastWSGI"
response_add_date = False
fastwsgi.server.backlog = 4096
fastwsgi.run(app, host=opt.host, port=opt.port, loglevel=opt.verbose)

if opt.server == 'socketify':
Expand Down
4 changes: 0 additions & 4 deletions frameworks/Python/flask/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@
"tags": [ ]
},
"raw": {
"json_url": "/json-raw",
"db_url": "/db-raw",
"query_url": "/query-raw?queries=",
"fortune_url": "/fortunes-raw",
"update_url": "/updates-raw?queries=",
"plaintext_url": "/plaintext",
"port": 8080,
"approach": "Realistic",
"classification": "Micro",
Expand Down Expand Up @@ -112,12 +110,10 @@
"tags": ["broken"]
},
"pypy-raw": {
"json_url": "/json-raw",
"db_url": "/db-raw",
"query_url": "/query-raw?queries=",
"fortune_url": "/fortunes-raw",
"update_url": "/updates-raw?queries=",
"plaintext_url": "/plaintext",
"port": 8080,
"approach": "Realistic",
"classification": "Micro",
Expand Down
4 changes: 2 additions & 2 deletions frameworks/Python/flask/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ error_log stderr error;
events {
# This needed to be increased because the nginx error log said so.
# http://nginx.org/en/docs/ngx_core_module.html#worker_connections
worker_connections 4095;
worker_connections 65535;
multi_accept on;
}

Expand Down Expand Up @@ -37,7 +37,7 @@ http {
# http://nginx.org/en/docs/http/ngx_http_core_module.html#listen
# http://www.techrepublic.com/article/take-advantage-of-tcp-ip-options-to-optimize-data-transmission/
# The backlog argument to listen() is set to match net.ipv4.tcp_max_syn_backlog and net.core.somaxconn
listen 8080 default_server deferred reuseport backlog=4095;
listen 8080 default_server deferred reuseport backlog=65535;
server_name localhost;

location / {
Expand Down
2 changes: 1 addition & 1 deletion frameworks/Python/flask/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
master
; Increase listen queue used for nginx connecting to uWSGI. This matches
; net.ipv4.tcp_max_syn_backlog and net.core.somaxconn.
listen = 4096
listen = 16384
; for performance
disable-logging
; use UNIX sockets instead of TCP loopback for performance
Expand Down

0 comments on commit 7b354da

Please sign in to comment.