Skip to content

feat(search): PFP-1275/look-into-0-doc-indices #13296

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

Merged
merged 16 commits into from
May 16, 2025

Conversation

jmacryl
Copy link
Collaborator

@jmacryl jmacryl commented Apr 23, 2025

reduce replicas when docs 0

@jmacryl jmacryl marked this pull request as draft April 23, 2025 12:35
@github-actions github-actions bot added the product PR or Issue related to the DataHub UI/UX label Apr 23, 2025
Copy link

codecov bot commented Apr 23, 2025

Codecov Report

Attention: Patch coverage is 89.51049% with 15 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...rch/elasticsearch/indexbuilder/ESIndexBuilder.java 91.30% 3 Missing and 5 partials ⚠️
...linkedin/datahub/upgrade/system/cron/CronArgs.java 0.00% 4 Missing ⚠️
.../java/com/linkedin/datahub/upgrade/UpgradeCli.java 0.00% 2 Missing ⚠️
.../datahub/upgrade/system/cron/SystemUpdateCron.java 80.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@david-leifker
Copy link
Collaborator

The replica count will constantly be changed to >1 on every upgrade and then downgraded by the planned cron job to adjust the replicas down. The logic to scale down to 0 also needs to be considered then a reindex is considered or it needs to ignore the diff between the intended replica count and the actual (delegating entirely to the cron).

@jmacryl
Copy link
Collaborator Author

jmacryl commented Apr 29, 2025

The logic to scale down to 0 also needs to be considered then a reindex is considered or it needs to ignore the diff between the intended replica count and the actual (delegating entirely to the cron).

sorry I dont understdand this sentece, could you elaborate?

@david-leifker
Copy link
Collaborator

The replica count is configured at upgrade/install time as well as this new cron job. This needs to be common for both places so that the replica count doesn't get changed back & forth. One approach might be to remove the replica setting on index creation, however code needs to be updated to remove it from consideration there.

Copy link

alwaysmeticulous bot commented May 6, 2025

✅ Meticulous spotted visual differences in 23 of 762 screens tested, but all differences have already been approved: view differences detected.

Meticulous evaluated ~10 hours of user flows against your PR.

Last updated for commit 3ce4a32. This comment will update as new commits are pushed.

@jmacryl jmacryl marked this pull request as ready for review May 6, 2025 13:41
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label May 6, 2025
@jmacryl jmacryl force-pushed the PFP-1275/look-into-0-doc-indices branch from 982aaf4 to 3408d3a Compare May 6, 2025 19:08
@datahub-cyborg datahub-cyborg bot added pending-submitter-response Issue/request has been reviewed but requires a response from the submitter and removed needs-review Label for PRs that need review from a maintainer. labels May 7, 2025
@jmacryl jmacryl force-pushed the PFP-1275/look-into-0-doc-indices branch from 9d91f9a to 3ce4a32 Compare May 8, 2025 19:25
@datahub-cyborg datahub-cyborg bot added needs-review Label for PRs that need review from a maintainer. and removed pending-submitter-response Issue/request has been reviewed but requires a response from the submitter labels May 8, 2025
@david-leifker david-leifker merged commit 8f52bdc into master May 16, 2025
40 checks passed
@david-leifker david-leifker deleted the PFP-1275/look-into-0-doc-indices branch May 16, 2025 17:59
kartikey-visa pushed a commit to kartikey-visa/datahub that referenced this pull request Jul 23, 2025
Co-authored-by: David Leifker <david.leifker@acryl.io>
Co-authored-by: david-leifker <114954101+david-leifker@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-review Label for PRs that need review from a maintainer. product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants