Categorygithub.com/cloudfoundry/app-autoscaler-release
module
14.3.0+incompatible
Repository: https://github.com/cloudfoundry/app-autoscaler-release.git
Documentation: pkg.go.dev

# README

Application Autoscaler

The Application Autoscaler provides the capability to adjust the computation resources for Cloud Foundry applications through

  • dynamic scaling based on application performance metrics
  • dynamic scaling based on custom metrics
  • scheduled scaling based on time

Local Development

Prerequisites

Make Targets

TargetDescription
make generate-fakesgenerate mocks
make testrun unit-tests against PostgreSQL
make clean && make test POSTGRES_TAG=x.yrun unit-tests against specific PostgreSQL version
make test db_type=mysqlrun unit-tests against MySQL
make clean && make test db_type=mysql MYSQL_TAG=x.yrun unit-tests against specific MySQL version
make integrationrun integration-tests against PostgreSQL
make clean && make integration POSTGRES_TAG=x.yrun integration-tests against specific PostgreSQL version
make integration db_type=mysqlrun integration-tests against MySQL
make clean && make integration db_type=mysql MYSQL_TAG=x.yrun integration-tests against specific MySQL version
make acceptance-testsrun acceptance-tests, see AutoScaler UAT guide for details
make lintcheck code style
OPTS=--fix RUBOCOP_OPTS=-A make lintcheck code style and apply auto-fixes
make buildcompile project
make deploy-autoscalerdeploy Application Autoscaler and register the service broker in CF
make cleanremove build artifacts

Use Application Autoscaler Service

Refer to user guide for the details of how to use the Auto-Scaler service, including policy definition, supported metrics, public API specification and command line tool.

Monitor Microservices

The app-autoscaler provides a number of health endpoints that are available externally that can be used to check the state of each component. Each health endpoint is protected with basic auth (apart from the api server), the usernames are listed in the table below, but the passwords are available in credhub.

ComponentHealth URLUsernamePassword Key
eventgeneratorhttps://autoscaler-eventgenerator.((system_domain))/healtheventgenerator/autoscaler_eventgenerator_health_password
metricsforwarderhttps://autoscaler-metricsforwarder.((system_domain))/healthmetricsforwarder/autoscaler_metricsforwarder_health_password
scalingenginehttps://autoscaler-scalingengine.((system_domain))/healthscalingengine/autoscaler_scalingengine_health_password
operatorhttps://autoscaler-operator.((system_domain))/healthoperator/autoscaler_operator_health_password
schedulerhttps://autoscaler-scheduler.((system_domain))/healthscheduler/autoscaler_scheduler_health_password

These endpoints can be disabled by using the ops file example/operations/disable-basicauth-on-health-endpoints.yml

License

This project is released under version 2.0 of the Apache License.

# Packages

No description provided by the author