BLOCKING BUG - memory and ephemeral storage leak issue in a Kubernetes deployment

Hi @Caroline, I went trough this document. I see the behavior of a memory leak in step 1, but traces do not seem to indicate an issue. I see references to buttons and widgets that are not released, but am doubtful that these lingering objects are the source of the pod eviction. Here’s an example of the outputs after clicking through five of the pages:

After 5 runs the following traces were collected.

{ "/Users/brownian/Library/Caches/pypoetry/virtualenvs/dashboards-wd3bjAKn-py3.9/lib/python3.9/site-packages/streamlit/config.py:131": 5, "/Users/brownian/Library/Caches/pypoetry/virtualenvs/dashboards-wd3bjAKn-py3.9/lib/python3.9/site-packages/streamlit/cursor.py:106": 5, "/Users/brownian/Library/Caches/pypoetry/virtualenvs/dashboards-wd3bjAKn-py3.9/lib/python3.9/site-packages/streamlit/elements/widgets/button.py:476": 5, "/Users/brownian/Library/Caches/pypoetry/virtualenvs/dashboards-wd3bjAKn-py3.9/lib/python3.9/site-packages/streamlit/elements/widgets/button.py:485": 5, "/Users/brownian/Library/Caches/pypoetry/virtualenvs/dashboards-wd3bjAKn-py3.9/lib/python3.9/site-packages/streamlit/elements/widgets/button.py:486": 5, "/Users/brownian/Library/Caches/pypoetry/virtualenvs/dashboards-wd3bjAKn-py3.9/lib/python3.9/site-packages/streamlit/elements/widgets/button.py:607": 5, "/Users/brownian/Library/Caches/pypoetry/virtualenvs/dashboards-wd3bjAKn-py3.9/lib/python3.9/site-packages/streamlit/runtime/media_file_manager.py:225": 5, "/Users/brownian/Library/Caches/pypoetry/virtualenvs/dashboards-wd3bjAKn-py3.9/lib/python3.9/site-packages/streamlit/runtime/media_file_manager.py:45": 5, "/Users/brownian/Library/Caches/pypoetry/virtualenvs/dashboards-wd3bjAKn-py3.9/lib/python3.9/site-packages/streamlit/runtime/runtime.py:639": 5, "/Users/brownian/Library/Caches/pypoetry/virtualenvs/dashboards-wd3bjAKn-py3.9/lib/python3.9/site-packages/streamlit/runtime/state/widgets.py:152": 5, "/Users/brownian/Library/Caches/pypoetry/virtualenvs/dashboards-wd3bjAKn-py3.9/lib/python3.9/site-packages/streamlit/runtime/state/widgets.py:153": 5, "/Users/brownian/Library/Caches/pypoetry/virtualenvs/dashboards-wd3bjAKn-py3.9/lib/python3.9/site-packages/streamlit/watcher/polling_path_watcher.py:83": 5 }

For my understanding, what does Streamlit use ephemeral/disc storage for? Are cached and pickled objected stored on disc or in memory? I am caching a fairly large amount of data transformations, however my max_entries is always set to 1 to avoid collecting and saving duplicates.