forked from Sagarpatel9/malware-scanning-website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.yml
More file actions
24 lines (19 loc) · 921 Bytes
/
app.yml
File metadata and controls
24 lines (19 loc) · 921 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Specifies the runtime environment (Python 3.9 or 3.11 depending on your preference)
runtime: python39
# Command to start the app using Gunicorn
entrypoint: gunicorn -b :$PORT main:app
# Instance class (F1 is the smallest and cheapest for a simple app)
instance_class: F1
# Scaling settings to manage traffic
automatic_scaling:
target_cpu_utilization: 0.65 # Scale up when CPU usage exceeds 65%
min_instances: 1 # Keep at least 1 instance running
max_instances: 10 # Allow up to 10 instances for high traffic
target_throughput_utilization: 0.6 # Scale based on request throughput
# Optional: Environment variables (if your app needs them)
env_variables:
FLASK_ENV: "production" # Example: Set Flask to production mode
# Optional: Handlers for static files (if you add static assets later)
handlers:
- url: /.*
script: auto # Let App Engine handle routing to your Flask app