Skip to content

cc_route_syncer job from capi/1.96.0

The Cloud Controller route bulk syncer periodically notifies Copilot of routes and route mappings. Only a single instance of this job is necessary.

Github source: bc58e73d or master branch

Properties

cc

database_encryption

current_key_label

Current key label for encrypting values in the CC database

Default
""
keys

Label-key pairs for encrypting sensitive values in the CC database; labels must be < 256 characters long

Default
{}

db_encryption_key

Key for encrypting sensitive values in the CC database

Default
""

db_logging_level

Level at which CC database operations will be logged if cc.log_db_queries is set to true.

Default
debug2

internal_route_vip_range

The IPv4 CIDR range of virtual IP addresses to be assigned to routes on internal domains.

log_db_queries

Log database queries. WARNING: Setting this to true with cc.db_logging_level >= cc.logging_level will log all field values, including encrypted secrets.

Default
false

logging_level

Log level for CC. Valid levels are listed here: https://github.com/cloudfoundry/steno#log-levels.

Default
info

logging_max_retries

Passthru value for Steno logger

Default
1

thresholds

api
alert_if_above_mb

The CC will alert if memory remains above this threshold for 3 monit cycles

Default
3500
restart_if_above_mb

The CC will restart if memory remains above this threshold for 3 monit cycles

Default
3750
restart_if_consistently_above_mb

The CC will restart if memory remains above this threshold for 15 monit cycles

Default
3500

ccdb

address

The address of the database server

ca_cert

The ca cert to use when communicating with the database over SSL

connection_validation_timeout

The period in seconds after which idle connections are validated, passed directly to the Sequel gem - see http://sequel.jeremyevans.net/rdoc-plugins/files/lib/sequel/extensions/connection_validator_rb.html for details. Note that setting this to -1 results in an additional query whenever connections are checked out from the pool, which can have performance implications

Default
3600

databases

Contains the name of the database on the database server

db_scheme

The type of database being used. mysql or postgres

Default
postgres

max_connections

Maximum connections for Sequel

Default
25

max_migration_duration_in_minutes

the maximum time migrations should be allowed to run before job startup should error

Default
20160

pool_timeout

The timeout for Sequel pooled connections

Default
10

port

The port of the database server

read_timeout

The read timeout in seconds for query responses, passed directly to the Sequel gem - see https://github.com/jeremyevans/sequel/blob/master/doc/opening_databases.rdoc for details

Default
3600

roles

Users to create on the database when seeding

ssl_verify_hostname

Verify that the database SSL certificate matches the host to which the connection is attempted

Default
true

copilot

sync_frequency_in_seconds

How often to synchronize CC routes with Copilot

Default
30

Templates

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

  • bin/cc_route_syncer (from bin/cc_route_syncer.erb)
  • bin/cc_route_syncer_ctl (from cc_route_syncer_ctl.erb)
  • bin/console (from console.erb)
  • bin/drain (from drain.sh.erb)
  • bin/post-start (from post-start.sh.erb)
  • bin/pre-start (from pre-start.sh.erb)
  • bin/ruby_version.sh (from ruby_version.sh.erb)
  • config/bpm.yml (from bpm.yml.erb)
  • config/certs/copilot.crt (from copilot.crt.erb)
  • config/certs/copilot.key (from copilot.key.erb)
  • config/certs/copilot_ca.crt (from copilot_ca.crt.erb)
  • config/certs/db_ca.crt (from db_ca.crt.erb)
  • config/cloud_controller_ng.yml (from cloud_controller_ng.yml.erb)

Packages

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