Skip to content

Form multi-node clusters in packaging tests #34809

@DaveCTurner

Description

@DaveCTurner

Today we only start a single node in our packaging tests. However, an important part of our out-of-the-box experience is that it's possible to start multiple nodes on a single host and have them form a cluster with very little extra configuration.

We currently test this in SettingsBasedHostProviderIT#testClusterFormsByScanningPorts but this is unreliable (see #34781) because it's not always possible to grab two free ports that are close enough together for the port scanning to work.

It seems that one easy way to do this would be to extract multiple installations using this:

public static Installation installArchive(Distribution distribution, Path fullInstallPath, String version) {

Then start them using this:

public static void runElasticsearch(Installation installation) throws IOException {

It may also be desirable to start multiple nodes from the same installation, either by setting max_local_storage_nodes or by giving them different data paths, since these are all valid ways to start multi-node clusters on a single host.

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Delivery/PackagingRPM and deb packaging, tar and zip archives, shell and batch scripts>enhancement>testIssues or PRs that are addressing/adding testsTeam:DeliveryMeta label for Delivery teamhelp wantedadoptme

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions