How Do I Query the Index Size on OBS After the Freezing of Indexes for a CSS Cluster?
The size of indexes remains unchanged after freezing. By querying the size of frozen indexes in OBS, you obtain the size of all indexes stored on OBS.
GET _cat/freeze_indices?stage=$
The output is as follows (as an example only):
green open data2 0bNtxWDtRbOSkS4JYaUgMQ 3 0 5 0 7.9kb 7.9kb green open data3 oYMLvw31QnyasqUNuyP6RA 3 0 51 0 23.5kb 23.5kb
The last column of the returned result contains the index size information.
Related Questions
- Billing for index storage on OBS
Fees may be incurred when you store indexes in OBS. For details, see the price of standard single-AZ storage in OBS Price Calculator.
- Why can frozen indexes stored in OBS still be queried using commands?
Elasticsearch and OpenSearch clusters use local storage by default, and Lucene index files are stored on local disks. Lucene interacts with the underlying storage via the Directory API. Files can be read through the following API:
public abstract IndexInput openInput(String name, IOContext context) throws IOException;
The storage-compute decoupling feature enables interaction with OBS through the Directory API to read files stored in OBS. This is why information about frozen indexes stored in OBS can be queried using commands.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot