peng-yongsheng commented on issue #3048: "One trace segment has been abandoned, 
cause by buffer is full" bug fix.
URL: https://github.com/apache/skywalking/pull/3048#issuecomment-510441450
 
 
   @coki230 I don't think to remove the setting of the flush interval can fix 
the problem which you provide. These Settings all have the same capabilities, 
such as setBulkActions, setBulkSize, setFlushInterval. Please take a look at 
the [official 
document](https://www.elastic.co/guide/en/elasticsearch/client/java-api/6.3/java-docs-bulk-processor.html).
   
   **setBulkActions(10000)** 
   We want to execute the bulk every 10 000 requests
   
   **setBulkSize(new ByteSizeValue(5, ByteSizeUnit.MB))**
    We want to flush the bulk every 5mb
   
   **setFlushInterval(TimeValue.timeValueSeconds(5))** 
    We want to flush the bulk every 5 seconds whatever the number of requests
   
   If any conditions are reached, the bulk will be executed. OAP servers are a 
cluster. All of them will execute the bulk operate to insert or update the 
metrics into Elasticsearch at any time. So it is reasonable to add locks and 
normal to create locks.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to