Hi.. how to know segment to server mapping? i trie...
# general
a
Hi.. how to know segment to server mapping? i tried few apis of pinot controller but not able to find exact answer for example: curl -X 'GET' 'http:/host;port/segments/orders_REALTIME/metadata' { "orders__1__7__20240516T1645Z" : { "segmentName" : "orders__1__7__20240516T1645Z", "schemaName" : null, "crc" : 149758281, "creationTimeMillis" : 1715888753464, "creationTimeReadable" : "2024-05-16T194553:464 UTC", "timeColumn" : "creation_time", "timeUnit" : "MILLISECONDS", "timeGranularitySec" : 0, "startTimeMillis" : 1715901121000, "startTimeReadable" : "2024-05-16T231201.000Z", "endTimeMillis" : 1715908548000, "endTimeReadable" : "2024-05-17T011548.000Z", "segmentVersion" : "v3", "creatorName" : null, "totalDocs" : 132471, "custom" : { }, "startOffset" : "2822772", "endOffset" : "2955243", "columns" : [ ], "indexes" : { }, "star-tree-index" : null }}
a
Try
Copy code
curl -X 'GET' \
  '<http://IP:9000/segments/RealTimeEvent_REALTIME/servers?type=REALTIME>' \
  -H 'accept: application/json'
m
Segment to server mapping is in the ideal state / external view. There’s api for both (check swagger)
a
Thanks alot @Amit Singh @Mayank