Skip to content

feat: endpoint choose by health check#109

Merged
membphis merged 16 commits into
api7:masterfrom
tzssangglass:healthcheck
Jan 25, 2021
Merged

feat: endpoint choose by health check#109
membphis merged 16 commits into
api7:masterfrom
tzssangglass:healthcheck

Conversation

@tzssangglass

Copy link
Copy Markdown
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
Copy Markdown
Contributor

@ Yiyiyimu welcome to look at this PR

@membphis
membphis requested a review from nic-chen January 11, 2021 03:56
Comment thread lib/resty/etcd/health_check.lua Outdated
Comment thread health_check.md Outdated
Comment thread lib/resty/etcd/v3.lua

@membphis membphis left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Comment thread health_check.md Outdated
Comment thread health_check.md Outdated
Comment thread lib/resty/etcd/health_check.lua Outdated
Comment thread lib/resty/etcd/health_check.lua Outdated
@tzssangglass

Copy link
Copy Markdown
Contributor Author

@membphis membphis left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

@Yiyiyimu welcome to look at this PR too

@Yiyiyimu Yiyiyimu left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread health_check.md Outdated
Comment thread health_check.md Outdated
Comment thread health_check.md Outdated
Comment thread health_check.md Outdated
Comment thread health_check.md Outdated
Comment thread health_check.md Outdated
Comment thread t/v3/health_check.t



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

@Yiyiyimu Yiyiyimu Jan 19, 2021

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor

ping @tzssangglass

@tzssangglass

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