Browse Source

Add intellij run configurations for multi-node clusters

Mark Vieira 2 years ago
parent
commit
7527d6f046

+ 1 - 1
.gitignore

@@ -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

+ 11 - 0
.idea/runConfigurations/Debug_Elasticsearch__node_2_.xml

@@ -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>

+ 11 - 0
.idea/runConfigurations/Debug_Elasticsearch__node_3_.xml

@@ -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>

+ 2 - 1
TESTING.asciidoc

@@ -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.