-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* SC-9389: OpenSearch support * SC-9389: Public documentation * fix http.max_content_length: 10mb * Update README.md Co-authored-by: Spryker Release Manager <astromets@gmail.com>
- Loading branch information
1 parent
4c65b2e
commit 355cc44
Showing
10 changed files
with
83 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Cluster ################################ | ||
cluster.name: "docker-cluster" | ||
|
||
bootstrap.memory_lock: "true" # along with the memlock settings below, disables swapping | ||
|
||
# Threshold ################################ | ||
cluster.routing.allocation.disk.threshold_enabled: true | ||
cluster.routing.allocation.disk.watermark.low: 90% | ||
cluster.routing.allocation.disk.watermark.high: 95% | ||
|
||
# Security ################################# | ||
plugins.security.disabled: true | ||
|
||
# Network ################################### | ||
http.host: 0.0.0.0 | ||
|
||
# Http ################################### | ||
http.max_content_length: 10mb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
SPRYKER_SEARCH_ENGINE=OS | ||
SPRYKER_SEARCH_HOST={{ serviceName }} | ||
SPRYKER_SEARCH_PORT={{ serviceData['port'] | default(9200) }} | ||
SPRYKER_SEARCH_INDEX_PREFIX={{ searchIndexPrefix }} | ||
# STORE-SPECIFIC | ||
#SPRYKER_SEARCH_NAMESPACE= |
3 changes: 3 additions & 0 deletions
3
generator/src/templates/nginx/tcp/opensearch.server.conf.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% extends "nginx/tcp/server.conf.twig" %} | ||
{% block port %}{{ port | default(9200) }}{% endblock port %} | ||
{% block upstream %}{{ upstream }}:9200{% endblock upstream %} |
25 changes: 25 additions & 0 deletions
25
generator/src/templates/service/opensearch/1.3/opensearch.yml.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{ serviceName }}: | ||
image: opensearchproject/opensearch:1.3.4 | ||
networks: | ||
- private | ||
labels: | ||
'spryker.app.name': search | ||
'spryker.app.type': services | ||
'spryker.project': ${SPRYKER_DOCKER_PREFIX}:${SPRYKER_DOCKER_TAG} | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "localhost:9200/_cat/health"] | ||
interval: 10s | ||
timeout: 5s | ||
retries: 5 | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
nofile: | ||
soft: 65536 | ||
hard: 65536 | ||
environment: | ||
ES_JAVA_OPTS: "-Xms512m -Xmx512m" | ||
volumes: | ||
- {{ serviceName }}-{{ serviceData['engine'] }}-data:/usr/share/opensearch/data:rw | ||
- ./${DEPLOYMENT_PATH}/context/opensearch/opensearch.yml:/usr/share/opensearch/config/opensearch.yml:ro |
1 change: 1 addition & 0 deletions
1
generator/src/templates/service/opensearch/default/opensearch.yml.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% include "service/#{engine}/1.3/#{engine}.yml.twig" with _context only %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
SPRYKER_SEARCH_ENGINE = "OS" | ||
SPRYKER_SEARCH_INDEX_PREFIX = "{{ searchIndexPrefix }}" |