diff --git a/api/cogs/requests.py b/api/cogs/requests.py index b91fe93..aea7bcb 100644 --- a/api/cogs/requests.py +++ b/api/cogs/requests.py @@ -99,7 +99,7 @@ async def get_player_data(label_id: int, limit: int = 5000): async def get_hiscore_data(label_id: int, limit: int = 5000): - url = f"{config.private_api}/v2/highscore/latest" + url = f"{config.private_api}/v3/highscore/latest" params = {"player_id": 1, "label_id": label_id, "many": 1, "limit": limit} # Initialize a list to store hiscore data @@ -123,7 +123,7 @@ async def get_hiscore_data(label_id: int, limit: int = 5000): async def get_prediction_data(player_id: int = 0, limit: int = 0): - url = f"{config.private_api}/v2/highscore/latest" + url = f"{config.private_api}/v3/highscore/latest" params = {"player_id": player_id, "many": 1, "limit": limit} data = await retry_request(url=url, params=params) diff --git a/deployment/bd-ml-deployment.yml b/deployment/bd-ml-deployment.yml deleted file mode 100644 index 3fffc30..0000000 --- a/deployment/bd-ml-deployment.yml +++ /dev/null @@ -1,37 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: bd-ml -spec: - selector: - matchLabels: - app: bd-ml - replicas: 1 - template: - metadata: - name: bl-ml-app - labels: - app: bd-ml - spec: - volumes: - - name: nfs-volume - nfs: - server: 51.68.207.197 - path: /cluster/models - containers: - - name: bd-ml - image: hub.osrsbotdetector.com/bot-detector/bd-ml:latest - imagePullPolicy: Always - resources: - limits: - memory: "3000Mi" - cpu: "2000m" - requests: - cpu: 500m - ports: - - containerPort: 6532 - volumeMounts: - - name: nfs-volume - mountPath: /api/MachineLearning/models - imagePullSecrets: - - name: regcred diff --git a/deployment/bd-ml-scaler.yml b/deployment/bd-ml-scaler.yml deleted file mode 100644 index 987a758..0000000 --- a/deployment/bd-ml-scaler.yml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: autoscaling/v1 -kind: HorizontalPodAutoscaler -metadata: - name: bd-ml-hpa -spec: - maxReplicas: 1 # define max replica count - minReplicas: 1 # define min replica count - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: bl-ml-app - targetCPUUtilizationPercentage: 80 # target CPU utilization diff --git a/deployment/bd-ml-service.yml b/deployment/bd-ml-service.yml deleted file mode 100644 index 6588468..0000000 --- a/deployment/bd-ml-service.yml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: bd-ml-service -spec: - selector: - app: bd-ml - ports: - - protocol: "TCP" - port: 6532