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

[Core] Feature #3432, add the Healthcheck Page #3450

Open
wants to merge 1 commit into
base: 2.10.x
Choose a base branch
from

Conversation

vahonc
Copy link
Collaborator

@vahonc vahonc commented Nov 25, 2024

No description provided.

@rbayet rbayet self-requested a review November 26, 2024 08:58
@rbayet rbayet assigned rbayet and unassigned romainruaud Nov 29, 2024
Comment on lines 126 to 127
if ($numberOfReplicas > 1 && $numberOfReplicas > ($numberOfNodes - 1)) {
return 'warning';
Copy link
Collaborator

Choose a reason for hiding this comment

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

Legacy check was actually wrong.
"$numberOfReplicas > ($numberOfNodes - 1)" is ok.
But the first part should be "$numberOfReplicas > 0".
=> "If the number of replicas > 0 (it means we enabled replicas) then, there is a warning if there are more replicas than available nodes".

* @license Open Software License ("OSL") v. 3.0
*/

namespace Smile\ElasticsuiteCore\Healthcheck;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you move those 4 healthchecks models into "Model\Healthcheck" ?

/**
* Class GenericWarningAboutClusterMisconfig
*/
class GenericWarningAboutClusterMisconfig implements MessageInterface
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you rename that class as "GenericHealthcheckWarning" instead ?
For now, the healthchecks are essentially about cluster configuration, but in the long run, they could be about the tracker, too many thesausurus definition, etc.

@@ -22,7 +22,19 @@
<arguments>
<argument name="messages" xsi:type="array">
<item name="elasticsuite" xsi:type="string">Smile\ElasticsuiteCore\Model\System\Message\NotificationAboutVersions</item>
<item name="elasticsuite_cluster_replicas_misconfig_warning" xsi:type="string">Smile\ElasticsuiteCore\Model\System\Message\WarningAboutClusterReplicasMisconfig</item>
<!-- Generic warning class -->
<item name="elasticsuite_cluster_generic_misconfig_warning" xsi:type="string">Smile\ElasticsuiteCore\Model\System\Message\GenericWarningAboutClusterMisconfig</item>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Same goes as for the class name, "elasticsuite_generic_healthcheck_warning" would be better here to be consistent.

@rbayet rbayet assigned vahonc and unassigned rbayet Dec 18, 2024
@vahonc vahonc force-pushed the 3432-elasticsuite-core-healthcheck-page-2.10-feature branch from 04615ea to 377920f Compare December 19, 2024 11:18
@vahonc vahonc force-pushed the 3432-elasticsuite-core-healthcheck-page-2.10-feature branch from 28bde53 to af47e82 Compare December 19, 2024 11:40
@vahonc vahonc assigned rbayet and unassigned vahonc Dec 19, 2024
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.

3 participants