Skip to content

apiserver job from app-autoscaler/1.2.0

Github source: a550307 or master branch

Properties

autoscaler

api_server

ca_cert

PEM-encoded CA certificate

cache_ttl

The TTL of credential cache in seconds

Default
600
db_config
idle_timeout

The idle timeout for connections (seconds)

Default
"1000"
max_connections

Maximum number of connections that may be held in the apiserver db pool

Default
"10"
min_connections

Minimum number of connections that should be held in the apiserver db pool

Default
"0"
eventgenerator
ca_cert

PEM-encoded CA certificate

client_cert

PEM-encoded client certificate

client_key

PEM-encoded client key

host

Host where eventGenerator is running

Default
eventgenerator.service.cf.internal
port

Port where eventGenerator will listen

Default
6105
health
port

the listening port of health endpoint

Default
6201
hooks
post_start

Script to run after api_server has started

Default
""
post_stop

Script to run after api_server has stopped

Default
""
pre_start

Script to run before starting api_server

Default
""
Example
|+
  #!/bin/bash
  echo "Going to start api_server"
  echo "api_server data directory is ${DATA_DIR}"
  echo "api_server port is ${PORT}"
  echo "api_server directory is ${PACKAGE_DIR}"
pre_stop

Script to run before stopping api_server

Default
""
http_client_timeout

Http client imeout for apiserver to communicate with other autoscaler components, in milliseconds

Default
60000
info
build

Autoscaler application build number

Default
1.1.0
description

Autoscaler application short description

Default
  Automatically increase or decrease the number of application instances based on a
    policy you define.
name

Name of the autoscaler application to be shown in /info path

Default
Autoscaler
support_url

Autoscaler application support page URL

Default
https://github.com/cloudfoundry-incubator/app-autoscaler
metrics_collector
ca_cert

PEM-encoded CA certificate

client_cert

PEM-encoded client certificate

client_key

PEM-encoded client key

host

Host where metricsCollector is running

Default
metricscollector.service.cf.internal
port

Port where metricsCollector will listen

Default
6103
port

Port where APIServer will run

Default
6101
publicPort

Port where APIServer public api will run

Default
6106
public_ca_cert

PEM-encoded CA certificate for public api

public_server_cert

PEM-encoded server certificate for public api

public_server_key

PEM-encoded server key for public api

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 scalingengine is running

Default
scalingengine.service.cf.internal
port

Port where scalingengine will listen

Default
6104
scheduler
ca_cert

PEM-encoded CA certificate

client_cert

PEM-encoded client certificate

client_key

PEM-encoded client key

host

Host where scheduler is running

Default
autoscalerscheduler.service.cf.internal
port

Port where scheduler will listen

Default
6102
server_cert

PEM-encoded server certificate

server_key

PEM-encoded server key

service_broker
ca_cert

PEM-encoded CA certificate

client_cert

PEM-encoded client certificate

client_key

PEM-encoded client key

host

Host where serviceBroker is running

Default
servicebroker.service.cf.internal
port

Port where serviceBroker will listen

Default
6107
service_offering_enabled

the offering approach of auto-scaler

Default
true

cf

api

the Cloud Foundry API endpoint

client_id

the client id 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

policy_db

address

IP address on which the policydb server will listen

Default
autoscalerpostgres.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

Templates

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

  • bin/apiserver (from apiserver.erb)
  • bin/dns_health_check (from dns_health_check.erb)
  • bin/hooks/post-start.sh (from hooks/post-start.sh.erb)
  • bin/hooks/post-stop.sh (from hooks/post-stop.sh.erb)
  • bin/hooks/pre-start.sh (from hooks/pre-start.sh.erb)
  • bin/hooks/pre-stop.sh (from hooks/pre-stop.sh.erb)
  • bin/info.json (from info.json.erb)
  • bin/pre-start (from pre-start.erb)
  • config/certs/apiserver/ca.crt (from apiserver_ca.crt.erb)
  • config/certs/apiserver/public_ca.crt (from apiserver_public_ca.crt.erb)
  • config/certs/apiserver/public_server.crt (from apiserver_public_server.crt.erb)
  • config/certs/apiserver/public_server.key (from apiserver_public_server.key.erb)
  • config/certs/apiserver/server.crt (from apiserver_server.crt.erb)
  • config/certs/apiserver/server.key (from apiserver_server.key.erb)
  • config/certs/eventgenerator/ca.crt (from eventgenerator_ca.crt.erb)
  • config/certs/eventgenerator/client.crt (from eventgenerator_client.crt.erb)
  • config/certs/eventgenerator/client.key (from eventgenerator_client.key.erb)
  • config/certs/metricscollector/ca.crt (from metricscollector_ca.crt.erb)
  • config/certs/metricscollector/client.crt (from metricscollector_client.crt.erb)
  • config/certs/metricscollector/client.key (from metricscollector_client.key.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/certs/servicebroker/ca.crt (from servicebroker_ca.crt.erb)
  • config/certs/servicebroker/client.crt (from servicebroker_client.crt.erb)
  • config/certs/servicebroker/client.key (from servicebroker_client.key.erb)
  • config/config.json (from config.json.erb)

Packages

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