From ec9574288fab89ca159100cef7691a4e474fbee8 Mon Sep 17 00:00:00 2001 From: John Blum Date: Mon, 16 Sep 2019 19:19:31 -0700 Subject: [PATCH] Add Bash & Gfsh shell scripts to configure and bootstrap an Apache Geode cluster for the client/server topology arrangement and step #3 in the 'Getting Started' Guide. Resolves gh-54. --- .../src/main/resources/geode/bin/start-cluster.gfsh | 5 +++++ .../src/main/resources/geode/bin/start-cluster.sh | 3 +++ .../src/main/resources/geode/bin/stop-cluster.gfsh | 5 +++++ .../src/main/resources/geode/bin/stop-cluster.sh | 3 +++ 4 files changed, 16 insertions(+) create mode 100644 spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/start-cluster.gfsh create mode 100644 spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/start-cluster.sh create mode 100644 spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/stop-cluster.gfsh create mode 100644 spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/stop-cluster.sh diff --git a/spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/start-cluster.gfsh b/spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/start-cluster.gfsh new file mode 100644 index 00000000..df1725ff --- /dev/null +++ b/spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/start-cluster.gfsh @@ -0,0 +1,5 @@ +# Gfsh shell script to start an Apache Geode cluster with 1 Locator and 2 Servers. + +start locator --name=LocatorOne --log-level=config +start server --name=ServerOne --log-level=config +start server --name=ServerTwo --log-level=config --server-port=50505 diff --git a/spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/start-cluster.sh b/spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/start-cluster.sh new file mode 100644 index 00000000..774cef82 --- /dev/null +++ b/spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/start-cluster.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +gfsh -e "run --file=@samples-dir@/intro/getting-started/src/main/resources/geode/bin/start-cluster.gfsh" diff --git a/spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/stop-cluster.gfsh b/spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/stop-cluster.gfsh new file mode 100644 index 00000000..d4b540d3 --- /dev/null +++ b/spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/stop-cluster.gfsh @@ -0,0 +1,5 @@ +# Gfsh shell script to stop the cluster. + +stop server --name=ServerTwo +stop server --name=ServerOne +stop locator --name=LocatorOne diff --git a/spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/stop-cluster.sh b/spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/stop-cluster.sh new file mode 100644 index 00000000..31a4fde8 --- /dev/null +++ b/spring-geode-samples/intro/getting-started/src/main/resources/geode/bin/stop-cluster.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +gfsh -e "run --file=@samples-dir@/intro/getting-started/src/main/resources/geode/bin/stop-cluster.gfsh"