getStreamingRaftGroups
Syntax
getStreamingRaftGroups()
Arguments
None
Details
Return a table with information about the Raft group that the local node belongs to. The first column is Raft group ID; the second column is information about the data nodes in the Raft group.
Examples
getStreamingRaftGroups();
id | sites |
---|---|
12 | 192.168.1.135:18102:NODE1,192.168.1.135:18103:NODE2,192.168.1.135:18104:NODE3 |
11 | 192.168.1.135:18102:NODE1,192.168.1.135:18103:NODE2,192.168.1.135:18105:NODE4 |
Use the following script to get information about all Raft groups in the cluster:
select id,sites from pnodeRun(getStreamingRaftGroups) where isDuplicated([id,sites],FIRST)=false;