Resync
Resource Sync (resync) synchronizes PowerOps configuration files with CDF through the powerops CLI.
resync generates toolkit files that can be used for detailed diffs before deployment.
Since toolkit does not automatically identify stale objects for deletion, resync purge can delete nodes and edges not defined in generated toolkit files.
Configuration Files
resync uses three main configuration layers:
- Resync configuration General settings (for example, working directory, model versions, spaces).
- Data model configuration (optional) Type-level extraction rules shared by groups of instances.
- Data model population files Instance-level values and references.
Commonly used object types include:
market_configurationprice_area_informationbid_configuration_day_aheadwater_value_based_partial_bid_configurationshop_based_partial_bid_configurationgeneratorplant_informationshop_attribute_mappingshop_commandsshop_modelshop_scenarioshop_scenario_set
References in Population Files
References support multiple patterns:
[external_id]...for exact external ID references.[name]...to resolve references from expected type + name.[name|type:DataModelType]...when type must be explicit.
This is especially useful when linking configurations across models (for example market config, scenarios, and partial bid configurations).
Usage
powerops --help
powerops pre-build power_ops_config.yaml resync/configuration.yaml
powerops purge power_ops_config.yaml resync/configuration.yaml --dry-run
powerops purge power_ops_config.yaml resync/configuration.yaml
Recommended flow:
- Generate toolkit files (
pre-build) - Review diff via toolkit
- Run purge in dry-run mode
- Execute purge when dry-run output is validated
Known Limitations
- Some bid-generation paths require explicit
connection_lossesvalues. - Some extraction logic requires
from_typeandto_typeto resolve generator/plant connections. - Generators and plants must currently be listed explicitly in configuration.