mirror of
https://github.com/Alfresco/SearchServices.git
synced 2025-09-17 14:21:20 +00:00
Remove Sharding from Community, as this option is not supported in this version.
This commit is contained in:
@@ -64,26 +64,26 @@ When using Community, some different options can be combined:
|
|||||||
|
|
||||||
* Plain HTTP (http) or TLS/SSL Mutual Authentication (https)
|
* Plain HTTP (http) or TLS/SSL Mutual Authentication (https)
|
||||||
* Use SOLR Replication in Master/Slave mode (only when using http)
|
* Use SOLR Replication in Master/Slave mode (only when using http)
|
||||||
* Use dynamic Sharding with 2 SOLR nodes pre-configured (only when not using SOLR Replication)
|
|
||||||
* Use Explicit Routing for Shards instead of DB_ID (only when using Sharding)
|
|
||||||
|
|
||||||
```
|
```
|
||||||
? Which Alfresco version do you want to use? 6.1
|
? Which Alfresco version do you want to use? 6.1
|
||||||
? Would you like to use Alfresco enterprise or community? community
|
? Would you like to use Alfresco enterprise or community? community
|
||||||
? Would you like to use http or https? http
|
? Would you like to use http or https? http
|
||||||
? Would you like to use a SOLR Replication (2 nodes in master-slave)? Yes
|
? Would you like to use a SOLR Replication (2 nodes in master-slave)? Yes
|
||||||
? Would you like to use dynamic Sharding (2 SOLR nodes)? Yes
|
|
||||||
? Would you like to use SOLR Explicit Routing instead of DB_ID for the Shards? Yes
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Enterprise
|
## Enterprise
|
||||||
|
|
||||||
When using Enterprise, some options can be added to Community configuration:
|
When using Enterprise, some options can be added to Community configuration:
|
||||||
|
|
||||||
|
* Use dynamic Sharding with 2 SOLR nodes pre-configured (only when not using SOLR Replication)
|
||||||
|
* Use Explicit Routing for Shards instead of DB_ID (only when using Sharding)
|
||||||
* Insight Engine, as Search Services is selected by default
|
* Insight Engine, as Search Services is selected by default
|
||||||
* Deploy Zeppelin app to use JDBC Connector to SOLR
|
* Deploy Zeppelin app to use JDBC Connector to SOLR
|
||||||
|
|
||||||
```
|
```
|
||||||
|
? Would you like to use dynamic Sharding (2 SOLR nodes)? Yes
|
||||||
|
? Would you like to use SOLR Explicit Routing instead of DB_ID for the Shards? Yes
|
||||||
? Would you like to use Insight Engine instead of Search Services? Yes
|
? Would you like to use Insight Engine instead of Search Services? Yes
|
||||||
? Would you like to deploy Zeppelin? Yes
|
? Would you like to deploy Zeppelin? Yes
|
||||||
```
|
```
|
||||||
@@ -101,8 +101,6 @@ Custom content model is deployed to provide a property, named `shard:shardId`, h
|
|||||||
| community | http | false | true | false | x | x |
|
| community | http | false | true | false | x | x |
|
||||||
| community | http | false | true | true | x | x |
|
| community | http | false | true | true | x | x |
|
||||||
| community | https | x | - | - | x | x |
|
| community | https | x | - | - | x | x |
|
||||||
| community | https | x | true | false | x | x |
|
|
||||||
| community | https | x | true | true | x | x |
|
|
||||||
| enterprise | http | - | - | - | (*) | (*) |
|
| enterprise | http | - | - | - | (*) | (*) |
|
||||||
| enterprise | http | true | x | x | (*) | (*) |
|
| enterprise | http | true | x | x | (*) | (*) |
|
||||||
| enterprise | http | false | true | false | (*) | (*) |
|
| enterprise | http | false | true | false | (*) | (*) |
|
||||||
@@ -111,7 +109,7 @@ Custom content model is deployed to provide a property, named `shard:shardId`, h
|
|||||||
| enterprise | https | x | true | false | (*) | (*) |
|
| enterprise | https | x | true | false | (*) | (*) |
|
||||||
| enterprise | https | x | true | true | (*) | (*) |
|
| enterprise | https | x | true | true | (*) | (*) |
|
||||||
|
|
||||||
Both `community` and `enterprise` ACS deployments can be used with the same options, but `enteprise` may also use Insight Engine (replacing Search Services) and Insight Zeppelin services.
|
Both `community` and `enterprise` ACS deployments can be used with the same options, but `enterprise` may also use Insight Engine (replacing Search Services) and Insight Zeppelin services.
|
||||||
|
|
||||||
## Passing parameters from command line
|
## Passing parameters from command line
|
||||||
|
|
||||||
@@ -157,7 +155,7 @@ http://localhost:8082/alfresco
|
|||||||
|
|
||||||
http://localhost:8083/solr
|
http://localhost:8083/solr
|
||||||
|
|
||||||
When using SOLR Replication or Sharding, additionally
|
When using SOLR Replication, additionally
|
||||||
|
|
||||||
http://localhost:8084/solr
|
http://localhost:8084/solr
|
||||||
|
|
||||||
@@ -172,10 +170,6 @@ https://localhost:8443/alfresco
|
|||||||
|
|
||||||
https://localhost:8083/solr
|
https://localhost:8083/solr
|
||||||
|
|
||||||
When using SOLR Sharding, additionally
|
|
||||||
|
|
||||||
https://localhost:8084/solr
|
|
||||||
|
|
||||||
|
|
||||||
**Enterprise URLs**
|
**Enterprise URLs**
|
||||||
|
|
||||||
|
@@ -50,10 +50,11 @@ module.exports = class extends Generator {
|
|||||||
message: 'Would you like to use SOLR Replication (2 nodes in master-slave)?',
|
message: 'Would you like to use SOLR Replication (2 nodes in master-slave)?',
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
,
|
// Enterprise only options
|
||||||
{
|
{
|
||||||
when: function (response) {
|
when: function (response) {
|
||||||
return !response.replication && !commandProps['replication'];
|
return (response.alfrescoVersion == 'enterprise' || commandProps['alfrescoVersion'] == 'enterprise') &&
|
||||||
|
(!response.replication && !commandProps['replication']);
|
||||||
},
|
},
|
||||||
type: 'confirm',
|
type: 'confirm',
|
||||||
name: 'sharding',
|
name: 'sharding',
|
||||||
@@ -62,14 +63,14 @@ module.exports = class extends Generator {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
when: function (response) {
|
when: function (response) {
|
||||||
return response.sharding || commandProps['sharding'];
|
return (response.alfrescoVersion == 'enterprise' || commandProps['alfrescoVersion'] == 'enterprise') &&
|
||||||
|
(response.sharding || commandProps['sharding']);
|
||||||
},
|
},
|
||||||
type: 'confirm',
|
type: 'confirm',
|
||||||
name: 'explicitRouting',
|
name: 'explicitRouting',
|
||||||
message: 'Would you like to use SOLR Explicit Routing instead of DB_ID for the Shards?',
|
message: 'Would you like to use SOLR Explicit Routing instead of DB_ID for the Shards?',
|
||||||
default: false
|
default: false
|
||||||
},
|
},
|
||||||
// Enterprise only options
|
|
||||||
{
|
{
|
||||||
when: function (response) {
|
when: function (response) {
|
||||||
return response.alfrescoVersion == 'enterprise' || commandProps['alfrescoVersion'] == 'enterprise';
|
return response.alfrescoVersion == 'enterprise' || commandProps['alfrescoVersion'] == 'enterprise';
|
||||||
@@ -176,12 +177,19 @@ module.exports = class extends Generator {
|
|||||||
|
|
||||||
// Copy Docker Image for Repository applying configuration
|
// Copy Docker Image for Repository applying configuration
|
||||||
this.fs.copyTpl(
|
this.fs.copyTpl(
|
||||||
this.templatePath(this.props.acsVersion + '/alfresco'),
|
this.templatePath(this.props.acsVersion + '/alfresco/Dockerfile'),
|
||||||
this.destinationPath('alfresco'),
|
this.destinationPath('alfresco/Dockerfile'),
|
||||||
{
|
{
|
||||||
acsImage: acsImageTag
|
acsImage: acsImageTag,
|
||||||
|
sharding: (this.props.sharding ? "true" : "false")
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
if (this.props.sharding) {
|
||||||
|
this.fs.copy(
|
||||||
|
this.templatePath(this.props.acsVersion + '/alfresco/model'),
|
||||||
|
this.destinationPath('alfresco/model')
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
// Copy Docker Image for Search applying configuration
|
// Copy Docker Image for Search applying configuration
|
||||||
this.fs.copyTpl(
|
this.fs.copyTpl(
|
||||||
|
@@ -48,5 +48,7 @@ RUN if [ "$SOLR_COMMS" == "https" ] ; then \
|
|||||||
<\/Connector>/g" ${TOMCAT_DIR}/conf/server.xml; \
|
<\/Connector>/g" ${TOMCAT_DIR}/conf/server.xml; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
<% if (sharding == 'true') { %>
|
||||||
# Explicit Routing Sharding content model (useless when not using this feature)
|
# Explicit Routing Sharding content model (useless when not using this feature)
|
||||||
COPY model/sharding-content-model*.xml $TOMCAT_DIR/shared/classes/alfresco/extension/
|
COPY model/sharding-content-model*.xml $TOMCAT_DIR/shared/classes/alfresco/extension/
|
||||||
|
<% } %>
|
@@ -23,8 +23,7 @@ services:
|
|||||||
-Dsolr.host=<%=searchSolrHost%>
|
-Dsolr.host=<%=searchSolrHost%>
|
||||||
-Dsolr.port.ssl=8983
|
-Dsolr.port.ssl=8983
|
||||||
-Dsolr.secureComms=<%=secureComms%>
|
-Dsolr.secureComms=<%=secureComms%>
|
||||||
-Dsolr.base.url=/solr <% if (sharding == 'true') { %>
|
-Dsolr.base.url=/solr
|
||||||
-Dsolr.useDynamicShardRegistration=true <% } %>
|
|
||||||
-Dindex.subsystem.name=solr6
|
-Dindex.subsystem.name=solr6
|
||||||
-Dshare.host=localhost
|
-Dshare.host=localhost
|
||||||
-Dalfresco.port=8082
|
-Dalfresco.port=8082
|
||||||
@@ -52,11 +51,7 @@ services:
|
|||||||
TRUSTSTORE_TYPE: JCEKS
|
TRUSTSTORE_TYPE: JCEKS
|
||||||
KEYSTORE_TYPE: JCEKS <% } %> <% if (replication == 'true') { %>
|
KEYSTORE_TYPE: JCEKS <% } %> <% if (replication == 'true') { %>
|
||||||
ENABLE_MASTER: "true"
|
ENABLE_MASTER: "true"
|
||||||
ENABLE_SLAVE: "false" <% } %> <% if (sharding == 'true') { %>
|
ENABLE_SLAVE: "false" <% } %>
|
||||||
ENABLE_SHARDING: "true"
|
|
||||||
NUM_SHARDS: "2"
|
|
||||||
SHARD_ID: "0" <% } %> <% if (explicitRouting == 'true') { %>
|
|
||||||
EXPLICIT_ROUTING_SHARDING: "true" <% } %>
|
|
||||||
mem_limit: 1200m
|
mem_limit: 1200m
|
||||||
environment:
|
environment:
|
||||||
#Solr needs to know how to register itself with Alfresco
|
#Solr needs to know how to register itself with Alfresco
|
||||||
@@ -74,13 +69,7 @@ services:
|
|||||||
SOLR_SSL_KEY_STORE: "/opt/<%=searchPath%>/keystore/ssl.repo.client.keystore"
|
SOLR_SSL_KEY_STORE: "/opt/<%=searchPath%>/keystore/ssl.repo.client.keystore"
|
||||||
SOLR_SSL_KEY_STORE_PASSWORD: "kT9X6oe68t"
|
SOLR_SSL_KEY_STORE_PASSWORD: "kT9X6oe68t"
|
||||||
SOLR_SSL_KEY_STORE_TYPE: "JCEKS"
|
SOLR_SSL_KEY_STORE_TYPE: "JCEKS"
|
||||||
SOLR_SSL_NEED_CLIENT_AUTH: "true" <% if (sharding == 'true') { %>
|
SOLR_SSL_NEED_CLIENT_AUTH: "true"
|
||||||
SOLR_SSL_CLIENT_KEY_STORE: "/opt/<%=searchPath%>/keystore/ssl.repo.client.keystore"
|
|
||||||
SOLR_SSL_CLIENT_KEY_STORE_PASSWORD: "kT9X6oe68t"
|
|
||||||
SOLR_SSL_CLIENT_KEY_STORE_TYPE: "JCEKS"
|
|
||||||
SOLR_SSL_CLIENT_TRUST_STORE: "/opt/<%=searchPath%>/keystore/ssl.repo.client.keystore"
|
|
||||||
SOLR_SSL_CLIENT_TRUST_STORE_PASSWORD: "kT9X6oe68t"
|
|
||||||
SOLR_SSL_CLIENT_TRUST_STORE_TYPE: "JCEKS" <% } %>
|
|
||||||
SOLR_OPTS: "
|
SOLR_OPTS: "
|
||||||
-Dsolr.ssl.checkPeerName=false
|
-Dsolr.ssl.checkPeerName=false
|
||||||
-Dsolr.allow.unsafe.resourceloading=true
|
-Dsolr.allow.unsafe.resourceloading=true
|
||||||
@@ -90,7 +79,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./keystores/solr:/opt/<%=searchPath%>/keystore <% } %>
|
- ./keystores/solr:/opt/<%=searchPath%>/keystore <% } %>
|
||||||
|
|
||||||
<% if (sharding == 'true' || replication == 'true') { %>
|
<% if (replication == 'true') { %>
|
||||||
solr6secondary:
|
solr6secondary:
|
||||||
build:
|
build:
|
||||||
context: ./search
|
context: ./search
|
||||||
@@ -103,11 +92,7 @@ services:
|
|||||||
KEYSTORE_TYPE: JCEKS <% } %> <% if (replication == 'true') { %>
|
KEYSTORE_TYPE: JCEKS <% } %> <% if (replication == 'true') { %>
|
||||||
ENABLE_MASTER: "true"
|
ENABLE_MASTER: "true"
|
||||||
ENABLE_SLAVE: "false"
|
ENABLE_SLAVE: "false"
|
||||||
MASTER_HOST: solr6 <% } %> <% if (sharding == 'true') { %>
|
MASTER_HOST: solr6 <% } %>
|
||||||
ENABLE_SHARDING: "true"
|
|
||||||
NUM_SHARDS: "2"
|
|
||||||
SHARD_ID: "1" <% } %> <% if (explicitRouting == 'true') { %>
|
|
||||||
EXPLICIT_ROUTING_SHARDING: "true" <% } %>
|
|
||||||
mem_limit: 1200m
|
mem_limit: 1200m
|
||||||
environment:
|
environment:
|
||||||
#Solr needs to know how to register itself with Alfresco
|
#Solr needs to know how to register itself with Alfresco
|
||||||
@@ -125,13 +110,7 @@ services:
|
|||||||
SOLR_SSL_KEY_STORE: "/opt/<%=searchPath%>/keystore/ssl.repo.client.keystore"
|
SOLR_SSL_KEY_STORE: "/opt/<%=searchPath%>/keystore/ssl.repo.client.keystore"
|
||||||
SOLR_SSL_KEY_STORE_PASSWORD: "kT9X6oe68t"
|
SOLR_SSL_KEY_STORE_PASSWORD: "kT9X6oe68t"
|
||||||
SOLR_SSL_KEY_STORE_TYPE: "JCEKS"
|
SOLR_SSL_KEY_STORE_TYPE: "JCEKS"
|
||||||
SOLR_SSL_NEED_CLIENT_AUTH: "true" <% if (sharding == 'true') { %>
|
SOLR_SSL_NEED_CLIENT_AUTH: "true"
|
||||||
SOLR_SSL_CLIENT_KEY_STORE: "/opt/<%=searchPath%>/keystore/ssl.repo.client.keystore"
|
|
||||||
SOLR_SSL_CLIENT_KEY_STORE_PASSWORD: "kT9X6oe68t"
|
|
||||||
SOLR_SSL_CLIENT_KEY_STORE_TYPE: "JCEKS"
|
|
||||||
SOLR_SSL_CLIENT_TRUST_STORE: "/opt/<%=searchPath%>/keystore/ssl.repo.client.keystore"
|
|
||||||
SOLR_SSL_CLIENT_TRUST_STORE_PASSWORD: "kT9X6oe68t"
|
|
||||||
SOLR_SSL_CLIENT_TRUST_STORE_TYPE: "JCEKS" <% } %>
|
|
||||||
SOLR_OPTS: "
|
SOLR_OPTS: "
|
||||||
-Dsolr.ssl.checkPeerName=false
|
-Dsolr.ssl.checkPeerName=false
|
||||||
-Dsolr.allow.unsafe.resourceloading=true
|
-Dsolr.allow.unsafe.resourceloading=true
|
||||||
|
Reference in New Issue
Block a user