Skip to content

feat: enable balancer phase for plugins#4549

Merged
spacewander merged 4 commits into
apache:masterfrom
spacewander:balc
Jul 14, 2021
Merged

feat: enable balancer phase for plugins#4549
spacewander merged 4 commits into
apache:masterfrom
spacewander:balc

Conversation

@spacewander

Copy link
Copy Markdown
Member

Signed-off-by: spacewander [email protected]

What this PR does / why we need it:

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@spacewander
spacewander marked this pull request as ready for review July 7, 2021 02:38
@Yiyiyimu

Yiyiyimu commented Jul 7, 2021

Copy link
Copy Markdown
Member

cc @dmsolr

@gxthrj gxthrj 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

@dmsolr dmsolr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Comment thread apisix/balancer.lua

end

local _, run = plugin_funcs("balancer")

@starsz starsz Jul 14, 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.

We will run balancer twice?
Line 312 and line 326 ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed in the new commit

Comment thread t/plugin/serverless.t
--- grep_error_log eval
qr/(run balancer phase with [\d.]+)/
--- grep_error_log_out
run balancer phase with 127.0.0.2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't understand why there are two run balancer phases with ……

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The last one is for retry

@spacewander
spacewander merged commit 3509d1d into apache:master Jul 14, 2021
@spacewander
spacewander deleted the balc branch July 14, 2021 04:17
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.

8 participants