afs:check=querymanager Returns - AFS

Install AFS on Multiple Servers

Product
AFS
AFS_Version
7.11
Platform
RHEL
Category
Technical Notes

Return code 200 (OK):

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<afs:replies xmlns:afs="http://ref.antidot.net/v7/afs#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ref.antidot.net/v7/afs# http://ref.antidot.net/v7.4/search.xsd">
<afs:header>
...
</afs:header>
<afs:replySet>
<afs:meta uri="urn:AFS_v7:check_Query_Manager_feed" totalItems="1" totalItemsIsExact="true" pageItems="1" firstPageItem="1" lastPageItem="1" durationMs="1" firstPaFId="0" lastPaFId="0" producer="check"/>
<afs:content>
<afs:reply docId="1" uri="http://www.antidot.net">
<afs:title>
<afs:text>AFS v7 Query Manager is operational</afs:text>
</afs:title>
<afs:abstract>
<afs:text>Front-end and Query Manager configuration for AFS v7 search are valid </afs:text>
</afs:abstract>
<afs:clientData>
<afs:QueryManager xmlns:afs="http://ref.antidot.net/v7/afs#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ref.antidot.net/v7/afs# http://ref.antidot.net/v7.4/querymanager.xsd" hostname="my_host_name" compStatus="OK">
<afs:datacenter id="AFS Datacenter"/>
<afs:services serviceId="1">
<afs:instances status="stable">
<afs:agents>
<afs:istats cur="0" min="1" max="1"/>
<afs:qstats posted="0" reposted="0" served="0" rejected="0" stale="0"/>
</afs:agents>
<afs:stats queries="0" discarded="0" stale="0"/>
<afs:masters>
<afs:toplevelAgents name="MasterFeed" path="/usr/local/afs7/reply/1/stable/masters/MasterFeed" curInstances="0"/>
<afs:istats cur="0" min="1" max="1"/>
<afs:qstats posted="0" reposted="0" served="0" rejected="0" stale="0"/>
</afs:masters>
<afs:slaves>
<afs:istats cur="0" min="1" max="1"/>
<afs:qstats posted="0" reposted="0" served="0" rejected="0" stale="0"/>
</afs:slaves>
</afs:instances>
</afs:services>
<afs:globalStats queries="0" discarded="0" stale="0" startDate="1327066732" uptime="37"/>
</afs:QueryManager>
</afs:clientData>
</afs:reply>
</afs:content>
</afs:replySet>
</afs:replies>

Return code 404 (Not Found, Query Manager is stopped):

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<afs:replies xsi:schemaLocation="http://ref.antidot.net/v7/afs# http://ref.antidot.net/v7.4/search.xsd">
<afs:header>
...
<afs:error>
<afs:message>Query Manager on local host and port 7000 is down
</afs:message>
</afs:error>
</afs:header>
</afs:replies>

Return code 503 (Service Unavailable, reply databases synchronization in progress):

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<afs:replies xsi:schemaLocation="http://ref.antidot.net/v7/afs# http://ref.antidot.net/v7.4/search.xsd">
<afs:header>
...
</afs:header>
<afs:replySet>
<afs:meta uri="urn:AFS_v7:check_Query_Manager_feed" totalItems="1" totalItemsIsExact="true" pageItems="1" firstPageItem="1" lastPageItem="1" durationMs="1" firstPaFId="0" lastPaFId="0" producer="check"/>
<afs:content>
<afs:reply docId="1" uri="http://www.antidot.net">
<afs:title>
<afs:text>AFS v7 Query Manager is NOT operational
</afs:text>
</afs:title>
<afs:abstract>
<afs:text>Front-end and Query Manager configuration for AFS v7 search are valid BUT Query Manager is not available
</afs:text>
</afs:abstract>
<afs:clientData>
<afs:QueryManager
xsi:schemaLocation="http://ref.antidot.net/v7/afs#
http://ref.antidot.net/v7.4/querymanager.xsd"
hostname="my_host_name" compStatus="WAITING">
...
</afs:QueryManager>
</afs:clientData>
</afs:reply>
</afs:content>
</afs:replySet>
</afs:replies>