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

[Obs AI Assistant] Keep connection open, limit no of field names to analyze #186811

Merged

Conversation

dgieselaar
Copy link
Member

@dgieselaar dgieselaar commented Jun 24, 2024

Keeps the connection open even when there is no data, to prevent long-running operations from timing out. Additionally, puts an upper limit of field names to be analyzed.

@dgieselaar dgieselaar requested a review from a team as a code owner June 24, 2024 11:53
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:Obs AI Assistant Observability AI Assistant labels Jun 24, 2024
@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@dgieselaar dgieselaar added release_note:skip Skip the PR/issue when compiling release notes v8.15.0 v8.14.2 labels Jun 24, 2024
@dgieselaar dgieselaar self-assigned this Jun 24, 2024
Comment on lines +47 to +48
const flushIntervalId = isCloud ? setInterval(flushBufferIfNeeded, 250) : undefined;
const keepAliveIntervalId = setInterval(keepAlive, 30_000);
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be handled at the proxy layer?

Copy link
Member Author

Choose a reason for hiding this comment

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

keepAlive not necessarily, flush, hell yes. There's been an open issue for the team that handles the Cloud Proxy to do this.

@kibana-ci
Copy link
Collaborator

kibana-ci commented Jun 25, 2024

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @dgieselaar

@dgieselaar dgieselaar merged commit 4aeb790 into elastic:main Jun 26, 2024
23 checks passed
@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.14 Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 186811

Questions ?

Please refer to the Backport tool documentation

dgieselaar added a commit to dgieselaar/kibana that referenced this pull request Jun 28, 2024
…186811)

Keeps the connection open even when there is no data, to prevent
long-running operations from timing out. Additionally, puts an upper
limit of field names to be analyzed.

(cherry picked from commit 4aeb790)

# Conflicts:
#	x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/get_relevant_field_names.ts
#	x-pack/plugins/observability_solution/observability_ai_assistant/server/functions/get_dataset_info/index.ts
@dgieselaar
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
8.14

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jun 28, 2024
@kibanamachine
Copy link
Contributor

Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync.

dgieselaar added a commit that referenced this pull request Jul 17, 2024
…186811) (#187131)

# Backport

This will backport the following commits from `main` to `8.14`:
- [[Obs AI Assistant] Keep connection open, limit no of fields
(#186811)](#186811)

<!--- Backport version: 7.3.2 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT {commits} BACKPORT-->
@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:Obs AI Assistant Observability AI Assistant v8.14.2 v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants