Skip to content

Conversation

bonzofenix
Copy link
Contributor

@bonzofenix bonzofenix commented May 16, 2025

This pull request introduces multiple changes across scripts, configuration files, and Makefiles to enhance scaling engine support, optimize resource allocation, and streamline configurations. Key updates include adding scaling engine modules and configurations, improving resource definitions, and modifying deployment scripts to accommodate larger memory and disk allocations.

Scaling Engine Support Enhancements:

  • Added scaling engine module definitions and configurations in build-extension-file.sh, including routes, health checks, and CF client credentials. [1] [2]
  • Updated Makefile to include scaling engine in modules and vendor changelogs. [1] [2]

Resource Allocation Optimization:

  • Increased memory and disk allocation for applications in deploy-multiapps-controller.sh and scale_out_cf_for_app-autoscaler.yaml. [1] [2]

Configuration Improvements:

  • Refactored configutil to add error handling for missing service configurations and support YAML parsing.
  • Replaced custom public API server configuration loading with a generic method in config.go. [1] [2]

Codebase Cleanup:

  • Removed unused scheduler and scaling engine instance groups in use-cf-services.yml.
  • Updated .gitignore and Makefile targets to streamline build processes and ignore unnecessary files. [1] [2]

These changes collectively enhance scalability, maintainability, and resource efficiency within the autoscaler project.

bonzofenix and others added 30 commits March 17, 2025 17:40
 - Update eventgenerator configuration to use pointers for optional structs and add JSON tags
 - Modify eventgenerator test suite to handle CF environment variables and dynamically set config
 - Adjust eventgenerator main.go to load and validate config with VCAP services support
 - Implement ToJSON method in config.go for marshaling configuration to JSON
 - Change environment variable keys in mta.tpl.yaml to uppercase and use placeholders for Go version
 • Introduce eventgenerator_health_password in build-extension-file.sh for event generator health checks.
 • Add eventgenerator-config resource with basic auth password in mta.tpl.yaml.
 • Implement configureMetricsCollectorTLS function in eventgenerator/config/config.go to load TLS configuration for the metrics collector from logcache-client.
 • Update eventgenerator unit tests to reflect new TLS configuration loading.
 • Remove scaling engine and metric collector TLS configs from default_config.json, streamline cf_server and db configurations.
 • Add logcache-client as a user-provided service in mta.tpl.yaml.
 - Introduce pool configuration to manage eventgenerator node count and index
 - Remove commented-out XFCC and route registration configurations
 - Implement instance index and space/org GUID retrieval in configutil
 - Adjust eventgenerator main.go to use new pool configuration
 - Update tests and default JSON config to reflect changes
…ting

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
… components

 • Eliminate syslog-client requirement from metricsforwarder module and related resources
 • Remove logcache-client dependency from eventgenerator and metricsforwarder modules
 • Delete configuration code for Metrics Collector TLS setup in eventgenerator
bonzofenix and others added 6 commits June 23, 2025 19:29
…nProcessorTest

 • Add support for client certificate and key in VCAP services
 • Prioritize sslcert over client_cert when both are present
 • Ensure proper credential mapping for database services
@bonzofenix bonzofenix force-pushed the 885-enable-scalingengine-via-mtar branch from 028ae79 to cb177b1 Compare June 23, 2025 18:38
@bonzofenix bonzofenix enabled auto-merge (squash) June 30, 2025 13:38
bonzofenix and others added 5 commits June 30, 2025 15:50
…gingLevel

 • Implement SetLoggingLevel method across multiple config structs to standardize logging level setting.
 • Refactor LoadConfig functions to utilize GenericLoadConfig for a more generic approach to loading configurations.
 • Change loadVcapConfig functions to LoadVcapConfig and adjust visibility to align with the new generic config loading pattern.
 • Introduce Configurable and VCAPConfigurable interfaces along with VCAPConfigurableFunc to facilitate the new generic loading mechanism.
Copy link

sonarqubecloud bot commented Jul 8, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
21.3% Duplication on New Code (required ≤ 3%)
E Security Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy-to-cf it tells that the PRs are related to deploy to cf migration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants