dmolesUC / mrt-bits

Merritt bitstream service (experimental)
MIT License
0 stars 0 forks source link

Get server status #2

Open dmolesUC opened 5 years ago

dmolesUC commented 5 years ago

Cf.

curl -vL 'http://store-aws.cdlib.org:35121/ping?t=xml&SLEEP=1'

(Q: does SLEEP actually do anything there?)

<ping:pingState xmlns:ping='http://uc3.cdlib.org/ontology/mrt/ping/basic'>
    <ping:threadCnt>26</ping:threadCnt>
    <ping:peakThreadCnt>89</ping:peakThreadCnt>
    <ping:freeMemory>2304597448</ping:freeMemory>
    <ping:dateTime>2019-04-30T16:19:53-07:00</ping:dateTime>
    <ping:totalMemory>3221225472</ping:totalMemory>
    <ping:localStatistics>
        <ping:getServiceState.cnt>272</ping:getServiceState.cnt>
        <ping:getObjectState.cnt>853</ping:getObjectState.cnt>
        <ping:getProducerVersion.time>502320</ping:getProducerVersion.time>
        <ping:getFileState.time>161603</ping:getFileState.time>
        <ping:updateVersion.cnt>360</ping:updateVersion.cnt>
        <ping:getServiceState.time>1626737</ping:getServiceState.time>
        <ping:getFile.cnt>1903</ping:getFile.cnt>
        <ping:getFile.time>1096616</ping:getFile.time>
        <ping:getNodeState.cnt>6215</ping:getNodeState.cnt>
        <ping:getPingState.cnt>1</ping:getPingState.cnt>
        <ping:getFileState.cnt>3086</ping:getFileState.cnt>
        <ping:addVersion.time>117435</ping:addVersion.time>
        <ping:getNodeState.time>1013067</ping:getNodeState.time>
        <ping:getObjectState.time>61087</ping:getObjectState.time>
        <ping:getObjectArchive.cnt>3938</ping:getObjectArchive.cnt>
        <ping:getObjectArchive.time>362745</ping:getObjectArchive.time>
        <ping:getProducerVersion.cnt>7</ping:getProducerVersion.cnt>
        <ping:addVersion.cnt>94</ping:addVersion.cnt>
        <ping:getPingState.time>0</ping:getPingState.time>
        <ping:updateVersion.time>790022</ping:updateVersion.time>
    </ping:localStatistics>
    <ping:maxMemory>4294967296</ping:maxMemory>
    <ping:serviceName>storage</ping:serviceName>
dmolesUC commented 5 years ago

See also:

curl -vL 'http://store-aws.cdlib.org:35121/state?t=xml'

Result:

<?xml version="1.0" encoding="UTF-8"?>
<sto:storageServiceState xmlns:sto='http://uc3.cdlib.org/ontology/mrt/store/storage'>
    <sto:supportURI>mailto:merritt-support@ucop.edu</sto:supportURI>
    <sto:baseURI>http://uc3-mrtstore1-prd.cdlib.org:35121</sto:baseURI>
    <sto:identifier>uc3-mrtstore1-prd.cdlib.org:35121</sto:identifier>
    <sto:nodeStates>
        <sto:nodeState>http://uc3-mrtstore1-prd.cdlib.org:35121/state/9103</sto:nodeState>
        <sto:nodeState>http://uc3-mrtstore1-prd.cdlib.org:35121/state/3041</sto:nodeState>
        <sto:nodeState>http://uc3-mrtstore1-prd.cdlib.org:35121/state/4001</sto:nodeState>
        <sto:nodeState>http://uc3-mrtstore1-prd.cdlib.org:35121/state/6001</sto:nodeState>
        <sto:nodeState>http://uc3-mrtstore1-prd.cdlib.org:35121/state/5001</sto:nodeState>
        <sto:nodeState>http://uc3-mrtstore1-prd.cdlib.org:35121/state/9001</sto:nodeState>
    </sto:nodeStates>
    <sto:serviceScheme>Store/1.0</sto:serviceScheme>
    <sto:name>UC3</sto:name>
    <sto:version>1.0</sto:version>
    <sto:description>UC3 storage micro-service</sto:description>
