lower workers on smaller instances

This commit is contained in:
wh1te909 2024-07-01 19:05:55 +00:00
parent a1669a5104
commit 2667cdb26c
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ class Command(BaseCommand):
try:
ram = math.ceil(psutil.virtual_memory().total / (1024**3))
if ram <= 2:
max_requests = 30
max_workers = 10
max_requests = 15
max_workers = 6
elif ram <= 4:
max_requests = 75
max_workers = 20