-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
66 lines (64 loc) · 1.61 KB
/
render.yaml
File metadata and controls
66 lines (64 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
services:
# Frontend Service
- type: web
name: vmm-frontend
env: node
plan: free
buildCommand: cd frontend && npm install && npm run build
startCommand: cd frontend && npm run preview -- --port $PORT --host 0.0.0.0
envVars:
- key: NODE_ENV
value: production
- key: VITE_BACKEND_URL
fromService:
type: web
name: vmm-backend
property: host
# Backend API Service
- type: web
name: vmm-backend
env: docker
plan: free
dockerfilePath: ./backend/Dockerfile
envVars:
- key: BACKEND_PORT
value: 8080
- key: BACKEND_HOST
value: 0.0.0.0
- key: PREDICTOR_URL
fromService:
type: web
name: vmm-predictor
property: host
- key: VMM_TOTAL_FRAMES
value: 256
- key: VMM_PAGE_SIZE
value: 4096
- key: VMM_TOTAL_PAGES
value: 1024
- key: VMM_REPLACEMENT_POLICY
value: CLOCK
- key: VMM_ENABLE_AI
value: true
- key: LOG_LEVEL
value: INFO
# AI Predictor Service
- type: web
name: vmm-predictor
env: python
plan: free
buildCommand: pip install -r predictor/requirements.txt
startCommand: cd predictor && python -m uvicorn predictor.service:app --host 0.0.0.0 --port $PORT
envVars:
- key: PREDICTOR_HOST
value: 0.0.0.0
- key: PREDICTOR_PORT
value: 5000
- key: LOG_LEVEL
value: INFO
- key: MODEL_PATH
value: model.pkl
- key: AI_MODEL_TYPE
value: xgboost
- key: AI_PREDICTION_THRESHOLD
value: 0.7