venediktov / vanilla-rtb

Real Time Bidding (RTB) - Demand Side Platform framework
http://forkbid.com
GNU General Public License v3.0
317 stars 84 forks source link

docker compose with swarm #73

Open venediktov opened 6 years ago

venediktov commented 6 years ago
venediktov commented 6 years ago

I only tested on Mac OS , docker is super slow with swarm cluster and load balancing there was a challenge as our bidders by default utilize persistent connection and docker swarm load balancer did not seem to hold connections to its virtual ip/ports .

I picked up TRAEFIK docker image and set it up for load balancing of bidder persistent connections , it did perform better under swarm/traefik but not ideal . I will look into setting up NGINX persistent connection to the backend instead - will take some time.

If anyone @mrbald or @abushev want to give it a try perhaps there is better way to load balance persistent connections ?

venediktov commented 6 years ago

Added HAProxy example it runs faster then TRAEFIK but still lags behind standalone bidder , needs more research , possible to experiment with home grown front-to-back socket binding with keep-alive

venediktov commented 5 years ago

let's add compose.yml with SSP see #84 , then close this ticket.