Skip to content

servicebroker job from app-autoscaler/1.2.0

Github source: a550307 or master branch

Properties

autoscaler

binding_db

address

IP address on which the bindingdb server will listen

Default
autoscalerpostgres.service.cf.internal
databases

The list of databases used in bindingdb database including name

db_scheme

Database scheme to be used to access bindingdb

port

Port on which the bindingdb server will listen

roles

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

service_broker

api_server
ca_cert

PEM-encoded CA certificate

client_cert

PEM-encoded client certificate

client_key

PEM-encoded client key

host

Host where APIserver is running

Default
apiserver.service.cf.internal
port

Port where APIserver will listen

Default
6100
ca_cert

PEM-encoded CA certificate

catalog

The service broker catalog

Default
  services:
  - bindable: true
    description: Automatically increase or decrease the number of application instances
      based on a policy you define.
    id: autoscaler-guid
    name: autoscaler
    plans:
    - description: This is the free service plan for the Auto-Scaling service.
      id: autoscaler-free-plan-id
      name: autoscaler-free-plan
dashboard_redirect_uri

service dashboard redirect uri

Default
""
db_config
idle_timeout

The idle timeout for connections (seconds)

Default
1000
max_connections

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

Default
10
min_connections

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

Default
0
enable_custom_metrics

whether to enable custom metrics

Default
true
health
port

the listening port of health endpoint

Default
6201
hooks
post_start

Script to run after service_broker has started

Default
""
post_stop

Script to run after service_broker has stopped

Default
""
pre_start

Script to run before starting service_broker

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

Script to run before stopping service_broker

Default
""
http_request_timeout

The timeout for http request (milliseconds)

Default
60000
password

password to authenticate with service broker

port

Port where servicebroker internal server will run

Default
6107
publicPort

Port where servicebroker public server will run

Default
6101
public_ca_cert

PEM-encoded public CA certificate

public_server_cert

PEM-encoded public server certificate

public_server_key

PEM-encoded public server key

require_consul

whether to start consul agent

Default
true
server_cert

PEM-encoded server certificate

server_key

PEM-encoded server key

username

username to authenticate with service broker

Templates

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

  • 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/pre-start (from pre-start.erb)
  • bin/servicebroker (from servicebroker.erb)
  • config/catalog.json (from catalog.json.erb)
  • config/certs/apiserver/ca.crt (from apiserver_ca.crt.erb)
  • config/certs/apiserver/client.crt (from apiserver_client.crt.erb)
  • config/certs/apiserver/client.key (from apiserver_client.key.erb)
  • config/certs/servicebroker/ca.crt (from servicebroker_ca.crt.erb)
  • config/certs/servicebroker/public_ca.crt (from servicebroker_public_ca.crt.erb)
  • config/certs/servicebroker/public_server.crt (from servicebroker_public_server.crt.erb)
  • config/certs/servicebroker/public_server.key (from servicebroker_public_server.key.erb)
  • config/certs/servicebroker/server.crt (from servicebroker_server.crt.erb)
  • config/certs/servicebroker/server.key (from servicebroker_server.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.