crowbar/crowbar-openstack

View on GitHub
chef/cookbooks/monasca/templates/default/monasca-persister-java.yaml.erb

Summary

Maintainability
Test Coverage
name: monasca-persister

alarmHistoryConfiguration:
  batchSize: 100
  commitBatchTime: 10000
  numThreads: 1
  maxBatchTime: 15
# See http://kafka.apache.org/documentation.html#api for semantics and defaults.
  topic: alarm-state-transitions
  groupId: 1_alarm-state-transitions
  consumerId: monasca-persister
  clientId : 1

metricConfiguration:
  batchSize: 100
  commitBatchTime: 10000
  numThreads: 1
  maxBatchTime: 15
# See http://kafka.apache.org/documentation.html#api for semantics and defaults.
  topic: metrics
  groupId: 1_metrics
  consumerId: monasca-persister
  clientId : 1

#Kafka settings.
kafkaConfig:
# See http://kafka.apache.org/documentation.html#api for semantics and defaults.
  zookeeperConnect: <%= @zookeeper_host %>:<%= node[:monasca][:zookeeper][:client_port] %>
  socketTimeoutMs: 30000
  socketReceiveBufferBytes : 65536
  fetchMessageMaxBytes: 1048576
  queuedMaxMessageChunks: 10
  rebalanceMaxRetries: 4
  fetchMinBytes:  1
  fetchWaitMaxMs:  100
  rebalanceBackoffMs: 2000
  refreshLeaderBackoffMs: 200
  autoOffsetReset: largest
  consumerTimeoutMs:  1000
  zookeeperSessionTimeoutMs : 60000
  zookeeperConnectionTimeoutMs : 60000
  zookeeperSyncTimeMs: 2000

verticaMetricRepoConfig:
  maxCacheSize: 2000000

databaseConfiguration:
# cassandra | influxdb
  databaseType: cassandra

cassandraDbConfiguration:
  # Retention policy may be left blank to indicate default policy.
  contactPoints:
  <% for @item in @cassandra_hosts.split(%r{,\s*}) %>
    - <%= @item %>
  <% end %>
  consistencyLevel: ONE
  port: <%= node['monasca']['cassandra']['client_port']%>
  user: <%= node['monasca']['cassandra']['monasca_persister_role']%>
  password: <%= node['monasca']['cassandra']['admin_password']%>
  keyspace: monasca
  localDataCenter: datacenter1
  maxConnections: 5
  maxRequests: 2048
  # socket time out in milliseconds when creating a new connection
  connectionTimeout: 5000
  # how long the driver waits for a response from server. Must be
  # longer than the server side timeouts in the cassandra.yaml
  readTimeout: 60000

metrics:
  frequency: 1 second


# Logging settings.
logging:

  # The default level of all loggers. Can be OFF, ERROR, WARN, INFO,
  # DEBUG, TRACE, or ALL.
  level: INFO

  # Logger-specific levels.
  loggers:

    # Sets the level for 'com.example.app' to DEBUG.
      com.example.app: DEBUG
    # com.hpcloud: debug
    # com.hpcloud.mon.persister.repository: DEBUG

  appenders:

    - type: file
      threshold: INFO
      archive: true
      currentLogFilename: "/var/log/monasca-persister/monasca-persister.log"
      archivedLogFilenamePattern: "/var/log/monasca-persister/monasca-persister.log-%d.log.gz"
      archivedFileCount: 5
      # The timezone used to format dates. HINT: USE THE DEFAULT, UTC.
      timeZone: UTC

server:
  applicationConnectors:
    - type: http
      port: 8090
  adminConnectors:
    - type: http
      port: 8091