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

Distributed ETCD with 3 pods. #197

Merged
merged 2 commits into from
Mar 22, 2021
Merged

Conversation

lidongze0629
Copy link
Collaborator

What do these changes do?

Deploy 3 pods of ETCD in graphscope cluster to leverage its failure tolerance abilities.

Related issue number

Fixes #185

Copy link
Collaborator

@siyuan0322 siyuan0322 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

coordinator/gscoordinator/cluster.py Outdated Show resolved Hide resolved
service_name=self._etcd_service_name,
image=self._etcd_image,
cpu=self._etcd_cpu,
mem=self._etcd_mem,
preemptive=self._preemptive,
labels=labels,
image_pull_policy=self._image_pull_policy,
num_pods=3,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe num_pods of etcd can be extracted to a configurable flag?
I thought it's better, but it's up to you.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expose etcd pod's number as a param named k8s_etcd_num_pods to client

@codecov-io
Copy link

codecov-io commented Mar 22, 2021

Codecov Report

Merging #197 (77a6d9b) into main (7a8f3f6) will decrease coverage by 0.80%.
The diff coverage is 25.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #197      +/-   ##
==========================================
- Coverage   78.91%   78.11%   -0.81%     
==========================================
  Files          52       52              
  Lines        4767     4976     +209     
==========================================
+ Hits         3762     3887     +125     
- Misses       1005     1089      +84     
Impacted Files Coverage Δ
python/graphscope/client/session.py 70.65% <ø> (-3.06%) ⬇️
...n/graphscope/deploy/kubernetes/resource_builder.py 57.65% <23.28%> (-6.06%) ⬇️
python/graphscope/config.py 100.00% <100.00%> (ø)
python/graphscope/deploy/kubernetes/cluster.py 81.96% <100.00%> (+0.07%) ⬆️
python/graphscope/framework/graph_utils.py 84.05% <0.00%> (-4.79%) ⬇️
python/graphscope/interactive/query.py 88.09% <0.00%> (-1.91%) ⬇️
python/graphscope/framework/errors.py 92.64% <0.00%> (-1.48%) ⬇️
python/graphscope/framework/graph.py 88.62% <0.00%> (-0.62%) ⬇️
python/graphscope/dataset/ldbc.py 100.00% <0.00%> (ø)
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7a8f3f6...77a6d9b. Read the comment docs.

@lidongze0629 lidongze0629 merged commit b8cb7c4 into alibaba:main Mar 22, 2021
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

Successfully merging this pull request may close these issues.

Add more Etcd pod in graphscope cluster.
3 participants