samarth upadhyay commited on
Commit
86b5216
·
verified ·
1 Parent(s): 0e20d87

Update start.sh

Browse files
Files changed (1) hide show
  1. start.sh +5 -5
start.sh CHANGED
@@ -40,9 +40,9 @@ mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'playground'@'localhost';"
40
  mysql -e "FLUSH PRIVILEGES;"
41
 
42
 
43
- # --- 3. Start Gunicorn Server (Parallel Workers) ---
44
  echo "Starting Gunicorn..."
45
- # -w 4: Use 4 worker processes (handles 4 requests at once)
46
- # -b 0.0.0.0:7860: Bind to the Hugging Face port
47
- # --timeout 30: Allow longer queries if needed
48
- exec gunicorn -w 4 -b 0.0.0.0:7860 app:app
 
40
  mysql -e "FLUSH PRIVILEGES;"
41
 
42
 
43
+ # --- 3. Start Gunicorn Server (High Concurrency) ---
44
  echo "Starting Gunicorn..."
45
+ # -w 4: Use 4 worker processes (Good for the 2 vCPU free tier)
46
+ # --threads 4: Allow each worker to handle 4 requests at once (Good for I/O tasks like SQL)
47
+ # Total Concurrency: 16 simultaneous requests
48
+ exec gunicorn -w 4 --threads 4 -b 0.0.0.0:7860 app:app