Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiple instances of db (features) #7

Open
TheZhuangPark opened this issue Aug 13, 2024 · 4 comments · Fixed by #8
Open

multiple instances of db (features) #7

TheZhuangPark opened this issue Aug 13, 2024 · 4 comments · Fixed by #8
Assignees
Labels
enhancement New feature or request

Comments

@TheZhuangPark
Copy link

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
Copy link
Owner

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 Winson-030 added the enhancement New feature or request label Aug 13, 2024
@Winson-030
Copy link
Owner

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

@Winson-030
Copy link
Owner

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
Copy link
Owner

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.

@Winson-030 Winson-030 linked a pull request Aug 14, 2024 that will close this issue
@Winson-030 Winson-030 reopened this Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants