Skip to content

Instantly share code, notes, and snippets.

@emedina
Created November 27, 2014 10:47
Show Gist options
  • Save emedina/486b52f11bc146203534 to your computer and use it in GitHub Desktop.
Save emedina/486b52f11bc146203534 to your computer and use it in GitHub Desktop.
# XD Configuration file
# You can set properties here to override the default which
# are set in the application.yml file loaded by Spring Boot.
#
# Properties set in here will take precedence.
#
# Alternatively, you can set the environment variable XD_CONFIG
# to point to a file (use a file:// URL). That file will then be
# used instead.
#XD data transport (default is redis for distributed, local for single node)
#xd:
# transport: rabbit
# messagebus:
# rabbit:
# default:
# ackMode: AUTO
# Valid: AUTO (container acks), NONE (broker acks), MANUAL (consumer acks).
# Upper case only.
# Note: MANUAL requires specialized code in the consuming module and is unlikely to be
# used in an XD application. For more information, see
# http://docs.spring.io/spring-integration/reference/html/amqp.html#amqp-inbound-ack
# backOffInitialInterval: 1000
# backOffMaxInterval: 10000
# backOffMultiplier: 2.0
# concurrency: 1
# deliveryMode: PERSISTENT
# maxAttempts: 3
# maxConcurrency: 1
# prefix: xdbus.
# prefix for queue/exchange names so policies (ha, dle etc.) can be applied
# prefetch: 1
# replyHeaderPatterns: STANDARD_REPLY_HEADERS,*
# requestHeaderPatterns: STANDARD_REQUEST_HEADERS,*
# requeue: true
# transacted: false
# txSize: 1
# redis:
# headers:
# comman-delimited list of additional (string-valued) header names to transport
# default:
# default bus properties, if not specified at the module level
# backOffInitialInterval: 1000
# backOffMaxInterval: 10000
# backOffMultiplier: 2.0
# concurrency: 1
# maxAttempts: 3
#Disable batch database initialization
spring:
batch:
# Configure other Spring Batch repository values. Most are typically not needed
isolationLevel: ISOLATION_SERIALIZABLE
clobType:
dbType: MYSQL
maxVarcharLength: 2500
tablePrefix: BATCH_
validateTransactionState: true
initializer:
enabled: true
---
#Config for singlenode.
#Transport for single node may be overridden by --transport command line option
#If the singlenode needs to use external datasource for batch embeddedHsql can be set to false
spring:
profiles: singlenode
xd:
transport: local
#embeddedHsql: true
---
#Config for use with HSQLDB
#
#Change the database host, port and name
#hsql:
# server:
# host: localhost
# port: 9101
# dbname: xdjob
#Change database username and password
#spring:
# datasource:
# url: jdbc:hsqldb:hsql://${hsql.server.host:localhost}:${hsql.server.port:9101}/${hsql.server.dbname:xdjob}
# username: sa
# password:
# driverClassName: org.hsqldb.jdbc.JDBCDriver
# validationQuery: select 1 from INFORMATION_SCHEMA.SYSTEM_USERS
#Config for use with MySQL - uncomment and edit with relevant values for your environment
spring:
datasource:
url: jdbc:mysql://localhost:3306/xd
username: xd
password: xd
driverClassName: com.mysql.jdbc.Driver
validationQuery: select 1
#Config for use with Postgres - uncomment and edit with relevant values for your environment
#spring:
# datasource:
# url: jdbc:postgresql://yourDBhost:5432/yourDB
# username: yourUsername
# password: yourPassword
# driverClassName: org.postgresql.Driver
# validationQuery: select 1
---
#ConnectionPoolSettings
spring:
datasource:
testOnBorrow: true
validationInterval: 30000
maxActive: 100
maxIdle: 100
minIdle: 10
initialSize: 0
maxWait: 30000
testOnReturn: false
testWhileIdle: false
timeBetweenEvictionRunsMillis: 5000
minEvictableIdleTimeMillis: 60000
removeAbandoned: false
removeAbandonedTimeout: 60
logAbandoned: false
#Tomcat JDBC Enhanced Attributes
validationInterval: 30000
jmxEnabled: true
fairQueue: true
abandonWhenPercentageFull: 0
maxAge: 0
useEquals: true
suspectTimeout: 0
alternateUsernameAllowed: false
---
# Config to enable security on administration endpoints (consider adding ssl)
#spring:
# profiles: admin
#security:
# basic:
# enabled: true # false to disable security settings (default)
# realm: SpringXD
# user: # valid only if security.basic.enabled=true
# name: yourAdminUsername
# password: yourAdminPassword
---
# Config to enable HTTPS on administration endpoints
#spring:
# profiles: admin
#server:
# ssl:
# key-alias: yourKeyAlias
# key-store: path/to/keystore
# key-store-password: yourKeyStorePassword
# key-password: yourKeyPassword
# trust-store: path/to/trust-store
# trust-store-password: yourTrustStorePassword
---
# Config to enable/disable JMX/jolokia endpoints
#XD_JMX_ENABLED: true
#endpoints:
# jolokia:
# enabled: ${XD_JMX_ENABLED:true}
# jmx:
# enabled: ${XD_JMX_ENABLED:true}
# uniqueNames: true
---
# Redis properties
#spring:
# redis:
# port: 6379
# host: localhost
#Port that admin-ui is listening on
#server:
# port: 9393
---
# RabbitMQ properties
#spring:
# rabbitmq:
# addresses: localhost:5672
# username: guest
# password: guest
# virtual_host: /
# useSSL: false
# sslProperties:
---
# Hadoop properties
#spring:
# hadoop:
# fsUri: hdfs://localhost:8020
---
# Zookeeper properties
# namespace is the path under the root where XD's top level nodes will be created
# client connect string: host1:port1,host2:port2,...,hostN:portN
#zk:
# namespace: xd
# client:
# connect: localhost:2181
---
#Container Attributes: Used to target containers configured with attribute values for module deployment by specifying attribute expressions in the deployment manifest.
#'groups' is a native XD convention for targeting a group of container instances and is also supported as a command line option and environment variable XD_CONTAINER_GROUPS.
# A container instance may belong to multiple groups. XD Also supports any user defined attributes provided here.
#
#xd:
# container:
# groups: group1,group2
# color: green
# foo: bar
---
# Quiet Period
#
# The quiet period is the amount of time that must elapse after the newest container
# arrives before deployments to new containers are initiated. A short quiet period
# is ideal for development environments because it results in quick deployments
# to new containers. In production environments, longer quiet periods are desirable
# because it will prevent the first few containers from receiving all deployments.
#
# Module deployments triggered by container arrivals only apply to modules
# that failed a previous deployment due to the lack of containers to host them.
# Note that this property only applies to that type of deployment; new deployments
# targeted to existing containers are not subject to delays.
#
# The default value for this property is 15000 ms.
#
# xd:
# admin:
# quietPeriod: 15000
--
# User Extensions: Where XD scans the classpath to discover extended container configuration to add beans to the Plugins context.
# Each property may be a comma delimited string. 'basepackages' refers to package names used for
# annotated component (@Configuration or @Component stereotypes) scanning. 'locations' is a list of root resource directories containing XML or Groovy configuration.
# XD prepends classpath:* if no prefix included and appends **/*.* to each location
#xd:
# extensions:
# basepackages: com.acme.xd.extensions
# locations: META-INF/spring-xd/ext
---
#Custom module registry location
#Any custom modules built can be placed into this configured location
#The location must be set to a valid resource URL (file://, classpath:/ etc.,)
#xd:
# customModule:
# home: file://mymodulehome
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment