Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
f435da14
Unverified
Commit
f435da14
authored
Mar 10, 2026
by
Hongkuan Zhou
Committed by
GitHub
Mar 10, 2026
Browse files
fix: set correct component type in agg planner (#7176)
Signed-off-by:
hongkuanz
<
hongkuanz@nvidia.com
>
parent
b7224eb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
components/src/dynamo/planner/utils/agg_planner.py
components/src/dynamo/planner/utils/agg_planner.py
+1
-2
components/src/dynamo/planner/utils/planner_core.py
components/src/dynamo/planner/utils/planner_core.py
+4
-0
No files found.
components/src/dynamo/planner/utils/agg_planner.py
View file @
f435da14
...
@@ -64,9 +64,8 @@ class AggPlanner:
...
@@ -64,9 +64,8 @@ class AggPlanner:
shared_state
=
self
.
shared_state
,
shared_state
=
self
.
shared_state
,
prometheus_metrics
=
prometheus_metrics
,
prometheus_metrics
=
prometheus_metrics
,
start_prometheus_server
=
True
,
start_prometheus_server
=
True
,
component_type
=
SubComponentType
.
DECODE
,
)
)
# Override: agg planner uses component_type DECODE for metrics fetching
self
.
planner
.
component_type
=
SubComponentType
.
DECODE
# Create both regression models (agg needs both TTFT and ITL)
# Create both regression models (agg needs both TTFT and ITL)
self
.
ttft_regression
=
LoadBasedRegressionModel
(
self
.
ttft_regression
=
LoadBasedRegressionModel
(
...
...
components/src/dynamo/planner/utils/planner_core.py
View file @
f435da14
...
@@ -257,7 +257,11 @@ class BasePlanner:
...
@@ -257,7 +257,11 @@ class BasePlanner:
prometheus_engine_client
:
Optional
[
DirectRouterMetricsClient
]
=
None
,
prometheus_engine_client
:
Optional
[
DirectRouterMetricsClient
]
=
None
,
connector
=
None
,
connector
=
None
,
start_prometheus_server
:
bool
=
True
,
start_prometheus_server
:
bool
=
True
,
component_type
:
Optional
[
SubComponentType
]
=
None
,
):
):
if
component_type
is
not
None
:
self
.
component_type
=
component_type
self
.
config
=
config
self
.
config
=
config
self
.
dryrun
=
dryrun
self
.
dryrun
=
dryrun
self
.
shared_state
=
shared_state
or
PlannerSharedState
()
self
.
shared_state
=
shared_state
or
PlannerSharedState
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment