Using Object Reuse of FlinkSQL to Improve Computing Performance
Scenario
In Flink SQL services developed using the Table API, objects are frequently created and destroyed during data processing. This results in significant memory allocation and garbage collection (GC) overhead, which impacts computing performance. After the object reuse feature is enabled, FlinkSQL can reuse data transmission objects between operators, avoiding frequent object creation and destruction, thereby improving SQL computing performance.
Notes and Constraints
- This feature works only for SQL services developed using the Table APIs.
- Objects in Flink SQL UDFs cannot be reused to ensure computing accuracy.
Usage
You can use either of the following methods to set pipeline.serialization-elimination to true to enable the object reuse function:
- Method 1: When configuring a Flink job, add this custom parameter to the flink_config parameter of the job.
- Method 2: Add this custom parameter to the Flink parameters of the endpoint.
What is your overall rating for this page?
Thank 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