Skip to content
Permalink
Browse files

Merge pull request #149 from killbill/add-new-queue-configs

ansible: make dispatching and complete queue threads configurable
  • Loading branch information...
pierre committed May 6, 2019
2 parents 74b3a78 + 18ff0e1 commit 7bf7c08c317c9105aa7aa5766a4b02e98b575a47
Showing with 32 additions and 1 deletion.
  1. +24 −0 ansible/templates/killbill/killbill.properties.j2
  2. +8 −1 docker/README.adoc
@@ -255,6 +255,12 @@ org.killbill.notificationq.analytics.max.failure.retry={{ lookup('env', 'KILLBIL
{% if lookup('env', 'KILLBILL_ANALYTICS_NOTIFICATION_NB_THREADS') %}
org.killbill.notificationq.analytics.notification.nbThreads={{ lookup('env', 'KILLBILL_ANALYTICS_NOTIFICATION_NB_THREADS') }}
{% endif %}
{% if lookup('env', 'KILLBILL_ANALYTICS_LIFECYCLE_DISPATCH_NBTHREADS') %}
org.killbill.notificationq.analytics.lifecycle.dispatch.nbThreads={{ lookup('env', 'KILLBILL_ANALYTICS_LIFECYCLE_DISPATCH_NBTHREADS') }}
{% endif %}
{% if lookup('env', 'KILLBILL_ANALYTICS_LIFECYCLE_COMPLETE_NBTHREADS') %}
org.killbill.notificationq.analytics.lifecycle.complete.nbThreads={{ lookup('env', 'KILLBILL_ANALYTICS_LIFECYCLE_COMPLETE_NBTHREADS') }}
{% endif %}
{% if lookup('env', 'KILLBILL_ANALYTICS_QUEUE_CAPACITY') %}
org.killbill.notificationq.analytics.queue.capacity={{ lookup('env', 'KILLBILL_ANALYTICS_QUEUE_CAPACITY') }}
{% endif %}
@@ -285,6 +291,12 @@ org.killbill.notificationq.main.notification.nbThreads={{ lookup('env', 'KILLBIL
{% if lookup('env', 'KILLBILL_MAIN_NOTIFICATION_OFF') %}
org.killbill.notificationq.main.notification.off={{ lookup('env', 'KILLBILL_MAIN_NOTIFICATION_OFF') }}
{% endif %}
{% if lookup('env', 'KILLBILL_MAIN_LIFECYCLE_DISPATCH_NBTHREADS') %}
org.killbill.notificationq.main.lifecycle.dispatch.nbThreads={{ lookup('env', 'KILLBILL_MAIN_LIFECYCLE_DISPATCH_NBTHREADS') }}
{% endif %}
{% if lookup('env', 'KILLBILL_MAIN_LIFECYCLE_COMPLETE_NBTHREADS') %}
org.killbill.notificationq.main.lifecycle.complete.nbThreads={{ lookup('env', 'KILLBILL_MAIN_LIFECYCLE_COMPLETE_NBTHREADS') }}
{% endif %}
{% if lookup('env', 'KILLBILL_MAIN_QUEUE_CAPACITY') %}
org.killbill.notificationq.main.queue.capacity={{ lookup('env', 'KILLBILL_MAIN_QUEUE_CAPACITY') }}
{% endif %}
@@ -378,6 +390,12 @@ org.killbill.persistent.bus.external.max.failure.retry={{ lookup('env', 'KILLBIL
{% if lookup('env', 'KILLBILL_BUS_EXTERNAL_NB_THREADS') %}
org.killbill.persistent.bus.external.nbThreads={{ lookup('env', 'KILLBILL_BUS_EXTERNAL_NB_THREADS') }}
{% endif %}
{% if lookup('env', 'KILLBILL_BUS_EXTERNAL_LIFECYCLE_DISPATCH_NBTHREADS') %}
org.killbill.persistent.bus.external.lifecycle.dispatch.nbThreads={{ lookup('env', 'KILLBILL_BUS_EXTERNAL_LIFECYCLE_DISPATCH_NBTHREADS') }}
{% endif %}
{% if lookup('env', 'KILLBILL_BUS_EXTERNAL_LIFECYCLE_COMPLETE_NBTHREADS') %}
org.killbill.persistent.bus.external.lifecycle.complete.nbThreads={{ lookup('env', 'KILLBILL_BUS_EXTERNAL_LIFECYCLE_COMPLETE_NBTHREADS') }}
{% endif %}
{% if lookup('env', 'KILLBILL_EXTERNAL_QUEUE_CAPACITY') %}
org.killbill.persistent.bus.external.queue.capacity={{ lookup('env', 'KILLBILL_EXTERNAL_QUEUE_CAPACITY') }}
{% endif %}
@@ -411,6 +429,12 @@ org.killbill.persistent.bus.main.nbThreads={{ lookup('env', 'KILLBILL_BUS_MAIN_N
{% if lookup('env', 'KILLBILL_BUS_MAIN_OFF') %}
org.killbill.persistent.bus.main.off={{ lookup('env', 'KILLBILL_BUS_MAIN_OFF') }}
{% endif %}
{% if lookup('env', 'KILLBILL_BUS_MAIN_LIFECYCLE_DISPATCH_NBTHREADS') %}
org.killbill.persistent.bus.main.lifecycle.dispatch.nbThreads={{ lookup('env', 'KILLBILL_BUS_MAIN_LIFECYCLE_DISPATCH_NBTHREADS') }}
{% endif %}
{% if lookup('env', 'KILLBILL_BUS_MAIN_LIFECYCLE_COMPLETE_NBTHREADS') %}
org.killbill.persistent.bus.main.lifecycle.complete.nbThreads={{ lookup('env', 'KILLBILL_BUS_MAIN_LIFECYCLE_COMPLETE_NBTHREADS') }}
{% endif %}
{% if lookup('env', 'KILLBILL_MAIN_QUEUE_CAPACITY') %}
org.killbill.persistent.bus.main.queue.capacity={{ lookup('env', 'KILLBILL_MAIN_QUEUE_CAPACITY') }}
{% endif %}
@@ -37,6 +37,8 @@ For jConsole and remote debugging, you need to pass the host IP address as `ENV_
The following environment variables will populate the default `killbill.properties`. For further customization, you should bind mount `/var/lib/killbill/killbill.properties` when launching the Docker image.

* `KILLBILL_ANALYTICS_NOTIFICATION_NB_THREADS` (default `5`)
* `KILLBILL_ANALYTICS_LIFECYCLE_DISPATCH_NBTHREADS` (default `1`)
* `KILLBILL_ANALYTICS_LIFECYCLE_COMPLETE_NBTHREADS` (default `2`)
* `KILLBILL_ANALYTICS_QUEUE_CAPACITY` (default `30000`)
* `KILLBILL_BUNDLE_CACHE_NAME` (default `osgi-cache`)
* `KILLBILL_BUNDLE_INSTALL_DIR` (default `/var/lib/killbill/bundles`)
@@ -47,13 +49,17 @@ The following environment variables will populate the default `killbill.properti
* `KILLBILL_BUS_EXTERNAL_SLEEP` (default `0`)
* `KILLBILL_BUS_EXTERNAL_TABLE_NAME` (default `bus_ext_events`)
* `KILLBILL_BUS_EXTERNAL_USE_INFLIGHT_Q` (default `true`)
* `KILLBILL_BUS_EXTERNAL_LIFECYCLE_DISPATCH_NBTHREADS` (default `1`)
* `KILLBILL_BUS_EXTERNAL_LIFECYCLE_COMPLETE_NBTHREADS` (default `2`)
* `KILLBILL_BUS_MAIN_CLAIMED` (default `10`)
* `KILLBILL_BUS_MAIN_HISTORY_TABLE_NAME` (default `bus_events_history`)
* `KILLBILL_BUS_MAIN_IN_MEMORY` (default `false`)
* `KILLBILL_BUS_MAIN_NB_THREADS` (default `50`)
* `KILLBILL_BUS_MAIN_OFF` (default `false`)
* `KILLBILL_BUS_MAIN_SLEEP` (default `0`)
* `KILLBILL_BUS_MAIN_TABLE_NAME` (default `bus_events`)
* `KILLBILL_BUS_MAIN_LIFECYCLE_DISPATCH_NBTHREADS` (default `1`)
* `KILLBILL_BUS_MAIN_LIFECYCLE_COMPLETE_NBTHREADS` (default `2`)
* `KILLBILL_CACHE_CONFIG_LOCATION` (default `ehcache.xml`)
* `KILLBILL_CATALOG_BUNDLE_PATH` (default `org/killbill/billing/util/template/translation/CatalogTranslation`)
* `KILLBILL_CATALOG_URI` (default `SpyCarBasic.xml`)
@@ -103,8 +109,9 @@ The following environment variables will populate the default `killbill.properti
* `KILLBILL_MAIN_CLAIM_TIME` (default `5m`)
* `KILLBILL_MAIN_NOTIFICATION_NB_THREADS` (default `10`)
* `KILLBILL_MAIN_NOTIFICATION_OFF` (default `false`)
* `KILLBILL_MAIN_LIFECYCLE_DISPATCH_NBTHREADS` (default `1`)
* `KILLBILL_MAIN_LIFECYCLE_COMPLETE_NBTHREADS` (default `2`)
* `KILLBILL_MAIN_QUEUE_CAPACITY` (default `1000000`)
* `KILLBILL_MAIN_QUEUE_CAPACITY` (default `100`)
* `KILLBILL_MAIN_QUEUE_MODE` (default `STICKY_POLLING`)
* `KILLBILL_MANUAL_PAY_TEMPLATE_NAME` (default `org/killbill/billing/util/email/templates/HtmlInvoiceTemplate.mustache`)
* `KILLBILL_MAX_FAILURE_RETRY` (default `3`)

0 comments on commit 7bf7c08

Please sign in to comment.
You can’t perform that action at this time.