fix: adjust gunicorn.conf.py
continuous-integration/drone/push Build is passing Details

This commit is contained in:
BryantHe 2023-10-24 17:46:51 +08:00
parent 2ae347676c
commit 3624b7599a
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,8 @@
import socket import socket
import os import os
import platform import platform
import time
import psutil import psutil
from apiflask import APIBlueprint from apiflask import APIBlueprint
@ -114,6 +116,7 @@ def get_image_presign_url(query_data):
@api.get('/hello') @api.get('/hello')
def hello(): def hello():
time.sleep(2)
result_one = f'我是您的专属接口提供服务器:' result_one = f'我是您的专属接口提供服务器:'
result_two = f'我的机器参数如下' result_two = f'我的机器参数如下'
result_three = f'操作系统:{platform.system()}' result_three = f'操作系统:{platform.system()}'

View File

@ -10,7 +10,7 @@ worker_class = 'gevent'
# 设置最大并发量 # 设置最大并发量
daemon = False daemon = False
debug = False debug = False
worker_connections = 2000 worker_connections = 3000
workers = multiprocessing.cpu_count() * 2 + 1 workers = multiprocessing.cpu_count() * 2 + 1
# 指定每个工作者的线程数 # 指定每个工作者的线程数