Repository navigation
fix(asap-tools): let long-window baseline queries finish #861
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,12 @@ | |
|
|
||
| from .base import BaseService | ||
| from experiment_utils.providers.base import InfrastructureProvider | ||
| from constants import PROMETHEUS_CONFIG_DIR, PROMETHEUS_CONFIG_FILE | ||
| from constants import ( | ||
| PROMETHEUS_CONFIG_DIR, | ||
| PROMETHEUS_CONFIG_FILE, | ||
| PROMETHEUS_QUERY_MAX_SAMPLES, | ||
| PROMETHEUS_QUERY_TIMEOUT, | ||
| ) | ||
|
|
||
|
|
||
| class PrometheusService(BaseService): | ||
|
|
@@ -89,7 +94,12 @@ def _start_prometheus(self, experiment_output_dir: str) -> None: | |
| time.sleep(3) | ||
|
|
||
| # Start prometheus | ||
| cmd = f"./prometheus --config.file={PROMETHEUS_CONFIG_FILE} > /dev/null 2>&1 < /dev/null &" | ||
| cmd = ( | ||
| f"./prometheus --config.file={PROMETHEUS_CONFIG_FILE}" | ||
| f" --query.timeout={PROMETHEUS_QUERY_TIMEOUT}" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Raising |
||
| f" --query.max-samples={PROMETHEUS_QUERY_MAX_SAMPLES}" | ||
| " > /dev/null 2>&1 < /dev/null &" | ||
| ) | ||
| self.provider.execute_command( | ||
| node_idx=self.node_offset, | ||
| cmd=cmd, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly, VictoriaMetrics has per-query limits besides duration:
-search.maxPointsPerTimeseries(default 30000),-search.maxSamplesPerSeries,-search.maxSamplesPerQuery,-search.maxUniqueTimeseries. Long-window/many-series queries can be rejected with a limit-exceeded error, so the 6h/24h baselines could still fail.