Geode多節點叢集實驗
阿新 • • 發佈:2018-12-25
db
$ reboot
nn
gfsh>list members Name | Id -------- | --------------------------------------------------- server3 | 192.168.79.139(server3:5617)<v8>:1024 locator1 | 192.168.79.143(locator1:39175:locator)<ec><v0>:1024 server1 | 192.168.79.143(server1:39334)<v2>:1025
gfsh>query --query="select * from /region1" Result : true startCount : 0 endCount : 20 Rows : 1 Result ------ one NEXT_STEP_NAME : END
db
gfsh>start locator --name=locator2 --port=10334 --locators=nn[10334],db[10334]
gfsh>start server --name=server2 --server-port=40401 --locator=nn[10334],db[10334]
gfsh>list members Name | Id -------- | --------------------------------------------------- server3 | 192.168.79.139(server3:3950)<v23>:1024 locator2 | 192.168.79.146(locator2:5447:locator)<ec><v25>:1024 locator1 | 192.168.79.149(locator1:5200:locator)<ec><v12>:1024 server2 | 192.168.79.146(server2:5602)<v26>:1025 server1 | 192.168.79.149(server1:5303)<v13>:1025 gfsh>describe region --name=region1 .......................................................... Name : region1 Data Policy : persistent replicate Hosting Members : server3 server2 server1 Non-Default Attributes Shared By Hosting Members Type | Name | Value ------ | ----------- | -------------------- Region | data-policy | PERSISTENT_REPLICATE | size | 1 | scope | distributed-ack
gfsh>query --query="select * from /region1" Result : true startCount : 0 endCount : 20 Rows : 1 Result ------ one NEXT_STEP_NAME : END