|
|
@ -2,20 +2,19 @@ source yggstate |
|
|
|
{ |
|
|
|
{ |
|
|
|
type = mysql |
|
|
|
type = mysql |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sql_port = 3306 |
|
|
|
sql_host = localhost |
|
|
|
sql_host = localhost |
|
|
|
sql_user = |
|
|
|
sql_user = |
|
|
|
sql_pass = |
|
|
|
sql_pass = |
|
|
|
sql_db = |
|
|
|
sql_db = |
|
|
|
sql_port = 3306 # optional, default is 3306 |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
source peer : yggstate |
|
|
|
source peer : yggstate |
|
|
|
{ |
|
|
|
{ |
|
|
|
sql_query = \ |
|
|
|
sql_query = \ |
|
|
|
SELECT `peer`.`key`, \ |
|
|
|
SELECT `peer`.`peerId`, \ |
|
|
|
`peer`.`address`, \ |
|
|
|
`peer`.`address` AS `peerAddress`, \ |
|
|
|
`peer`.`peerId`, \ |
|
|
|
`peer`.`key` AS `peerKey`, \ |
|
|
|
`peer`.`timeAdded`, \ |
|
|
|
|
|
|
|
(SELECT GROUP_CONCAT(DISTINCT `peerCoordinate`.`port`) \ |
|
|
|
(SELECT GROUP_CONCAT(DISTINCT `peerCoordinate`.`port`) \ |
|
|
|
FROM `peerCoordinate` \ |
|
|
|
FROM `peerCoordinate` \ |
|
|
|
WHERE `peerCoordinate`.`peerId` = `peer`.`peerId`) AS `peerCoordinatePort`, \ |
|
|
|
WHERE `peerCoordinate`.`peerId` = `peer`.`peerId`) AS `peerCoordinatePort`, \ |
|
|
@ -26,25 +25,24 @@ source peer : yggstate |
|
|
|
(SELECT GROUP_CONCAT(DISTINCT `peerRemoteScheme`.`name`) \ |
|
|
|
(SELECT GROUP_CONCAT(DISTINCT `peerRemoteScheme`.`name`) \ |
|
|
|
FROM `peerRemote` \ |
|
|
|
FROM `peerRemote` \ |
|
|
|
JOIN `peerRemoteScheme` ON (`peerRemoteScheme`.`peerRemoteSchemeId` = `peerRemote`.`peerRemoteSchemeId`) \ |
|
|
|
JOIN `peerRemoteScheme` ON (`peerRemoteScheme`.`peerRemoteSchemeId` = `peerRemote`.`peerRemoteSchemeId`) \ |
|
|
|
WHERE `peerRemote`.`peerId` = `peer`.`peerId`) AS `remoteScheme`, \ |
|
|
|
WHERE `peerRemote`.`peerId` = `peer`.`peerId`) AS `peerRemoteScheme`, \ |
|
|
|
(SELECT GROUP_CONCAT(DISTINCT `peerRemoteHost`.`name`) \ |
|
|
|
(SELECT GROUP_CONCAT(DISTINCT `peerRemoteHost`.`name`) \ |
|
|
|
FROM `peerRemote` \ |
|
|
|
FROM `peerRemote` \ |
|
|
|
JOIN `peerRemoteHost` ON (`peerRemoteHost`.`peerRemoteHostId` = `peerRemote`.`peerRemoteHostId`) \ |
|
|
|
JOIN `peerRemoteHost` ON (`peerRemoteHost`.`peerRemoteHostId` = `peerRemote`.`peerRemoteHostId`) \ |
|
|
|
WHERE `peerRemote`.`peerId` = `peer`.`peerId`) AS `remoteHost`, \ |
|
|
|
WHERE `peerRemote`.`peerId` = `peer`.`peerId`) AS `peerRemoteHost`, \ |
|
|
|
(SELECT GROUP_CONCAT(DISTINCT `peerRemotePort`.`name`) \ |
|
|
|
(SELECT GROUP_CONCAT(DISTINCT `peerRemotePort`.`name`) \ |
|
|
|
FROM `peerRemote` \ |
|
|
|
FROM `peerRemote` \ |
|
|
|
JOIN `peerRemotePort` ON (`peerRemotePort`.`peerRemotePortId` = `peerRemote`.`peerRemotePortId`) \ |
|
|
|
JOIN `peerRemotePort` ON (`peerRemotePort`.`peerRemotePortId` = `peerRemote`.`peerRemotePortId`) \ |
|
|
|
WHERE `peerRemote`.`peerId` = `peer`.`peerId`) AS `remotePort` \ |
|
|
|
WHERE `peerRemote`.`peerId` = `peer`.`peerId`) AS `peerRemotePort` \ |
|
|
|
FROM `peer`\ |
|
|
|
FROM `peer`\ |
|
|
|
|
|
|
|
|
|
|
|
sql_attr_string = address |
|
|
|
sql_field_string = peerAddress |
|
|
|
sql_attr_string = key |
|
|
|
sql_field_string = peerKey |
|
|
|
sql_attr_string = peerCoordinatePort |
|
|
|
sql_field_string = peerCoordinatePort |
|
|
|
sql_attr_string = peerCoordinateRoute |
|
|
|
sql_field_string = peerCoordinateRoute |
|
|
|
sql_attr_string = remoteScheme |
|
|
|
sql_field_string = peerRemoteScheme |
|
|
|
sql_attr_string = remoteHost |
|
|
|
sql_field_string = peerRemoteHost |
|
|
|
sql_attr_uint = remotePort |
|
|
|
sql_field_string = peerRemotePort |
|
|
|
sql_attr_uint = timeAdded |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
index peer |
|
|
|
index peer |
|
|
|