Skip to content

feat: support health checker for stream subsystem#12180

Merged
Revolyssup merged 12 commits into
apache:masterfrom
nic-6443:nic/stream-healthcheck
May 11, 2025
Merged

feat: support health checker for stream subsystem#12180
Revolyssup merged 12 commits into
apache:masterfrom
nic-6443:nic/stream-healthcheck

Conversation

@nic-6443

@nic-6443 nic-6443 commented Apr 28, 2025

Copy link
Copy Markdown
Member

Description

support health checker for stream subsystem

Which issue(s) this PR fixes:

Fixes #

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Apr 28, 2025
Revolyssup
Revolyssup previously approved these changes May 7, 2025
@Revolyssup
Revolyssup self-requested a review May 8, 2025 05:35
Revolyssup
Revolyssup previously approved these changes May 8, 2025
AlinsRan
AlinsRan previously approved these changes May 9, 2025
Comment thread apisix/cli/config.lua Outdated
Comment on lines +17 to +21
BEGIN {
if ($ENV{TEST_EVENTS_MODULE} ne "lua-resty-events") {
$SkipReason = "Only for lua-resty-events events module";
}
}

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.

Is this necessary? If lua-resty-worker-event is used, events can't cross subsystems?

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.

For lua-resty-events, a second request need to be initiated to trigger the passive health check. Ref:

-- Due to the implementation of lua-resty-events, it relies on the kernel and
.

For lua-resty-worker-events, when I add second request the test case is timing out, So the test case will be a litlte different based on which library is used. So I pinned the test to only lua-resty events.

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.

Do we need additional test cases to make sure it works? As I understand it, the current use cases with special handling can also override the lua-resty-worker-event library? 🤔

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.

lua-resty-worker-event case requires a little different handling in test. Okay I will separate these into two tests.

Co-authored-by: Zeping Bai <[email protected]>
@nic-6443
nic-6443 dismissed stale reviews from AlinsRan and Revolyssup via 5f77ae3 May 9, 2025 03:42
Revolyssup
Revolyssup previously approved these changes May 9, 2025
@dosubot dosubot Bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels May 9, 2025
@Revolyssup
Revolyssup merged commit bc9a045 into apache:master May 11, 2025
@nic-6443
nic-6443 deleted the nic/stream-healthcheck branch May 13, 2025 08:52
laz-xyr pushed a commit to laz-xyr/apisix that referenced this pull request Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:XL This PR changes 500-999 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants