migrate sharding configuration from BuildScripts

This commit is contained in:
Paul Brodner
2019-03-04 16:33:46 +02:00
parent 40db8f0848
commit fd160c26c4
6 changed files with 73 additions and 1 deletions

View File

@@ -54,3 +54,6 @@ clean: ## kill containers
wait: ## main: wait for alfresco service && solr to startup
$(helpers)/wait-service-to-start.sh && \
$(helpers)/wait-service-to-start.sh http://localhost:8083/solr
standard: ## start with standard docker-compose.yml file
make clean && $(dc) config && $(dc) up -d && make wait

View File

@@ -39,4 +39,7 @@ At any time you can run the `make all` taks that will execute all the above comm
```shel
make all
```
```
# Environment Settings
Pay attention at the values that exist in [.env](.env) file. These settings will be picked up in custom docker-compose.*.yml file(s)

View File

@@ -0,0 +1,11 @@
# docker-compose related environments
ALFRESCO_IMAGE=alfresco/alfresco-content-repository
ALFRESCO_TAG=6.1.0-EA3
SHARE_IMAGE=alfresco/alfresco-share
SHARE_TAG=6.0
POSTGRES_IMAGE=postgres
POSTGRES_TAG=10.1
SEARCH_IMAGE=quay.io/alfresco/search-services
SEARCH_TAG=latest
ACTIVEMQ_IMAGE=alfresco/alfresco-activemq
ACTIVEMQ_TAG=5.15.6

View File

@@ -0,0 +1,13 @@
include ../Makefile
include .env
ifeq ($(sharding),)
sharding:=$(dc) -f ../docker-compose.yml -f docker-compose.sharding.yml
endif
# https://docs.alfresco.com/6.0/concepts/dynamic-sharding.html
# http://docs.alfresco.com/6.0/tasks/adminconsole-indexserver-sharding.html
sharding: ## start Search Services in sharding mode
make clean && \
$(sharding) config && $(sharding) up -d && make wait

View File

@@ -0,0 +1,15 @@
# About
Enabling sharding on Search Services
_Reference:_
* https://docs.alfresco.com/6.0/concepts/dynamic-sharding.html
* http://docs.alfresco.com/6.0/tasks/adminconsole-indexserver-sharding.html
# How to run
```ruby
$ make sharding
```
# Environment Settings
Pay attention at the values that exist in [.env](.env) file. These settings will be picked up in custom docker-compose.*.yml file(s)

View File

@@ -0,0 +1,27 @@
version: '3'
services:
alfresco:
environment:
JAVA_OPTS : "
-Ddb.driver=org.postgresql.Driver
-Ddb.username=alfresco
-Ddb.password=alfresco
-Ddb.url=jdbc:postgresql://postgres:5432/alfresco
-Dsolr.host=search
-Dsolr.port=8983
-Dsolr.secureComms=none
-Dsolr.base.url=/solr
-Dindex.subsystem.name=solr6
-Dalfresco.restApi.basicAuthScheme=true
-Ddeployment.method=DOCKER_COMPOSE
-Dcsrf.filter.enabled=false
-Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\"
-Dsolr.useDynamicShardRegistration=true
-Dsearch.solrShardRegistry.purgeOnInit=true
-Dsearch.solrShardRegistry.shardInstanceTimeoutInSeconds=300
-Dsearch.solrShardRegistry.maxAllowedReplicaTxCountDifference=1000"
search:
environment:
- VERSION=${SEARCH_TAG}
image: quay.io/alfresco/search-services:${SEARCH_TAG}