question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi,

I experience quite a performance breakdown in the middle of the day, when lots of whiteboards have been used. My idea was to use a nginx load balancer to split the requests up to multiple instances/servers. I open up two whiteboards (on 8080 and 8081) and use the config below. Then the whiteboards does not work any more. Strange thing ist, that a few lines get drawed, but very randomly. The cursor of other participants is not visible any more.

upstream backendwhiteboard {
	hash $request_uri;
	server localhost:8080;
        server localhost:8081;
    }
	
server {
        server_name MYDOMAIN.XYZ;

        location / {
		proxy_pass http://backendwhiteboard;
	}
}

Do you have an idea how to get a load balancer working?

Regards

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
FloChehabcommented, May 6, 2020

Hi, Just wanted to let you know that I am currently working on some tweaks to increase the performances of this project (by changing some behaviors to reduce the number of messages and small websockets optimization). I’ll most likely open a PR tomorrow or Friday.

1reaction
tna76874commented, May 2, 2020

thanks, I’m starting my docker-compose with this, and gonna give it a try. I report if performance will be better next week 😃

version: '3.1'
services:
  whiteboard:
    image: rofl256/whiteboard
    restart: always
    ports:
      - 8080:8080/tcp
    environment:
      - accesstoken=mysupersecretkey
      - NODE_OPTIONS='--max_old_space_size=4096'
Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is Load Balancing? How Load Balancers Work - NGINX
Load balancing refers to efficiently distributing incoming network traffic across a group of backend servers, also known as a server farm or server...
Read more >
Load balancing (computing) - Wikipedia
In computing, load balancing is the process of distributing a set of tasks over a set of resources (computing units), with the aim...
Read more >
What is Load Balancing? What Load Balancing Solutions Are ...
Load balancing is a networking solution that distributes traffic across multiple servers to improve application availability and prevent overload.
Read more >
What is Load Balancing? - AWS - Amazon.com
Load balancing is the method of distributing network traffic equally across a pool of resources that support an application.
Read more >
Load Balancing 101 - Learn All About Load Balancers
Weighted load balancing is the process of permitting users to set a respective weight for each origin server in a pool. It's important...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found