Akka stop sending UDP messages if there is huge traffic
#17,748 opened on 2015年6月16日
Repository metrics
- Stars
- (13,277 stars)
- PR merge metrics
- (平均マージ 8d 19h) (30d で 10 merged PRs)
説明
Hi, I have created simple web application in play framework and a I have used kamon.io to count number of requests. Next i have configured to send that data to statsD. Everything works fine for normal load. But if I start generating too much requests ( traffic bigger than application is able to handle), kamon.io stop sending data to statsD, and log that error:
[INFO] [05/27/2015 17:16:22.817] [kamon-akka.actor.default-dispatcher-2] [akka://kamon/system/IO-UDP-FF/selectors/$a/0] Message [akka.io.Udp$Send] from Actor[akka://kamon/deadLetters] to Actor[akka://kamon/system/IO-UDP-FF/selectors/$a/0#-1615202930] was not delivered. [1] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'.
They have implemented reporting by UDP in class https://github.com/kamon-io/Kamon/blob/master/kamon-statsd/src/main/scala/kamon/statsd/StatsDMetricsSender.scala that code seems be the same as http://doc.akka.io/docs/akka/snapshot/scala/io-udp.html
Kamon.io is configured to send less than 1kb every 5 seconds.