Skip to content

operator job from app-autoscaler/1.1.0

Github source: 92066ba or master branch

Properties

autoscaler

appmetrics_db

address

IP address on which the appmetricsdb server will listen

Default
postgres.service.cf.internal
databases

The list of databases used in appmetricsdb database including name

db_scheme

Database scheme to be used to access appmetricsdb

port

Port on which the appmetricsdb server will listen

roles

The list of database roles used in appmetricsdb database including name/password

appmetrics_db_connection_config

connection_max_lifetime
Default
60s
max_idle_connections
Default
10
max_open_connections
Default
100

cf

api

the Cloud Foundry API endpoint

client_id

the client id to log in cf

grant_type

the grant type to log in cf

secret

the secret to log in cf

skip_ssl_validation

Flag to skip ssl validation to connect to CC and UAA

Default
false

instancemetrics_db

address

IP address on which the instancemetricsdb server will listen

Default
postgres.service.cf.internal
databases

The list of databases used in instancemetricsdb database including name

db_scheme

Database scheme to be used to access instancemetricsdb

port

Port on which the instancemetricsdb server will listen

roles

The list of database roles used in instancemetricsdb database including name/password

instancemetrics_db_connection_config

connection_max_lifetime
Default
60s
max_idle_connections
Default
10
max_open_connections
Default
100

lock_db

address

IP address on which the lockdb server will listen

Default
postgres.service.cf.internal
databases

The list of databases used in lockdb database including name

db_scheme

Database scheme to be used to access lockdb

port

Port on which the lockdb server will listen

roles

The list of database roles used in lockdb database including name/password

lock_db_connection_config

connection_max_lifetime
Default
60s
max_idle_connections
Default
10
max_open_connections
Default
100

operator

app_metrics_db
cutoff_duration

the cutoff days when pruning appmetrics database

Default
48h
refresh_interval

the time interval to prune the appmetrics database

Default
24h
app_sync_interval

the time interval to sync applications

Default
24h
db_lock
retry_interval

lock db retry interval

Default
5s
ttl

database lock ttl

Default
15s
enable_db_lock

Enable database lock flag

Default
false
health
port

the listening port of health endpoint

Default
6208
http_client_timeout

Http client imeout for operator to communicate with other autoscaler components

Default
60s
instance_metrics_db
cutoff_duration

the cutoff days when pruning instancemetrics database

Default
24h
refresh_interval

the time interval to prune the instancemetrics database

Default
24h
lock
consul_cluster_config

consul cluster configuration

Default
http://127.0.0.1:8500
lock_retry_interval

consul lock retry interval

Default
10s
lock_ttl

consul lock ttl duration

Default
15s
logging
level

the leve of logging

Default
info
require_consul

whether to start consul agent

Default
true
scaling_engine
ca_cert

PEM-encoded CA certificate

client_cert

PEM-encoded client certificate

client_key

PEM-encoded client key

host

Host where the scaling engine is running

Default
scalingengine.service.cf.internal
port

Port where the scaling engine will listen

Default
6104
sync_interval

the time interval to synchronize the scaling engine active schedules

Default
600s
scaling_engine_db
cutoff_duration

the cutoff days when pruning scalingengine database

Default
240h
refresh_interval

the time interval to prune the scalingengine database

Default
24h
scheduler
ca_cert

PEM-encoded CA certificate

client_cert

PEM-encoded client certificate

client_key

PEM-encoded client key

host

Host where the scheduler is running

Default
autoscalerscheduler.service.cf.internal
port

Port where the scheduler will listen

Default
6102
sync_interval

the time interval to synchronize the schedules

Default
600s

policy_db

address

IP address on which the policydb server will listen

Default
postgres.service.cf.internal
databases

The list of databases used in policydb database including name

db_scheme

Database scheme to be used to access policydb

port

Port on which the policydb server will listen

roles

The list of database roles used in policydb database including name/password

policy_db_connection_config

connection_max_lifetime
Default
60s
max_idle_connections
Default
10
max_open_connections
Default
100

scalingengine_db

address

IP address on which the scalingenginedb server will listen

Default
postgres.service.cf.internal
databases

The list of databases used in scalingenginedb database including name

db_scheme

Database scheme to be used to access scalingenginedb

port

Port on which the scalingenginedb server will listen

roles

The list of database roles used in scalingenginedb database including name/password

scalingengine_db_connection_config

connection_max_lifetime
Default
60s
max_idle_connections
Default
10
max_open_connections
Default
100

Templates

Templates are rendered and placed onto corresponding instances during the deployment process. This job's templates will be placed into /var/vcap/jobs/operator/ directory (learn more).

  • bin/operator_ctl (from operator_ctl)
  • bin/pre-start (from pre-start.erb)
  • config/certs/scalingengine/ca.crt (from scalingengine_ca.crt.erb)
  • config/certs/scalingengine/client.crt (from scalingengine_client.crt.erb)
  • config/certs/scalingengine/client.key (from scalingengine_client.key.erb)
  • config/certs/scheduler/ca.crt (from scheduler_ca.crt.erb)
  • config/certs/scheduler/client.crt (from scheduler_client.crt.erb)
  • config/certs/scheduler/client.key (from scheduler_client.key.erb)
  • config/operator.yml (from operator.yml.erb)

Packages

Packages are compiled and placed onto corresponding instances during the deployment process. Packages will be placed into /var/vcap/packages/ directory.