Multi-tenancy's indices configuration

**On behalf of a user of [Slack] **

“Hey, we have enabled multi-tenancy in opensearch and we are serving hundreds of users. We have noticed that each user get’s their own .kibana index, it looks like this: .kibana_1443911157_cnvictornilssonousomethingsomethingsomethingsomething_1.
Each index has 1 primary and 1 replica, which creates more than 200 shards. Surely this must be wrong? How can we stop this?”

that’s a problem we have on our cluster.
Since this architectural choice leads to micro-sharding and resource waste, we relegated those .kibana indices to certain cluster nodes on a different data tier (cool tier).

Deactivating the private spaces would be another solution:

In opensearch_dashboards.yml

opensearch_security.multitenancy.tenants.enable_private: false


When multi-tenancy is enabled, indices are created for each tenant (i.e. Global, Private[0-x], Tenant-X, Tenant-Y, etc…).
In the case the private tenant is enabled ( "private_tenant_enabled": true ) you will see an index starting .kibana* being created for each user.

According to the index template:

"template": {
    "settings": {
      "index.number_of_shards": "1"

@ Victor Nilsson Is there a reason to enable privet tenant (enabled by default) in your OpenSearch cluster?

Please note: all objects saved in the private tenant will no longer be available if private tenants are disabled, however, when private tenants are reenabled all previously saved objects are preserved and made available.

For more details on multi-tenancy configuration please see here: Dynamic configuration in OpenSearch Dashboards - OpenSearch documentation