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

feat: add k8s prover cluster #8

Open
lispc opened this issue Jun 27, 2021 · 0 comments
Open

feat: add k8s prover cluster #8

lispc opened this issue Jun 27, 2021 · 0 comments

Comments

@lispc
Copy link
Member

lispc commented Jun 27, 2021

the cluster can be split into two parts:

  1. prover cluster. It should be elastic. we can use k8s for this. Some cloud providers give us serverless elastic k8s. https://www.alibabacloud.com/help/doc-detail/86377.htm Even deploying prover cluster on Aliyun and other parts on AWS is ok. I suggest using k8s for proving even for an early stage testnet product. ( Late July ? Aug ? )
  2. other processes. They can be managed manually at least for a while.

We can even setup single-node local k8s using https://github.com/kubernetes-sigs/kind . So user can still run run.sh to launch all the stuff.

( So in run.sh, if some env var like K8S_ENDPOINT is not null, the script deploy prover cluster ( master / slave / db ) into that k8s, if K8S_ENDPOINT is null, launch local k8s using Kind, and deploy prover cluster into it.
Then the rollup will insert records into the db in k8s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant