Skip to content

Commit

Permalink
enable orchestrator (#3477)
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegoodier authored Jun 17, 2024
1 parent 130a054 commit 56c93c8
Showing 1 changed file with 7 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -880,27 +880,13 @@ data:
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /model/debug/orchestrator {
default_type 'application/json';
add_header 'Access-Control-Allow-Origin' '*' always;
add_header 'Access-Control-Allow-Methods' 'GET, PUT, POST, DELETE, OPTIONS' always;
return 200 '{
\"fsmCurrent\": \"ingesting\",
\"dbReadMemLimit\": \"\",
\"readDBPath\": \"/var/configs/waterfowl/duckdb/v0_10_3/kubecost-1718644669.duckdb.read\",
\"writeDBPath\": \"/var/configs/waterfowl/duckdb/v0_10_3/kubecost.duckdb.write\",
\"dbCopyFilePath\": \"/var/configs/waterfowl/duckdb/v0_10_3/kubecost.duckdb.copy\",
\"currentBucketRefreshInterval\": \"7m30s\",
\"bootCyclesCompleted\": 4,
\"initialCompletionPercentage\": 0,
\"initialSetupStage\": 1,
\"initialSetupLabel\": \"stable\",
\"ingestedDurationHours\": 0,
\"ingestedGiB\": 0,
\"ingestedGiBPerHour\": 0,
\"pendingGiB\": 0,
\"estimatedIngestionHoursRemaining\": 0
}';
location = /model/debug/orchestrator {
proxy_read_timeout {{ .Values.kubecostFrontend.timeoutSeconds | default 300 }};
proxy_pass http://aggregator/debug/orchestrator;
proxy_redirect off;
proxy_set_header Connection "";
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location = /model/prediction/speccost {
proxy_read_timeout {{ .Values.kubecostFrontend.timeoutSeconds | default 300 }};
Expand Down

0 comments on commit 56c93c8

Please sign in to comment.