Skip to content
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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TSDB estimate batch size dynamically and update OWID data #262

Merged
merged 3 commits into from
Jan 11, 2025

Conversation

mahendrapaipuri
Copy link
Owner

Closes #103

* Define a new struct Settings for TSDB package that contains more relevant TSDB config params

* Use query max samples, duration and scrape interval to estimate a safe batch size for TSDB queries

Signed-off-by: Mahendra Paipuri <[email protected]>
* Support configuring emission sources in collector. This allows users to disable certain providers if they do not wish to use them (for example RTE eCO2 which is only for France)

* Return error when atleast one provider fails to instantiate. This can happen when electricity maps provider can fail due to network issues when fetching zones. Without this the providers fail silently losing data in real time

Signed-off-by: Mahendra Paipuri <[email protected]>
* This helps us to find the default config for each config section for API server.

* Use a date for last update time in config and support special value `today`

* Update docs

Signed-off-by: Mahendra Paipuri <[email protected]>
@mahendrapaipuri mahendrapaipuri added enhancement New feature or request maintenance General maintenance labels Jan 11, 2025
@mahendrapaipuri mahendrapaipuri merged commit 7f1324c into main Jan 11, 2025
15 checks passed
@mahendrapaipuri mahendrapaipuri deleted the dynamic_batching_tsdb branch January 11, 2025 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request maintenance General maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adjust query batch size in TSDB updater dynamically
1 participant