tom-pytel commented on pull request #138:
URL: https://github.com/apache/skywalking-python/pull/138#issuecomment-905485882


   > Setting `__finished.wait(0)` makes it infinitely retry to connect without 
any delay when the OAP is down, this may keep the CPU unnecessarily busy, what 
do you think?
   
   It should block in agent/protocol/grpc / http / kafka on the queue wait:
   ```
                       timeout = config.QUEUE_TIMEOUT - int(time() - start)  # 
type: int
                       if timeout <= 0:  # this is to make sure we exit 
eventually instead of being fed continuously
                           return
                       segment = queue.get(block=block, timeout=timeout)  # 
type: Segment
   ```
   If you want to increase time between connect attempts then increase 
`QUEUE_TIMEOUT` in config.py from its current value of 1 second.


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to