Maximum shards open

Greetings with an error message related to dynamic mapping after a long time

on: openvidu 2.20
i got the follow message from Openvidu server 2.20

““type”:“validation_exception”,“reason”:“Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [1000]/[1000] maximum shards open;”}],“type”:“validation_exception”,“reason”:“Validation Failed: 1: this action would add [2] total shards, but this cluster currently has [1000]/[1000] maximum shards open;”},“status”:400}”

index-openvidu uses dynamic mapping of documents. right?
index-openvidu is not created by date, so the file is constantly growing.
So I can’t solve the above problem by applying lifecycle rule

So I did it like this:

PUT openvidu/_settings { “index.mapping.total_fields.limit”: 2000 }

But as a result of Googling, it is said that it is a temporary process, so can I turn off the dynamic mapping as shown below? and is it no problem?

PUT openvidu { “mappings”: { “dynamic”: false } }

It should not be a problem. Are you using OpenSearch?

There is an scheduled job in OpenVidu Server which deletes documents older than days defined at OPENVIDU_PRO_ELASTICSEARCH_MAX_DAYS_DELETE. Maybe the content of that index is too high.

OPENVIDU_PRO_ELASTICSEARCH_MAX_DAYS_DELETE doesn’t work on openvidu index but other indexes.
Docs count on openvidu index is 26186461, and Storage size is 8.5gb.

and i used elasticsearch in Openvidu. not aws OpenSearch.

thanks.