Skip to content

Commit c596f22

Browse files
Anirudh RajagopalanAnirudh Rajagopalan
authored andcommitted
update
1 parent fcf3c9e commit c596f22

5 files changed

Lines changed: 5815 additions & 2 deletions

File tree

deploy/controller-deployment.yaml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ spec:
1717
containers:
1818
- name: controller
1919
image: anirudhr120100/csci555-predictive-autoscaler:latest
20+
env:
21+
- name: TRAFFIC_FILE_PATH
22+
value: "/data/traffic_1_interval.json"
2023
resources:
2124
requests:
2225
memory: "128Mi"
@@ -26,11 +29,17 @@ spec:
2629
cpu: "200m"
2730
volumeMounts:
2831
- name: historical-data
29-
mountPath: /data
32+
mountPath: "/data"
33+
- name: traffic-data
34+
mountPath: "/data/traffic_1_interval.json"
35+
subPath: "traffic_1_interval.json"
3036
volumes:
3137
- name: historical-data
3238
persistentVolumeClaim:
3339
claimName: historical-data-pvc
40+
- name: traffic-data
41+
configMap:
42+
name: traffic-data-configmap
3443
---
3544
apiVersion: v1
3645
kind: PersistentVolumeClaim
@@ -43,3 +52,13 @@ spec:
4352
requests:
4453
storage: 1Gi
4554
---
55+
apiVersion: v1
56+
kind: ConfigMap
57+
metadata:
58+
name: traffic-data-configmap
59+
data:
60+
traffic_1_interval.json: |
61+
{
62+
"data": []
63+
}
64+
---

deploy/predictive-autoscaler-instance.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ spec:
1010
historyRetentionDays: 7
1111
updateInterval: 5 # minutes
1212
# predictionWindowMinutes: 10 # Deprecated
13-
predictionWindowSeconds: 15 # Using seconds for finer-grained predictions
13+
predictionWindowSeconds: 180 # 3 minutes (180 seconds) for predictions
1414
historicalWeight: 0.7
1515
currentWeight: 0.3
1616
---

deploy/traffic-data-configmap.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: traffic-data-configmap
5+
binaryData:
6+
traffic_1_interval.json: |-
7+
{{ .Files.Get "traffic_1_interval.json" | b64enc }}

0 commit comments

Comments
 (0)