FRosner / cluster-broccoli

Self service for Nomad based on templates.
Apache License 2.0
60 stars 22 forks source link

Broccoli HTTP requests time out #334

Closed FRosner closed 6 years ago

FRosner commented 6 years ago

Problem

After some time of having Broccoli running with many users and instances, the consul health check fails, Broccoli becomes unresponsive.

References

FRosner commented 6 years ago

Am I using the websocket channels correctly? https://stackoverflow.com/questions/24576405/broadcasting-messages-in-play-framework-websockets

FRosner commented 6 years ago

The channel broadcast is blocking. So maybe we can also move to fixed delay and log the time.

FRosner commented 6 years ago

Maybe I should use a unicast instead of multicasts for everyone? As I am anyway sending the message separately for authorization reasons (some users cannot receive passwords, e.g.).

https://stackoverflow.com/questions/23371586/understanding-concurrent-unicasts-arguments