@@ -1760,14 +1760,14 @@ def _cmd_setup_server(command, args, options):
17601760 if options ['max_clients' ] is not None :
17611761 max_clients = max (options ['max_clients' ], max_clients )
17621762 else :
1763- max_clients = int (1.5 * max_clients )
1763+ max_clients = 10 + max ( 10 , int (1.5 * max_clients ) )
17641764
17651765 initial_workers = options ['initial_workers' ]
17661766 min_spare_workers = options ['minimum_spare_workers' ]
17671767 max_spare_workers = options ['maximum_spare_workers' ]
17681768
17691769 if initial_workers is None :
1770- prefork_initial_workers = 0.02
1770+ prefork_initial_workers = 0.05
17711771 else :
17721772 prefork_initial_workers = initial_workers
17731773
@@ -1777,7 +1777,7 @@ def _cmd_setup_server(command, args, options):
17771777 prefork_min_spare_workers = min_spare_workers
17781778
17791779 if max_spare_workers is None :
1780- prefork_max_spare_workers = 0.05
1780+ prefork_max_spare_workers = 0.1
17811781 else :
17821782 prefork_max_spare_workers = max_spare_workers
17831783
@@ -1807,11 +1807,11 @@ def _cmd_setup_server(command, args, options):
18071807
18081808 options ['worker_max_clients' ] = max_clients
18091809
1810- if max_clients > 25 :
1810+ if max_clients > 20 :
18111811 options ['worker_threads_per_child' ] = int (max_clients /
1812- (int (max_clients / 25 ) + 1 ))
1812+ (int (max_clients / 20 ) + 1 ))
18131813 else :
1814- options ['worker_threads_per_child' ] = max_clients
1814+ options ['worker_threads_per_child' ] = 10
18151815
18161816 options ['worker_thread_limit' ] = options ['worker_threads_per_child' ]
18171817
0 commit comments