FreddieBrown / stabilize

QUIC/UDP L4 Proxy Load Balancer
GNU General Public License v3.0
1 stars 0 forks source link

Add more information to heartbeat #21

Closed FreddieBrown closed 4 years ago

FreddieBrown commented 4 years ago

Heartbeat should offer more complex information to LB. This should include elements such as CPU statistics so that the LB can choose which node to send traffic to.

FreddieBrown commented 4 years ago

This problem is difficult to solve because of how the heartbeat works. To get round this, the server will just send the number of logical cores which are available. This information is used and is set in the ServerInfo struct. This will allow more algos to be implemented in the future based on this.

To enable a JSON message to be sent as the heartbeat, a more extensive solution will have to be derived to allow a whole message to be read over this UDP connection. This becomes a problem because it was meant to be a lightweight connection so do not want to make it too heavyweight. This is an on going issue

FreddieBrown commented 4 years ago

Solved the issue. There was a misunderstanding over how much information was being sent. Once this was overcome this problem was trivial.