Modifying Transaction Log Parameter translog
By default, the persistency policy of translog is that each request is flushed (the value of durability is request). This ensures the reliability of write operations but has serious impact on performance. According to the test result, if the default settings are used for data import, the disk I/O will be fully occupied. If the system can accept a certain probability of data loss (or some methods can be used to supplement lost data), you can adjust the translog persistency policy to flush the data periodically or when the data size reaches a certain value. This greatly improves import performance. This parameter can be specified when an index is created (or configured in the template). Run the following commands:
curl -XPUT --tlsv1.2 --negotiate -k -u : "https://ip:httpport/myindex/_settings" -H 'Content-Type: application/json' -d' { "index": { "translog": { "flush_threshold_size": "1GB", "sync_interval": "180s", "durability": "async" } } }'
Data may be lost.
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