cloud-on-k8s icon indicating copy to clipboard operation
cloud-on-k8s copied to clipboard

Elastic Stack Config Policy: etcd object size limit limits the size of the Stack config policies

Open TimBosman opened this issue 1 year ago • 6 comments

Right now, it is not possible to add multiple Elastic Stack Config Policy to one Elasticsearch cluster. This means that the amount of things to configure is limited by the etcd object size limit. I see two options to avoid this problem:

  • Making it possible to add multiple Elastic Stack Config Policies to one Elasticsearch Cluster.
  • Making it possible to reference to Kubernetes configmaps or secrets containing the configuration from the Elastic Stack Config Policy.

TimBosman avatar Aug 15 '23 08:08 TimBosman

That's true but the size is 1.5MB? Have you reached it?

thbkrkr avatar Aug 31 '23 14:08 thbkrkr

I've created this issue after customer feedback. They told me they have hit the limit.

TimBosman avatar Aug 31 '23 15:08 TimBosman

As @barkbay has pointed out the issue here is that even if we were to allow multiple config policies that the resulting configuration still needs to fit into a single Kubernetes API object in order for us to be able to mount it into the Elasticsearch Pods.

pebrc avatar Sep 01 '23 12:09 pebrc

We could concat multiple configuration within elasticsearch pods ?

mtparet avatar Sep 19 '23 23:09 mtparet

We could concat multiple configuration within elasticsearch pods ?

The problem I see with this is how do I keep the concatenation in sync every time a configuration is updated?

Today, the file containing the Elastic Stack configuration policy settings presented to ES is mounted from a Secret. When the Stack config policy is updated, the associated Secret is updated, and so, the file is updated in the pod and ES hot reloads the new configuration from the file, without restart.

thbkrkr avatar Sep 20 '23 12:09 thbkrkr

We could have a side container doing concatenation and writing the concatenated file. But the proper way seems to be adding support for a folder-based files settings inside Elasticsearch.

mtparet avatar Sep 21 '23 16:09 mtparet