We can pass `-Dtests.cluster.debug.enabled=true` to REST tests to enable debugging for the test cluster, i.e. it will attempt to connect to a debugger. The port number begins with 5007 and plus 1 for each additional node in the cluster. This works fine with a single cluster. But when a test have 2 clusters (for CCS tests, e.g. [RemoteClusterSecurityRestIT](https://github.com/elastic/elasticsearch/blob/aedf98435e25d3b931b123f5039ab50a89698b68/x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/RemoteClusterSecurityRestIT.java#L36)), the second cluster will again start with port 5007 as well and conflict with the 1st cluster and fail. 

It would be great to have the 2nd cluster to use a different set of ports. It would be nice to have the port number range to be predicatable for each cluster. It may also be useful if we can enable debugging separately for each cluster.
test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/AbstractLocalClusterFactory.java
} catch (IOUtils.LinkCreationException e) {
                        
                        LOGGER.info("Failed to create working dir using hard links. Falling back to copy", e);
                        
                        IOUtils.deleteWithRetry(distributionDir);
                        IOUtils.syncWithCopy(distributionDescriptor.getDistributionDir(), distributionDir);
                    }
                }
                Files.createDirectories(repoDir);
                Files.createDirectories(dataDir);
                Files.createDirectories(logsDir);
                Files.createDirectories(tempDir);
            } catch (IOException e) {
                throw new UncheckedIOException("Failed to create working directory for node '" + name + "'", e);
            }
        }
        /*
         * We can "share" a distribution directory across clusters so long as we aren't modifying it. That means we aren't installing any
         * additional plugins, modules, or jars. This avoids having to copy the test distribution unnecessarily.
         */
        private boolean canUseSharedDistribution() {
            return OS.current() != WINDOWS 
                && System.getProperty(TESTS_CLUSTER_FIPS_JAR_PATH_SYSPROP) == null
                && getSpec().getPlugins().isEmpty()
                && (distributionDescriptor.getType() == DEFAULT || getSpec().getModules().isEmpty());
        }
        private void copyExtraJarFiles() {
            String fipsJarsPath = System.getProperty(TESTS_CLUSTER_FIPS_JAR_PATH_SYSPROP);
            if (fipsJarsPath != null) {
                LOGGER.info("FIPS is enabled. Copying FIPS jars for node: {}", this);