Mirantis / k8s-netchecker-server

Basic network checker service to check DNS and connectivity in kubernetes cluster
Apache License 2.0
67 stars 19 forks source link

Introduce a message queue to process agent data updates #109

Open AlexeyKasatkin opened 7 years ago

AlexeyKasatkin commented 7 years ago

For now, update of TPR with new agent data is performed in the handler that processes the agent's POST request to the server. This way, server's response to the agent's POST request is delayed until the answer from k8s API is received. This can cause issues with server's responsiveness when the number of agents is big or when server experiences the issues with k8s API availability. Also, queue will eliminate such issues as possible conflicts between TPR updates with data from different agents.

So, we need to introduce a message queue to process agent data updates in TPR, i.e. k8s API POST requests.