Winson-030 / dify-kubernetes

Deploy Dify on Kubernetes
GNU General Public License v3.0
46 stars 11 forks source link

multiple instances of db (features) #7

Open TheZhuangPark opened 1 month ago

TheZhuangPark commented 1 month ago

i am currently working on it, cause most people deploy dify on k8s normall will need mutiple instances of components. i hope to commit some yaml file, mostly focus on expansion of postregsql and redis(HA DB),i currently working on my 10+ ubuntu mechines. 1 use Patroni as control layer of multiple postregsql. 2 native clustering feature as redis cluster how is that?

Winson-030 commented 1 month ago

Sure! Welcome raise PRs! Please add files under folder dify/ first. I think it is good to have a new deployment yaml file for HA setup. I will work with you on this case.

Winson-030 commented 1 month ago

@TheZhuangPark I create a new branch dify-database-HA-setup, please develop in this branch.

Winson-030 commented 1 month ago

i am currently working on it, cause most people deploy dify on k8s normall will need mutiple instances of components. i hope to commit some yaml file, mostly focus on expansion of postregsql and redis(HA DB),i currently working on my 10+ ubuntu mechines. 1 use Patroni as control layer of multiple postregsql. 2 native clustering feature as redis cluster how is that?

This setup is great! I am not familiar with Patroni , can you provide any yaml files which can easily deploy with kubectl apply?

Winson-030 commented 1 month ago

i am currently working on it, cause most people deploy dify on k8s normall will need mutiple instances of components. i hope to commit some yaml file, mostly focus on expansion of postregsql and redis(HA DB),i currently working on my 10+ ubuntu mechines. 1 use Patroni as control layer of multiple postregsql. 2 native clustering feature as redis cluster how is that?

This setup is great! I am not familiar with Patroni , can you provide any yaml files which can easily deploy with kubectl apply?

Please add files to folder database-ha, thanks.