Chef Ideas

We believe that the best way to build software is to do it in close collaboration with the people who use it. We invite you to submit your ideas using the form below. Please be sure to include the problem for which you are solving and the benefits of implementing the idea.

We do our best to implement as many Ideas as we can. Our Product team will evaluate all submitted ideas in a timely manner and will disposition each into one of the following categories: will integrate into the product roadmap, further research is needed, unlikely to implement.

Thanks for collaborating with us!

In an A2 with embedded single node elasticsearch make sure to start out with green status

In order to present a green status when there is a single node and no chance for replicas, the following config should be set on all newly created, single node embedded Elasticsearch systems

 

1. Set the following in elasticsearch.yml before any indices are created, during initial installation of the system. This will ensure the system stays in green status with only a single node.


index:
number_of_replicas: 0

 

For completeness. Here is how we change all existing indices in a system that has already created indices and become yellow through lack of available nodes on which to create replica shards. Elasticsearch' default stance is that the first node is the initial cluster node and that two more nodes will be added soon after the cluster start. In A2 systems with a single embedded ES node, this is not true, and leads to a permanent yellow status of the single node.

 

curl -X PUT -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{
"index" : {
"number_of_replicas":0
}
}' 'http://localhost:10144/_settings'

 

  • Guest
  • Jan 27 2020
  • Under Consideration
  • Attach files
  • Guest commented
    18 Feb 16:58

    Cool, looks like that will be in the wild soon https://github.com/chef/automate/pull/2871

    Would still need to do these activities for a system with existing indices.

  • Guest commented
    18 Feb 16:56

    Adding auto_expand_replicas set to 0 might be prudent too, to make sure the system doesn't try to expand and create replicas it cannot use.

    {
     "index" : {
      "number_of_replicas":0,
      "auto_expand_replicas": false
     }
    }