Hi there,
we have problems with our opensearch-dashboard running in a docker container.
We are logged out in irregular intervals but not more than 5-10 minutes from opensearch dashboard. All data currently working on is lost then.
It just redirects to login page.
We cannot figure out what is the problem.
Are there any settings that may increase session time? We tried it as seen in the compose file, but it didn’t work.
Also we are logged out during working / clicking in opensearch dashboard. The session should extend on every request.
I hope we can find help here.
This is the docker-compose file you use for it:
version: '3'
services:
opensearch-node:
image: opensearchproject/opensearch:2.1.0
container_name: opensearch-node
environment:
- discovery.type=single-node
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "OPENSEARCH_JAVA_OPTS=-Xms4096m -Xmx4096m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 262144 # maximum number of open files for the OpenSearch user, set to at least 65536 on modern systems
hard: 262144
volumes:
- opensearch-data:/usr/share/opensearch/data
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
networks:
- opensearch-network
opensearch-dashboards:
image: opensearchproject/opensearch-dashboards:2.1.0
container_name: opensearch-dashboards
ports:
- 5601:5601
expose:
- "5601"
environment:
OPENSEARCH_HOSTS: '["https://opensearch-node:9200"]' # must be a string with no spaces when specified as an environment variable
OPENDISTRO_SECURITY_COOKIE_TTL: 86400000
OPENDISTRO_SECURITY_SESSION_TTL: 86400000
OPENDISTRO_SECURITY_SESSION_KEEPALIVE: 'true'
networks:
- opensearch-network
volumes:
opensearch-data:
networks:
opensearch-network:
external: true