add some testing info 39/20539/1
authorTony Hansen <tony@att.com>
Wed, 25 Oct 2017 11:53:09 +0000 (11:53 +0000)
committerTony Hansen <tony@att.com>
Wed, 25 Oct 2017 11:53:17 +0000 (11:53 +0000)
expand on the section on testing connections

Change-Id: Icc412a6a8944ded3e4f5c25cdde77d2878771adc
Signed-off-by: Tony Hansen <tony@att.com>
Issue-ID: DCAEGEN2-128

docs/sections/blueprints/PGaaS.rst

index 47e234e..a5508a1 100644 (file)
@@ -119,10 +119,15 @@ volume size.)
 
 
 You can verify that the cluster is up and running by connecting to the PostgreSQL service
-on port 5432:
+on port 5432. To verify that all of the DNS names were created properly and that PostgreSQL is
+answering on port 5432, you can use something like this:
 
 ::
-    telnet ${LOCATIONPREFIX}-${CLUSTER}-write.${LOCATIONDOMAIN} 5432
+    sleep 1 | nc -v ${LOCATIONPREFIX}${CLUSTER}00.${LOCATIONDOMAIN} 5432
+    sleep 1 | nc -v ${LOCATIONPREFIX}${CLUSTER}01.${LOCATIONDOMAIN} 5432
+    sleep 1 | nc -v ${LOCATIONPREFIX}-${CLUSTER}-write.${LOCATIONDOMAIN} 5432
+    sleep 1 | nc -v ${LOCATIONPREFIX}-${CLUSTER}.${LOCATIONDOMAIN} 5432
+
 
 Once you have the cluster created, you can then allocate databases. An application that
 wants a persistent database not tied to the lifetime of the application blueprint can