main idea is from https://github.com/ggreen/spring-geode-showcase/tree/master/applications/gemfire-circuitbreaker-demo
switch connection between 2 clusters
- Spring Boot
- GemFire
- get value from server cluster
- switch to Primary cluster
- switch to Secondary cluster
- get the current connected cluster name
for cluster 1
- connect --locator=locator1[30001]
- list members
- list regions
- create region --name=/test --type=PARTITION
- put --region=/test --key="test" --value="locator1"
- query --query="select * from /test"
for cluter 2
- connect --locator=locator2[40001]
- list members
- list regions
- create region --name=/test --type=PARTITION
- put --region=/test --key="test" --value="locator2"
- query --query="select * from /test"