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

[grid] Add new session request queue size endpoint and GraphQL support #9030

Merged
merged 3 commits into from
Jan 11, 2021

Conversation

pujagani
Copy link
Contributor

@pujagani pujagani commented Jan 7, 2021

Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it

Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.

Description

Related to #9024. Exposing the new session queue size via an endpoint and GraphQL.

Motivation and Context

As mentioned in #9024, it will help users to scale nodes and get information regarding the pending new session requests. A quick way to get the queue size would be using an endpoint directly. The Grid supports GraphQL for richer querying support, the changes add the new session request queue count to the GraphQL schema.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the contributing document.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@pujagani pujagani force-pushed the newsessionqueue_count branch from 728c127 to 59581a5 Compare January 7, 2021 12:58
Copy link
Member

@diemol diemol left a comment

Choose a reason for hiding this comment

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

@pujagani, why don't we use the count from the requestIds queue in the Distributor?

Or, if the idea is to use the NewSessionQueuer, probably it is a good idea to expose the capabilities of the tests in the queue. With that, users can decide what type of infrasturcture to scale. Only with a number, they do not know if the tests in the queue are requesting Firefox, Chrome or Safari.

@pujagani pujagani force-pushed the newsessionqueue_count branch from fa0227d to ee8dad3 Compare January 8, 2021 12:53
@pujagani pujagani force-pushed the newsessionqueue_count branch from ee8dad3 to 3512fa0 Compare January 11, 2021 05:18
@sonarqubecloud
Copy link

@diemol diemol merged commit eb89e19 into SeleniumHQ:trunk Jan 11, 2021
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.

2 participants