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: endpoint choose by health check #109

Merged
merged 16 commits into from
Jan 25, 2021
Merged

Conversation

tzssangglass
Copy link
Contributor

fix #101
fix #55

@tzssangglass tzssangglass changed the title [WIP]feat: endpoint choose by health check feat: endpoint choose by health check Jan 10, 2021
@membphis
Copy link
Contributor

@ Yiyiyimu welcome to look at this PR

lib/resty/etcd/health_check.lua Outdated Show resolved Hide resolved
health_check.md Outdated Show resolved Hide resolved
Copy link
Contributor

@membphis membphis left a comment

Choose a reason for hiding this comment

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

health_check.md Outdated Show resolved Hide resolved
health_check.md Outdated Show resolved Hide resolved
lib/resty/etcd/health_check.lua Outdated Show resolved Hide resolved
@tzssangglass
Copy link
Contributor Author

Add: t/v2/dir.t is unstable.
https://travis-ci.org/github/api7/lua-resty-etcd/jobs/754890283

Copy link
Contributor

@membphis membphis left a comment

Choose a reason for hiding this comment

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

LGTM, @spacewander would you have time to look at this PR?

@membphis
Copy link
Contributor

@Yiyiyimu welcome to look at this PR too

Copy link
Contributor

@Yiyiyimu Yiyiyimu left a comment

Choose a reason for hiding this comment

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

Most code logic LGTM, but some grammar needs to be refined

health_check.md Outdated Show resolved Hide resolved
health_check.md Outdated Show resolved Hide resolved
health_check.md Outdated Show resolved Hide resolved
health_check.md Outdated Show resolved Hide resolved
health_check.md Outdated Show resolved Hide resolved
health_check.md Outdated Show resolved Hide resolved



=== TEST 8: has no healthy etcd endpoint, follow old style
Copy link
Contributor

@Yiyiyimu Yiyiyimu Jan 19, 2021

Choose a reason for hiding this comment

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

I didn't get why when no endpoints are healthy, we should follow old style. Since as #101 talked about

When all instances of a certain api fail (such as auth api), it will cause crazy retries, which may eventually overwhelm the ETCD cluster.

Following old styles still could not solve this problem

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can't refute this example.
we do not request etcd when all etcd instances are down.
what do you think @membphis ?

Copy link
Contributor

Choose a reason for hiding this comment

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

IMO maybe we could leave some warnings and like add some delay for continuous retries? I'm not so sure.
Hi @nic-chen do you have some opinions on this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

sorry I missed this message. We should fix it in a new PR.

@Yiyiyimu had created the issue #111 about this comment.

many thx

@membphis
Copy link
Contributor

ping @tzssangglass

@tzssangglass
Copy link
Contributor Author

ping @tzssangglass

later, my computer is broken, will continue after repairing.

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.

discuss: endpoint choose issue feat: support healthcheck when connect to etcd cluster
4 participants