← Back to team overview

mahara-contributors team mailing list archive

[Bug 1265629] [NEW] elasticsearch setup by mahara causes Elasticsearch Server status to go from green to yellow

 

Public bug reported:

When I have a newly installed Elasticsearch Server I can check it's
health with:

curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'

and shows status as 'green'

but when I enable elasticsearch in mahara the status changes to 'yellow'
and there are unassigned shards

we might need to have a setting in mahara to deal with non distributed
(localhost) elasticsearch setups where it makes more sense to have only
one shard.

In the /etc/elasticsearch/elasticsearch.yml file it says:

# Note, that for development on a local machine, with small indices, it usually
# makes sense to "disable" the distributed features:
# 
# index.number_of_shards: 1
# index.number_of_replicas: 0

** Affects: mahara
     Importance: High
         Status: Confirmed

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1265629

Title:
  elasticsearch setup by mahara causes Elasticsearch Server status to go
  from green to yellow

Status in Mahara ePortfolio:
  Confirmed

Bug description:
  When I have a newly installed Elasticsearch Server I can check it's
  health with:

  curl -XGET 'http://localhost:9200/_cluster/health?pretty=true'

  and shows status as 'green'

  but when I enable elasticsearch in mahara the status changes to
  'yellow' and there are unassigned shards

  we might need to have a setting in mahara to deal with non distributed
  (localhost) elasticsearch setups where it makes more sense to have
  only one shard.

  In the /etc/elasticsearch/elasticsearch.yml file it says:

  # Note, that for development on a local machine, with small indices, it usually
  # makes sense to "disable" the distributed features:
  # 
  # index.number_of_shards: 1
  # index.number_of_replicas: 0

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1265629/+subscriptions


Follow ups

References