Skip to content

Conversation

@ermiry
Copy link
Owner

@ermiry ermiry commented Oct 12, 2020

General

  • Added CLIENT_STATS definition to update client stats in cerver handler
  • Added CONNECTION_STATS definition to update stats in cerver handler

Cerver

  • Added balancer cerver type
  • Added reference to parent balancer in cerver structure

Balancer

  • Added load balancer structure and dedicated methods
  • Added the ability to register services (other cervers) to be handled by the load balancer
  • Added BalancerService aux structure to be used in connection's receive
  • Correctly handling when one or more services disconnect from handler
  • Added ability to set a reconnect wait time to balancer service
  • Added BALANCER_DEBUG definition for additional balancer logs
  • Consuming data from connection when no service is available
  • Consuming data from service on bad packet types
  • Added SERVICE_DEBUG definition to get additional services logs

Handler

  • Added balancer_receive () handler method

Packets

  • Added sock fd field in PacketHeader to be used with load balancers
  • Added base packet_route_between_connections ()
  • Added bad packets type definition
  • Added dedicated method to print packets per type array

Examples

  • Added dedicated balancer example
  • Added dedicated service example

@ermiry ermiry added handler Related to handler cerver Related to cerver packets Related to packets balancer Related to load balancer service Related to load balancer services labels Oct 12, 2020
@ermiry ermiry added this to the Release 1.7 - Load Balancer milestone Oct 12, 2020
@ermiry ermiry self-assigned this Oct 12, 2020
ermiry added 30 commits October 13, 2021 23:09
Also updated dedicated test & exit example images
Setting this value after disconnecting from services in balancer teardown
This method is used when there are no available services and an on_unavailable_services cb has been set
Also refactored internal handler methods implementations
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

balancer Related to load balancer cerver Related to cerver handler Related to handler packets Related to packets service Related to load balancer services

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants