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:
name
stringThe 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:
replica
arrayA 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.
chunk
numberThe chunk number.
worker
stringThe unique identifier of a worker where the chunk replica is located.
table
objectThe 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
0
for all attributes of the table object.overlap_rows
numberThe number of rows in the chunk’s overlap table.
overlap_data_size
numberThe number of bytes in the chunk’s overlap table (measured by the size of the corresponding file).
overlap_index_size
numberThe number of bytes in the index of the chunk’s overlap table (measured by the size of the corresponding file).
rows
numberThe number of rows in the chunk table.
data_size
numberThe number of bytes in the chunk table (measured by the size of the corresponding file).
index_size
numberThe 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:
id
numberThe required unique identifier of the contribution request that was submitted to a Worker Ingest service earlier.
include_warnings
number =0
The optional flag telling the service to include warnings into the response. Any value that is not
0
is considered as1
, meaning that the warnings should be included.include_retries
number =0
The optional flag telling the service to include retries into the response. Any value that is not
0
is 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: