Skip to content

eventgenerator job from app-autoscaler/7.0.0

Github source: af928c35 or master branch

Properties

autoscaler

appmetrics_db

address

IP address on which the appmetricsdb server will listen

Default
autoscalerpostgres.service.cf.internal
databases

The list of databases used in appmetricsdb database including name

db_scheme

Database scheme to be used to access appmetricsdb

Default
postgres
port

Port on which the appmetricsdb server will listen

roles

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

sslmode

sslmode to connect to postgres server

Default
disable
tls
ca

PEM-encoded ca certificate of tls database server

Default
""

appmetrics_db_connection_config

connection_max_lifetime
Default
60s
max_idle_connections
Default
10
max_open_connections
Default
20

changeloglock_timeout_seconds

Liquibase changelog lock timeout duration in seconds

Default
180

eventgenerator

aggregator
aggregator_execute_interval

the time interval to aggregate metrics data

Default
40s
app_metric_channel_size

the size of appmetric channel

Default
1000
app_monitor_channel_size

the size of app monitor channel

Default
200
metric_cache_size_per_app

the size of metric cache size for each app

Default
300
metric_poller_count

the number of metrics poller

Default
20
policy_poller_interval

the time interval to poll policies

Default
60s
save_interval

the time interval to save appmetric to database

Default
5s
ca_cert

PEM-encoded CA certificate

circuitBreaker
back_off_initial_interval

Initial exponential back off interval

Default
5m
back_off_max_interval

Maximum exponential back off interval

Default
120m
consecutive_failure_count

Number of consecutive failure to trip the circuit down

Default
3
defaultBreachDurationSecs

Default value for breach_duration_secs

Default
120
defaultStatWindowSecs

Default value for stat_window_secs

Default
120
evaluator
evaluation_manager_execute_interval

the time interval to evaluate rules

Default
60s
evaluator_count

the number of evaluators

Default
20
trigger_array_channel_size

the size of the trigger array channel

Default
200
health
password

the password for the health endpoint

Default
""
port

the listening port of health endpoint

Default
6204
username

the username for the health endpoint

Default
""
hooks
post_start

Script to run after eventgenerator has started

Default
""
post_stop

Script to run after eventgenerator has stopped

Default
""
pre_start

Script to run before starting eventgenerator

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

Script to run before stopping eventgenerator

Default
""
http_client_timeout

Http client imeout for eventgenerator to communicate with other autoscaler components

Default
60s
logging
level

the level of logging

Default
info
metricscollector
ca_cert

PEM-encoded CA certificate

client_cert

PEM-encoded client certificate

client_key

PEM-encoded client key

host

Host where the metrics collector is running

Default
metricscollector.service.cf.internal
port

Port where the metrics collector will listen

Default
6103
use_log_cache

Uses log cache instead of metric server

Default
false
require_consul

whether to start consul agent

Default
false
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
server
port

the listening port of server

Default
6105
server_cert

PEM-encoded server certificate

server_key

PEM-encoded server key

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

Default
postgres
port

Port on which the policydb server will listen

roles

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

sslmode

sslmode to connect to postgres server

Default
disable
tls
ca

PEM-encoded ca certificate of tls database server

Default
""

policy_db_connection_config

connection_max_lifetime
Default
60s
max_idle_connections
Default
10
max_open_connections
Default
20

Templates

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

  • bin/eventgenerator_ctl (from eventgenerator_ctl)
  • 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/liquibase.properties (from liquibase.properties)
  • bin/pre-start (from pre-start.erb)
  • config/certs/appmetrics_db/ca.crt (from appmetrics_db_ca.crt.erb)
  • config/certs/eventgenerator/ca.crt (from eventgenerator_ca.crt.erb)
  • config/certs/eventgenerator/server.crt (from eventgenerator_server.crt.erb)
  • config/certs/eventgenerator/server.key (from eventgenerator_server.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/policy_db/ca.crt (from policy_db_ca.crt.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/eventgenerator.yml (from eventgenerator.yml.erb)

Packages

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