apache / apache/ponymail

Bug: Docker image has problems starting the ponymail index shards

Open
#151 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
80
Forks
32
PR merge metrics
No merged PRs in 30d

Description

This appears to be because the default number of replicas is set to 1 when creating an index.

A possible solution is to add the following to /etc/elasticsearch/elasticsearch.yml

index.number_of_replicas: 0

It might also be worth adding the following so it runs better on smaller test systems:

index.number_of_shards: 1

The changes need to be made before starting the elasticsearch service

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating how the Docker image creates or configures /etc/elasticsearch/elasticsearch.yml, then verify the ordering relative to starting the Elasticsearch service. Done means the image applies the proposed shard and replica settings before startup and the Ponymail index shards start successfully on a small test system.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, elasticsearch
Domain
databases, devops
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.