samarth upadhyay commited on
Update start.sh
Browse files
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 (
|
| 44 |
echo "Starting Gunicorn..."
|
| 45 |
-
# -w 4: Use 4 worker processes (
|
| 46 |
-
# -
|
| 47 |
-
#
|
| 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
|