Add intellij run configurations for multi-node clusters

This commit is contained in:
Mark Vieira 2023-03-22 14:40:10 -07:00
parent 60ebc31c0c
commit 7527d6f046
4 changed files with 25 additions and 2 deletions

2
.gitignore vendored
View file

@ -12,7 +12,7 @@ out/
!.idea/eclipseCodeFormatter.xml
!.idea/externalDependencies.xml
!.idea/inspectionProfiles/Project_Default.xml
!.idea/runConfigurations/Debug_Elasticsearch.xml
!.idea/runConfigurations/
!.idea/scopes/x_pack.xml
# These files are generated in the main tree by IntelliJ

View file

@ -0,0 +1,11 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Debug Elasticsearch (node 2)" type="Remote">
<option name="USE_SOCKET_TRANSPORT" value="true" />
<option name="SERVER_MODE" value="true" />
<option name="SHMEM_ADDRESS" />
<option name="HOST" value="localhost" />
<option name="PORT" value="5008" />
<option name="AUTO_RESTART" value="true" />
<method v="2" />
</configuration>
</component>

View file

@ -0,0 +1,11 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Debug Elasticsearch (node 3)" type="Remote">
<option name="USE_SOCKET_TRANSPORT" value="true" />
<option name="SERVER_MODE" value="true" />
<option name="SHMEM_ADDRESS" />
<option name="HOST" value="localhost" />
<option name="PORT" value="5009" />
<option name="AUTO_RESTART" value="true" />
<method v="2" />
</configuration>
</component>

View file

@ -392,7 +392,8 @@ port of `5007`.
NOTE: In the case of test clusters using multiple nodes, multiple debuggers
will need to be attached on incrementing ports. For example, for a 3 node
cluster ports `5007`, `5008`, and `5009` will attempt to attach to a listening
debugger.
debugger. You can use the "Debug Elasticsearch (node 2)" and "(node 3)" run
configurations should you need to debug a multi-node cluster.
You can also use a combination of both flags to debug both tests and server.
This is only applicable to Java REST tests.