How to switch Dify's vector database and Redis

I would like to ask, when deploying Dify locally, Dify automatically installs Redis and Weaviate by default. These two components should both be single-instance, right? This poses a significant risk in a production environment. If I want to switch Redis and the vector database to existing clustered versions, what adjustments do I need to make?

Could someone knowledgeable please advise, thank you!!!