...
Soll sichergestellt werden, dass das Protokol geschrieben wird kann ein Fallback aktiviert werden. Dann weren alle Einträge lokal gecached.
Konfigurationsparameter in der repository.cfg, elastic
Code Block |
---|
<repoName>.protocolservice.type=elastic <repoName>.protocolservice.elastic.host = http://127.0.0.1:9200 <repoName>.protocolservice.elastic.index.create = protocol-fi <repoName>.protocolservice.elastic.index.read = protocol-fi <repoName>.protocolservice.elastic.index.update = protocol-fi <repoName>.protocolservice.elastic.index.delete = protocol-fi <repoName>.protocolservice.elastic.index.info = protocol-fi <repoName>.protocolservice.elastic.index.admin = protocol-fi <repoName>.protocolservice.elastic.index.unknown = protocol-fi #<repoName>.protocolservice.elastic.authentication.type= #default: none #<repoName>.protocolservice.elastic.authentication.credentials= #default: #<repoName>.protocolservice.elastic.maxconnections= #default: 50 #<repoName>.protocolservice.elastic.connecttimeout= #default: 5 #<repoName>.protocolservice.elastic.sockettimeout= #default: 30 #<repoName>.protocolservice.elastic.requesttimeout= #default: 10 #<repoName>.protocolservice.elastic.fallback.type= #default: |
Konfigurationsparameter in der repository.cfg, elasticv2
Code Block |
---|
<repoName>.protocolservice.type=elasticv2 <repoName>.protocolservice.elasticv2.host = http://127.0.0.1:9200 <repoName>.protocolservice.elasticv2.index.create = protocol-fi <repoName>.protocolservice.elasticv2.index.read = protocol-fi <repoName>.protocolservice.elasticv2.index.update = protocol-fi <repoName>.protocolservice.elasticv2.index.delete = protocol-fi <repoName>.protocolservice.elasticv2.index.info = protocol-fi <repoName>.protocolservice.elasticv2.index.admin = protocol-fi <repoName>.protocolservice.elasticv2.index.unknown = protocol-fi #<repoName>.protocolservice.elasticv2.authentication.type= #default: none #<repoName>.protocolservice.elasticv2.authentication.credentials= #default: #<repoName>.protocolservice.elasticv2.maxconnections= #default: 50 #<repoName>.protocolservice.elasticv2.connecttimeout= #default: 5 #<repoName>.protocolservice.elasticv2.sockettimeout= #default: 30 #<repoName>.protocolservice.elasticv2.requesttimeout= #default: 10 #<repoName>.protocolservice.elasticv2.fallback.type= #default: |
Hinweise für Elastic 8
Ab Version 8 ist der Default beim Starten des Elastic-Servers Security und HTTPS aktiviert. Das mag sinnvoll sein, für das lokale Testen ist es aber hinderlich.
Man kann das Abschalten indem man in der Datei config/elasticsearch.yml
folgende Einträge ergänzt:
...