All Elasticsearch connector services can be scaled up to use an ActiveMQ Connection Pool to increase the number of Consumers.
To use the ActiveMQ Connection Pool, add the following properties to your .env file in Docker compose. The Pool size is set to 100 in the sample.
$ cat .env ACTIVEMQ_POOL_ENABLED=true ACTIVEMQ_POOL_SIZE=100
Spring related properties can be associated to the Elasticsearch connector when declaring the service in the docker-compose.yml file.
live-indexing-metadata:
image: quay.io/alfresco/alfresco-elasticsearch-live-indexing-metadata:${LIVE_INDEXING_METADATA_TAG}
environment:
SPRING_ACTIVEMQ_BROKERURL: nio://activemq:61616
SPRING_ACTIVEMQ_POOL_ENABLED: ${ACTIVEMQ_POOL_ENABLED}
SPRING_ACTIVEMQ_POOL_MAXCONNECTIONS: ${ACTIVEMQ_POOL_SIZE}
To increase the consumer number you must check the property name in the application.properties file for the service and to then override it in the docker-compose.yml file. The following sample increases the consumer number to 20 for elasticsearch-live-indexing-metadata.
live-indexing-metadata:
image: quay.io/alfresco/alfresco-elasticsearch-live-indexing-metadata:${LIVE_INDEXING_METADATA_TAG}
environment:
INPUT_ALFRESCO_METADATA_BATCH_EVENT_CHANNEL: sjms:org.alfresco.search.metadata.event?concurrentConsumers=20