Information services#
Chunk disposition#
Warning
Do not use this service for the chunk placement decisions during catalog ingestion. The service is for informational purposes only.
The service of the Master Replication Controller return information about the chunk replicas in a scope of a given database:
method |
service |
query parameters |
|---|---|---|
|
|
|
Where:
namestringThe required name of a database affected by the operation.
The resulting object has the following schema:
{
"replica": [
{
"chunk" : <number>,
"worker": <string>,
"table" : {
<partitioned-table-name> : {
"overlap_rows" : <number>,
"overlap_data_size" : <number>,
"overlap_index_size" : <number>,
"rows" : <number>,
"data_size" : <number>,
"index_size" : <number>
},
...
}
},
...
]
}
Where:
replicaarrayA collection of chunk replicas, where each object representes a chunk replica. Replicas of a chunk are essentially the same chunk, but placed on different workers.
chunknumberThe chunk number.
workerstringThe unique identifier of a worker where the chunk replica is located.
tableobjectThe object with the information about the chunk replica in the scope of a particular partitioned table.
Attention: The current implementation is incomplete. It will return
0for all attributes of the table object.overlap_rowsnumberThe number of rows in the chunk’s overlap table.
overlap_data_sizenumberThe number of bytes in the chunk’s overlap table (measured by the size of the corresponding file).
overlap_index_sizenumberThe number of bytes in the index of the chunk’s overlap table (measured by the size of the corresponding file).
rowsnumberThe number of rows in the chunk table.
data_sizenumberThe number of bytes in the chunk table (measured by the size of the corresponding file).
index_sizenumberThe number of bytes in the index of the chunk table (measured by the size of the corresponding file).
Status of the contribution request#
The service of the Master Replication Controller returns information on a contribution request:
method |
service |
query parameters |
|---|---|---|
|
|
include_warnings=<0|1>include_retries=<0|1> |
Where:
idnumberThe required unique identifier of the contribution request that was submitted to a Worker Ingest service earlier.
include_warningsnumber =0The optional flag telling the service to include warnings into the response. Any value that is not
0is considered as1, meaning that the warnings should be included.include_retriesnumber =0The optional flag telling the service to include retries into the response. Any value that is not
0is considered as1, meaning that the retries should be included.
The resulting object has the following schema:
{ "contribution" : <object>
}
Where the detailed description on the enclosed contribution object is provided in the section: