i am running two services in docker - one for elasticsearch and one for my app I have set heap size for elasticsearch as 2gb when i check index memory using this command -
localhost:9200/_cat/indices
i get this data
yellow open forus-elastic 3AAKxCQfQ9yzdSYz1r7DNw 1 1 1000015 0 11gb 11gb
but when i check my docker memory consumption before and after docker-compose, it shows 5-6 gb consumption, but elasticsearch index consumption is 11 gb, How can this be understood, which data is proper