Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Docker High Performance

You're reading from   Docker High Performance Complete your Docker journey by optimizing your application's work?ows and performance

Arrow left icon
Product type Paperback
Published in Apr 2019
Publisher
ISBN-13 9781789807219
Length 174 pages
Edition 2nd Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Russ McKendrick Russ McKendrick
Author Profile Icon Russ McKendrick
Russ McKendrick
Allan Espinosa Allan Espinosa
Author Profile Icon Allan Espinosa
Allan Espinosa
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preparing application backends


To create a load balanced application, we must first prepare the application where it is served by several replicas in our Docker Swarm service. In the following steps, we will deploy an application that is scaled in our Docker Swarm cluster:

  1. First, we will provision additional nodes in our Docker Swarm cluster. This is to make sure we have enough capacity in our cluster to scale out our application later. In the following output, we can see that we have four nodes available:
dockerhost$ docker node ls
ID         HOSTNAME   STATUS AVAILA...  MANAGER...   ENGINE VERSION
9tcxzq45 * dockerhost Ready  Active     Leader       18.09.3
thxcn7ev   node-5lfg  Ready  Active                  18.09.0
7lyr93qf   node-ftc0  Ready  Active                  18.09.0
oydrnufp   node-hqvv  Ready  Active                  18.09.0
  1. Next, we will prepare a simple Node.js application in a file called app.js. The following app logs additional information related on how our application is...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image