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

Add processed requests counter to workers #2061

Closed
wants to merge 24 commits into from

Conversation

spuyet
Copy link
Contributor

@spuyet spuyet commented Oct 29, 2019

Description

PR implementing feature #2057

Your checklist for this pull request

  • I have reviewed the guidelines for contributing to this repository.
  • I have added an entry to History.md if this PR fixes a bug or adds a feature. If it doesn't need an entry to HISTORY.md, I have added [changelog skip] to all commit messages.
  • I have added appropriate tests if this PR fixes a bug or adds a feature.
  • My pull request is 100 lines added/removed or less so that it can be easily reviewed.
  • If this PR doesn't need tests (docs change), I added [ci skip] to the title of the PR.
  • If this closes any issues, I have added "Closes #issue" to the PR description or my commit messages.
  • I have updated the documentation accordingly.
  • All new and existing tests passed, including Rubocop.

@spuyet
Copy link
Contributor Author

spuyet commented Oct 29, 2019

The changes are pretty basic for now. What do you think ? Should we count hijacked connections ? What about TCP connections (lopez mode) ? I see this feature as a HTTP requests counter so the code looks good as it is but there is probably some edge case that I forgot 😄

@nateberkopec
Copy link
Member

LGTM. I'm not really worried about hijacked or TCP requests for a first iteration. We can leave that for the future.

History.md Outdated Show resolved Hide resolved
Copy link
Member

@nateberkopec nateberkopec left a comment

Choose a reason for hiding this comment

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

I just realized - one thing we don't have here is a test that the counter actually increments! We should have tests for both single and cluster mode. Probably in the integration test files (test_integration_*.rb) would make sense.

@spuyet
Copy link
Contributor Author

spuyet commented Oct 31, 2019 via email

@nateberkopec
Copy link
Member

Those tests are failing on Windows. I think we should probably use something other than curl.

Copy link
Member

@nateberkopec nateberkopec left a comment

Choose a reason for hiding this comment

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

Needs windows tests passing

@wjordan wjordan mentioned this pull request Feb 7, 2020
8 tasks
@nateberkopec
Copy link
Member

#2106 got there first. Thanks for starting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants