HTTP Load Balancing With Docker and nginx

preview_player
Показать описание
nginx can be used as both: as a HTTP server and as a load balancer. In this screencast I used nginx to balance the load between two TomEE instances.

Рекомендации по теме
Комментарии
Автор

Hello Adam, I really like these videos mainly with docker and microservices.
I have a suggestion for another video: with this scenario HTTP Load Balancing With Docker and nginx but across distinct machines for example with swarm. Basically deploy this service in a scalable environment.

Thank you.

VitorCardoso
Автор

Adam,

What you think about to replace Nginx load balance for Docker swarm routing mesh? Is it worth it?

andersoncarvalho
Автор

Hi Adam! 

Watching your video I got a slight mistake of mine. Thanks!

Further... It's not necessary expose the PING container ports. Only expose this port on Docker network. You can configure NGINX to do that using, for example:

upstream ping{
server ping1:80;
server ping2:80;
}

After You define:

server {
listen 8888;

location / {
}
}

And finally you expose NGINX container port 8888 to the external network localhost.

Best regards...

cyclonedj
Автор

can you do this for two nodejs servers ????

gtasapcuser
Автор

What is the IDE you are using in this tutorial?

ananyachoudhury
Автор

You make me crazy with your "pink", it's not pig, not pink, it's called "ping" with a soft G and not not hard K 🤕😆

michabbb