langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
46.13k stars 6.51k forks source link

Should we add a default value of `MAX_LIFETIME_SECONDS` to the unstructured docker container in docker compose file #7677

Open CXwudi opened 3 weeks ago

CXwudi commented 3 weeks ago

Self Checks

1. Is this request related to a challenge you're experiencing? Tell me about your story.

If you self-host Unstructured, you might experience memory leak issue from https://github.com/Unstructured-IO/unstructured-api/issues/197

Fortunately, based on the dev's reply and the README. You can set MAX_LIFETIME_SECONDS to some value to shut down the server to work around the memory leak issue with restart=always docker flag.

Hence, I am wondering, should we add MAX_LIFETIME_SECONDS to the docker compose file? If not, maybe shall we mention the memory leak issue in a documentation or a comment in the docker compose file to let the user aware?

2. Additional context or comments

No response

3. Can you help us with this feature?

crazywoola commented 3 weeks ago

Hence, I am wondering, should we add MAX_LIFETIME_SECONDS to the docker compose file? If not, maybe shall we mention the memory leak issue in a documentation or a comment in the docker compose file to let the user aware?

Thanks for the suggestion, I will add it later.