From c928bca2c64af6428f583d3b8405f0b67aac1203 Mon Sep 17 00:00:00 2001 From: Kanika Khetawat Date: Wed, 16 Oct 2024 12:55:18 +0530 Subject: [PATCH 1/3] Add readme for ignite --- .idea/.gitignore | 8 ++++ .idea/drove-orchestrator.iml | 9 +++++ .idea/misc.xml | 6 +++ .idea/modules.xml | 8 ++++ .idea/sonarlint/issuestore/index.pb | 0 .idea/sonarlint/securityhotspotstore/index.pb | 0 .idea/vcs.xml | 6 +++ docs/docs/extra/libraries.md | 38 ++++++++++++++++++- 8 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/drove-orchestrator.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/sonarlint/issuestore/index.pb create mode 100644 .idea/sonarlint/securityhotspotstore/index.pb create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/drove-orchestrator.iml b/.idea/drove-orchestrator.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/drove-orchestrator.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..639900d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..3c8f8c2 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/index.pb b/.idea/sonarlint/issuestore/index.pb new file mode 100644 index 0000000..e69de29 diff --git a/.idea/sonarlint/securityhotspotstore/index.pb b/.idea/sonarlint/securityhotspotstore/index.pb new file mode 100644 index 0000000..e69de29 diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/docs/docs/extra/libraries.md b/docs/docs/extra/libraries.md index 89025f7..9c16e75 100644 --- a/docs/docs/extra/libraries.md +++ b/docs/docs/extra/libraries.md @@ -8,7 +8,7 @@ Setup the drove version ```xml - 1.29 + 1.30 ``` @@ -197,3 +197,39 @@ val node = Hazelcast.newHazelcastInstance(config); !!!note "Peer discovery modes" By default the containers will _only_ discover and connect to containers from the same [application id](../applications/index.md#application-id). If you need to connect to containers from all versions of the same application please set the `cluster-by-app-name` property to `true` as in the above example. + +## Drove Apache Ignite Discovery + +Drove provides an implementation of the apache ignite discovery so that containers deployed on a drove cluster can discover each other. This client uses the token injected by drove in the `DROVE_APP_INSTANCE_AUTH_TOKEN` environment variable to get sibling information from the controller. + +### Dependencies +```xml + + + + com.phonepe.drove + drove-ignite-discovery + ${drove.version} + +``` + +### Sample Code +```java + +//Setup ignite +IgniteConfigProvider igniteConfigProvider = new IgniteConfigProvider(); + +IgniteConfiguration igniteConfiguration = igniteConfigProvider.provideIgniteConfiguration(DroveIgniteConfig.builder() + .communicationPortName("igniteComm") // Communication port name + .droveEndpoint("http://controller1:4000,http://controller2:4000") //Controller endpoints + .useAppNameForDiscovery(true) //Cluster container across multiple app versions + .discoveryPortName("igniteDiscovery") // Discovery port name + .build()); + +// Start ignite +Ignite ignite = Ignition.start(configuration); +``` + +!!!note "Peer discovery modes" +By default the containers will _only_ discover and connect to containers from the same [application id](../applications/index.md#application-id). If you need to connect to containers from all versions of the same application please set the `cluster-by-app-name` property to `true` as in the above example. + From 5cde86c61fd20c00ace30c9821edfe96ab4c675f Mon Sep 17 00:00:00 2001 From: Kanika Khetawat Date: Wed, 16 Oct 2024 12:56:43 +0530 Subject: [PATCH 2/3] Removed extra files --- .idea/.gitignore | 8 --- .idea/drove-orchestrator.iml | 9 --- .idea/misc.xml | 6 -- .idea/modules.xml | 8 --- .idea/sonarlint/issuestore/index.pb | 0 .idea/sonarlint/securityhotspotstore/index.pb | 0 .idea/vcs.xml | 6 -- .idea/workspace.xml | 55 +++++++++++++++++++ 8 files changed, 55 insertions(+), 37 deletions(-) delete mode 100644 .idea/.gitignore delete mode 100644 .idea/drove-orchestrator.iml delete mode 100644 .idea/misc.xml delete mode 100644 .idea/modules.xml delete mode 100644 .idea/sonarlint/issuestore/index.pb delete mode 100644 .idea/sonarlint/securityhotspotstore/index.pb delete mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.idea/.gitignore b/.idea/.gitignore deleted file mode 100644 index 13566b8..0000000 --- a/.idea/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml -# Editor-based HTTP Client requests -/httpRequests/ -# Datasource local storage ignored files -/dataSources/ -/dataSources.local.xml diff --git a/.idea/drove-orchestrator.iml b/.idea/drove-orchestrator.iml deleted file mode 100644 index d6ebd48..0000000 --- a/.idea/drove-orchestrator.iml +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml deleted file mode 100644 index 639900d..0000000 --- a/.idea/misc.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml deleted file mode 100644 index 3c8f8c2..0000000 --- a/.idea/modules.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/.idea/sonarlint/issuestore/index.pb b/.idea/sonarlint/issuestore/index.pb deleted file mode 100644 index e69de29..0000000 diff --git a/.idea/sonarlint/securityhotspotstore/index.pb b/.idea/sonarlint/securityhotspotstore/index.pb deleted file mode 100644 index e69de29..0000000 diff --git a/.idea/vcs.xml b/.idea/vcs.xml deleted file mode 100644 index 35eb1dd..0000000 --- a/.idea/vcs.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..1ac7596 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,55 @@ + + + + + + + + + + + + + + + + + + + + + + 1729051864219 + + + + + + \ No newline at end of file From 4137694fd96edb270211d5dbc4097f516b81c70b Mon Sep 17 00:00:00 2001 From: Kanika Khetawat Date: Wed, 16 Oct 2024 12:57:04 +0530 Subject: [PATCH 3/3] Removed extra files --- .idea/workspace.xml | 55 --------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 .idea/workspace.xml diff --git a/.idea/workspace.xml b/.idea/workspace.xml deleted file mode 100644 index 1ac7596..0000000 --- a/.idea/workspace.xml +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - 1729051864219 - - - - - - \ No newline at end of file