mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-10 14:11:25 +00:00
migrate sharding configuration from BuildScripts
This commit is contained in:
@@ -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
|
@@ -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)
|
||||
|
11
e2e-test/qa/search/sharding/.env
Normal file
11
e2e-test/qa/search/sharding/.env
Normal 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
|
13
e2e-test/qa/search/sharding/Makefile
Normal file
13
e2e-test/qa/search/sharding/Makefile
Normal 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
|
||||
|
15
e2e-test/qa/search/sharding/README.md
Normal file
15
e2e-test/qa/search/sharding/README.md
Normal 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)
|
27
e2e-test/qa/search/sharding/docker-compose.sharding.yml
Normal file
27
e2e-test/qa/search/sharding/docker-compose.sharding.yml
Normal 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}
|
||||
|
Reference in New Issue
Block a user