mirror of https://github.com/YGGverse/YGGstate.git
phpyggdrasilcrawlermysqlspiderexplorersphinxsearch-enginegeolite2analyticsyggdrasil-php-apigeo-locationyggdrasil-networkgeo-ipyggstateyggdrasil-apiyggdrasilctl
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
3.2 KiB
79 lines
3.2 KiB
1 year ago
|
source yggstate
|
||
|
{
|
||
|
type = mysql
|
||
|
|
||
1 year ago
|
sql_port = 3306
|
||
1 year ago
|
sql_host = localhost
|
||
|
sql_user =
|
||
|
sql_pass =
|
||
|
sql_db =
|
||
|
}
|
||
|
|
||
|
source peer : yggstate
|
||
|
{
|
||
1 year ago
|
sql_query = \
|
||
|
SELECT `peer`.`peerId`, \
|
||
|
`peer`.`address` AS `peerAddress`, \
|
||
|
`peer`.`key` AS `peerKey`, \
|
||
1 year ago
|
(SELECT GROUP_CONCAT(DISTINCT `peerCoordinate`.`port`) \
|
||
|
FROM `peerCoordinate` \
|
||
|
WHERE `peerCoordinate`.`peerId` = `peer`.`peerId`) AS `peerCoordinatePort`, \
|
||
|
(SELECT GROUP_CONCAT(DISTINCT `peerCoordinateRoute`.`port`) \
|
||
|
FROM `peerCoordinateRoute` \
|
||
|
JOIN `peerCoordinate` ON (`peerCoordinate`.`peerCoordinateId` = `peerCoordinateRoute`.`peerCoordinateId`) \
|
||
|
WHERE `peerCoordinate`.`peerId` = `peer`.`peerId`) AS `peerCoordinateRoute`, \
|
||
|
(SELECT GROUP_CONCAT(DISTINCT `peerRemoteScheme`.`name`) \
|
||
|
FROM `peerRemote` \
|
||
|
JOIN `peerRemoteScheme` ON (`peerRemoteScheme`.`peerRemoteSchemeId` = `peerRemote`.`peerRemoteSchemeId`) \
|
||
1 year ago
|
WHERE `peerRemote`.`peerId` = `peer`.`peerId`) AS `peerRemoteScheme`, \
|
||
1 year ago
|
(SELECT GROUP_CONCAT(DISTINCT `peerRemoteHost`.`name`) \
|
||
|
FROM `peerRemote` \
|
||
|
JOIN `peerRemoteHost` ON (`peerRemoteHost`.`peerRemoteHostId` = `peerRemote`.`peerRemoteHostId`) \
|
||
1 year ago
|
WHERE `peerRemote`.`peerId` = `peer`.`peerId`) AS `peerRemoteHost`, \
|
||
1 year ago
|
(SELECT GROUP_CONCAT(DISTINCT `peerRemotePort`.`name`) \
|
||
|
FROM `peerRemote` \
|
||
|
JOIN `peerRemotePort` ON (`peerRemotePort`.`peerRemotePortId` = `peerRemote`.`peerRemotePortId`) \
|
||
1 year ago
|
WHERE `peerRemote`.`peerId` = `peer`.`peerId`) AS `peerRemotePort`, \
|
||
|
(SELECT GROUP_CONCAT(DISTINCT `geoCountry`.`isoCode`) \
|
||
|
FROM `peerRemote` \
|
||
|
JOIN `geo` ON (`geo`.`geoId` = `peerRemote`.`geoId`) \
|
||
|
JOIN `geoCountry` ON (`geoCountry`.`geoCountryId` = `geo`.`geoCountryId`) \
|
||
|
WHERE `peerRemote`.`peerId` = `peer`.`peerId` \
|
||
|
) AS `geoCountryIsoCode`, \
|
||
|
(SELECT GROUP_CONCAT(DISTINCT `geoCountry`.`name`) \
|
||
|
FROM `peerRemote` \
|
||
|
JOIN `geo` ON (`geo`.`geoId` = `peerRemote`.`geoId`) \
|
||
|
JOIN `geoCountry` ON (`geoCountry`.`geoCountryId` = `geo`.`geoCountryId`) \
|
||
|
WHERE `peerRemote`.`peerId` = `peer`.`peerId` \
|
||
|
) AS `geoCountryName`, \
|
||
|
(SELECT GROUP_CONCAT(DISTINCT `geoCity`.`name`) \
|
||
|
FROM `peerRemote` \
|
||
|
JOIN `geo` ON (`geo`.`geoId` = `peerRemote`.`geoId`) \
|
||
|
JOIN `geoCity` ON (`geoCity`.`geoCityId` = `geo`.`geoCityId`) \
|
||
|
WHERE `peerRemote`.`peerId` = `peer`.`peerId` \
|
||
|
) AS `geoCityName` \
|
||
1 year ago
|
FROM `peer`\
|
||
|
|
||
1 year ago
|
sql_field_string = peerAddress
|
||
|
sql_field_string = peerKey
|
||
|
sql_field_string = peerCoordinatePort
|
||
|
sql_field_string = peerCoordinateRoute
|
||
|
sql_field_string = peerRemoteScheme
|
||
|
sql_field_string = peerRemoteHost
|
||
|
sql_field_string = peerRemotePort
|
||
1 year ago
|
sql_field_string = geoCountryIsoCode
|
||
|
sql_field_string = geoCountryName
|
||
|
sql_field_string = geoCityName
|
||
1 year ago
|
}
|
||
|
|
||
|
index peer
|
||
|
{
|
||
|
source = peer
|
||
|
path = /var/lib/sphinxsearch/data/peer
|
||
|
}
|
||
|
|
||
|
indexer
|
||
|
{
|
||
|
mem_limit = 256M
|
||
|
lemmatizer_cache = 256M
|
||
|
}
|