dmolesUC commented 5 years ago

See also:

curl -vL 'http://store-aws.cdlib.org:35121//state/5001/ark%3A%2F99999%2Ffk4v137z2n?t=xml'

Result:

<obj:objectState xmlns:obj='http://uc3.cdlib.org/ontology/mrt/store/object'>
    <obj:numFiles>8</obj:numFiles>
    <obj:totalActualSize>4702</obj:totalActualSize>
    <obj:numActualFiles>8</obj:numActualFiles>
    <obj:numVersions>1</obj:numVersions>
    <obj:lastAddVersion>2018-07-11T11:48:17-07:00</obj:lastAddVersion>
    <obj:nodeID>5001</obj:nodeID>
    <obj:nodeState>http://uc3-mrtstore1-prd.cdlib.org:35121/state/5001</obj:nodeState>
    <obj:identifier>ark:/99999/fk4v137z2n</obj:identifier>
    <obj:currentVersionState>http://uc3-mrtstore1-prd.cdlib.org:35121/state/5001/ark%3A%2F99999%2Ffk4v137z2n/1</obj:currentVersionState>
    <obj:versionStates>
        <obj:versionState>http://uc3-mrtstore1-prd.cdlib.org:35121/state/5001/ark%3A%2F99999%2Ffk4v137z2n/1</obj:versionState>
    </obj:versionStates>
    <obj:object>http://uc3-mrtstore1-prd.cdlib.org:35121/content/5001/ark%3A%2F99999%2Ffk4v137z2n</obj:object>
    <obj:size>4702</obj:size>
dmolesUC commented 5 years ago

See also:

curl -vL 'http://store-aws.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1?t=xml'

Result:

<?xml version="1.0" encoding="UTF-8"?>
<ver:versionState xmlns:ver='http://uc3.cdlib.org/ontology/mrt/store/version'>
    <ver:fileStates>
        <ver:fileState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1/producer%2FCart%C3%A3o%20de%20Pagamento%20do%20Governo%20Federal%20%28CPGF%29.csv</ver:fileState>
        <ver:fileState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1/system%2Fmrt-ingest.txt</ver:fileState>
        <ver:fileState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1/producer%2Fmrt-embargo.txt</ver:fileState>
        <ver:fileState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1/producer%2Fmrt-datacite.xml</ver:fileState>
        <ver:fileState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1/system%2Fmrt-object-map.ttl</ver:fileState>
        <ver:fileState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1/producer%2Fmrt-dataone-manifest.txt</ver:fileState>
        <ver:fileState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1/system%2Fmrt-mom.txt</ver:fileState>
        <ver:fileState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1/system%2Fmrt-owner.txt</ver:fileState>
        <ver:fileState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1/system%2Fmrt-dataone-map.rdf</ver:fileState>
        <ver:fileState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1/system%2Fmrt-membership.txt</ver:fileState>
        <ver:fileState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1/system%2Fmrt-dc.xml</ver:fileState>
        <ver:fileState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1/producer%2Fstash-wrapper.xml</ver:fileState>
        <ver:fileState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1/system%2Fmrt-erc.txt</ver:fileState>
        <ver:fileState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj/1/producer%2Fmrt-oaidc.xml</ver:fileState>
    </ver:fileStates>
    <ver:current>true</ver:current>
    <ver:objectState>http://uc3-mrtstore2-prd.cdlib.org:35121/state/4001/ark%3A%2F13030%2Fm5dc2zsj</ver:objectState>
    <ver:created>2018-09-27T14:52:29-07:00</ver:created>
    <ver:deltaNumFiles>14</ver:deltaNumFiles>
    <ver:deltaSize>3330380</ver:deltaSize>
    <ver:numFiles>14</ver:numFiles>
    <ver:totalSize>3330380</ver:totalSize>
    <ver:totalActualSize>3330380</ver:totalActualSize>
    <ver:numActualFiles>14</ver:numActualFiles>
    <ver:version>http://uc3-mrtstore2-prd.cdlib.org:35121/content/4001/ark%3A%2F13030%2Fm5dc2zsj/1</ver:version>
    <ver:identifier>1</ver:identifier>